Hi,

Sandra Snan <[email protected]> writes:
> OK, so having used offlineimap for a couple of years, and only working
> with my mail locally (I have a notmuch + emacs setup), if I ever were to
> log in to my imap account (on a dovecot box) with a "normal" imap
> client, it'd bog down and crash because there are so many emails there.


I configured offlineimap so that the mail server only has emails for the
current year. Previous emails are stored locally on my computer and
backed up with the other files of the disk. The 2 scripts I use to do
that are attached to this email. The directory layout looks like this:

/home/cassou/Mail
├── archives
│   ├── 2016
│   │   ├── Server1 (with its own Folder1)
│   │   └── Server2 (with its own Folder1)
│   └── 2017
│       ├── Server1 (with its own Folder1)
│       └── Server2 (with its own Folder1)
├── Server1
│   └── Folder1
│       ├── cur
│       ├── new
│       └── tmp
└── Server2
    └── Folder1
        ├── cur
        ├── new
        └── tmp

Best,

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Attachment: backup_mails.sh
Description: Bourne shell script

Attachment: backup_1_mail.sh
Description: Bourne shell script

_______________________________________________
OfflineIMAP-project mailing list: [email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepages:
- https://github.com/OfflineIMAP
- http://offlineimap.org

Reply via email to