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

link|improve this question

57% accept rate
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
feedback

1 Answer

up vote 2 down vote accepted

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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