• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mail Rule Conditions with Jaguar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Mail Rule Conditions with Jaguar
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Question about "getting" font width values for same-font characters
  • Next by Date: [ANN] Extra Suites 1.1
  • Previous by thread: How to set file privileges?
  • Next by thread: Re: Mail Rule Conditions with Jaguar
  • Index(es):
    • Date
    • Thread