procmail
[Top] [All Lists]

Re: Filter

2002-01-10 12:35:28
On Tue, Jan 08, 2002 at 02:44:22AM +0800, Mohsenruddin Moonshi wrote:
I am also learning new stuff with the capabilities of "procmail" and so
far I find that this is the easiest way to sort my mails and also control
spam;

## SPAM
:0:
* .*whoever.net
| $FORMAIL -A"X-Sorted: Bulk >> /dev/null

If you're just going to toss a message to /dev/null, you don't need to waste
the time piping it through formail first. You also don't need to "append" to
/dev/null. Just put /dev/null on the action line by itself, as if it were a
mbox file.

## SORT mails
:0:
* .*list1.com
| $FORMAIL -A"X-Sorted: Bulk >> $MAILDIR/list1

:0:
* .*list2.com
| $FORMAIL -A"X-Sorted: Bulk >> $MAILDIR/list2

:0:
* .*anyone.com
| $FORMAIL -A"X-Sorted: Bulk >> $MAILDIR/anyone

You need to close the quotes on your formail calls there. Putt a close quote
after Bulk. You also don't need to specify $MAILDIR in the action. That is
assumed for any destination that is not absolute. EG:

| $FORMAIL -A"X-Sorted: Bulk" >> anyone


-- 
Andrew Edelstein        -       andrew(_at_)pure-chaos(_dot_)com
"If you're not pissed off at the world then you're just not paying attention."
                                Kasey Chambers "Ignorance"
"If you're not frightened by this, you're simply not paying attention."
                                Harry Browne
_______________________________________________
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>