(A) There are mailnews.plaintext_domains and mailnews.html_domains. > http://mxr.mozilla.org/comm-central/source/mailnews/compose/src/nsMsgCompose.cpp#4887 > 4887 NS_GetLocalizedUnicharPreferenceWithDefault(prefBranch, > "mailnews.plaintext_domains", EmptyString(), > 4888 plaintextDomains); > 4889 NS_GetLocalizedUnicharPreferenceWithDefault(prefBranch, > "mailnews.html_domains", EmptyString(), > 4890 htmlDomains);
(B) mailnews.plaintext_domains and mailnews.html_domains looks used when recipient's text or html preference is not defined in address book(Unknown). > 4908 // if we don't have a prefer format for a recipient, check the > domain in > 4909 // case we have a format defined for it (C) If domainpart of mail address(string after @) is substring of mailnews.plaintext_domains or mailnews.html_domains, mail&news looks to consider that the domainpart is registered as plaintext_domain or html_domain. > 4913 PRInt32 atPos = recipient.mEmail.FindChar('@'); > 4914 if (atPos >= 0) > 4915 { > 4916 domain = Substring(recipient.mEmail, atPos + 1); > 4917 if (CaseInsensitiveFindInReadable(domain, plaintextDomains)) > 4918 recipient.mPreferFormat = nsIAbPreferMailFormat::plaintext; > 4919 else > 4920 if (CaseInsensitiveFindInReadable(domain, htmlDomains)) > 4921 recipient.mPreferFormat = nsIAbPreferMailFormat::html; > 4922 } Above code doesn't look to care for case of "@xxx.yyy.zzz is used and xxx.yyy.zzz is placed in mailnews.<plaintext or html>_domains, and @yyy.zzz is used too." It was very rare case, I think. Ben Bucksch, is my guess right? If so, bug 647522 is perhaps "mail address in address book with text/html preference=HTML" case. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/748874 Title: plaintext domain gets HTML mail To manage notifications about this bug go to: https://bugs.launchpad.net/thunderbird/+bug/748874/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs