{"id":126,"date":"2006-12-24T13:30:06","date_gmt":"2006-12-24T18:30:06","guid":{"rendered":"http:\/\/ilias.ca\/blog\/2006\/12\/making-firefox-use-thunderbird-for-web-feeds\/"},"modified":"2009-12-04T15:47:10","modified_gmt":"2009-12-04T19:47:10","slug":"making-firefox-use-thunderbird-for-web-feeds","status":"publish","type":"post","link":"https:\/\/ilias.ca\/blog\/2006\/12\/making-firefox-use-thunderbird-for-web-feeds\/","title":{"rendered":"Making Firefox use Thunderbird for web feeds"},"content":{"rendered":"<p>I was saving this tip for today, because it&#8217;s a bit of a Christmas  present, courtesy of <a href=\"http:\/\/forums.mozillazine.org\/viewtopic.php?t=480357\">alta88<\/a>.<\/p>\n<p>Users of both <a href=\"http:\/\/www.getfirefox.com\/\">Firefox<\/a> and <a href=\"http:\/\/www.getthunderbird.com\/\">Thunderbird<\/a> may have noticed that when you get  the feed preview screen in Firefox 2, and use the drop-down list to add  the feed to Thunderbird, it does not work. There are bugs filed for  this. One that I know of, is bug <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=350735\">350735<\/a>.<\/p>\n<p>To make it work, you&#8217;ll need to close Firefox, and go into the  \\components\\ folder, in the Firefox program directory. (eg. <em><strong>C:\\Program  Files\\Mozilla Firefox\\components<\/strong><\/em> ), and open the file <strong>FeedConverter.js<\/strong> in a text editor. You had better <span style=\"color: #ff0000\">make a backup<\/span> of it first. Because of  the line breaks, Notepad won&#8217;t work; but Wordpad will work.<\/p>\n<p>At around line 332, you&#8217;ll see text that looks like:<\/p>\n<pre>case \"client\":\r\nvar clientApp =\r\nprefs.getComplexValue(PREF_SELECTED_APP, Ci.nsILocalFile);\r\n\/\/@line 393 \"\/cygdrive\/c\/builds\/tinderbox\/Fx-Mozilla1.8-release\/WINNT_5.2_Depend\/mozilla\/browser\/components\/feeds\/src\/FeedConverter.js\"\r\nvar ss =\r\nCc[\"@mozilla.org\/browser\/shell-service;1\"].\r\ngetService(Ci.nsIShellService_MOZILLA_1_8_BRANCH);\r\nss.openApplicationWithURI(clientApp, spec);\r\nbreak;<\/pre>\n<p>Replace that (select, copy, paste) with:<\/p>\n<pre>case \"client\":\r\nconst PREF_SELECTED_APP_ARGS = \"browser.feeds.handlers.application.args\";\r\nconst PREF_SELECTED_APP_URIPREFIX = \"browser.feeds.handlers.application.uriPrefix\";\r\n\r\nvar clientApp = prefs.getComplexValue(PREF_SELECTED_APP, Ci.nsILocalFile);\r\nvar feedhandlerArgs = safeGetCharPref(PREF_SELECTED_APP_ARGS, Ci.nsIILocalFile);\r\nvar uriPrefix = safeGetCharPref(PREF_SELECTED_APP_URIPREFIX, Ci.nsIILocalFile);\r\n\r\nvar file = Cc[\"@mozilla.org\/file\/local;1\"].createInstance(Components.interfaces.nsILocalFile);\r\nfile.initWithPath(clientApp.persistentDescriptor);\r\nvar process = Cc[\"@mozilla.org\/process\/util;1\"].createInstance(Components.interfaces.nsIProcess);\r\nprocess.init(file);\r\n\r\nif (uriPrefix) spec = uriPrefix + spec;\r\nif (feedhandlerArgs)\r\nvar args = [feedhandlerArgs, spec];\r\nelse\r\nvar args = [spec];\r\n\r\nprocess.run(false, args, args.length);\r\nbreak;<\/pre>\n<p>Save and close FeedConverter.js.<\/p>\n<p>Next, open Firefox and use <strong>about:config<\/strong> to <a href=\"http:\/\/www.mozilla.org\/support\/firefox\/edit#aboutconfig\">add the following preferences<\/a>:<br \/>\nAdd the <span style=\"font-weight: bold\">String<\/span> preference <var style=\"font-weight: bold; color: #333399\">browser.feeds.handlers.application.args<\/var>.<br \/>\nSet the value to <var style=\"font-weight: bold; color: #333399\">-mail<\/var>.<br \/>\nAdd the <span style=\"font-weight: bold\">String<\/span> preference <var style=\"font-weight: bold; color: #333399\">browser.feeds.handlers.application.uriPrefix<\/var>.<br \/>\nSet the value to <var style=\"font-weight: bold; color: #333399\">feed:<\/var>. (Include the colon.)<\/p>\n<p>Enjoy, and have a merry Christmas. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was saving this tip for today, because it&#8217;s a bit of a Christmas present, courtesy of alta88. Users of both Firefox and Thunderbird may have noticed that when you get the feed preview screen in Firefox 2, and use&hellip;  <\/p>\n<p class=\"more-link\"><a href=\"https:\/\/ilias.ca\/blog\/2006\/12\/making-firefox-use-thunderbird-for-web-feeds\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,5],"tags":[],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-firefox","category-mozilla","category-thunderbird"],"_links":{"self":[{"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":1,"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ilias.ca\/blog\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}