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

Re: [PATCH] Make tunnel && smtp play nicely together



* On 2007-10-22 at 19:44 BST, Rocco Rutte wrote:

> * Jonathan Perkin [07-10-22 15:13:51 +0100] wrote:
>
> > 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.
>
> I think disabling $tunnel for the builtin SMTP is wrong. Mutt should
> be abled to think of $smtp_url as an account, too so you'd need
> something like:
>
>   account-hook smtp://me@xxxxxxx@mail.foo.com \
>     set tunnel = ""
>
> in addition because others might want to use $tunnel to tunnel SMTP
> over SSH, too.

Ah thanks, this works as expected.

Regards,

-- 
Jonathan Perkin                                     The NetBSD Project
http://www.perkin.org.uk/                       http://www.netbsd.org/