Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently discovered cli email clients and have fallen in love with their speed and simplicity. After playing around with mutt and alpine I decided I favor alpine. I am a Gmail IMAP user and have many years of emails that I'd like to store locally. Is there a more or less convenient way to retain IMAP functionality and backup only the emails that haven't been backed up already on a weekly basis? I have alpine setup with my Gmail with IMAP and it's working great. I'm just wondering if there is a way to make an offline backup or "archive" locally on my computer while retaining the multi device access that IMAP offers. I apologize if this has been asked before, I did search for it and did not find my answer. Thank you for reading.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Alpine isn't very suited for this – it's for reading mail, not automating backups. Try OfflineIMAP; it will not conflict with Alpine's access.

[general]
  accounts = Gmail
[Account Gmail]
  localrepository = backup
  remoterepository = Gmail
[Repository backup]
  type = Maildir
  localfolders = ~/Backup/mail
[Repository Gmail]
  type = Gmail
  remoteuser = example@gmail.com
  readonly = True
share|improve this answer
    
Thank you very much I will look into OfflineIMAP –  BasicObject Nov 19 '11 at 21:03

Alternative: fetchmail. It's in every major distro.

~/.fetchmailrc:

poll pop.gmail.com with proto POP3
user "youremailaddr@gmail.com"
password "appl-specific-password-from-gmail"
options ssl keep

Then, type:

$ fetchmail -vk

You might have to do that several times to get all your email for the first time. Once this is done, every time you type the command above, it will fetch only mail that has not been fetched so far.

This writes fetched mail to /var/spool/mail/.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.