When I asked about Kenneth's code,
Are you keeping the ">> somefolder" on the filtering recipe?
| 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
sucks up the message text, and the filter replaces the message with
| 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
| Yes, I've adopted the 2nd one, my lines reading:
| :0Ar # no need to lock when nothing is written (David Tamkin)
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