0

I have several email accounts on a Mac.

With a simple IMAP account, the messages are in /Users/[user name]/Library/Mail/V[a number]/IMAP-[email adress]/INBOX.mbox/

However, Apple Mail seems to hide the messages away differently if you are using gmail. If I go to the same folder scheme -- nothing there.

Ideas?


More specifically, I am looking for a way to find only the Sent messages. I have been able to locate an ALL messages folder at:

/Users/[user name]/Library/Mail/V3/IMAP-[email address]@imap.gmail.com/[Gmail].mbox/All Mail.mbox/

But how do I separate out the sent messages?

The Sent Mail.mbox directory only has a .plist file in it even though there are thousands of sent messages. Doing a file count on the All Mail.mbox makes clear that that is literally all the mail (sent, received, drafts, etc) Looking at the .emlx header it is not obvious what would differentiate one from the other.

  • The issue is gmail is not a standard IMAP server (I think the main issue is that it has labels rather than separate mailboxes and they behave differently) – user151019 Apr 26 '16 at 10:37
  • @Mark: THAT is the issue. I have found the messages, but they are not in separate mail boxes. i.e., Sent Messages are in the same box as the inbox. Grrrr. Would you add that as an answer? – drewk Apr 26 '16 at 18:35
  • Send in the same box as Inbox is a different issue - first what does the nail web interface show - also in Mail what mailboxes are mapped to Sent, Inbox (also junk and deleted) – user151019 Apr 26 '16 at 18:47
1

The URL you state is by and large correct, but the details can differ based on your exact configuration. On my machine (which runs El Capitan, uses V3 in the mail path, and for a Gmail account where the IMAP Path Prefix is set to [Gmail]), the messages for the inbox are stored in the path you stated but messages for other standard folders are in the path MrWonderful suggested.

The easiest way I think is to send yourself an email with a unique string (ideally without spaces) as the subject) and to get creative on the command line.

find . -name '*emlx' | xargs grep 'UNIQUE_STRING' -ls

This finds all messages and subsequently searches them for the string, spitting out only the file names (with path) for the files containing that specific string.

Hope this helps you dig around the mail folder and find the information you're looking for.

0

Mine are in a similar location, although the final folder name is slightly different than where you were looking.

/Users/{user name}/Library/Mail/V{number}/IMAP-{email address}/[Gmail].mbox/

In the above, the curly braces denote variable strings based on your own situation, but the square braces around 'Gmail' are literal.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .