Merging all those emails
So you’ve got a few dozen email accounts, right? And now you want to simplify and just have a single inbox or group of imap mbox files, etc. Provided you’ve got access to the spool mbox file, and the mbox files in your imap folders for all the accounts you want to merge, or imap access to said, you can do it with mutt quite simply. Here’s one technique:
mutt -f /path/to/mbox (open the file you want to move)
T . ;s (tag all messages, save to a file)
mutt -f /path/to/newmbox
T ~= ;d (tag all duplicate messages and delete them)