diff --git a/mozilla/mail/base/content/messenger.css b/mozilla/mail/base/content/messenger.css
index 4077024793a..034f73c99a7 100644
--- a/mozilla/mail/base/content/messenger.css
+++ b/mozilla/mail/base/content/messenger.css
@@ -161,6 +161,16 @@ dummy.usesMailWidgets {
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchpopup");
}
+.folderSummaryPopup
+{
+ -moz-binding: url("chrome://messenger/content/mailWidgets.xml#folderSummary-popup");
+}
+
+folderSummaryMessage
+{
+ -moz-binding: url("chrome://messenger/content/mailWidgets.xml#folderSummary-message");
+}
+
.foldersTree
{
margin: 0px;
diff --git a/mozilla/mail/base/content/messenger.xul b/mozilla/mail/base/content/messenger.xul
index e2c5752c2ac..60276c0f120 100644
--- a/mozilla/mail/base/content/messenger.xul
+++ b/mozilla/mail/base/content/messenger.xul
@@ -161,6 +161,8 @@
+
+
@@ -184,6 +186,7 @@
datasources="rdf:null"
statedatasource="rdf:mailnewsfolders"
flags="dont-build-content"
+ tooltip="folderpopup"
ondraggesture="BeginDragFolderTree(event);"
onselect="FolderPaneSelectionChange();">
diff --git a/mozilla/mail/themes/pinstripe/mail/folderPane.css b/mozilla/mail/themes/pinstripe/mail/folderPane.css
index a151631edbc..6e86a53fe5f 100644
--- a/mozilla/mail/themes/pinstripe/mail/folderPane.css
+++ b/mozilla/mail/themes/pinstripe/mail/folderPane.css
@@ -133,3 +133,15 @@ treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
.tree-folder-checkbox {
list-style-image: none;
}
+
+/* ::::: Folder Summary Popup ::::: */
+
+.folderSummary-subject {
+ font-weight: bold;
+ max-width: 25em;
+}
+
+.folderSummary-previewText {
+ color: grey;
+ max-width: 35em;
+}
diff --git a/mozilla/mail/themes/qute/mail/folderPane.css b/mozilla/mail/themes/qute/mail/folderPane.css
index 169bf55e1bb..4e95040bc0e 100644
--- a/mozilla/mail/themes/qute/mail/folderPane.css
+++ b/mozilla/mail/themes/qute/mail/folderPane.css
@@ -143,4 +143,16 @@ treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
.tree-folder-checkbox {
list-style-image: none;
-}
\ No newline at end of file
+}
+
+/* ::::: Folder Summary Popup ::::: */
+
+.folderSummary-subject {
+ font-weight: bold;
+ max-width: 25em;
+}
+
+.folderSummary-previewText {
+ color: grey;
+ max-width: 35em;
+}
diff --git a/mozilla/mailnews/base/resources/content/mailWidgets.xml b/mozilla/mailnews/base/resources/content/mailWidgets.xml
index c7c1f6eabf4..407c84245e9 100644
--- a/mozilla/mailnews/base/resources/content/mailWidgets.xml
+++ b/mozilla/mailnews/base/resources/content/mailWidgets.xml
@@ -1978,4 +1978,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/mailnews/base/util/nsMsgDBFolder.cpp b/mozilla/mailnews/base/util/nsMsgDBFolder.cpp
index 82298d418a0..a94f4da3204 100644
--- a/mozilla/mailnews/base/util/nsMsgDBFolder.cpp
+++ b/mozilla/mailnews/base/util/nsMsgDBFolder.cpp
@@ -5143,6 +5143,7 @@ nsresult nsMsgDBFolder::GetMsgPreviewTextFromStream(nsIMsgDBHdr *msgHdr, nsIInpu
if (!boundary.IsEmpty() && boundary.Equals(curLine))
break;
msgBody.Append(curLine);
+ msgBody.Append(" "); // convert each end of line delimter into a space
// how much html should we parse for text? 2K? 4K?
if (msgBody.Length() > 2048 || (!msgBodyIsHtml && msgBody.Length() > 255))
break;