[Pkg-mozext-commits] [compactheader] 96/441: New version 0.99.7: Show email address only is working again. Disable update functionality for AMO version
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 12:28:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository compactheader.
commit 9ebe22d697acfe28a1b2693ba08e87809795381e
Author: joachim.herb <none at none>
Date: Wed Nov 18 21:53:17 2009 +0000
New version 0.99.7:
Show email address only is working again.
Disable update functionality for AMO version
---
.../CompactHeader/content/compactHeaderOverlay.js | 38 +++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
diff --git a/chrome/CompactHeader/content/compactHeaderOverlay.js b/chrome/CompactHeader/content/compactHeaderOverlay.js
index 8923376..2eb4d5c 100644
--- a/chrome/CompactHeader/content/compactHeaderOverlay.js
+++ b/chrome/CompactHeader/content/compactHeaderOverlay.js
@@ -116,7 +116,43 @@ org.mozdev.compactHeader.pane = function() {
}
function coheOutputEmailAddresses(headerEntry, emailAddresses) {
- OutputEmailAddresses(headerEntry, emailAddresses);
+ /* function copied from comm-1.9.1/ mail/ base/ content/ msgHdrViewOverlay.js 771135e6aaf5 */
+ if (!emailAddresses)
+ return;
+
+ var addresses = {};
+ var fullNames = {};
+ var names = {};
+ var numAddresses = 0;
+
+ var msgHeaderParser = Components.classes["@mozilla.org/messenger/headerparser;1"]
+ .getService(Components.interfaces.nsIMsgHeaderParser);
+ numAddresses = msgHeaderParser.parseHeadersWithArray(emailAddresses, addresses, names, fullNames);
+ var index = 0;
+ while (index < numAddresses)
+ {
+ // if we want to include short/long toggle views and we have a long view, always add it.
+ // if we aren't including a short/long view OR if we are and we haven't parsed enough
+ // addresses to reach the cutoff valve yet then add it to the default (short) div.
+ var address = {};
+ address.emailAddress = addresses.value[index];
+ address.fullAddress = fullNames.value[index];
+ if (cohePrefBranch.getBoolPref("headersize.addressstyle")) {
+ address.displayName = address.emailAddress;
+ address.fullAddress = address.emailAddress;
+ } else {
+ address.displayName = names.value[index];
+ }
+ if (headerEntry.useToggle)
+ headerEntry.enclosingBox.addAddressView(address);
+ else
+ updateEmailAddressNode(headerEntry.enclosingBox.emailAddressNode, address);
+ index++;
+ }
+
+ if (headerEntry.useToggle)
+ headerEntry.enclosingBox.buildViews();
+ //OutputEmailAddresses(headerEntry, emailAddresses);
}
// Now, for each view the message pane can generate, we need a global table
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/compactheader.git
More information about the Pkg-mozext-commits
mailing list