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 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

1 Answer 1

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

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.