Skip to content

Latest commit

 

History

History
67 lines (41 loc) · 1.64 KB

README.md

File metadata and controls

67 lines (41 loc) · 1.64 KB

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/<domain_name>/<user>/Mailbox /home/domina_converted_file

After completing the conversion process you can import it into your favorite program.


Mail box / QMAIL folder structure

<Domain>
    |-<Username>
        |-@attachments
        |-Maildir
            |-.Spam
            |-...
            |-cur
            |-tmp
            |-new
            |-...
            

Credits

Important

This code has been modified, previously the previous authors are:


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.


Star History

Star History Chart