I am not sure exactly what you are trying to do. Though all/most of your e-mail
messages should be in individual files scattered around Library/Mail, I would
suggest that using terminal to explore those directories is less than intuitive
especially since you are using Gmail as a provider where they have all mail
functionality and then links to those messages in other folders.
.
If you are looking to recover deleted messages and you are accessing gmail on
iphone/Macintosh Mail applications, and you have not changed Google's iMAP
deletion properties then all of your "deleted" messages are probably in the
archive folder, and there is a reasonable chance that things deleted in the
last 30 days are also in your "Trash" folder in the mail app.
> You mentioned terminal, so if you are determined to approach via this method,
> rather than trying to reverse engineer Mails structure I suggest you use the
> find command and let it run over an appropriate set of directories. When
> using Find with grep or other command line commands that can take several
> files there is a special argument for find so that grep does not get exec'd /
> forked for each file that needs examining. You could also look at creating a
> perl script that uses the Find module then you could do your search If this
> paragraph means completely in one process.
find /volume/backups/mymachine/THeDate/Users/myName/Library/Mail/ -exec grep
"My Search Term" \{\} /dev/null \; could be a starting recipe for what you are
attempting to do.
Best wishes,
Jonathan Cohn
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
[email protected] and your owner is Cara Quinn - you
can reach Cara at [email protected]
The archives for this list can be searched at:
http://www.mail-archive.com/[email protected]/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.