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.ac
count1.ser
ver", "server1");
user_pref("mail.account.ac
count2.ide
ntities", "id1");
user_pref("mail.account.ac
count2.ser
ver", "server2");
user_pref("mail.accountman
ager.accou
nts", "account1,account2");
user_pref("mail.accountman
ager.defau
ltaccount"
, "account2");
user_pref("mail.accountman
ager.local
foldersser
ver", "server1");
....
user_pref("mail.smtp.defau
ltserver",
"smtp1");
user_pref("mail.smtpserver
.smtp1.aut
h_method",
1);
user_pref("mail.smtpserver
.smtp1.hos
tname", "12345.smtp.com.my");
user_pref("mail.smtpserver
.smtp1.por
t", 30);
user_pref("mail.smtpserver
.smtp1.try
_ssl", 3);
user_pref("mail.smtpserver
.smtp1.use
rname", "xyz");
user_pref("mail.smtpserver
s", "smtp1");
Start Free Trial