12 votes

Backing up e-mails from an IMAP server

3 comments

  1. [2]
    Akir
    Link
    I've forgotten the name of it, but there is also a good extension for Thunderbird that is perfect for this. It creates individual email files and an index of the addresses and subject lines so you...

    I've forgotten the name of it, but there is also a good extension for Thunderbird that is perfect for this. It creates individual email files and an index of the addresses and subject lines so you can find your data quickly.

    4 votes
    1. mxuribe
      Link Parent
      Native functionality of Thunderbird allows for individual email files (that are just text files) by using "maildir" as the storage config as opposed to "mbox" type. The email files themselves are...

      Native functionality of Thunderbird allows for individual email files (that are just text files) by using "maildir" as the storage config as opposed to "mbox" type. The email files themselves are not named very nicely but any search tool should be able to find the info you need. Also because the format of the email files in thunder bird is standard, they can be viewed (and indexed and searched) by other email applications too. Not knocking your comment, it's simply that Thunderbird's native features are awesome! (Plus, leveraging standards like imap and mailer make email so rock solid.)

      2 votes
  2. tannercollin
    Link
    The last paragraph is the important part, don't skip it! I use offlineimap for this, and if all your email is accidentally deleted on the server, offlineimap will happily delete the email stored...

    The last paragraph is the important part, don't skip it!

    I use offlineimap for this, and if all your email is accidentally deleted on the server, offlineimap will happily delete the email stored locally because it just wants to sync. I believe getmail will do the same. Treat the local email folder as the thing you are backing up and use a tool to incrementally copy it elsewhere.

    For reference, here's my .offlineimaprc: https://txt.t0.vc/EURM

    4 votes