mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Bug 1480063 - Remove mimeEncodeSubject (encodeMimePartIIStr_UTF8) from feeds.
Tag #1273
This commit is contained in:
parent
8a8393dbc4
commit
a74473ec0b
1 changed files with 1 additions and 22 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue