• 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: Luther Fuller <email@hidden>
  • Date: Wed, 01 Sep 2010 08:51:29 -0500

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

  • Follow-Ups:
    • Re: Selected email paths
      • From: Nawal Husnoo <email@hidden>
References: 
 >Selected email paths (From: Nawal Husnoo <email@hidden>)

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