• 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 18:57:04 -0600

On Jan 26, 2007, at 6:18 PM, Christopher Nebel wrote:

On Jan 25, 2007, at 1:59 PM, Luther Fuller wrote:

The answer is: In the user's /Library/Mail/Deleted Messages.mbox/ Messages folder.
The string "Deleted Messages" is stored in the preference file "com.apple.mail.plist" in the key MailAccounts/0/TrashMailBoxName.

Maybe. First, that's actually a preference (see Preferences > Accounts > Mailbox Behaviors > Move deleted messages to the Trash mailbox); second, messages for an IMAP account aren't necessarily stored on disk at all.

I ment to say... in the User's /Library/Mail/xxx/Deleted Messages.mbox/Messages folder, where xxx is Mailboxes or an account folder. In the Preferences the phrases "Move deleted messages to a separate folder" and "Move deleted messages to the Trash mailbox" are both used and seem to mean the same thing. (I hope...?)


Which brings up a new question: I'm writing a new handler that's designed to copy Trashed and Sent mail documents to a Finder folder and remove them from Mail ... so I've used Mail's applescript commands to uncheck all of the "Store ... messages on the server" boxes. I've never stored anything on a server, so I may be blind to a problem here that someone who does store on the server might see. (?)

I suspect that the value of this key depends on the language preference set in the International preference pane when the user first used Mail.

I'd be surprised if that were the case -- it would mean that your trash wouldn't work if you switched languages. Try changing primary languages and see what happens.

That's good to know. I am going to hard code the strings "Drafts", "Junk", "Sent Messages" and "Deleted Messages" and avoid reading com.apple.mail.plist. 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: 
 >Where does Mail store deleted messages? (From: Luther Fuller <email@hidden>)
 >Re: Where does Mail store deleted messages? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Where does Mail store deleted messages?
  • Next by Date: Re: More FMP8 Questions
  • Previous by thread: Re: Where does Mail store deleted messages?
  • Next by thread: Re: Where does Mail store deleted messages?
  • Index(es):
    • Date
    • Thread