Description: Configure SOCKS port to be 9050
 The default port is 9150, we want to use the system Tor port of 9050.
Author: Jacob Appelbaum <jacob@appelbaum.net>
Bug-Debian: http://bugs.debian.org/756054
Reviewed-By: Jacob Appelbaum <jacob@appelbaum.net>
Last-Update: 2014-10-24

--- torbirdy-0.1.3.orig/components/torbirdy.js
+++ torbirdy-0.1.3/components/torbirdy.js
@@ -43,7 +43,7 @@ const TorBirdyPrefs = {
 
   // Configure Thunderbird to use the SOCKS5 proxy.
   "network.proxy.socks": "127.0.0.1",
-  "network.proxy.socks_port": 9150,
+  "network.proxy.socks_port": 9050,
   "network.proxy.socks_version": 5,
 
   // Set DNS proxying through SOCKS5.
--- torbirdy-0.1.3.orig/chrome/content/preferences.js
+++ torbirdy-0.1.3/chrome/content/preferences.js
@@ -25,7 +25,7 @@ if (!org.torbirdy.prefs) org.torbirdy.pr
 
   pub.setDefaultPrefs = function() {
     pub.prefs.setCharPref("network.proxy.socks", "127.0.0.1");
-    pub.prefs.setIntPref("network.proxy.socks_port", 9150);
+    pub.prefs.setIntPref("network.proxy.socks_port", 9050);
     pub.prefs.clearUserPref("network.proxy.http");
     pub.prefs.clearUserPref("network.proxy.http_port");
     pub.prefs.clearUserPref("network.proxy.ssl");
@@ -494,7 +494,7 @@ if (!org.torbirdy.prefs) org.torbirdy.pr
     // Tor.
     if (anonService === 0) {
       pub.socksHost.value = '127.0.0.1';
-      pub.socksPort.value = '9150';
+      pub.socksPort.value = '9050';
     }
 
     // JonDo/Whonix.
