• 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: Account Mail Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Account Mail Question


  • Subject: Re: Account Mail Question
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 29 Dec 2007 18:30:51 -0700

On Dec 29, 2007, at 5:51 PM, m wrote:

There are 2 parts to the program.
The first part examines the message-IDs ( not to be confused with the internal mail "message ID") and looks for duplicates, or if there is no message-ID, assumes the message to be spam.
A list of duplicates/spams is kept in an array.


Second part. Iterate through the array, use the **internal** mail ID ( basically the name of the e-mail, as in 1234.emlx, minus the .emlx) and now use applescript to command that move.

OK, so once you have the array of message IDs, why not use them to move the mail? Like this:


tell application "Mail"
tell message viewer 1
set theMSG to (first message whose message id is "email@hidden ")
end tell
move theMSG to mailbox "INBOX_Duplicates"
end tell


That will move one of the duplicate messages, and it appears to work regardless of where the message is located.

-- Michelle

--
"As a matter of general principle, I believe there can be no doubt that criticism in time of war is essential to the maintenance of any kind of democratic government ... too many people desire to suppress criticism simply because they think that it will give some comfort to the enemy to know that there is such criticism." -- Robert A. Taft, December 19, 1941



_______________________________________________ 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: Account Mail Question
      • From: m <email@hidden>
    • Re: Account Mail Question
      • From: m <email@hidden>
    • Re: Account Mail Question
      • From: m <email@hidden>
References: 
 >Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Luther Fuller <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Luther Fuller <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Luther Fuller <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Michelle Steiner <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Michelle Steiner <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)

  • Prev by Date: Re: Account Mail Question
  • Next by Date: Re: Account Mail Question
  • Previous by thread: Re: Account Mail Question
  • Next by thread: Re: Account Mail Question
  • Index(es):
    • Date
    • Thread