Re: [Evolution-hackers] EPlugin, export mail folder, Update!
- From: Not Zed <notzed ximian com>
- To: smurfd <smurfd smurfnet homelinux net>
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] EPlugin, export mail folder, Update!
- Date: Mon, 20 Dec 2004 08:49:53 +0800
On Wed, 2004-12-15 at 03:36 +0100, smurfd wrote:
So ive been abit buissy, and poking some on the plugin from time to time
too.
Here is how its going to work.
One rightclicks the folder one wants to export.
One gets a "save to directory" dialog.
One chooses directory.
The directory structure + mbox-files are created in that folder.
(ill also look into the possibillity of running some compression on it,
hopefully by using zlib)
What sort of directory structure?
The other i sortof got working atm.
Though i got some ugly system("mkdir -p ") hack, to create the folder
structure. That, and a function for putting together the path of the
folders to extract, from /path/choosen/by/widget/ +
/the/folder/structure/ =
/path/choosen/by/widget/the.sbd/folder.sbd/structure.sbd/
Well you can do all this in code easily, without running any system commands.
When all that is done, i then think of running the compression on the
whole folder.
That way you get both a compressed file and the hole directory
structure. (pro, you get to choose if you want to delete it or save it.
con, it takes up alot of space)
I'd probably suggest generating a cpio archive of this structure, then you compress that in one go. You get better compression, and you get a file that can be manipulated using existing tools. cpio works a bit better with pipes and so on than tar might, and tar is possibly less portable across different platforms.
Oh yeah, one only gets 1 dialog. The rest is done automaticly.
Sounds good.
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]