procmail
[Top] [All Lists]

Re: Mailstat "Folders" Not Always Folders?

2002-01-24 20:56:24
When I asked about Kenneth's code,

Are you keeping the ">> somefolder" on the filtering recipe?

He explained,

| No, that was gone from the formail line, which reads:
|
| | formail -rf -I "X-Mailer: Bob's Spam Canceller" -I "From: \
|      Kenneth Blackwell" -i "Subject: Your message has been deleted" \
|      | cat - $HOME/.procmail/spam-msg \
|      | /usr/lib/sendmail -t

Ah, OK, it pipes to a second program (sendmail) that gives back no stdout.
So while the effect comes about for a different reason, the action, as I
said, still

sucks up the message text, and the filter replaces the message with
nothingness.

| No, the message (spam-msg) is going out. I've just had a return.

The outgoing message is sent, but since its recipe is marked as a filter,
the *incoming* message is replaced with nothingness as procmail keeps on
reading recipes.

| Yes, I've adopted the 2nd one, my lines reading:
|
| :0Ar # no need to lock when nothing is written (David Tamkin)
| spamcanceller

Glad it's working.  There are other ways to clobber the value of
$LASTFOLDER, but that was one I could present without typos in my current
state of fatigue.  It is dependent on having zeroed out the message, so I
wouldn't recommend it for the general case.




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>