Skip to content

stdevPavelmc/mdexportab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python script to export the MDaemon users's address books in case of a mail server migration

That's it: a handy python script to export all the users addressbooks from the WorldClient MDaemon to a vCard format.

Motivation

  • I need a simple tool to make this for my daily job (IT FLOSS migration services in Cuba)
  • It's a trivial task
  • Some apps out there ask you more than $50 bucks (USD) for a licence.

What's the deal?

A simple python script that will give you a folder plenty of [username].vcf files in the vCard format 2.1, that can be imported in most email clients out there.

The script is GPLv3 aka free/libre software, contributions, bug reports & comment are welcomed.

How to make it work?

  1. Install python 3.5 or later on your windows PC that runs the MDaemon instance and add the python executable to the environment (google search: windows add python.exe to the environment PATH)
  2. Copy the mdexport.py script to the MDaemon's "Users" folder that holds your domain(s) accounts
  3. Open a windows's cmd or powershell session and move to that folder
  4. Run python.exe mdexportab.py in your console and wait for it
  5. Your data will reside on a newly created output folder

FAQ

It's possible to export the data in another format?

Yes, drop me a tweet (@co7wt) or an issue on this repository and I will think about it

It only works with that precise version of Python?

No, it must work with any python in the 3.x branch; for example in a recent migration job I found that a Windows 2008 server can't install the latest python 3.8.x and ask me for a service pack and a .NET version... using an old python version (3.5) I managed to run it and avoid the nasty & time-consumming upgrade and .NET install as that server will be reinstalled with a FLOSS solution

Why it's not exporting data for some users? or I have 200 users and only exported data for 123 of them?

Simply, some users don't have any address in their addressbook files, that users will not have a .vcf file

I ran the script and it's taking ages to finish, is that normal?

It depends on the user count, the mails count on every user's folder, and even on the hardware & PC load at the time of run

For example: in a Corei3 (4th gen) PC with 8 GB of RAM with Windows Server 2008 r2 as a Production PC, even with other services in the bacground (MSSQL, Domain Controller & MDaemon server) it took about 8 minutes for ~80 users, +50GB of emails and about 1200 contacts globally

I wonder if your script can do A, B or even C new feature... can you implement that?

Yes, but remember It's a hobby for me and I work on it holliday/weekend style; it can take a while to be implemented, use the issues feature ot github to report your request; if you are on a rush I will accept a small donation to give you priority.

Hey! this is a great tool and I want to donate some of the saved ~$50 bucks to you

Thank you, please contact me on twitter for instructions my nick there is @co7wt

About

Handy python script to export all MDaemon user's mailbox addresbooks (MDaemons's WorldClient addressbooks)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages