Maybe some of your mailboxes are quite large (eg, over 10,000 messages) and they are taking a while to load in your mail reader. Perhaps they are taking up too much space on your disk. Archiving old messages to a separate, compressed mailbox is possible. Here's a quick post on managing your mbox/imap mailboxes directly. Using this tool, you can move mail messages older than x days to a separate mbox file, or even to a compressed backup file.
What is Archivemail?
Archivemail is a tool written in Python for archiving and compressing old email in mailboxes. Archivemail can move specific and/or group of mbox/imap email messages older than the specified number of days to a separate mbox format mailbox that is compressed with gzip, or optionally just delete old email or simply archive it to separate mbox/imap file.
Here are several advantages of implementing archivemail:
1. Your mail reader will get a huge performance boost loading and reading your mail.
2. You will be taking up less disk space, since old mail will be compressed. (Mail usually compresses quite nicely.)
3. You won't be confronted with semi-obsolete mail all the time.
Features overview
* Supports archiving IMAP, mbox, MH and Maildir format mailboxes.
* Old mail can be either archived or just deleted.
* The age in days that is considered old is configurable – it defaults to 180 days. You can also set an absolute limit date.
* Messages that are flagged important are not archived or deleted unless explicitely requested.
* Can be configured to preserve unread mail.
* Can be configured to only archive messages over a given byte size.
* Stores the compressed archive mailboxes in a directory of your choice, with an extension of your choice.
* Easy read-only testing, not touching your valuable data.
* Supports IMAPS/SSL.
* When archiving IMAP mailboxes, the message selection can be refined by extending the underlying IMAP SEARCH command with arbitrary search keys (you will have to cope with the raw IMAP protocol, though).
How To Install ArchiveMail in Fedora 9
Simply issue yum
# yum -y install archivemail
Sample usage of archivemail
To archive mails older than 10 days, simply
# archivemail -d 10 root
legend:
10 - number of past days
root - mbox/imap mail
Result:
root:
archived 133 of 540 message(s) (128.0kB of 142.6MB) in 13.3 seconds
The above archivemail command moves all mbox mails that is older than 10 days and store it to root_archive.tgz as a backup mbox file. If the archive file is already existing, archivemail simple appends any results to existing archivemail archive.
To archive mbox mails older than 2008-08-10
# archivemail -D "2008-08-10" root
To specify destination folder when archiving mail, simply make use of -o parameter
# archivemail -d 30 root -o /root/archive
To delete all mails rather than archiving it, simply use archivemail as shown
# archivemail --delete -d 100 root
Use the above command with caution as it handling the mbox/imap mails directly.
To copy archived mails rather than archive it, simply
# archivemail -v --copy -d 360 mymail
By default, all archivemail output files are compressed and follow the format mailbox_archived.tgz file format. You can override the compression setting by issuing
# archivemail -d 15 root --no-compress
The above command does not compressed the file.
If you wish to execute an archivemail dry run, without actually arching mail, simply
# archivemail -v -n -d 15 mymail
All is done.
Related Posts:
How To Create Linux Backup File using RDiff-Backup
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2008
(2301)
-
▼
September
(663)
- Survey Says: Windows and Open Source Play Well Tog...
- Firefox rolls out 3.0.3
- Credible Searching
- First Atom-based Linux MID ships for $700
- Development Release: FreeNAS 0.69 Beta 4
- Microsoft begins to reveal Visual Studio 2010
- Open up your iPod with Rockbox
- x2x is a Software Alternative to a KVM Switch
- Sun goes commercial with OpenSSO
- The first JBoss Cache 3.0.0 CR is now available
- Nokia Launches Linux Based Qt Extended Mobile Plat...
- Fedora 10 Boot Without Plymouth
- Video tour: Bluefish editor
- Survey Says: Windows and Open Source Play Well Tog...
- Development Release: Fedora 10 Beta
- Reducing Boot Time On a General Linux Distro
- Zen and the Art of the Six-Figure Linux Job
- Ubuntu vs Windows: 2 - 1
- Invitation to The National Public Meeting on Softw...
- Toshiba samples 256GB notebook SSD
- Mozilla patches Firefox faster than expected
- Open Source to Go
- Flash CS4 First Impressions
- Setting up your own certificate authority with gno...
- Motorola Building Up 350-Person Android Team. Noki...
- Delta Airlines Runs Linux in Planes w/ In-Seat Ent...
- Distribution Release: Ultima Linux 8.4
- Change Your Forgotten Windows Password with the Li...
- Cloud computing is a trap, warns GNU founder Richa...
- New Approach To Malware Modifies Linux Kernel
- José Fonseca: Fast SSE2 pow: tables or polynomials?
- Omega 10 Desktop Linux
- Scrum and Supporting Your Existing Products
- Install open-vm-tools on Debian 4.0 (Etch)
- Kernel prepatch 2.6.27-rc8
- Tools for editing vector graphics in GNU/Linux
- The Netherlands Patent Office changes to open sour...
- gOS 3: Is it better than Ubuntu?
- Could Android Grease Motorola's Wheels?
- Flash CS4 First Impressions
- Four Expert Tips on Installing New Linux Apps
- 100+ Beautiful Free Fonts for Ubuntu
- How to make Ubuntu extremely fast
- Iyonix Range Taken Off the Market
- Mozilla rushes to fix Firefox password bug
- Simplify email with Smail
- Event Report: Atlanta Linux Fest
- WebKit browser engine aces Acid3 test, stakes clai...
- New Approach To Malware Modifies Linux Kernel
- Linux Distro to Newbies: Adapt or Leave!
- Linux for Older PCs : From Ubuntu to Vector Linux
- Hockenberry: App Store Policies 'Killing Our Enthu...
- Improving boot time on a general Linux distribution
- Why I Choose Copyleft For My Projects
- Save a Web page for later with Read It Later exten...
- DistroWatch Weekly, Issue 272
- Live DVD for Linux Games
- Improving Boot Time on a General Linux Distribution
- Short Tip: Kill all user processes
- Postfix Stress Test with smtp-source and top
- Linux Kernel Magic SysRq Keys in openSUSE for Cras...
- Defining the “Unit” in Unit Testing
- The Mother Of All Urban Legend Chain Emails And A ...
- Visa to develop applications for Android, Nokia ph...
- 5 Things That Make Linux Great
- The 14 best Linux Distros
- New Approach To Malware Modifies Linux Kernel
- Business Skills? B*llocks!
- VLC goes to nine point two
- Never Installed a Firewall on Ubuntu? Try Firestar...
- SugarCRM's Chris Harrick on the Malleability of Op...
- Becoming a Free Software Developer, Part V: When a...
- Venezuela Purchases a Million Intel Classmates
- Devil-Linux Bundles Router/Firewall And Server in ...
- Creating your own code swarm
- CNET: Chicago Mercantile Exchange joins the Linux ...
- Backtrack 3 on SD Card for the EEE PC 901 & 1000H
- Interview with Daniel Oliveira from the UTUTO proj...
- Red Hat HPC Linux Cometh
- Creating the Perfect Media Player in Java - Part 2...
- Guide Through the Linux Sound API Jungle
- How to Hit the Job Fair Without Pounding the Pavement
- Tip: Easily Enable Syntax Highlighting in Nano Editor
- GnuCash 2.2.7 released
- CPU module has FPGA onboard
- CPU module has FPGA onboard
- Richard Stallman Looks Back at 25 Years of The GNU...
- 6. What will be the Impact of CMIS on the ECM Market?
- Ralph Johnson on Parallel Programming Patterns
- Ask Linux.com: Mobile broadband, partitioning thumbs
- Distribution Release: linuX-gamers Live DVD 0.9.4
- Big Money Joins Linux Foundation
- Gentoo Linux Cancels Distribution
- File sharing is not illegal
- CNET: Chicago Mercantile Exchange joins the Linux ...
- Happy 5th Birthday Fedora!
- Computer Holy Wars
- Security appliance uses Intel SoC
- Financial exchange joins Linux Foundation
- Why you should avoid placing SSDs in traditional A...
- GNOME 2.24 gains "Empathy" IM
- Back to Windows?
- Short Tip: Kill all user processes
- On The Road Again
- Linux Networking
- Installing Zivios Server On Ubuntu
- Silverlight vs Flash: Stray Sheep
- Event Report: Atlanta Linux Fest
- Don’t alienate developers
- Fedora Turns Five!
- Technology Review: Counting Every Vote
- Encrypted Private Directory in Ubuntu 8.10
- Linux Where You'd Least Expect It
- 5. Which Vendors are involved in CMIS and how long...
- Development Release: Mandriva Linux 2009 RC2
- Devil-Linux distro bundles router/firewall and ser...
- New Gnome Release Pretties Up Linux Desktop, Adds ...
- Android Walks Out of the Mist
- Smart, unobtrusive AJAX form submission with jQuery
- Italian LUG turns Pakistani school into a educatio...
- Add-ons build business models in open source
- How To Reconfigure X From Terminal on Fedora 9
- Ubuntu 8.10 "Intrepid Ibex" (Alpha 6): f...
- Flock: Firefox's Social Cousin
- The Open Source Contributions of Six Blind Men and...
- InfoWorld Asks: Is Sun Solaris on its Deathbed?
- Is There a Linux Client Solution for Exchange 2007?
- Asus Eee PC 1000 Plus Ubuntu: Big Power in a Small...
-
▼
September
(663)
Wednesday, September 10, 2008
How To Selectively Archive and Backup MBox/IMAP Mails Using ArchiveMail
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy


0 comments:
Post a Comment