• 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: Selected email paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selected email paths


  • Subject: Re: Selected email paths
  • From: Nawal Husnoo <email@hidden>
  • Date: Wed, 1 Sep 2010 15:29:20 +0100

I just realised that when we move an email to another mailbox, Mail creates a whole new file and doesn't migrate the Spotlight Comments or xattr attributes. Damn.

Thanks Luther :D

On 1 September 2010 14:51, Luther Fuller <email@hidden> wrote:
On Sep 1, 2010, at 8:06 AM, Nawal Husnoo wrote:
How can I find the path to an email? I would like to have a list of paths to each of the selected emails - in ~/Library/Mail/*

You have to understand the organization of the ~/Library/Mail/ folder and use this ...

mailbox n, pl mailboxes [inh. item] : A mailbox that holds messages

elements
contains mailboxes, messages; contained by accounts, mailboxes.
properties
name text : The name of a mailbox
unread count integer, r/o : The number of unread messages in the mailbox
account account, r/o
container mailbox, r/o

from Mail's dictionary. The path you want will be the names of the containers and may include an account folder or for mailboxes "OnMyMac" the folder ~/Library/Mail/Mailboxes/ . 

(Mail's dictionary has a 'path to document' command, but as far as I know, it does not work.)

The name of the message file is the message id with the extension ".emlx" and these files are located in a "Messages" folder within the mailbox folder which has the name "mailboxname.mbox".

I'm being brief and probably missed something, but we can cover that in discussion.


 _______________________________________________
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



--
The best way to predict the future is to invent it. - Alan Kay
http://www.galileon.co.uk/
 _______________________________________________
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

References: 
 >Selected email paths (From: Nawal Husnoo <email@hidden>)
 >Re: Selected email paths (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Selected email paths
  • Next by Date: Re: Selected email paths
  • Previous by thread: Re: Selected email paths
  • Next by thread: Re: Selected email paths
  • Index(es):
    • Date
    • Thread