Advertisement

06.07.2007 at 05:29AM PDT, ID: 22618830 | Points: 250
[x]
Attachment Details

Retrieve thunderbird email settings (parse pref.js)

Asked by dannyleongsk in C++ Programming Language, Thunderbird Email Client, Parsers

Tags: thunderbird, retrieve

Hi,
 I'm wondering if anyone has source codes for a pref.js parser in C++? Basically, I just want to retrieve email settings (smtp,port, email addresses) from mozilla thunderbird. The pref.js looks like this ..

# Mozilla User Preferences
/* Do not edit this file.
 *
 * If you make changes to this file while the application is running,
 * the changes will be overwritten when the application exits.
 *
 * To make a manual change to preferences, you can visit the URL about:config
 * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
 */
....
user_pref("mail.account.account1.server", "server1");
user_pref("mail.account.account2.identities", "id1");
user_pref("mail.account.account2.server", "server2");
user_pref("mail.accountmanager.accounts", "account1,account2");
user_pref("mail.accountmanager.defaultaccount", "account2");
user_pref("mail.accountmanager.localfoldersserver", "server1");
....
user_pref("mail.smtp.defaultserver", "smtp1");
user_pref("mail.smtpserver.smtp1.auth_method", 1);
user_pref("mail.smtpserver.smtp1.hostname", "12345.smtp.com.my");
user_pref("mail.smtpserver.smtp1.port", 30);
user_pref("mail.smtpserver.smtp1.try_ssl", 3);
user_pref("mail.smtpserver.smtp1.username", "xyz");
user_pref("mail.smtpservers", "smtp1");Start Free Trial
[+][-]06.07.2007 at 06:11AM PDT, ID: 19233090

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2007 at 07:04PM PDT, ID: 19239188

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32