• 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
Re: Idea for better handling of mailinglists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Idea for better handling of mailinglists
      • From: Florian Lindner <email@hidden>
References: 
 >Idea for better handling of mailinglists (From: Florian Lindner <email@hidden>)

  • Prev by Date: Re: Timed loop
  • Next by Date: Re: Keeping a text-entry in the background, or a work-around
  • Previous by thread: Idea for better handling of mailinglists
  • Next by thread: Re: Idea for better handling of mailinglists
  • Index(es):
    • Date
    • Thread