Re: [Evolution] smtp config file

2007-04-20 Thread Chris Murphy
Your both right of course.  After a lot of research and trial and error, I found that the Gconftool actually saves the settings in memory and only writes them when needed.  So editing the .xml file does not work because evolution writes over the edited file with the copy in memory when looking

Re: [Evolution] smtp config file

2007-04-19 Thread Christof Krüger
On Thu, 2007-04-19 at 15:00 -0400, Patrick O'Callaghan wrote: > On Thu, 2007-04-19 at 10:02 -0400, Chris Murphy wrote: > > cat %gconf.xml | sed s/oldsmtp/newsmtp/g > %gconf.xml > > Dangerous. You're starting two concurrent processes, one reading from a > file and the other writing *to the same fil

Re: [Evolution] smtp config file

2007-04-19 Thread Patrick O'Callaghan
On Thu, 2007-04-19 at 10:02 -0400, Chris Murphy wrote: > cat %gconf.xml | sed s/oldsmtp/newsmtp/g > %gconf.xml Dangerous. You're starting two concurrent processes, one reading from a file and the other writing *to the same file*. Depending on race conditions, some of the time the shell will trunca

Re: [Evolution] smtp config file

2007-04-19 Thread Chris Murphy
Ritesh and Murray, I was able to write a nice perl script to go into each home directory on our server and change the SMTP.  Just wanted to thank you for the quick response saving me a lot of time.  I'm going to try a similar bash script that uses sed without the gconftool, it works from comma

Re: [Evolution] smtp config file

2007-04-18 Thread Murray Trainer
Hi, I just had to modify the smtp server for about 1500 users - see script below :-) Murray #!/bin/sh gconftool-2 --get /apps/evolution/mail/accounts | sed s/oldsmtpserver.net/newsmtpserver.net/g > /var/tmp/account.temp gconftool-2 --unset /apps/evolution/mail/accounts /opt/gnome/bin/gconftool

Re: [Evolution] smtp config file

2007-04-18 Thread Ritesh Khadgaray
On Tue, 2007-04-17 at 16:54 -0400, Chris Murphy wrote: > Thanks for picking this up. Tried your commands but with the > following errors: > > First, no account's directory: > > I couldn't find an accounts folder: > [EMAIL PROTECTED] mail]$ ls ~/.gconf/apps/evolution/mail/ > composer display fo

Re: [Evolution] smtp config file

2007-04-17 Thread Chris Murphy
Thanks for picking this up.  Tried your commands but with the following errors: First, no account's directory: I couldn't find an accounts folder: [EMAIL PROTECTED] mail]$ ls ~/.gconf/apps/evolution/mail/ composer  display  format  %gconf.xml  junk  message_window  prompts  subscribe_window

Re: [Evolution] smtp config file

2007-04-17 Thread Ritesh Khadgaray
heya, On Tue, 2007-04-17 at 15:06 -0400, Chris Murphy wrote: > Hi everyone, > > I have looked through the archives and done a couple dozen grep's in my > home folder, but I can't find where evolution stores your account setup > info. What I want to do is change the smtp server for my entire co

[Evolution] smtp config file

2007-04-17 Thread Chris Murphy
Hi everyone, I have looked through the archives and done a couple dozen grep's in my home folder, but I can't find where evolution stores your account setup info. What I want to do is change the smtp server for my entire company without having to log in as each individual user and change it.