On Friday 08 April 2005 05.04, columbo@wowway.com wrote:
On Thursday 07 April 2005 16:43, Rikard Johnels wrote:
Its easy enough to get the mailfolders across, but at least MY problems were: Trying to copy all the filters i have entered. Copying the multiple accounts i have set up. Making KMail find what folders the receiving accounts use. And a few minor other things.
As it is now, its WAY to complex for a newer user to handle. What to copy, where to look etc.. It would be so much simpler if there was a "backup/export" utility that got ALL the settings, filters and stuff in one go.
Having hosed my email system regularly, I've found the restoration process to be a pretty simple process performing it manually. But a new user who hasn't had the pleasure of hosing their system might be a bit confused with locations of files and such.
A simple bash script with a half dozen or so lines might be all you would need to perform the house keeping chores. Maybe similar to the following based on the assumption that the new directories have been created:
#!/bin/bash # #screwed up kmail again utility v 0.0.1 # cp ~/oldmaildirectory/* newmaildirectory
# if new directory not yet created than the following will create the # directory and copy all the files over # cp -r /oldmaildirectory newmaildirectory
cp ~/.oldkde/share/apps/kmail/* ~/.newkde/share/apps/kmail
# ditto the above comment here # cp -r /.oldkde/share/apps/kmail ~/.newkde/share/apps/kmail
cp ~/.ok/share/config/emaildefaults ~/.nk/share/config/emaildefaults cp ~/.ok/share/config/emailidentities ~/.nk/share/config/emailidentities cp ~/.oldkde/share/config/kmailrc ~/.newkde/share/config/kmailrc
Now, a new user would be able to read this file and figure out where the necessary files are located and manually copy them over. ;>
I think something like this would work for the purpose of moving kmail stuff somewhere else. Add another half dozen lines and you could backup the files.
HTH
Yes. This is the same procedure (though not in script form) as i did it. But it would be so much easier to have it included in KMail to begin with. or have a separate routine for it to be able to backup/restore all files. The question of what to backup is a recurring one on this list (and others) so i think there is a "need" for a simpler way. I would, if i could (i am no programmer at all) write a small program for the purpose, or maybe a YAST module. But i lack the knowledge for it. -- /Rikard " Sharing knowledge is the most fundamental act of friendship. Because it is a way you can give something without loosing something." -R. Stallman --------------------------------------------------------------- Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com/users/rikjoh Mob : +46 735 05 51 01 PGP : 0x461CEE56 ---------------------------------------------------------------