fix spotlight mozeml generation r=sid0, 468198
authorDavid Bienvenu <bienvenu@nventure.com>
Sun, 07 Dec 2008 13:44:06 -0800
changeset 1365 cf46abd935a704a1bdc3e64677960f4db8353e38
parent 1364 9d25c19183ef429c05c832dc4fef0fc4914ee5fb
child 1366 e4a95ddb4eaa354e41a0c88f3cabe46d5905c56a
push idunknown
push userunknown
push dateunknown
reviewerssid0, 468198
bugs468198
fix spotlight mozeml generation r=sid0, 468198
mail/components/search/nsSpotlightIntegration.js
--- a/mail/components/search/nsSpotlightIntegration.js
+++ b/mail/components/search/nsSpotlightIntegration.js
@@ -125,17 +125,17 @@ onStartRequest: function(request, contex
 
     if (!this.unicodeConverter)
     {
       this.unicodeConverter = Cc["@mozilla.org/intl/scriptableunicodeconverter"]
       .createInstance(Ci.nsIScriptableUnicodeConverter);
       this.unicodeConverter.charset = "UTF-8";
 
     }
-    var utf8Subject  = this.unicodeConverter.ConvertFromUnicode(this.subject);
+    var utf8Subject  = this.unicodeConverter.ConvertFromUnicode(this.msgHdr.mime2DecodedSubject);
     utf8Subject += this.unicodeConverter.Finish();
     utf8Subject = xmlEscapeString(utf8Subject);
     this.outputStream.write(utf8Subject, utf8Subject.length);
 
     // need to write the subject in utf8 as the title
     this.outputStream.write("</string>\n<key>kMDItemDisplayName</key>\n<string>", 48);
     this.outputStream.write(utf8Subject, utf8Subject.length);