8

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

Jonik
  • 5,700
  • 12
  • 46
  • 55
JtR
  • 1,859
  • 5
  • 15
  • 14
  • 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`) – u1686_grawity Oct 24 '09 at 09:45

1 Answers1

7

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

u1686_grawity
  • 426,297
  • 64
  • 894
  • 966