зеркало из https://github.com/mozilla/gecko-dev.git
Bug 312474 IMAP/RSS message headers not shown if there is no POP-mail account set up
p=me r=mscott sr=bienvenu
This commit is contained in:
Родитель
9ab613d889
Коммит
2faecee410
|
@ -419,26 +419,26 @@ var messageHeaderSink = {
|
|||
if (msgHeaderParser && header.headerValue)
|
||||
fromMailbox = msgHeaderParser.extractHeaderAddressMailboxes(null, header.headerValue);
|
||||
|
||||
if (header.headerValue) {
|
||||
if ((gCollectIncoming && !dontCollectAddress) ||
|
||||
(gCollectNewsgroup && dontCollectAddress))
|
||||
if (header.headerValue)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!dontCollectAddress && (gCollectIncoming || gCollectNewsgroup || gCollectOutgoing))
|
||||
{
|
||||
if (!abAddressCollector)
|
||||
abAddressCollector = Components.classes[abAddressCollectorContractID].getService(Components.interfaces.nsIAbAddressCollecter);
|
||||
abAddressCollector = Components.classes[abAddressCollectorContractID]
|
||||
.getService(Components.interfaces.nsIAbAddressCollecter);
|
||||
|
||||
gCollectAddress = header.headerValue;
|
||||
if (gCollectOutgoing)
|
||||
// collect, but only update existing cards, unknown preferred send format
|
||||
gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, false, Components.interfaces.nsIAbPreferMailFormat.unknown);', 2000);
|
||||
else
|
||||
// collect, and add card if doesn't exist, unknown preferred send format
|
||||
gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, true, Components.interfaces.nsIAbPreferMailFormat.unknown);', 2000);
|
||||
}
|
||||
else if (gCollectOutgoing)
|
||||
{
|
||||
if (!abAddressCollector)
|
||||
abAddressCollector = Components.classes[abAddressCollectorContractID].getService(Components.interfaces.nsIAbAddressCollecter);
|
||||
|
||||
// collect, but only update existing cards, unknown preferred send format
|
||||
gCollectAddress = header.headerValue;
|
||||
gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddress, false, Components.interfaces.nsIAbPreferMailFormat.unknown);', 2000);
|
||||
}
|
||||
catch(ex) {}
|
||||
}
|
||||
} // if lowerCaseHeaderName == "from"
|
||||
} // while we have more headers to parse
|
||||
|
|
Загрузка…
Ссылка в новой задаче