WiLLiE writes:
I've been trying to get "courier-maildrop" (ubuntu) to sort my incoming mails for a few days now.I've searched this list, read the official guide as well as others but i'm stuck. Can someone please look at this portion of my .mailfiler filter (located in ~/.mailfilter) and tell me: Why does it drop ALL mail to my first bucket? (MythTV)
Because you told it to do that when the subject line of the message contains any one of the following letters: "m", "y", "t", "h", "s", "e", and "r".
Any message with the subject line that contains any one of the following letters will be filtered as such.
--- .mailfilter starts here --- logfile "mailfilter-log.txt" #log "========" ### MythTV if (/^Subject:.*[mythtv-users]/ || /^From:[EMAIL PROTECTED]/) { log "---------------------------------------------------- MythTV. " to "Maildir/.MythTV" } ### iFolder if (/^Subject:.*[Ifolder-dev]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/) { log "------------------------------------------------------------- iFolder. " to "Maildir/.iFolder" } ### RaZZoR if (/^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/) { log "------------------------------------------------------------- RaZZoR " to "Maildir/.RaZZoR" } --- snip --- # Arrive here if the message is not matched # by any of the above. (it never reaches here) log "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No match." to "Maildir" --- .mailfilter ends here --- Where's the error? I've tried different metods ie: if ( (/^From:[EMAIL PROTECTED]) || (/^From:[EMAIL PROTECTED]) ) and they all go into my first bucket (MythTV). For example, here's one of the entries in the log file: Date: Sun Jan 1 23:28:20 2006 From: =?ISO-8859-1?Q?xxx_M=F6xxx?= <[EMAIL PROTECTED]> Subj: sho File: Maildir/.MythTV (2582) There's no "[mythtv-users]" in the subject and it's not coming from [EMAIL PROTECTED] Any ideas? ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
pgp8alrDEFBn2.pgp
Description: PGP signature