|
I was recently asked in our forums about archivemail, a python script that helps archive old email. After further research, I found that it is supported, and in this article I'll give you some details on how to setup and use it if it sounds like something you may find useful. For official documentation for archivemail, please see the archivemail sourceforge page. INSTALLATION
Examples of Usagearchivemail will need to be ran using a cron job. For more help running a cron job, please see: How to run a cron job. When looking at the examples below, please note these settings: email address to archive: brad@inmotiontesting.com I have setup the cron jobs to email me the output, which is presented below. To prevent receiving status emails, please use the -q flag. -q, --quiet
This command would archive emails older than 365 days. The n flag means just to test the command, but don't actually archive any emails. OUTPUT
This command archives emails older than 3 days. OUTPUT The archived messages can be found here: /home/inmoti6/mail/inmotiontesting.com/brad_archive.gz The email is actually archived in Mbox format. MBox stores all of your email in one single file. From our reading, there is unfortunately not an option to change the format the emails are stored in. Our servers no longer use mbox format for storing email, so you'll need another program to actually read the archived email. You can use notepad to open the file and read your emails. A quick search online shows there are several programs you can use to read / convert the email, many of which seem to require purchase though. We did find that Windows MBox Viewer seemed to work quite well, however we have not used it extensively. |
Comments
Need more Help?
| Search
|
Current Customers
|
||||||||
Ask the Community! Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff. |
Not a Customer? |

Support Center Login
