]> git.ktnx.net Git - icedeb.git/blobdiff - chrome/content/icedeb.js
new button for searching mailing lists by msgid
[icedeb.git] / chrome / content / icedeb.js
index a8f2e9c095ce3ea569c2aa2f0d7525bcc36d7b84..9c393462bca055985bcc77c96c320bd50705dafb 100644 (file)
@@ -85,6 +85,20 @@ IceDeb = {
             loadURI(uri);
         }
     },
+    lookup_ml: function(in_new) {
+        var msg_id = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        if (!msg_id) msg_id = '';
+        var uri="http://lists.debian.org/msgid-search/" + msg_id;
+
+        if (in_new) {
+            var b = getBrowser();
+            var new_tab = b.addTab(uri);
+            b.selectedTab = new_tab;
+        }
+        else {
+            loadURI(uri);
+        }
+    },
 
     btsButton: function (e) {
         if ( e.button == 0 )
@@ -103,6 +117,12 @@ IceDeb = {
             IceDeb.lookup_deb(false)
         else if ( e.button == 1 )
             IceDeb.lookup_deb(true);
+    },
+    mlButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_ml(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_ml(true);
     }
 }