diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:12:23 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:12:23 -0500 |
commit | 20aab9e0c3de593758ef9f7bf78c907e27857506 (patch) | |
tree | 9c214ce3f133f2bcc522e8b874cfdc9794333911 /mailnews/extensions/newsblog/content/FeedItem.js | |
parent | 43db6faf2afe9075d97c59bfc80fb0fd27488606 (diff) | |
download | UXP-20aab9e0c3de593758ef9f7bf78c907e27857506.tar UXP-20aab9e0c3de593758ef9f7bf78c907e27857506.tar.gz UXP-20aab9e0c3de593758ef9f7bf78c907e27857506.tar.lz UXP-20aab9e0c3de593758ef9f7bf78c907e27857506.tar.xz UXP-20aab9e0c3de593758ef9f7bf78c907e27857506.zip |
Bug 1480063 - Remove mimeEncodeSubject (encodeMimePartIIStr_UTF8) from feeds.
Tag #1273
Diffstat (limited to 'mailnews/extensions/newsblog/content/FeedItem.js')
-rw-r--r-- | mailnews/extensions/newsblog/content/FeedItem.js | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/mailnews/extensions/newsblog/content/FeedItem.js b/mailnews/extensions/newsblog/content/FeedItem.js index 5863c420a..c3f9691f8 100644 --- a/mailnews/extensions/newsblog/content/FeedItem.js +++ b/mailnews/extensions/newsblog/content/FeedItem.js @@ -225,25 +225,6 @@ FeedItem.prototype = FeedUtils.RDF_LITERAL_TRUE, true); }, - mimeEncodeSubject: function(aSubject, aCharset) - { - // This routine sometimes throws exceptions for mis-encoded data so - // wrap it with a try catch for now. - let newSubject; - try - { - newSubject = mailServices.mimeConverter.encodeMimePartIIStr_UTF8(aSubject, - false, - aCharset, 9, 72); - } - catch (ex) - { - newSubject = aSubject; - } - - return newSubject; - }, - writeToFolder: function() { FeedUtils.log.trace("FeedItem.writeToFolder: " + this.identity + @@ -261,9 +242,7 @@ FeedItem.prototype = // Compress white space in the subject to make it look better. Trim // leading/trailing spaces to prevent mbox header folding issue at just // the right subject length. - title = title.replace(/[\t\r\n]+/g, " ").trim(); - - this.title = this.mimeEncodeSubject(title, this.characterSet); + this.title = title.replace(/[\t\r\n]+/g, " ").trim(); // If the date looks like it's in W3C-DTF format, convert it into // an IETF standard date. Otherwise assume it's in IETF format. |