Re: An 'or' recipe

Chris <[email protected]> Sun, 13 Aug 2017 17:51:06 -0500
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
--===============0980558508==
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature";
	boundary="=-aSAb/cWnrS587A8qyGL5"


--=-aSAb/cWnrS587A8qyGL5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, 2017-08-13 at 22:40 +0000, John Levine wrote:
> In article <[email protected]> you write:
> >=20
> > :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.
>=20
> >=20
> > The output to my procmaillog shows
> > procmail: No match on "^From:[email protected] |^From:billh@m
> > arsj
> > ourney.info |^From:[email protected] |^From:barry@barryjhutchi
> > son.
> > com |^From:[email protected] |^From:[email protected]
> > |^From:bra
> > [email protected] |^From:[email protected] |^From:cgockel
> > @cgo
> > ckelwrites.com |^From:[email protected] |^From:jrobertsonwrites@g
> > mail
> > .com"
> >=20
> > 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.=C2=A0=C2=A0Try this:
>=20
> :0
> * ^From:.*([email protected]|[email protected]|mail@cchase
> harwood.com|[email protected]|[email protected]|help@boo
> kfunnel.com|[email protected]|[email protected]|cgockel@
> cgockelwrites.com|[email protected]|[email protected])
> $AUTHORS
>=20
> If you do a lot of this, you may need to make LINEBUF bigger.=C2=A0=C2=A0=
I have
> patterns like this that are over 4000 characters long and they work
> fine.
>=20
> R's,
> John
>=20
Thanks John, I see now what you did. By putting the addresses in braces
separated by a pipe it's still essentially what I have only neater and
procmail will still go through each address until it gets a hit.

Thanks so much for the help

Chris

--=20
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
17:45:21 up 2 days, 9:58, 1 user, load average: 1.31, 0.75, 0.57
Description:	Ubuntu 16.04.3 LTS, kernel 4.10.0-32-generic

--=-aSAb/cWnrS587A8qyGL5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEABECAAYFAlmQ194ACgkQ43Kn2pjmcFwR+wCghuX+yxzhyaaCnyrfzAC7smPc
TpcAnil/bY2wFX1WPZLHKMl9/SRbhM0L
=Mwru
-----END PGP SIGNATURE-----

--=-aSAb/cWnrS587A8qyGL5--


--===============0980558508==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
[email protected]
https://mailman.rwth-aachen.de/mailman/listinfo/procmail
--===============0980558508==--