On Mon, 04 Dec 2006 17:05:10 -0800, Nancy Lin
<[EMAIL PROTECTED]> wrote:

>here's the recipe I ended up with:
>
>:0
>* ^X-Spam-Status: Yes\/.*
>{
>   :0 iwc
>   * ! ? test -w $HOME/mail/Spam
>   | mailutil create #driver.mix/mail/Spam
>
>   :0 w
>   | /usr/bin/dmail $HOME/mail/Spam
>}
>
>:0E
>* ^X-Spam-Status: No\/.*
>{
>   :0 iwc
>   * ! ? test -w $HOME/INBOX
>   | mailutil create #driver.mix/INBOX
>
>   :0 w
>   | /usr/bin/dmail $HOME/INBOX
>}


I create mailboxes in advance, at the same time I create the user
account.  That way, my procmail recipe is much simpler.  By default,
dmail delivery goes to INBOX, without specifying it explicitly:

:0 w
* ^X-Spam-Status: Yes
| dmail +mail/Spam

:0 w
| dmail




>this should get rid of the problem of dmail not working if the mailbox 
>doesn't exist.

If dmail can't find mail/Spam, my recipe defaults to INBOX.


_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to