Gerald V. Livingston II schreef:
Ruud H.G. van Tol:
Gerald V. Livingston II schreef:
:0
* ! ^From:(_dot_)*1234567890(_at_)vm\(_dot_)vonage\(_dot_)com
* ! ^From:(_dot_)*customerservice(_at_)vonage\(_dot_)com
* ! ^From:(_dot_)*questions(_at_)vonage\(_dot_)com
* ! ^From:(_dot_)*billing(_at_)vonage\(_dot_)com
{ }
:0 E:
.vonage/
Alternative:
:0
* ^From:.*(\
1234567890|\
customerservice|\
questions|\
billing)@vonage\.com
.vonage/
I prefer to use the "Error" method
I call it the "Else".
for creatring an "OR" construct for
addresses. Makes it easier to see the individual addresses I'm
dumping to a folder and easier to add another if I need to snag a
different domain to drop in there with the others.
Oh, and note the first address I grab is from "@vm.vonage.com".
The last line of your regex example would have to be modified to:
billing)@*\.vonage\.com
"@*" means: 0, 1 or more "@"s.
ITYM: "@.*"
(or would that be just "@*vonage\.com" to also catch plain
@vonage.com -- regex is my weakness).
(all untested)
Alternative-1, ugly:
:0
* ^From:.*(\
1234567890(_at_)vm\(_dot_)|(\
customerservice|\
questions|\
billing)@)vonage\.com
.vonage/
Alternative-2, tidy:
OR = '9876543210^0'
:0
*$ $OR ^From:(_dot_)*1234567890(_at_)vm\(_dot_)vonage\(_dot_)com
*$ $OR ^From:(_dot_)*customerservice(_at_)vonage\(_dot_)com
*$ $OR ^From:(_dot_)*questions(_at_)vonage\(_dot_)com
*$ $OR ^From:(_dot_)*billing(_at_)vonage\(_dot_)com
.vonage/
(put the most frequent one on top, to profit most)
Alternative-3, technical:
OR = '9876543210^0'
:0
* ^From:.*\/[0-9a-z]+@(vm\.)?vonage\.com
* MATCH ?? ^^\/.*.
* MATCH ?? ^^\/.*[^.]
* MATCH ?? ^^\/.*.
* MATCH ?? ^^\/.*[^.]
*$ $OR MATCH ?? ^^1234567890(_at_)vm^^
*$ $OR MATCH ?? ^^customerservice(_at_)^^
*$ $OR MATCH ?? ^^questions(_at_)^^
*$ $OR MATCH ?? ^^billing(_at_)^^
.vonage/
(again, put the most frequent one on top, to profit most)
Alternative-4, over-simplified:
:0
* ^From:.*\/[0-9a-z]+@(vm\.)?vonage\.com
* MATCH ?? ^^(0123456789|customerservice|questions|billing)@
.vonage/
Alternative-5, simple:
:0
* ^From:(_dot_)*1234567890(_at_)vm\(_dot_)vonage\(_dot_)com
.vonage/
:0
* ^From:.*(customerservice|\
questions|\
billing(_at_)vonage\(_dot_)com)
.vonage/
--
Groet, Ruud
____________________________________________________________
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