From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46099 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: IMAP/SSL with gnus Date: Mon, 12 Aug 2002 23:13:05 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87vg6m7i6g.fsf@giotto.sj.ru> <87n0ryqoax.fsf@pale.loc> <87it2l6zk8.fsf@giotto.sj.ru> <873ctp4495.fsf@giotto.sj.ru> <87bs87lxtr.fsf@pale.loc> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029186809 21457 127.0.0.1 (12 Aug 2002 21:13:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2002 21:13:29 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17eMVC-0005Zd-00 for ; Mon, 12 Aug 2002 23:13:26 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17eMVS-0006RS-00; Mon, 12 Aug 2002 16:13:42 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 12 Aug 2002 16:14:11 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA07403 for ; Mon, 12 Aug 2002 16:13:54 -0500 (CDT) Original-Received: (qmail 3572 invoked by alias); 12 Aug 2002 21:13:13 -0000 Original-Received: (qmail 3567 invoked from network); 12 Aug 2002 21:13:13 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 12 Aug 2002 21:13:13 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.5/8.12.5) with ESMTP id g7CLD1i2011198; Mon, 12 Aug 2002 23:13:01 +0200 Original-To: Alexander Kotelnikov Mail-Copies-To: nobody X-Hashcash: 020812:sacha@giotto.sj.ru:fae1ece43d4c627b X-Hashcash: 020812:ding@gnus.org:3869f0fb6a493f2a Original-Lines: 35 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46099 Alexander Kotelnikov writes: > SJ> Run this on your client > SJ> > SJ> ssh -L 1430:yourmailserver:143 yxa.extundo.com > SJ> > SJ> and then connect to port 1430 on localhost with Gnus. > > Ah... this approach has some disadvantages: > 1. One have to establish ssh connection before starting gnus You could invoke the command via a hook. > 2. gnus is too smart and think it is plugged even if you put it into > unplugged, when you conncet to localhost This seems strange, why does it do this? Did you agentize the server in question? > So the thing that I really would like to work is (nnimap-stream shell) > with ssh. Is it possible? Yes. Err, what problems did you have? I tried to add the following server in the server buffer now and it worked fine (I use non-password ssh logins): (nnimap "foo" (nnimap-stream shell) (imap-shell-program ("ssh MYMAILSERVER telnet localhost 143")) (imap-server-eol "\n")) I committed two minor bug fixes that makes it possible to specify a non-list `imap-shell-program' (undocumented, but nice) and made Gnus discard initial junk in the network stream (like the telnet greeting), but it should have worked before too.