• 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: Where does Mail store deleted messages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where does Mail store deleted messages?


  • Subject: Re: Where does Mail store deleted messages?
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 26 Jan 2007 09:33:05 -0600

On Jan 25, 2007, at 9:49 PM, kai wrote:

to locate_folder for mBox
	tell application "Mail" to tell mBox
		set n to name
		set p to ".mbox/Messages/"
		tell its account to if exists then
			if account type is not pop then set p to ".imapmbox/Messages/"
			return account directory & "/" & n & p as POSIX file as alias
		end if
	end tell
	POSIX path of (path to library folder from user domain) & ¬
		"Mail/Mailboxes/" & n & p as POSIX file as alias
end locate_folder

I've been working on a handler to return the path to the folder on my computer where messages are stored since this time yesterday. I finally have something reasonable that works. Your code suggests a way to eliminate a try ... end try block with shorter code. Thanks.


I haven't yet seen a response that confirms that folder names such as "Mail", "Mailboxes", "Deleted Messages", "Sent Messages", "Junk", "Drafts", "INBOX", "Outbox" appear in any language other than English. Looking-up these names in the preference file "com.apple.mail.plist" seems to be unnecessary.

If a language other than English is used here, let me know. Thanks.

_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Where does Mail store deleted messages? (From: Michael Slomski <email@hidden>)
 >Re: Where does Mail store deleted messages? (From: kai <email@hidden>)

  • Prev by Date: Re: More FMP8 Questions
  • Next by Date: RE: AppleScript-Users Digest, Vol 3, Issue 640
  • Previous by thread: Re: Where does Mail store deleted messages?
  • Next by thread: Re: Where does Mail store deleted messages?
  • Index(es):
    • Date
    • Thread