Re: Idea for better handling of mailinglists
Re: Idea for better handling of mailinglists
- Subject: Re: Idea for better handling of mailinglists
- From: Peter Baxter <email@hidden>
- Date: Fri, 30 Nov 2007 10:04:12 +1100
Why bother? Just make a smart mailbox for each mailing list you are
subscribed to.
On 30/11/2007, at 2:02 AM, Florian Lindner wrote:
Hello,
I am subscribed to a couple of mailinglists. This set of
mailinglists tend to change pretty often. I subscribe when a problem
occurs und unsubscribe when it has been solved.
In my old mail client (KMail) I could create a rule fairly simple by
right clicking on a mailing list message and "Create Rule for
mailinglist" in the context menu.
In Apple Mail it takes a lot a more effort.
Lately there crossed an idea my mind: I create a rule that executes
an AppleScript for every message than comes into my mailinglist
account. This script looks like that (pseudo python code)
list = message.headers["List-Id"]:
if (list not None) and (list in AppleMail.LocalFolders):
message.FileToLocalFolder(list)
else:
message.DontDoAnything()
Unfortunatly I have no idea on how to write something like this with
AppleScript. I started a script:
on perform_mail_action(data)
tell application "Mail"
set selectedMessages to |SelectedMessages| of data
repeat with eachMessage in selectedMessages
set mailingList to eachMessage
set mailbox of theSelectedMessages to mailbox "passende Liste"
end repeat
end tell
end perform_mail_action
I know it's far from complete but I'm stuck there.
My actual question is how to get a List-Id Header from the mail?
Furthermore I'm very thankful for any ideas, comments or hints how
this script would look like.
Thanks,
Florian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
Peter Baxter
Director of Music
Ararat Community College
Barkly St West
Ararat
Victoria
3377
Ph: 0353524177
email: email@hidden
"If a child hears good music from the day of birth, the child develops
sensitivity, discipline and endurance as well as a beautiful heart."
-- Shinichi Suzuki, music teacher
_______________________________________________
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