зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5b2f19acd0
Коммит
1531827ca8
|
@ -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")
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче