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

  • Prev by Date: Re: Keeping a text-entry in the background, or a work-around
  • Next by Date: Re: Leopard Server vs Client [OT]
  • Previous by thread: Re: Idea for better handling of mailinglists
  • Next by thread: Re: Idea for better handling of mailinglists
  • Index(es):
    • Date
    • Thread