From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31783 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus Access mail spool by ssh Date: 15 Jul 2000 02:29:09 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87lmz7d93d.fsf@sonera.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168154 16032 80.91.224.250 (21 Oct 2002 02:42:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:42:34 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 2CFADD051E for ; Fri, 14 Jul 2000 20:40:54 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id TAC14523; Fri, 14 Jul 2000 19:40:44 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 14 Jul 2000 19:38:43 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id TAA02251 for ; Fri, 14 Jul 2000 19:38:32 -0500 (CDT) Original-Received: from vic20.blipp.com (unknown [195.84.94.187]) by mailhost.sclp.com (Postfix) with ESMTP id E25D5D051E for ; Fri, 14 Jul 2000 20:39:05 -0400 (EDT) Original-Received: from barbar.josefsson.org (IDENT:root@localhost [127.0.0.1]) by vic20.blipp.com (8.10.1/8.10.1) with SMTP id e6F0d3616800; Sat, 15 Jul 2000 02:39:03 +0200 Original-To: Nuutti Kotivuori In-Reply-To: Nuutti Kotivuori's message of "12 Jul 2000 11:52:06 +0300" Mail-Copies-To: never Original-Lines: 44 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Capitol Reef) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31783 Nuutti Kotivuori writes: > $ ssh mail.host.foo > mail$ /usr/sbin/imapd > * PREAUTH mail.host.foo IMAP4rev1 v12.264 server ready > > Most imap servers are able to run from the command line and notice the > situation and start up preauthenticated. And this is what can be used > by fetchmail and the plugin option - and if nnimap does not support > this, it would be nice. I've added support for this. It should be possible to use a method such as (nnimap "yourmailhost" (nnimap-stream shell)) >>From the info pages: `nnimap-stream' The type of stream used to connect to your server. By default, nnimap will detect and automatically use all of the below, with the exception of SSL. (SSL is being replaced by STARTTLS, which can be automatically detected, but it's not widely deployed yet). ... * "shell:" Use a shell command to start IMAP connection. ... For IMAP connections using the `shell' stream, the variable `imap-shell-program' specify what program to call. The variable documentation: `imap-shell-program' is a variable declared in Lisp. -- loaded from "imap" Value: ("ssh %s imapd" "rsh %s imapd" "ssh %g ssh %s imapd" "rsh %g rsh %s imapd") Documentation: A list of strings, containing commands for IMAP connection. Within a string, %s is replaced with the server address, %p with port number on server, %g with `imap-shell-host', and %l with `imap-default-user'. The program should read IMAP commands from stdin and write IMAP response to stdout. Each entry in the list is tried until a successful connection is made.