procmail
[Top] [All Lists]

Re: Procmailrc forwarding problem

2002-11-14 09:29:42
From: procmail(_at_)lkmc(_dot_)ch (Lucas K. Mathis)

I want to forward mails based on the address they go to. [. . .]

So I tried to find other headers that differ between the two mails. I
found Delivered-To, so I tried this:

:0
* ^Delivered-To(_dot_)*bienlisoorsi+blah(_at_)nine\(_dot_)ch
! LKM(_at_)gmx(_dot_)net

:0
* ^Delivered-To(_dot_)*bienlisoorsi+blah2(_at_)nine\(_dot_)ch
! test2(_at_)lkmc(_dot_)ch

Which does not work either. I think the mails match neither of the two
rules. I also tried it without escaping the dot ('.'), but that did not
work either. Maybe the headers get added after the mail goes through the
procmailrc-file?

Is there even a solution for this problem or do I have to try to get
several mail accounts?

Normally, your suspicion that it can't work would be  the case.
But since your ISP/MTA is inserting the Delivered-To: field, then
it does look like you're in like Flynt (it will work).

No, the header is not added after procmail.  Your recipes
are wrong, is all.  Have you looked at the logs from procmail?!
Have you set logging to verbose?!

Udi is right that the + needs to be quoted.  That is likely the
problem.  You also probably want the colon at the end of the header
to be intact, though that isn't what stopped your recipes
from working.

-- 
dman


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