Mail Rule Conditions with Jaguar
Mail Rule Conditions with Jaguar
- Subject: Mail Rule Conditions with Jaguar
- From: Jutta Wrage <email@hidden>
- Date: Mon, 9 Feb 2004 09:35:44 +0100
Hi!
I tried to create a script to make rules for mailing lists in mail.app.
The rule condition is supposed to be set to match the mailing list
headers as List-Id, X-Mailinglist and so on. But no success.
To fugure out the type of existing rules matching mailing list headers,
I crated the following script (do not run with many rules!):
tell application "Mail"
set theRules to rules
repeat with theRule in theRules
set theRuleName to name of theRule
set theConditions to rule conditions of theRule
repeat with theCondition in theConditions
set theType to type of theCondition
display dialog theRuleName & "." & return & theType & "." buttons
{"OK"} default button 1 with icon 1
end repeat
end repeat
end tell
But I do not get the correct type for my mailing list rules - I do not
get any type for some of the existing rules at all. Am I in error or is
there really no way to create rules matching custom headers by Script?
Everything works fine with my script. But only the type ist
automatically set to from header. I tried to set it to
"type:ListField" where ListField is one of "X-List", "List-Id" and so
on. There are existing rules matching these fileds, so missing headers
cannot be the problem.
cu
Jutta
--
http://www.witch.westfalen.de
http://witch.muensterland.org
_______________________________________________
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.