Re: An 'or' recipe
udi M <[email protected]> Mon, 14 Aug 2017 11:08:16 +0300
| Newsgroups | gmane.mail.procmail |
|---|---|
| Organization | tau |
| Message-ID | <[email protected]> |
On 14/08/17 01:40, John Levine wrote: > In article <[email protected]> you write: >> :0 >> *^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] |\ >> ^From:[email protected] >> $AUTHORS > Ugh, see below. > >> The output to my procmaillog shows >> procmail: No match on "^From:[email protected] |^From:billh@marsj >> ourney.info |^From:[email protected] |^From:barry@barryjhutchison. >> com |^From:[email protected] |^From:[email protected] |^From:bra >> [email protected] |^From:[email protected] |^From:cgockel@cgo >> ckelwrites.com |^From:[email protected] |^From:jrobertsonwrites@gmail >> .com" >> >> Does that look correct? > Yes, it's very rare to have a From: line with no white space or comment > between the From: and the address. Try this: > > :0 > * ^From:.*([email protected]|[email protected]|mail@cchaseharw= ood.com|[email protected]|[email protected]|[email protected]= m|[email protected]|[email protected]|[email protected]= m|[email protected]|[email protected]) > $AUTHORS For my opinion, John Conover gave the best solution (and more easy = to maintananc). Anyway, in case of using ".*" you must at least separate the = string from other chars like the following: * ^From:.*\<(sus....... --udi > If you do a lot of this, you may need to make LINEBUF bigger. I have > patterns like this that are over 4000 characters long and they work > fine. > > R's, > John > > ____________________________________________________________ > procmail mailing list Procmail homepage: http://www.procmail.org/ > [email protected] > https://mailman.rwth-aachen.de/mailman/listinfo/procmail