Idea for better handling of mailinglists
Idea for better handling of mailinglists
- Subject: Idea for better handling of mailinglists
- From: Florian Lindner <email@hidden>
- Date: Thu, 29 Nov 2007 16:02:33 +0100
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden