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: Fri, 30 Nov 2007 12:34:23 +0100
Am 30.11.2007 um 00:04 schrieb Peter Baxter:
Why bother? Just make a smart mailbox for each mailing list you are
subscribed to.
As far as I have just checked you can't create a smart mailbox based
on an arbitrary header. However even if it is possible it still
involves creating the smart mailbox and defining the filter whereas
the script solution is just about creating a folder. Furthermore I
still want to have a folder that contains messages that were not sent
through a mailinglist. (all which are not caught by the script). Since
the smart mailbox leaves the messages in their original place this
would involve more configuration.
Regards,
Florian
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 (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 (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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