Hi Daniele, On Tue, 2009-12-22 at 21:38 +0100, Daniele Visaggio wrote: > Hi guys, > > I'm trying to realize a script to preconfigure Evolution for my > enteprise environment. > > Now I need to know what information do I have to give to Evolution in > order to have a working configuration. The goal is to open Evolution > for > the first time WITHOUT the setup assistant. > > So, I ran this command to preconfigure a test gmail account in a fresh > installed system: > > ###################################################################### > # > gconftool-2 --set /apps/evolution/mail/accounts --type=list > --list-type=string "[<?xml version=1.0?> > <account name=daniele.visag...@gmail.com > uid=1261512006.2036...@daniele-laptop > enabled=true><identity><name>Daniele > Visaggio</name><addr-spec>daniele.visag...@gmail.com</addr-spec><signa > ture uid=/></identity><source save-passwd=true keep-on-server=false > auto-check=true > auto-check-timeout=10><url>pop://daniele.visag...@pop.gmail.com/;comma > nd=ssh%20-C%20-l%20%25u%20%25h%20exec%20/usr/sbin/imapd;use_ssl=always > </url></source><transport > save-passwd=true><url>smtp://daniele.visaggio;auth=pl...@smtp.gmail.co > m/;use_ssl=always</url></transport><drafts-folder>mbox:/home/daniele/. > evolution/mail/local#Drafts</drafts-folder><sent-folder>mbox:/home/dan > iele/.evolution/mail/local#Sent</sent-folder><auto-cc > always=false><recipients></recipients></auto-cc><auto-bcc > always=false><recipients></recipients></auto-bcc><receipt-policy > policy=never/><pgp encrypt-to-self=false always-trust=false > always-sign=false no-imip-sign=false/><smime sign-default=false > encrypt-default=false encrypt-to-self=false/></account> > ]" > ###################################################################### > ##### > > The command worked and, in fact, I red these data into the > ~/.gconf/apps/evolution/mail/%gconf.xml file, but when I open > evolution > for the first time the data are automatically resetted and the setup > assistant appears. The problem is, the values assigned are missing quotes, eg: enable=true should be enabled="true". Eg of a corrected string,
#### gconftool-2 --set /apps/evolution/mail/accounts --type=list --list-type=string "[<?xml version=\"1.0\"?><account name= \"ak...@ocean.com\" uid=\"1240202518.2907...@linux-adcj\" enabled= \"false"><identity><name>akhil</name><addr-spec>ak...@ocean.com</addr-spec><signature uid=\"\"/></identity><source save-passwd=\"false\" keep-on-server=\"false\" auto-check=\"true\" auto-check-timeout=\"10\"><url>imap://ak...@164.99.99.195/;imap_custom_headers;command=ssh%20-C%20-l%20%25u%20%25h%20exec%20/usr/sbin/imapd;use_ssl=never;soap_port=7191</url></source><transport save-passwd=\"false\"><url>smtp://ak...@164.99.99.195/;imap_custom_headers;command=ssh%20-C%20-l%20%25u%20%25h%20exec%20/usr/sbin/imapd;use_ssl=never;soap_port=7191</url></transport><drafts-folder>mbox:/home/chen/.evolution/mail/local#Drafts</drafts-folder><sent-folder>mbox:/home/chen/.evolution/mail/local#Sent</sent-folder><auto-cc always=\"false\"><recipients></recipients></auto-cc><auto-bcc always=\"false\"><recipients></recipients></auto-bcc><receipt-policy policy=\"never\"/><pgp encrypt-to-self=\"false\" always-trust=\"false\" always-sign=\"false\" no-imip-sign=\"false\"/><smime sign-default=\"false\" encrypt-default=\"false\" encrypt-to-self=\"false\"/></account>]" #### > > So, my question: > > 1) how can I force Evolution to mantain the data I put in with > gconftool-2? > > 2) Is the configuration of the /apps/evolution/mail/accounts gconf key > sufficient for Evolution to work (obviously limited to the evolution > mail component)? Once you set the gconf string using gconf-tool. Kill gconf or use gconftool-2 --shutdown - for the values for to be synced. Try starting evolution from the terminal to see if there are any parsing errors. If there arent any, the account setup dialog wont popup. - Chenthill. > > Thank you in advance, > > Daniele Visaggio > > > > > _______________________________________________ > Evolution-hackers mailing list > Evolution-hackers@gnome.org > http://mail.gnome.org/mailman/listinfo/evolution-hackers _______________________________________________ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers