Index: openacs-4/packages/mail-tracking/catalog/mail-tracking.de_DE.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/mail-tracking/catalog/mail-tracking.de_DE.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/mail-tracking/catalog/mail-tracking.de_DE.ISO-8859-1.xml 14 Jun 2005 20:40:55 -0000 1.1 @@ -0,0 +1,13 @@ + + + + Inhalt + Nachrichten + Paket + Empf�nger + Mail Tracking f�r %instance_name% einrichten + Versanddatum + Betreff + Sie haben das Mail Tracking f�r diese Paket aktiviert (<a href="%sub_url%">deaktivieren</a>). + Sie k�nnen <a href="%sub_url%"> das Mail Tracking f�r dieses Paket aktivieren</a>: '%pretty_name%'. + Index: openacs-4/packages/mail-tracking/catalog/mail-tracking.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/mail-tracking/catalog/mail-tracking.en_US.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/mail-tracking/catalog/mail-tracking.en_US.ISO-8859-1.xml 14 Jun 2005 20:40:55 -0000 1.1 @@ -0,0 +1,15 @@ + + + + Body + messages + Package + Recipient + Request mail tracking for %instance_name% + Request Notification for %instance_name% + Sender + Sent Date + Subject + You have requested to track emails from this package (<a href="%sub_url%">unsubscribe</a>). + You may <a href="%sub_url%">request mail tracking</a> for this package: '%pretty_name%'. + Index: openacs-4/packages/mail-tracking/lib/messages.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/mail-tracking/lib/messages.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/mail-tracking/lib/messages.tcl 14 Jun 2005 19:48:53 -0000 1.1 +++ openacs-4/packages/mail-tracking/lib/messages.tcl 14 Jun 2005 20:40:55 -0000 1.2 @@ -20,29 +20,6 @@ context:onevalue } -set sender_p [exists_and_not_null sender_id] -set receiver_p [exists_and_not_null receiver_id] -set package_p [exists_and_not_null package_id] -set sum_p [expr $sender_p + $receiver_p + $package_p] - -if {$sender_p} { - set sender_id_clause "and sender_id = :sender_id" -} else { - set sender_id_clause "" -} - -if {$receiver_p} { - set recipient_id_clause "and recipient_id = :recipient_id" -} else { - set recipient_id_clause "" -} - -if {$package_p} { - set package_id_clause "and package_id = :package_id" -} else { - set package_id_clause "" -} - set page_title [ad_conn instance_name] set context [list "index"] @@ -81,7 +58,19 @@ subject {orderby subject} sent_date {orderby sent_date} } -filters { - acs_mail_log_id + recipient_id { + label "[_ mail-tracking.Recipient]" + where_clause {recipient_id = :recipient_id} + } + sender_id { + label "[_ mail-tracking.Sender]" + where_clause "sender_id = :sender_id" + } + package_id { + label "[_ mail-tracking.Package]" + where_clause "package_id = :package_id" + } + } set orderby [template::list::orderby_clause -name "messages" -orderby] Index: openacs-4/packages/mail-tracking/lib/messages.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/mail-tracking/lib/messages.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/mail-tracking/lib/messages.xql 14 Jun 2005 19:48:53 -0000 1.1 +++ openacs-4/packages/mail-tracking/lib/messages.xql 14 Jun 2005 20:40:55 -0000 1.2 @@ -8,10 +8,8 @@ select message_id, sender_id, recipient_id, package_id, sent_date, body, subject from acs_mail_log where message_id <> 0 - $recipient_id_clause - $sender_id_clause - $package_id_clause - $orderby + [template::list::filter_where_clauses -and -name messages] + [template::list::orderby_clause -orderby -name messages]