On Tue, November 2, 2004 12:29 pm, p dont think said: >>>> On Sun, October 17, 2004 7:11 pm, Nick Smith said: >>>> >>>> >>>>> i recently set up a new mail server and had alot of filters set up on the >>>>> old one i would like to bring over to the new one for mail sorting in my >>>>> personal account, is there a way to copy them over? >>>>> >>>>> >>>>> TIA >>>>> >>>>> >>>>> >>>>> >>>>> nick >>>> >>>> Check your old preferences file, they are in there, copy and paste them >>>> into your new one is the easiest way. Look for the ones that are like this >>>> filter0=From,[EMAIL PROTECTED],INBOX.User >>>> >>>> But in case that isn't your cup of tea. I'm thinking of making a >>>> "backup" >>>> plugin which you can select to backup/export your addressbook (will probably >>>> also offer a vcard conversion so outlook can easily open it), Filters, Mail >>>> Fetch >>>> Options, Notes, >>>> Calendar Entries, ect... (it will just auto detect which plugins you >>>> have). And ofcourse why be able to back them up, if you can't also restore >>>> them, so don't fret about that not being in there. They would be downloadable >>>> as text/zip/tar/Gzip files. The plugin will be modular so that other plugins >>>> can hook into it to allow the export/import of their data also. >>>> >>>> Overall the concept is fairly simple. I have already rewritten my >>>> virus scan plugin to be modular, the beta I have allows you to switch between >>>> using my perl scanner or clamav's scanner, or you can write a simple addition >>>> to allow it to scan using whichever scanner you have on your server. >>>> >>>> I hope to find time this week to start on it. It shouldn't require too >>>> much time at all to get up and running. Any one else interested / have ideas? >>>> >>>> Jimmy >>>> >>>> >>> On Sun, October 17, 2004 10:59 pm, Joe Aldeguer said: >>> Hi Jimmy, >>> >>> >>> >>> I am very interested that sounds like a great idea to give individual >>> users ability to backup their own mail files. By the way thanks a lot for the >>> file attachment block plugin I use it to protect my users from themselves ; ) >>> >> >> In case anyone is interested in trying out the backup plugin I was >> talking about, here is a nearly ready beta of it. Allows backing up of your >> filters, addressbook, and mail fetch settings currently (but only if you have >> those plugins installed ofcourse). I definitely plan on adding alot more options, >> and alot more things to backup (like your entire prefs file, calendar, notes, >> bookmarks, ect...) > > Please keep in mind that the calendar backend will be changing. >
Ya, I've known about that, which is why I haven't bothered with writing a calendar module for this yet. > >> You can download them in zip, gzip, or tar format. You can also restore >> them easily from the webpage. It is completely modular so anyone's plugin can add >> things to be backed up. >> >> Currently the backed up file is compressed, serialized, and "simple >> > > Why muddle in the file system at all? You'd have to get a master list of > prefs, but if you did, you could offer backup in a backend-independent manner, and > avoid what is very likely to be complaints from people whose web server can't > directly access pref files or some such hassle. Or do you plan to offer SQL backend > users a quick and dirty query that grabs all prefs and downloads them, too? > > -paul You really don't need a master list, their are "ways" of obtaining the preferences for a user. The webserver should have read and write access to the prefs, else users couldn't save anything including their name/email ect... reading the prefs file directly would be simplest way to go about it, and for mysql users, a sql call and a little parsing is all that it would take. Once we know the names of all the prefs, then use getpref and setpref accordingly... If there is a special circumstance where the webserver doesn't have write access to the file (I would believe that read access is mandatory) then this plugin isn't really something that admin would want to install anyways. I really don't have much major use for this plugin myself, they mentioned it here, and someone else once requested something like it, and I saw that it was definitely do-able, so I threw something together. I prefer to continue doing my nightly backups myself, this is more for people who don't keep backups of the users data (or do, but don't want to have to restore Joe's Users addressbook because he deleted his great grandmothers email address (I've heard it all)), but would like to give their users the option to keep up with their own backups of their settings, ect... I'm really not sure if I will add in the "complete" backup of a users prefs, its was more of just a thought. I think allowing them to backup the addressbook and filters are the more important things. The rest will probably just be added on request. Jimmy ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [EMAIL PROTECTED] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
