Right now I have the following recipe at the end of my procmailrc:
:0:
* ^TO.*kimmo@
| $FORMAIL -A"X-Sorted: Default" >>$DEFAULT
:0:
| $FORMAIL -A"X-Sorted: Spam" >>$SPAMFOLDER
The intent, obviously, is to move everything adressed to me personally
to the default in box and everything else that's passed the spam filtering
done previously in the procmailrc to the spam folder (that I use as a
generic junk/bulk mail folder) for later reading and/or removal. The
first recipe should catch everything adressed to kimmo@<anything>, and
seems to be doing so.
I noticed, however, that Ariel has the following way of doing
approximately the same thing in her sample procmailrc:
* ^(To:|Cc:).*(login(_at_)shelldomain\(_dot_)com|\
(_dot_)*(_at_)customdomain\(_dot_)com|\
login(_at_)otherdomain\(_dot_)net)
| $FORMAIL -A"X-Sorted: Default" >>$DEFAULT
:0:
| $FORMAIL -A"X-Sorted: Bulk" >>$BULKFOLDER
The latter approach lets you add adresses that don't start with the
same name before the @, right? Is that the only functional difference
here or are there some pitfalls with using the approach I've concocted
myself? I'm not very confident that I can make procmail do what I want
it to, so I thought I'd just ask the gurus on the list.
Regards,
---------------------------------+-------------------------------------+
Kimmo Jaskari | ÅLCOM - Ålands Datakommunikation Ab |
Email: kimmo(_at_)alcom(_dot_)aland(_dot_)fi |
staff(_at_)alcom(_dot_)aland(_dot_)fi |
http://www.alcom.aland.fi/kimmo | Phone: +358-(0)18-12122 |
---------------------------------+-------------------------------------+