https://github.com/klich3/converter-qmail-mbox
Python function for convert Dovecot / Qmail mail boxes to MBOX format for import in modern clients
https://github.com/klich3/converter-qmail-mbox
dovecot firebird mail mail-client mbox osx osx-mail qmail
Last synced: about 1 year ago
JSON representation
Python function for convert Dovecot / Qmail mail boxes to MBOX format for import in modern clients
- Host: GitHub
- URL: https://github.com/klich3/converter-qmail-mbox
- Owner: klich3
- License: mit
- Created: 2024-06-26T12:40:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T09:15:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T01:17:17.273Z (over 1 year ago)
- Topics: dovecot, firebird, mail, mail-client, mbox, osx, osx-mail, qmail
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coverter QMAIL - Dovecot Mailbox to MBOX Apple format
Convert Dovecot Mail / QMail mail box to APPLE MBOX format so you can import and continue using it in your favorite program.
# Install
Python version: ***3.12.3***
It is recommended to create a virtual environment
`virtualenv ./venv && . ./venv/bin/activate`
or
`python -m venv venv` and for activate it just run `. ./venv/bin/activate`
after that install dependencies with this command `pip install -r requirements.txt`
# Usage
In current folder run `python md2mb.py [maildir_path] [mbox_path_and_filename]`
_Sample:_
`python md2mb.py /var/qmail///Mailbox /home/domina_converted_file`
After completing the conversion process you can import it into your favorite program.
---
***Mail box / QMAIL folder structure***
```text
|-
|-@attachments
|-Maildir
|-.Spam
|-...
|-cur
|-tmp
|-new
|-...
```
---
## Credits
> [!IMPORTANT]
>***This code has been modified, previously the previous authors are:***
>* Frédéric Grosshans, 19 January 2012 (https://gist.github.com/lftbrts/249f034a439d3eb2e008f73506cacc2d)
>* Nathan R. Yergler, 6 June 2010
---
## Contribute
If you want to contribute you can always make a comment or make a pull-request, changes will be valued.
In case of an error you can also open an issue [HERE](https://github.com/klich3/Converter-QMAIL-MBOX/issues).
---
## Star History
[](https://star-history.com/#klich3/Converter-QMAIL-MBOX&Date)