Re: [Evolution-hackers] EPlugin, export mail folder, Update!



On Wed, 2005-01-19 at 04:45 +0100, smurfd wrote:
> What sort of directory structure?
well, the same as one got in ~/evolution/local/ starting with the mbox,
Inbox, and if it got subfolders they're under Inbox.sbd etc. eh you
know :) 

> Well you can do all this in code easily, without running any system
> commands. 
Really? were would i look to see examples of that/those functions?!
i grep:ed for ".sbd" but didnt get anything worthy out of it. 
Well, i mean you can do 'mkdir -p' using code.  You should definitely do that.  Adding the .sbd thing isn't hard either, there should be code in camel/providers/local/camel-mbox-store.c which does it, I think, or somewhere in that directory.
> 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. 
Okey, well to be honest have i never used cpio. so at the Moment i think
ill look for a tar sollution, but i figgured, since at the moment im
thinking about doing this with a system() thing, one could do an
execution of a custom string. 
Hmm, i'd still prefer cpio.  They can be accessed better using code/scripts.  For example, your screenshots use 'tar j...', j is only a very new option to tar, and isn't very portable.  But i guess its only details.
Like this : 
http://smurfnet.homelinux.net/files/evo/scr.png
http://smurfnet.homelinux.net/files/evo/scr1.png
http://smurfnet.homelinux.net/files/evo/scr2.png
http://smurfnet.homelinux.net/files/evo/scr3.png
(um yeah, the middle button is "preferences")

im not to good with the gui stuff so any suggestions/pointers is always
welcomed. :)
It would make sense to have a separate configuration page in the mailer preferences, rather than a run-time configuration with multiple popups.  You shouldn't really be firing off 'preferences' windows from a running dialogue.

If you want to do a multi-step thing like that, it should probably be a wizard - e.g. if you wanted to be able to select different backup formats, compression options, etc.

--
Michael Zucchi <notzed ximian com>
"Ride, Work, Sleep. Beer."
Novell's Evolution and Free Software Developer


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