* David Guntner <da...@guntner.com> [14-03/03=Mo 23:46 -0800]: > Unless you have a reason to want one test per address, > you could simply put them all in a single test. > >> :0: >> * >> ^From.*(naturalli...@dcemail.com|arnoldb...@cosmicemail.com|usspookslovesys...@muchomail.com|fredw...@mail.ru) >> $GARBAGE > > Collect them all! :-)
I used to construct such recipes like this ... :0: * ^From:.*(\ naturalli...@dcemail.com|\ arnoldb...@cosmicemail.com|\ usspookslovesys...@muchomail.com|\ fredw...@mail.ru|\ DUMMYLINESOIDON'TNEEDTOWORRYABOUTFORGETTINGTHEGODDAMNVERTICALBAR) $JUNK ... but eventually I started getting "procmail: Exceeded LINEBUF" so I switched to a hack that uses scoring (`man procmailsc`) to implement unlimited short-circuited alternation (i.e the testing stops as soon as a condition is true, and there's no LINEBUF limit): :0: * 2147483646^0 * 1^0 ^From:.*naturalli...@dcemail.com * 1^0 ^From:.*arnoldb...@cosmicemail.com * 1^0 ^From:.*usspookslovesys...@muchomail.com * 1^0 ^From:.*fredw...@mail.ru * -2147483646^0 $JUNK This works on 64-bit as well as 32-bit systems. Unscored conjuncts can precede the alternatives: :0: * !^From:Will Mengarini <sel...@eskimo.com> * 2147483646^0 * 1^0 ^From:.*naturalli...@dcemail.com * 1^0 ^From:.*arnoldb...@cosmicemail.com * 1^0 ^From:.*usspookslovesys...@muchomail.com * 1^0 ^From:.*fredw...@mail.ru * -2147483646^0 $JUNK -- Will Mengarini <sel...@eskimo.com> Free software: the Source will be with you, always. O< ASCII ribbon campaign - stop HTML mail - www.asciiribbon.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140304111503.ga19...@eskimo.com