Re: [OT] Verification required?
Re: [OT] Verification required?
- Subject: Re: [OT] Verification required?
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 30 Dec 2003 13:06:23 -0800
At 11:43a -0500 12/29/2003, Graff didst inscribe upon an electronic papyrus:
On Dec 29, 2003, at 6:04 AM, Walter Ian Kaye wrote:
I'm trying out this filter rule:
if raw:to matches
^"[\w+(\s+\w+)*]+"\s<[-\w]+@natural-innovations and
raw:to does not match ^"Walter(\s+\w+)*" then trash
Umm... did I do those regex's right? It's 3am...
Bleh, try as I might I still can't grok regex as well as I want to.
All the slashes and quotes and brackets make my head start to spin
after a while...
Heh, I had it right in the latter conditional. Fixed it:
if raw:to matches ^"\w+(\s+\w+)*"\s<[-\w]+@natural-innovations and
raw:to does not match ^"Walter(\s+\w+)*" then
log(badto.log,date|recipients|senders|raw:to) trash
So now my filter catches all those fake names:
cat .mailmachete/logs/badto.log
Tue, 30 Dec 2003 04:37:54 -0600 <email@hidden>
<email@hidden> "Stanford Beeston"
<email@hidden>
Tue, 30 Dec 2003 10:21:54 -0600 <email@hidden>
<email@hidden> "Duncan Hammel"
<email@hidden>
Tue, 30 Dec 2003 11:32:04 -0500 <email@hidden>
<email@hidden> "Jogoydmfid Jaungtmpvc"
<email@hidden>
Tue, 30 Dec 2003 09:41:11 -0800 <email@hidden>
<email@hidden> "Hubert Toombs"
<email@hidden>
Tue, 30 Dec 2003 11:40:33 -0600 <email@hidden>
<email@hidden> "Thelma Thornton"
<email@hidden>
Tue, 30 Dec 2003 12:31:11 -0600 <email@hidden>
<email@hidden> "Rilupvnqbi Smmvgwlvtl"
<email@hidden>
Spammers are such idiots. ;)
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.