Title: Re: Spam rule question
It seems to me that you could use a series of criteria, all of which must be matched:
To is me
>From is not in address book
Any To Recipient does not contain " Dixon" -- note space
Any To Recipient does not contain "Dan " -- Note space
Any To Recipient does not contain "Danny"
Any To Recipient does not contain "Dan Dixon"
Some things, like a fake name of "Dan Smith" would still get through, but this should catch most of the stuff. It would not allow a blank display name to pass (addressed just to your e-mail address); there is no way I know to code that in rules. You could do it with an AppleScript, since a script can treat address and display name separately.
Something like this:
tell application "Microsoft Entourage"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this script." with icon 1
return
end if
set goodNames to {"Dan Dixon", "Danny", "Dan", "Dixon", "DDixon", ""}
repeat with theMessage in selectedMessages
set whoFrom to address of sender of theMessage
try
set x to find whoFrom -- In my Address Book?
if x = {} then error 1000
on error -- Not in AB, check recipient
set recip to address of first recipient of theMessage
set whoTo to display name of recip
set theEmail to address of recip
try
set receiver to find recip
if name of receiver is "Dan Dixon" then
if whoTo is not in goodNames then
set x to category of theMessage
set x to {category "Junk"} & x
set category of theMessage to x
delete theMessage
end if
end if
end try
end try
end repeat
end tell
On or near 4/13/04 8:35 AM, Dan Dixon at [EMAIL PROTECTED] observed:
> Is there some way to make a rule that will mark email with the following
> header format as spam?
>
> From: [EMAIL PROTECTED]
> To: Fake Name2 <[EMAIL PROTECTED]>
> Subject: Random spam subject
>
> I know I can use "From is not in address book," but I would prefer not to do
> that since it affects legit emails from new senders.
>
> I also do not want to use or "Any To Does Not Contain Dan Dixon," since a
> lot of legit email is addressed with only my email address, or sometimes
> starts with "Danny," etc.
>
> I thought I could use "Any To Recipient Does Not Start With Dan Dixon,"
> since the Fake Name2 is never my name, but it doesn't work for some reason.
> I guess the application considers "start" to be the start of the actual
> email address, or something.
>
> TIA,
>
> Dan Dixon
- Spam rule question Dan Dixon
- Re: Spam rule question Bruce Klutchko
- Re: Spam rule question Dan Dixon
- Re: Spam rule question Peter C.S. Adams
- Re: Spam rule question Dan Dixon
- Re: Spam rule question Paul Berkowitz
- Re: Spam rule question Dan Dixon
- Re: Spam rule question Allen Watson
- Re: Spam rule question Dan Dixon
- Re: Spam rule question Allen Watson
