Re: [Evolution] cron job to backup old mail



On Fri, 2004-08-20 at 08:10 -0400, Jason Cooper wrote: 
I'm attempting to get my old email under control.  I have about 450M in
an 'OldMail' folder in evolution.  It's stored in mbox format.  

If I tar up the entire 'OldMail' directory which includes this list:

total 427933
-rw-r--r--  1 jcooper users        86 Oct 10  2003 folder-metadata.xml
-rw-------  1 jcooper users        95 Aug 18 12:51 local-metadata.xml
-rw-------  1 jcooper users 434518823 Aug 19 15:24 mbox
-rw-------  1 jcooper users    762091 Aug 19 15:24 mbox.ev-summary
-rw-------  1 jcooper users    928768 Aug 19 15:24 mbox.ibex.index
-rw-------  1 jcooper users   1550676 Aug 19 15:24 mbox.ibex.index.data

Can I just remove it?  Will evolution barf on it disappearing?  Also,
later down the road, if I copied it back into place, would evolution
recognize it correctly?

I guess the point I'm really trying to get at is this.  Does evolution
rely solely on the contents of this directory to tell it what mail is
there?

Usually I would just experiment, but this data is too critical. :(

If you put a new mbox file in the directory /while Evo is shut down/,
then, the next time it starts up, it will re-index the emails.

Thus, since a 0 length mbox is valid, Evo will that, too.

For example:
$ evolution --force-shutdown
$ x=`date +%y%m%d.%H%M`
$ mv ~/evolution/mail/local/subdirs/OldMail/mbox \
      ~/tmp/OldMail-$x.mbox
$ gzip ~/tmp/OldMail-$x.mbox
$ touch ~/evolution/mail/local/subdirs/OldMail/mbox
$ evolution  ## Evo will start up fine

(Yes, the subdirectory tree is wrong, but close enough for these
purposes.)

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B

"Americans hate foreign policy because Americans hate foreigners,
because they *are* foreigners, and came to this country to get
away from the bad things."
P.J. O'rourke, 2004-06-25, Fox News Channel

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]