Bug 787968 Replace nsIMsgIncomingServer.useSSL with nsMsgSocketType.SSL (missing from patch for Bug 525238) r=Neil a=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Tue, 04 Sep 2012 12:12:25 +0800
changeset 30854 7621b825fdaa703bace0bc3c1da4e5c1ee079028
parent 30853 5b2c353dc1b1588cd4e41df36d9742299d28eb9a
child 30855 b4366b1e750cff87b687c87bb043abe5264b085f
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)
reviewersNeil, IanN
bugs787968, 525238
Bug 787968 Replace nsIMsgIncomingServer.useSSL with nsMsgSocketType.SSL (missing from patch for Bug 525238) r=Neil a=IanN.
suite/mailnews/mailContextMenus.js
--- a/suite/mailnews/mailContextMenus.js
+++ b/suite/mailnews/mailContextMenus.js
@@ -676,17 +676,18 @@ function CreateFilterFromMail(emailAddre
 
 function CopyMessageUrl()
 {
   try
   {
     var hdr = gDBView.hdrForFirstSelectedMessage;
     var server = hdr.folder.server;
 
-    var url = (server.socketType == Components.interfaces.nsIMsgIncomingServer.useSSL) ?
+    // TODO let backend construct URL and return as attribute
+    var url = (server.socketType == Components.interfaces.nsMsgSocketType.SSL) ?
               "snews://" : "news://";
     url += server.hostName + ":" + server.port + "/" + hdr.messageId;
     CopyString(url);
   }
   catch (ex)
   {
     dump("ex="+ex+"\n");
   }