Skip to content

Split large mbox files (from hunderbird) into smaller one, class by year of the message

Notifications You must be signed in to change notification settings

ryosama/mbox_spliter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mbox_spliter

Split large mbox files (from Mozilla Thunderbird) into smaller one

Usage

Options :

  • --mbox=<mbox_file> (required) The mbox file you want to inspect

  • --dry-run Do only a simulation, do not write anything

  • --compact Compact the mbox file (delete messages marked as "deleted")

  • --delete-older-than=yyyy-mm-dd Delete messages older than this date

  • --split-by=year|mounth|week|day Split the mbox file into separate files

  • --usage or --help Display this message

  • --quiet Don't print anything

Examples

perl mbox_spliter.pl --dry-run --mbox=c:/Thunderbird/Mail/Inbox --compact --split-by=year

Statistics

At the end the script print some statitics about the job done


-----------------Statistics-----------------

Read  1393216 lines in 1 seconds

Found     431 messages

Compact   409 messages (94.9%)

Keep       67 messages (15.5%)

Moved     364 messages (84.5%)

           42 messages ( 9.7%) into /home/foo/.Mail/Local Folders/Sent.sbd/2009

          106 messages (24.6%) into /home/foo/.Mail/Local Folders/Sent.sbd/2014

           63 messages (14.6%) into /home/foo/.Mail/Local Folders/Sent.sbd/2010

          119 messages (27.6%) into /home/foo/.Mail/Local Folders/Sent.sbd/2013

            1 messages ( 0.2%) into /home/foo/.Mail/Local Folders/Sent.sbd/2012

           33 messages ( 7.7%) into /home/foo/.Mail/Local Folders/Sent.sbd/2011

About

Split large mbox files (from hunderbird) into smaller one, class by year of the message

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published