retitle 504530 Documentation issue: tunnel affects IMAP and SMTP; suggest 
account-hook
thanks

Turns out that tunnel intentionally affects all connection types,
including IMAP and SMTP.  Brendan Cully explained to me how the
account-hook mechanism allows setting things like tunnel on a
per-connection basis, which worked perfectly (thanks Brendan!).

I'd suggest adding a note about this to the documentation for "tunnel"
in the muttrc manpage:

"""
Mutt uses the tunnel for all connections it makes, including SMTP, IMAP,
and POP3.  If you want to use a different tunnel for different
connections, use account-hook to set or unset tunnel for each
connection.
"""

A "for example" couldn't hurt.  Feel free to use something like the
configuration I ended up with:

account-hook . 'unset tunnel'
account-hook ^imaps://u...@server/ 'set tunnel="ssh -q server dovecot 
--exec-mail imap"'

- Josh Triplett

-- Package-specific info:
Mutt 1.5.18 (2008-05-17)
Copyright (C) 1996-2008 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.27-1-amd64 (x86_64)
ncurses: ncurses 5.7.20081220 (compiled with 5.6)
libidn: 1.10 (compiled with 1.9)
hcache backend: GDBM version 1.8.3. 10/15/2002 (built Aug 27 2008 08:41:43)
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK   
+USE_POP  +USE_IMAP  +USE_SMTP  +USE_GSS  -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  
+USE_SASL  +HAVE_GETADDRINFO  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
 +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <mutt-...@mutt.org>.
To report a bug, please visit http://bugs.mutt.org/.

patch-1.5.13.cd.ifdef.2
patch-1.5.13.cd.purge_message.3.4
patch-1.5.13.nt+ab.xtitles.4
patch-1.5.4.vk.pgp_verbose_mime
patch-1.5.6.dw.maildir-mtime.1
patch-1.5.8.hr.sensible_browser_position.3

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mutt depends on:
ii  libc6                 2.7-18             GNU C Library: Shared libraries
ii  libcomerr2            1.41.3-1           common error description library
ii  libgdbm3              1.8.3-4            GNU dbm database routines (runtime
ii  libgnutls26           2.4.2-4            the GNU TLS library - runtime libr
ii  libidn11              1.10-3             GNU libidn library, implementation
ii  libkrb53              1.6.dfsg.4~beta1-5 MIT Kerberos runtime libraries
ii  libncursesw5          5.7+20081220-1     shared libraries for terminal hand
ii  libsasl2-2            2.1.22.dfsg1-23    Cyrus SASL - authentication abstra

Versions of packages mutt recommends:
pn  exim4 | mail-transport-agent  <none>     (no description available)
ii  locales                       2.7-18     GNU C Library: National Language (
ii  mime-support                  3.44-1     MIME files 'mime.types' & 'mailcap

Versions of packages mutt suggests:
ii  aspell                        0.60.6-1   GNU Aspell spell-checker
ii  ca-certificates               20080809   Common CA certificates
ii  gnupg                         1.4.9-3    GNU privacy guard - a free PGP rep
pn  mixmaster                     <none>     (no description available)
ii  openssl                       0.9.8g-14  Secure Socket Layer (SSL) binary a
pn  urlview                       <none>     (no description available)

Versions of packages mutt is related to:
ii  mutt                          1.5.18-4   text-based mailreader supporting M
pn  mutt-dbg                      <none>     (no description available)
pn  mutt-patched                  <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to