Volker Kuhlmann wrote:
Sorry Volker, my filter ate your previous mail. Could you please resend?
Perhaps we could come to some arrangement: you trim the useless quoting
off your posts, and I send you a copy privately ;)
This is also an excellent opportunity to introduce the first rule of
using procmail:
===> Before you do anything else, store a backup copy. <===
Right at the very top of your ~/.procmailrc put
##### Procmail
VERBOSE=no
#VERBOSE=yes # uncomment for a lot of logging
#LOGFILE=$HOME/t/pmlog # early logging start
SHELL=/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:$HOME/bin
LINEBUF=8192
# Create your directories and set your variables here. Make sure not to
# bugger up.
LOGDIR=...
## saving to dated files
:0 i
MONTH=| date "+%Y%m"
##### Store a safety copy of each incoming mail
:0 c:
$LOGDIR/procmail$MONTH.backup
Ok so I use mbox files, sue me.
This takes care of
1) Lost mails while stuffing up^H^H^H^H^Hexperimenting with new
recipes.
2) Accidentally deleted mails.
3) It proves to yourself without reasonable doubt that you never
received email X. You wouldn't realise just how handy this is... (eg
when arguing with certain tertiary ISPs).
Ok, so you store a copy of each <anatomy> extender too. So what - a) you
never look at it, b) storage space is cheap.
HTH,
Volker
Of course, none of that would have worked in a courier IMAP environment,
but you chose not to mention that in any posts that I did see.
For those who do use courier ( and IMAP servers ), of which there is at
least one who has been recently posting, the way to get procmail to
deliver correctly to a subfolder sited in the recipients inbox would be
a combination of Volkers post and this one:
:0
* ^Reply-To:[EMAIL PROTECTED]
.CLUG/
Improve on my ruleset from Volkers post, but ensure that the mailbox
name is prefixed with a '.', and append a '/' to it. Without the former,
courier won't find it, and without the latter, it will be delivered to a
flat file in mbox format ( or, if you've created a maildir structure
before testing, it will fail because it's trying to append to a
directory... you don't need to create the maildir structure for the new
folder as procmail will do it for you ).
You also do not need the terminating ':' on the initial line of a
ruleset when using Maildir formatted mailboxes: this enforces the use of
a lockfile on mail delivery which is totally unnecessary unless using
mbox formatted email, and is one of the primary reasons cited for
transferring away from the old mbox format.
Steve.