From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: rmail pop error Date: Tue, 19 Feb 2008 21:17:23 -0500 Message-ID: References: <2k63wxap4s.fsf@fencepost.gnu.org> <437ihaszib.fsf@fencepost.gnu.org> <39zltzgo4d.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203473861 19517 80.91.229.12 (20 Feb 2008 02:17:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 02:17:41 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Tim Hesterberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 03:18:04 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JReX4-0008Cf-WA for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Feb 2008 03:18:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JReWa-0003vq-4J for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2008 21:17:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JReWU-0003sc-Sp for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:17:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JReWS-0003pa-TO for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:17:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JReWS-0003pR-Od for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:17:24 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JReWS-0008Ph-Ce for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:17:24 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JReWR-0002ja-TC; Tue, 19 Feb 2008 21:17:23 -0500 X-Spook: Rand Corporation kilo class cryptographic TWA kibo X-Ran: JxeG&`F3j\px_l&C8HGrdW,91%na/s1dUG|Jnllqz!t:08Fi+wLiE8\0"CpzkB1.=DI&d! X-Hue: white X-Attribution: GM In-Reply-To: (Tim Hesterberg's message of "Tue, 19 Feb 2008 17:34:42 -0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17546 Archived-At: Tim Hesterberg wrote: > (rmail-autodetect) > returns nil in both 22.1.90 and 22.1.1 (after M-x rmail) [...] > This does exist, and is executable > d:/emacs/emacs-22.1.90/bin/movemail.exe Thanks; I think I see what's going on now. Does it work in 22.1.90 if you add: (setq rmail-movemail-program "d:/emacs/emacs-22.1.90/bin/movemail.exe") to your setup? Without doing that, does this patch fix it? (Apply to rmail.el in 22.1.90, recompile the file, restart Emacs.) *** rmail.el 31 Jan 2008 10:39:19 -0000 1.433.2.9 --- rmail.el 20 Feb 2008 02:11:19 -0000 *************** *** 214,220 **** (dolist (dir (append rmail-movemail-search-path exec-path (list exec-directory))) (when (and dir (file-accessible-directory-p dir)) ! (let ((progname (expand-file-name "movemail" dir))) (when (and (not (file-directory-p progname)) (file-executable-p progname)) (let ((x (rmail-probe progname))) --- 214,227 ---- (dolist (dir (append rmail-movemail-search-path exec-path (list exec-directory))) (when (and dir (file-accessible-directory-p dir)) ! ;; Previously this used to work on Windows by luck (?), ! ;; because rmail-insert-inbox-text fell back to ! ;; (expand-file-name "movemail" exec-directory). ! ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00087.html ! (let ((progname (expand-file-name ! (concat "movemail" ! (if (memq system-type '(ms-dos windows-nt)) ! ".exe")) dir))) (when (and (not (file-directory-p progname)) (file-executable-p progname)) (let ((x (rmail-probe progname)))