Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I accidentally let mutt to move all read emails from the server to local mbox file. How to restore mails to the server?

share|improve this question
    
I'd be interested in knowing if/how you can do this with other clients, e.g. Thunderbird... – Jonik Oct 20 '09 at 14:09
    
Almost all IMAP clients let you move mail back and forth from/to the IMAP server. So you would just drag the messages back to IMAP. (Although Thunderbird doesn't auto-move your mail to ~/mbox) – grawity Oct 24 '09 at 9:45
up vote 4 down vote accepted

Open the mbox file in mutt (mutt -f ~/mbox or the c key), tag all messages (T), move them back (; s).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .