Re: procmail question
On Sun, 28 Sep 2003 20:26:40 +0200, Michael Schulz <mschulz@lnxlab.org> penned:
> Hi,
>
> On Sun, 2003-09-28 at 20:00, LeVA wrote:
>> Hello!
>>
>> How can I make this with procmail (what should I write to the
>> ~/.procmailrc file):
>>
>> If an email has a given text in it's subject, delete the mail,
>> if another email has aonther given text in its subject write it to
>> another file than the user's mail spool file.
>
> man procmailex gives you some good examples.
>
>:0
> ^Subject:.YOUR_REGEXP_GOES_HERE
> FILENAME (for deletion: /dev/null)
>
> hth
> mike
>
Just to clarify (because I read it as syntax at first)
In the case of deletion, FILENAME would be /dev/null
In the case of wanting to send it somewhere other than your normal
mailbox, FILENAME would be ~/mail/mysupercoolfilterbox or something.
--
monique
Reply to: