in reply to Mark messages as read
in thread Mirror/Copy Mozilla thunderbird emails to IMAP server
|Replies are listed 'Best First'.|
Re^2: Mark messages as read
by Anonymous Monk on Mar 25, 2014 at 14:25 UTC
Had some horror to migrate my old Thunderbird archive to IMAP.. found this script. I have made some additions to this code:
- replace '.' (dots) by '_' in folder names
- subscribe to the folders !
- create (final) dir on other location
- appended a base target folder
Ended up adding more checks, edits etc..
I'll post the most important ones: in stead of for my $msg ($mb->get_messages) use:
This because I missed messages with the 'for' loop!
Large mails ended in errors, I ended up editing the IMAPClient.pm, altering Maxappendstringlength to 1024**20 in stead of 1024**2
Also had some headaches with Character coding of foldernames.. IMAP doesn't support a lot..
If you'dd like the whole code I created, let me know..