From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Hesterberg Newsgroups: gmane.emacs.bugs Subject: Re: rmail pop error Date: Tue, 19 Feb 2008 18:51:58 -0800 Message-ID: References: <2k63wxap4s.fsf@fencepost.gnu.org> <437ihaszib.fsf@fencepost.gnu.org> <39zltzgo4d.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1203475943 24179 80.91.229.12 (20 Feb 2008 02:52:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 02:52:23 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 03:52:47 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 1JRf4b-00076z-EU for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Feb 2008 03:52:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRf46-00077U-Gj for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2008 21:52:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRf42-00076X-E5 for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:52:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRf41-00075X-6M for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:52:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRf40-00075I-Qu for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2008 21:52:04 -0500 Original-Received: from sewinexch00.insightful.com ([70.98.76.55]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRf3x-0001TP-57; Tue, 19 Feb 2008 21:52:01 -0500 Original-Received: from THESTERBERG-XP.insightful.com ([172.16.102.54]) by sewinexch00.insightful.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 19 Feb 2008 18:51:59 -0800 In-reply-to: (message from Glenn Morris on Tue, 19 Feb 2008 21:17:23 -0500) X-OriginalArrivalTime: 20 Feb 2008 02:51:59.0839 (UTC) FILETIME=[9038B6F0:01C8736B] X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:17548 Archived-At: The one-line fix works. The patch works! Thanks! Tim Glenn Morris wrote: >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)))