Toen wij luke(AT)chipcity.com.au kietelden, kwam er dit uit:
~~~~~~~~~~~~~~~~~~~~~~
:0 D
* ^To:(_dot_)*dj\(_at_)bla(_dot_)*
! eden(_at_)cane(_dot_)org
:0 D
* ^(Cc|cc|CC):(_dot_)*luke\(_at_)bla(_dot_)*
{
:0 D
* ^To:(_dot_)*dj\(_at_)bla(_dot_)*
Inbox
}
~~~~~~~~~~~~~~~~~~~~~
The '.*' at the end of the condition lines is not necessary
(when you don't use the '\/' match operator).
The '\' before the '@' is not necessary.
The case-sensitive testing will just cause more surprises.
If your 'Inbox' is a file, you need to add locking.
The first recipe works, the second one does nothing,
what am I doing wrong?
Anything that is 'To: dj' gets delivered in the first
recipe. If the message is delivered, then the current
procmail stops.
So you need a copy of the message. With the c-flag
(and condition lines that allow it) procmail is forked.
:0
* ^To:(_dot_)*dj(_at_)bla\(_dot_)bla
{
:0c: # if also to 'luke', then deliver a copy
* ^Cc:(_dot_)*luke(_at_)bla\(_dot_)bla
Inbox
# If delivery to Inbox ever fails, eden(_at_)cane(_dot_)org
# will receive 2 copies. Normally not a grave problem
# in a personal situation, but if only the 10+ MB
# messages fail and you are the daily victim of
# that well meant garbage...
# (It is easy to solve, even with procmail.)
:0
! eden(_at_)cane(_dot_)org
}
# the rest goes to $DEFAULT
--
Grtz, Ruud
____________________________________________________________
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