You can generate a copy of your IMAP mailbox based on particular date and hour.
Actually this code generate a copy of IMAP mailbox based on the date & optionally hour argument.
Arguments: mailbox_filename date(mm/dd/yyyy) [hour]
hour is optional arg.
For example, if your inbox size is larger than 50 Meg and you are having hard time to read the box with your shell mail client.
Let’s say you want to save mails from ‘usermail’ file upto 09/01/2005.
You should run ( let’s say the compiled program’s name is divide)
$> divide usermail 09/01/2005
Then all mails received after 09/01/2005 will be saved to ‘usermail.bak2’.
You can backup the original mail file and rename the ‘usermail.bak2’ to ‘usermail’.
Here is the actual code.
(more…)