• 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: Sun, 2 Dec 2007 00:29:42 +0100


Am 01.12.2007 um 21:04 schrieb Michelle Steiner:

On Dec 1, 2007, at 12:56 PM, Florian Lindner wrote:

Thanks, it works mostly now. It works when executed on new messages or when manually selecting some messages. But when I selected some more message (no idea above which count it stops working) it just does nothing. You got an idea what could cause this?

Not all lists use the List-ID header. Maybe you encountered messages from one or more of those lists.

Of course, this was the reason. At this point the script produced an error and quit. I've changed it too:


using terms from application "Mail"
	on perform mail action with messages messageList
		tell application "Mail"
			repeat with messageIter in messageList
				try
					set listID to content of (header "List-Id") of messageIter
					repeat with mailboxIter in mailboxes
						if listID contains name of mailboxIter then
							-- move messageIter to mailboxIter
							set mailbox of messageIter to mailboxIter
						end if
					end repeat
				end try
			end repeat
		end tell
	end perform mail action with messages
end using terms from

However, when using this version the mail replicates each time I check for mail. So if I check 4 times, I have the same message 4 times.
When I use "move messageIter to mailboxIter" the mail is delivered only the first time I check but it appears in both the inbox and the target folder. Any idea what to do about this?


Thanks,

Florian




-- Michelle

--
Crossing the starting line is 90%. Crossing the finish line is the other 90%




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

  • Prev by Date: Re: Idea for better handling of mailinglists
  • Next by Date: Re: Idea for better handling of mailinglists
  • Previous by thread: Re: Idea for better handling of mailinglists
  • Next by thread: Re: Idea for better handling of mailinglists
  • Index(es):
    • Date
    • Thread