<<< Date Index >>>     <<< Thread Index >>>

[PATCH] Make tunnel && smtp play nicely together



Hi.  I have the following configuration:

  account-hook imap://imap.foo.com/ ' \
      set tunnel="ssh imap.foo.com rimapd"; \
      set smtp_url="smtp://me@xxxxxxx@mail.foo.com/"'

However, SMTP doesn't work as it tries to connect over $tunnel.  The
attached patch allows the two options to co-exist for the same
account.

Thanks for the great client, happy user since 0.mumble, keep up the
good work!

-- 
Jonathan Perkin                                     The NetBSD Project
http://www.perkin.org.uk/                       http://www.netbsd.org/
--- mutt_socket.c.orig  2007-10-22 13:08:08.000000000 +0100
+++ mutt_socket.c       2007-10-22 13:07:01.000000000 +0100
@@ -280,7 +280,7 @@
   conn->next = Connections;
   Connections = conn;
 
-  if (Tunnel && *Tunnel)
+  if (Tunnel && *Tunnel && account->type != M_ACCT_TYPE_SMTP)
     mutt_tunnel_socket_setup (conn);
   else if (account->flags & M_ACCT_SSL) 
   {