Re: Procmail and Maildirs

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Tony E - Jaraeth
Dátum:  
Címzett: Main PLUG discussion list
Tárgy: Re: Procmail and Maildirs
Nathan Aubrey wrote:
> I want my spam to go to my $HOME/.Maildir/.Spam/ folder, but I don't want to
> know it is there, so I would like it to go straight to the /cur/ folder so I
> don't know I've got new spam. Is there a way to do this with procmail?
>
> I tried doing
>
> MAILDIR=$HOME/.Maildir
>
> :0:
> * ^Subject: *****SPAM*****
> $MAILDIR/.Spam/cur/
>
> But it didn't work.
>
> Nathan
>


You might try:

--start--

MAILDIR=$HOME/.Maildir
SPAMCUR=$HOME/.Maildir/.Spam/cur/

:0
* ^Subject: *SPAM*
$SPAMCUR

--end--

See if that works for you? First off, procmail likes to use the
asterisk as a wildcard, so *SPAM* may also catch subjects such as
"I like SPAM too!". Experiment with it, and you may also want to take a
look at Procmail's example helpfile via your favorite command line:
man procmailex

Hope that helps,

~ Tony E
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss