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.
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.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)
Sounds good.Oh yeah, one only gets 1 dialog. The rest is done automaticly.
Michael
--
|
<<attachment: zed-48.small.jpg>>
