[kwlug-disc] How to Archiving Gmail Locally

Khalid Baheyeldin kb at 2bits.com
Tue May 8 11:01:11 EDT 2018


One thing I thought about, is some parsing script that will check the date
of
the message :

ls xargs ...
grep '^Date: '

Then extract the month and year, parse it if necessary, and move the
message
to a folder named: mail/gmail/yyyy/mm/

This should be straightforward, and would get over the large number of
files
in a single directory issue. Using mutt against the directory tree should
also
be possible, now that directories are smaller.

The state of last message downloaded and such are all kept in ~/.getmail,
so it is safe to mess around with the cur directory, I think ...

On Tue, May 8, 2018 at 9:35 AM, Jeff Smith <crankyoldbugger at gmail.com>
wrote:

> That was a good meeting last night.  Some good speakers and some swag to
> boot...  Also nice to see so many new faces last night.
>
> This is a good script, Khalid.  I've been doing this process more or less
> manually, and at random times, by going into Thunderbird, downloading any
> over-large folders to the local client, then zipping up the resulting .eml
> files and storing them on my own backups server.  While it's considerably
> more work than your script, it does allow me some leeway in what folders I
> clean up (i.e. do I want to keep this year's stuff online, can I break
> larger folders down by years, etc.)
>
> Maybe once I get my manual process to the point where your script can take
> over, I can give the impression of being much more organized...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20180508/e79fbb86/attachment.htm>


More information about the kwlug-disc mailing list