[PATCH] [WIP]: thunderbird mboxrd to mbox
I was trying to restore email from local thunderbird download data.
None of the script I found could work.
This script is modified from
superuser.com/questions/105653/how-to-convert-mboxo-mboxrd-to-mboxcl-mboxcl2
Which works for me, using this script I could use doveadm import to
restore my INBOX(I don't know how to restore the Sent mailbox).
If this script is useful, I would rewrite one for python3 and
following the mboxrd spec.
Signed-off-by: Randy Li
On 16/05/2023 20:26 EEST Randy Li via dovecot dovecot@dovecot.org wrote:
I was trying to restore email from local thunderbird download data. None of the script I found could work. This script is modified from superuser.com/questions/105653/how-to-convert-mboxo-mboxrd-to-mboxcl-mboxcl2
Which works for me, using this script I could use doveadm import to restore my INBOX(I don't know how to restore the Sent mailbox).
If this script is useful, I would rewrite one for python3 and following the mboxrd spec.
Signed-off-by: Randy Li ayaka@soulik.info
Hi!
Thank you for the script suggestion!
I would suggest that you either form a new github repo (or whatever your choice of poison is) and develop it there. **or** you can open a pull request at https://github.com/dovecot/tools/.
Mandatory steps to get it into tools:
- Rewrite in python3
- Add some comments
Some personal notes
I think it's just fine to output mbox format that Dovecot accepts, then it can be easily migrated into some other format. Doing format conversion can be more difficult than it is worth.
Kind regards, Aki
participants (2)
-
Aki Tuomi
-
Randy Li