From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31707 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus Access mail spool by ssh Date: Mon, 10 Jul 2000 13:48:46 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168086 15603 80.91.224.250 (21 Oct 2002 02:41:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:41:26 +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 382EFD051E for ; Mon, 10 Jul 2000 07:51:25 -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 GAC25851; Mon, 10 Jul 2000 06:51:12 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 10 Jul 2000 06:48:59 -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 GAA05117 for ; Mon, 10 Jul 2000 06:48:48 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id 696D5D051E for ; Mon, 10 Jul 2000 07:49:21 -0400 (EDT) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id NAA15262; Mon, 10 Jul 2000 13:48:46 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id NAA01844; Mon, 10 Jul 2000 13:48:46 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id NAA28176; Mon, 10 Jul 2000 13:48:46 +0200 X-Authentication-Warning: lucy.cs.uni-dortmund.de: grossjoh set sender to Kai.Grossjohann@CS.Uni-Dortmund.DE using -f Original-To: Harry Putnam In-Reply-To: Harry Putnam's message of "09 Jul 2000 21:56:55 -0700" User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.90 Original-Lines: 28 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31707 Harry Putnam writes: > The only monkey wrench here was that I couldn't find `movemail' Its > nowhere in my path, which is very extensive. When you do `ssh $host $command', no environment is set on the remote host. In particular, /etc/profile and ~/.profile are not read, since it's not a login shell. There is a file ~/.ssh/environment or somesuch which gets executed, see the ssh documentation for details. > The cool thing is someone already wrote almost the exact script in > gnus info at Mail Source Specifiers. > > (setq mail-sources > '((file :prescript "ssh reader@reader ~/scripts/getmail >%t "))) > > What does the specifier "t" do here? Does just mean to the default? The mail-sources stuff writes the mail to a tmp file, maybe ~/.mail-source-crashbox or ~/Mail/Incoming*. Since your script does not know the tmp file name, mail-sources provides it. If you put %t into the command name, that's replaced by the tmp file name. kai -- I like BOTH kinds of music.