← Back to team overview

desktop-packages team mailing list archive

[Bug 748874]

 

(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 Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/748874

Title:
  plaintext domain gets HTML mail

Status in Mozilla Thunderbird Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  New

Bug description:
  Binary package hint: thunderbird

  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223
  Thunderbird/3.1.8 on lucid

  I have user_pref("mailnews.plaintext_domains",
  "docomo.ne.jp,debian.org"); in my prefs.js.  Yet, whenever I write a
  mail to @debian.org or @bugs.debian.org it is sent as HTML mail.  Grr.

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/748874/+subscriptions