Re: Idea for better handling of mailinglists
Re: Idea for better handling of mailinglists
- Subject: Re: Idea for better handling of mailinglists
- From: Florian Lindner <email@hidden>
- Date: Sat, 1 Dec 2007 20:56:56 +0100
Am 01.12.2007 um 20:29 schrieb Michelle Steiner:
On Dec 1, 2007, at 10:25 AM, Florian Lindner wrote:
To create a rule I need to:
- Show all the headers in order to extract the value of the List-Id
header
No you don't; the rule will select that for you.
- Create a new folder for the list
- Go to Mail's settings, create a rule that matches List-Id is
equal to the previously extracted content and moves the message to
appropiate folder.
I need to repeat this for each mailing list I am subscribed to.
Right, and you need to do that only once for each list.
If I want to remove the list from Mail completely I need to remove
the folder and then remove the rule.
True. But how often do you subscribe and unsubscribe to lists?
Except for when I first ran mail.app, I've added or deleted lists
only once or twice a year.
I subscribe and unsubscribe a lot more often.
on perform mail action with messages
Well, for one thing you haven't assigned a variable to this. You
need something like this:
on perform mail action with messages the_messages
Thanks, it works mostly now. It works when executed on new messages or
when manually selecting some messages. But when I selected some more
message (no idea above which count it stops working) it just does
nothing. You got an idea what could cause this? Another question: Is
there a kind of default place where user scripts are supposed to be
saved?
Thanks,
Florian
using terms from application "Mail"
on perform mail action with messages messageList
tell application "Mail"
repeat with messageIter in messageList
set listID to content of (header "List-Id") of messageIter
repeat with mailboxIter in mailboxes
if listID contains name of mailboxIter then
set mailbox of messageIter to mailboxIter
end if
end repeat
end repeat
end tell
end perform mail action with messages
end using terms from
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden