Skip to content

Python function for convert Dovecot / Qmail mail boxes to MBOX format for import in modern clients

License

Notifications You must be signed in to change notification settings

klich3/Converter-QMAIL-MBOX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python function for convert Dovecot / Qmail mail boxes to MBOX format for import in modern clients

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages