Bug 782899: Pass saneBodySize: true option in to gloda MIME builder when creating message summaries; r=asuth,a=Standard8
authorIrving Reid <irving@mozilla.com>
Wed, 29 Aug 2012 23:47:27 -0400
changeset 30856 4c39c77cfe368a31e39ac1e433c0feeb958a2a43
parent 30855 b4366b1e750cff87b687c87bb043abe5264b085f
child 30857 f7ae9cfd45409ea906086112f2b92e123405744c
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth, Standard8
bugs782899
Bug 782899: Pass saneBodySize: true option in to gloda MIME builder when creating message summaries; r=asuth,a=Standard8
mail/base/content/selectionsummaries.js
mailnews/extensions/newsblog/content/newsblogOverlay.js
--- a/mail/base/content/selectionsummaries.js
+++ b/mail/base/content/selectionsummaries.js
@@ -316,17 +316,17 @@ MultiMessageSummary.prototype = {
             return;
 
           let [text, meta] = mimeMsgToContentSnippetAndMeta(aMimeMsg,
                                                             aMsgHdr.folder,
                                                             SNIPPET_LENGTH);
           snippetNode.textContent = text;
           if (meta.author)
             authorNode.textContent = meta.author;
-        });
+        }, false, {saneBodySize: true});
       } catch (e if e.result == Components.results.NS_ERROR_FAILURE) {
         // Offline messages generate exceptions, which is unfortunate.  When
         // that's fixed, this code should adapt. XXX
         snippetNode.textContent = "...";
       }
 
       // get the subject node.
       let subjectNode = msgNode.getElementsByClassName("subject")[0];
@@ -587,17 +587,17 @@ ThreadSummary.prototype = {
             return;
           }
           let [text, meta] = mimeMsgToContentSnippetAndMeta(aMimeMsg,
                                                             aMsgHdr.folder,
                                                             SNIPPET_LENGTH);
           snippetNode.textContent = text;
           if (meta.author)
             senderNode.textContent = meta.author;
-        });
+        }, false, {saneBodySize: true});
       } catch (e if e.result == Components.results.NS_ERROR_FAILURE) {
         // Offline messages generate exceptions, which is unfortunate.  When
         // that's fixed, this code should adapt. XXX
         snippetNode.textContent = "...";
       }
       let tagsNode = msgNode.getElementsByClassName("tags")[0];
       let tags = this.getTagsForMsg(msgHdr);
       for each (let [,tag] in Iterator(tags)) {
--- a/mailnews/extensions/newsblog/content/newsblogOverlay.js
+++ b/mailnews/extensions/newsblog/content/newsblogOverlay.js
@@ -98,17 +98,17 @@ function openComposeWindowForRSSArticle(
           params.bodyIsLink = true;
           MailServices.compose.OpenComposeWindowWithParams(null, params);
         }
         else
           // No content-base url, use the summary.
           MailServices.compose.OpenComposeWindow(aMsgComposeWindow, aMsgHdr, aMessageUri,
                                                  aType, aFormat, aIdentity, aMsgWindow);
 
-      });
+      }, false, {saneBodySize: true});
     }
     catch (ex)
     {
       // Error getting header, use the summary.
       MailServices.compose.OpenComposeWindow(aMsgComposeWindow, aMsgHdr, aMessageUri,
                                              aType, aFormat, aIdentity, aMsgWindow);
     }
   }