[Imap-uw] tweaking env_unix.c for different spool directory.
cpicciotto at kalisystems.com
Mon Dec 4 17:18:59 PST 2006
I do not use procmail - just tmail for direct delivery. I do mark spam as
such, but leave it to the user to set individual rules themselves to move to
a "junk" folder, delete, or whatever.
FWIW - IF they do move to the specified Junk folder (which MUST be mbx or
unix format), a script will pick up those messages each night, run SA's
"learn" to add them to the bayes database, then delete/expunge them from the
folder. Works very well as a strategy and the spam "du jour" gets picked up
on very quickly...
From: imap-uw-bounces at mailman1.u.washington.edu
[mailto:imap-uw-bounces at mailman1.u.washington.edu] On Behalf Of Nancy Lin
Sent: Monday, December 04, 2006 3:05 PM
To: imap-uw at u.washington.edu
Subject: Re: [Imap-uw] tweaking env_unix.c for different spool directory.
Do you use procmail at all? I have a procmail receipe that automatically
delivers mail to ~username/mail/Spam folder, so I have to use dmail anyways.
But thanks for the tip on EXTRASPECIALS, I will recompile.
I did some search online and here's the recipe I ended up with:
* ^X-Spam-Status: Yes\/.*
* ! ? test -w $HOME/mail/Spam
| mailutil create #driver.mix/mail/Spam
| /usr/bin/dmail $HOME/mail/Spam
* ^X-Spam-Status: No\/.*
* ! ? test -w $HOME/INBOX
| mailutil create #driver.mix/INBOX
| /usr/bin/dmail $HOME/INBOX
this should get rid of the problem of dmail not working if the mailbox
More information about the Imap-uw