[exim] system wide filter against spam marked traffic on inb…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jonathan Gonzalez
Ημερομηνία:  
Προς: Mailinglist EXIM
Αντικείμενο: [exim] system wide filter against spam marked traffic on inbox
Hi,

i need to take all the emails with header containing [SPAM?] and move
them to a folder in the maildir of each user named Maildir/.SPAM

I have tried a script like the following with the directives
system_filter-* but seems that some variables like $local_part and
$domain are now available to help the process:

      if $h_subject: CONTAINS "[SPAM?]"
      then
         save $home/Maildir/.SPAM/
         finish
      endif


Reading the doc and spec of exim seems that there's another way using
either a router or a directive named transport_filter in the transport
that writes to disk.

Nevertheless i was unable along the evening to make it run. I would like
to get some thought from the list.

Thanks in advance.

jonathan