procmail
[Top] [All Lists]

Re: Log Files for Procmail

2001-11-22 12:16:26
Tim Holmes:
:0:
*^(To|Cc|Bcc):(_dot_)*support(_at_)unixtechs(_dot_)org
{
      LOGABSTRACT=all
      :0 hwic
      | /bin/mail tim-page(_at_)unixtechs(_dot_)org < $HOME/page

      :0
      support

      :0:
      * regexp-for-procmail.support
      $MAILDIR/procmail.support
}

This is probably meaningless (or I don't understand it). After

:0
support

there is nothing more to do inside the { } block, since the mail is
already delivered.

What I mean is that you can change LOGFILE just before every
recipe to fine-tune your logs. A simplified example:

LOGFILE=foo.log

:0:
* foo
in.foo

LOGFILE=var.log

:0:
* bar
in.bar

LOGFILE=misc.log

[...]

In this example, messages delivered to "in.foo" will be logged in
foo.log, and messages delivered to in.bar will be logged to "var.log".
All the other messages will be logged in misc.log.

_______________________________________________
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>