diff --git a/mail/base/content/newmailalert.xul b/mail/base/content/newmailalert.xul
index 17524b185d9..da3cb75e6e0 100644
--- a/mail/base/content/newmailalert.xul
+++ b/mail/base/content/newmailalert.xul
@@ -53,8 +53,7 @@
-
-
+
@@ -63,14 +62,14 @@
-
+
-
+
-
+
diff --git a/mail/themes/qute/mail/newmailalert.css b/mail/themes/qute/mail/newmailalert.css
index 315666733a1..6c4801bb244 100644
--- a/mail/themes/qute/mail/newmailalert.css
+++ b/mail/themes/qute/mail/newmailalert.css
@@ -81,16 +81,24 @@
because it controls how large the preview, subject and sender text can be
before cropping kicks in */
max-width: 450px;
- padding-right: 5px;
+ padding: 0px 5px 0px 5px;
}
.folderSummary-subject {
- padding-left: 5px;
+ font-weight: bold;
+}
+
+.folderSummary-sender, .folderSummary-subject {
+ cursor: inherit;
}
.folderSummary-previewText {
color: grey;
- padding-left: 5px;
+}
+
+.folderSummaryMessage:hover > .folderSummary-message-row {
+ cursor: pointer;
+ color: blue;
}
#closeButton {
@@ -98,7 +106,7 @@
-moz-image-region: rect(0px, 16px, 16px, 0px);
-moz-appearance: none;
border: none !important;
- padding: 0px;
+ padding: 2px 0px 0px 0px;
}
#closeButton > .toolbarbutton-icon {
diff --git a/mailnews/base/resources/content/mailWidgets.xml b/mailnews/base/resources/content/mailWidgets.xml
index 6cdf2362045..201832b0d24 100644
--- a/mailnews/base/resources/content/mailWidgets.xml
+++ b/mailnews/base/resources/content/mailWidgets.xml
@@ -2129,7 +2129,10 @@
var names = {};
var emails = {};
var numAddresses = hdrParser.parseHeadersWithArray(msgHdr.mime2DecodedAuthor, emails, names, {});
- msgPopup.setAttribute('sender', ' - ' + (names.value[0] ? names.value[0] : emails.value[0]));
+ msgPopup.setAttribute('sender', names.value[0] ? names.value[0] : emails.value[0]);
+ msgPopup.messageUri = aFolder.getUriForMsg(msgHdr);
+ msgPopup.folderUri = aFolder.URI;
+ msgPopup.msgKey = msgHdr.messageKey;
document.getAnonymousNodes(this)[0].appendChild(msgPopup);
}
if (document.getAnonymousNodes(this)[0].childNodes.length >= this.mMaxMsgHdrsInPopup)
@@ -2154,7 +2157,7 @@
-
+
@@ -2180,5 +2183,36 @@
]]>
+
+
+
+
+
diff --git a/mailnews/base/src/nsMessengerUnixIntegration.cpp b/mailnews/base/src/nsMessengerUnixIntegration.cpp
index d8feb088aa8..eb2b7411e87 100644
--- a/mailnews/base/src/nsMessengerUnixIntegration.cpp
+++ b/mailnews/base/src/nsMessengerUnixIntegration.cpp
@@ -272,12 +272,12 @@ nsresult nsMessengerUnixIntegration::AlertFinished()
nsresult nsMessengerUnixIntegration::AlertClicked()
{
- // make sure we don't insert the icon in the system tray since the user clicked on the alert.
+#ifndef MOZ_THUNDERBIRD
nsXPIDLCString folderURI;
GetFirstFolderWithNewMail(getter_Copies(folderURI));
openMailWindow(NS_LITERAL_STRING("mail:3pane").get(), folderURI);
-
+#endif
return NS_OK;
}
diff --git a/mailnews/base/src/nsMessengerWinIntegration.cpp b/mailnews/base/src/nsMessengerWinIntegration.cpp
index 63d7a203a69..35783c156f5 100644
--- a/mailnews/base/src/nsMessengerWinIntegration.cpp
+++ b/mailnews/base/src/nsMessengerWinIntegration.cpp
@@ -74,7 +74,7 @@
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "nsISupportsPrimitives.h"
-
+#include "nsIInterfaceRequestorUtils.h"
#include "nsNativeCharsetUtils.h"
// XXX test for this as long as there are still non-xul-app suite builds
@@ -620,14 +620,29 @@ nsresult nsMessengerWinIntegration::AlertFinished()
nsresult nsMessengerWinIntegration::AlertClicked()
{
+#ifdef MOZ_THUNDERBIRD
+ nsresult rv;
+ nsCOMPtr mailSession = do_GetService(NS_MSGMAILSESSION_CONTRACTID, &rv);
+ NS_ENSURE_SUCCESS(rv,rv);
+ nsCOMPtr topMostMsgWindow;
+ rv = mailSession->GetTopmostMsgWindow(getter_AddRefs(topMostMsgWindow));
+ if (topMostMsgWindow)
+ {
+ nsCOMPtr domWindow;
+ rv = topMostMsgWindow->GetDomWindow(getter_AddRefs(domWindow));
+ NS_ENSURE_SUCCESS(rv, rv);
+
+ activateWindow(domWindow);
+ }
+#else
// make sure we don't insert the icon in the system tray since the user clicked on the alert.
mSuppressBiffIcon = PR_TRUE;
-
+
nsXPIDLCString folderURI;
GetFirstFolderWithNewMail(getter_Copies(folderURI));
openMailWindow(NS_LITERAL_STRING("mail:3pane").get(), folderURI);
-
+#endif
return NS_OK;
}