procmail
[Top] [All Lists]

Re: Spam mail copy

2004-09-03 06:17:03
On Fri, Sep 03, 2004 at 09:33:21AM -0300, Eriberto wrote:
Hello all,

How to make a copy of spam mail and put into directory and account? I tried:

:0
* ^Subject:.*buy
{
:0 c
/var/spool/mail/spam   #it's account
:0
/mail/spam                    #it's directory
}

The messages are going to /mail/spam only.

Eriberto,

1) Read the list from yesterday (see archives linked from www.procmail.org)
   where this was answered by David Tamkin.

2) What do your verbose logs show about that recipe set?

3) You need a lockfile colon on the mbox copy.

4) Probably not a good idea to put comments on the action line.  (Or was that
    only for us?)

5) You could put the "c" flag on the top recip instead of on a spawned one:

   :0 c:
   * ^Subject:.*buy
   /var/spool/mail/spam

   :0 A  # no lockfile; save to traditional procmail dir
   /mail/spam

But your syntax is also fine, once you've considered points (3) and (4).

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>