From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26665 Path: main.gmane.org!not-for-mail From: Ulf Betlehem Newsgroups: gmane.emacs.gnus.general Subject: Re: mail-sources on a different machine? Date: 11 Nov 1999 18:45:52 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <87yac5ugcf.fsf@lemon.tky.hut.fi> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163831 20614 80.91.224.250 (21 Oct 2002 01:30:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:30:31 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA19821 for ; Thu, 11 Nov 1999 11:46:23 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB04842; Thu, 11 Nov 1999 10:46:19 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 11 Nov 1999 10:46:35 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA08230 for ; Thu, 11 Nov 1999 10:46:25 -0600 (CST) Original-Received: from lemon.tky.hut.fi (root@lemon.tky.hut.fi [130.233.26.112]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA19816 for ; Thu, 11 Nov 1999 11:45:54 -0500 (EST) Original-Received: by lemon.tky.hut.fi via sendmail from stdin id (Debian Smail3.2.0.102) for ding@gnus.org; Thu, 11 Nov 1999 18:45:52 +0200 (EET) Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "25 Sep 1999 09:59:36 +0200" Original-Lines: 37 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:26665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:26665 Lars Magne Ingebrigtsen writes: > "Rene Matteau" writes: > > > (setq mail-sources '( > > (file :path "/matteau@matteau:/var/spool/mail/matteau") > > )) > > I don't think this will work. We use movemail to move mail, and it > doesn't understand ange-ftp file names. One could use `rename-file', > but that wouldn't do file locking, which means that You Would Lose > Mail Sooner Or Later, which is not nice. I'm using the following mail-sources for retrieving mail from my local spool as well as fetching mail from my primary mail- host. Maybe not that elegant, but its fast and authentication is conveniently handled by ssh-agent. (setq mail-sources '((file) (file :prescript "ssh host bin/getmail >%t"))) ------------------------------------------ #!/bin/sh # # getmail - move mail from spool to stdout # # flu@iki.fi # MOVEMAIL=/usr/lib/emacs/20.3/i386-redhat-linux/movemail TMP=~/Mail/tmp rm -f $TMP; $MOVEMAIL $MAIL $TMP >/dev/null && cat $TMP ------------------------------------------ -- flu