Bug #18591 --> turn on the address book collector for email addresses in the message pane. For every

From field we encounter, we'll add the address to the collection address book.
r=bienvenu
This commit is contained in:
mscott%netscape.com 2000-02-15 06:50:53 +00:00
Родитель 5b2f19acd0
Коммит 1531827ca8
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -33,12 +33,14 @@
////////////////////////////////////////////////////////////////////////////////////
var msgHeaderParserProgID = "component://netscape/messenger/headerparser";
var abAddressCollectorProgID = "component://netscape/addressbook/services/addressCollecter";
var msgPaneData;
var currentHeaderData;
var gNumAddressesToShow = 3;
var msgHeaderParser = Components.classes[msgHeaderParserProgID].getService(Components.interfaces.nsIMsgHeaderParser);
var abAddressCollector = Components.classes[abAddressCollectorProgID].getService(Components.interfaces.nsIAbAddressCollecter);
function OnLoadMsgHeaderPane()
{
@ -144,7 +146,9 @@ var messageHeaderSink = {
}
if (headerName == "from")
{
currentHeaderData.FromValue = headerValue;
currentHeaderData.FromValue = headerValue;
if (headerValue && abAddressCollector)
abAddressCollector.collectUnicodeAddress(headerValue);
}
if (headerName == "date")
{