Hi,
On 2004.11.05 23:35, Professional Software Engineering wrote:
At 20:45 2004-11-05 +0100, Andreas Schmidt wrote:
On 2004.11.05 19:39, Professional Software Engineering wrote:
I get the general impression that you're trying to determine if
multiple recipients at your domain are addressed. Search the
Right, it's a number of accounts at the same domain, which makes it
a
problem. A mail for
To: someone(_at_)server, myname(_at_)server, somebodyelse(_at_)server
would match your first rule:
* ^To:(_dot_)*(_at_)server
But because To always contains myname(_at_)server,
* ! ^To:(_dot_)*myname(_at_)server
will never match.
The simplistic approach might be to do the following (this assuming
the To: field is indeed what you're looking to match on):
:0
* ^To:\/.*
* -1^0
* 1^1 TO ?? @server
* -1^1 TO ?? myname(_at_)server
I just noticed that this recipe doesn't work as it should. I understand
what it is supposed to do, but when I test it with real mail, it
somehow doesn't work:
procmail: [8477] Wed Jan 5 12:20:37 2005
procmail: Match on "^(To|Cc):[^(_at_)]*@server"
procmail: Assigning "MATCH="
procmail: Matched " "'andy(_at_)server'" <andy(_at_)server>"
procmail: Match on "^To:\/.*"
procmail: Score: -1 -1 ""
procmail: Score: 0 -1 "@server"
procmail: Score: 0 -1 "andy(_at_)server"
procmail: [8480] Wed Jan 5 12:20:37 2005
procmail: Match on "^(To|Cc):[^(_at_)]*@server"
procmail: Assigning "MATCH="
procmail: Matched " darkseid(_at_)server, andy(_at_)server, gretel(_at_)server,
ingmar(_at_)server, stefan(_at_)server, feiqi(_at_)server, gnome(_at_)server"
procmail: Match on "^To:\/.*"
procmail: Score: -1 -1 ""
procmail: Score: 0 -1 "@server"
procmail: Score: 0 -1 "andy(_at_)server"
Does anyone know why only 0 is added in the last two conditions?
Best regards,
Andreas
pgphwRyBXScWP.pgp
Description: PGP signature
____________________________________________________________
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