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:
bugzilla%arlen.demon.co.uk 2005-11-07 22:58:03 +00:00
Родитель 9ab613d889
Коммит 2faecee410
1 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -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