From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/21600 Path: main.gmane.org!not-for-mail From: Jack Vinson Newsgroups: gmane.emacs.gnus.general Subject: Re: troubles with mail-source on NT, pgnus 0.77 Date: 26 Feb 1999 11:50:26 -0600 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 1035159673 23777 80.91.224.250 (21 Oct 2002 00:21:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:21:13 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA12398 for ; Fri, 26 Feb 1999 12:54:19 -0500 (EST) 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 LAB13052; Fri, 26 Feb 1999 11:53:13 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 26 Feb 1999 11:54:04 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id LAA10648 for ; Fri, 26 Feb 1999 11:53:54 -0600 (CST) Original-Received: from gatekeeper4 (firewall-user@internet1-chi.monsanto.com [204.233.233.43]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA12365 for ; Fri, 26 Feb 1999 12:53:46 -0500 (EST) Original-Received: by gatekeeper4; id LAA23366; Fri, 26 Feb 1999 11:51:26 -0600 (CST) Original-Received: from unknown(137.35.49.136) by gatekeeper4.monsanto.com via smap (V4.2) id xma023175; Fri, 26 Feb 99 11:51:11 -0600 Original-To: ding@gnus.org X-Zippy: Are BOTH T.V.S on?? In-Reply-To: Lars Magne Ingebrigtsen's message of "Fri, 26 Feb 1999 09:29:29 +0100" Original-Lines: 69 User-Agent: Gnus/5.070077 (Pterodactyl Gnus v0.77) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:21600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:21600 >>>>> "LMI" == Lars Magne Ingebrigtsen writes: Jack Vinson writes: [I'm having trouble with ntemacs retrieving mail with movemail, rather than pop3-movemail.] LMI> The new way is more flexible. [snip] LMI> Does LMI> (call-process shell-file-name nil nil nil shell-command-switch LMI> "echo hello") LMI> work? (That is, return 0?) I CAN READ EMAIL WITH PGNUS 0.77. Woo hoo. :-) This is all very curious. I tried the above and it returned zero as Lars predicted. Then I tried it with movemail and it also returned zero. However, it didn't _move_ any mail to the tofile. (There was mail on the server.) So I did a little more digging and it looks like movemail is not actually being called. The ntemacs version of movemail is sitting in the emacs bin directory. For some reason, this directory is NOT in my search path and the movemail command is not being found. This is easy enough to fix. There are a couple other small problems with mail-source-fetch-pop as well: * If I have a :program, then mail-source never asks for the password. I have changed my code to test for :function instead as the one function that I know about (epop3mail) asks for its own passwords. * mail-source-crash-box is "~/.emacs-mail-crash-box" by default. Unfortunately, movemail gets confused with this and gives me the error "movemail: No such file or directory for ~/". I am not sure of the best fix for this - the easy version is to do (setq mail-source-crash-box (expand-file-name mail-source-crash-box)) in my .gnus file. Might there be a better place to do this to ensure trouble-free use for other people? For those die hard emacsers who are running on NT boxes, I had to do the following: * Make sure your PATH includes the directory in which movemail resides. Or make the path explicit in the :program line of the nnmail-spool-file. My settings below make the path explicit. * Set nnmail-spool-file and mail-source-crash-box. Don't forget the "po:" before the name of the inbox. That tells movemail to use the POP protocol. (setq nnmail-spool-file '((pop :server "server.com" :user "user" :program (format "%s %s" (expand-file-name "movemail.exe" exec-directory) "po:%u@%s %t %p") )) mail-source-crash-box (expand-file-name "~/.emacs-mail-crash-box")) * If you have the paths set correctly, you can just do (setq nnmail-spool-file '((pop :server "server.com" :user "user" :program "movemail po:%u@%s %t %p" )) mail-source-crash-box (expand-file-name "~/.emacs-mail-crash-box")) * To get this to work I also had to apply the progn/prog1 patch sent by Aaron Ucko in . -- Jack Vinson http://www.cis.upenn.edu/~vinson/ Zippy: I'm DESPONDENT... I hope there's something DEEP-FRIED under this miniature DOMED STADIUM...