delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/11/21:52:02

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: gustav <gustav AT indiana DOT edu>
To: cygwin AT cygwin DOT com
Subject: POP Rmail in Emacs
Message-Id: <20081212025053.87CD5164085@perth.ovpit.indiana.edu>
Date: Thu, 11 Dec 2008 21:50:53 -0500 (EST)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

If you still use Emacs' original Rmail with POP under Cygwin, you may
have noticed that it doesn't work. The reason is that Rmail tries to
create a file with a ":" in its name, which Cygwin can't do. A simple
remedy is to edit rmail.el as follows:

*** /usr/share/emacs/21.2/lisp/mail/rmail.el    Fri Feb 22 05:51:38 2002
--- rmail.el    Thu Dec 11 21:26:14 2008
***************
*** 1502,1508 ****
             (if rmail-pop-password-required
                 (progn (setq got-password (not (rmail-have-password)))
                        (setq password (rmail-get-pop-password))))
!            (if (eq system-type 'windows-nt)
                 ;; cannot have "po:" in file name
                 (setq tofile
                       (expand-file-name
--- 1502,1508 ----
             (if rmail-pop-password-required
                 (progn (setq got-password (not (rmail-have-password)))
                        (setq password (rmail-get-pop-password))))
!            (if (or (eq system-type 'windows-nt) (eq system-type 'cygwin))
                 ;; cannot have "po:" in file name
                 (setq tofile
                       (expand-file-name


It's best not to touch the original rmail.el, because when you
upgrade, and the file gets overwritten, you'll end up with the same
problem again. Instead, copy rmail.el to your private site-lisp
directory, edit as above, byte-compile, then cons the directory onto
the load-path in the .emacs file.

Happy hacking,

==
 Zdzislaw (Gustav) Meglicki, Office of the Vice President for Information
 Technology, Indiana University, 601 E. Kirkwood Ave., Room 116, 
 Bloomington, IN 47405-1223, USA, http://perth.ovpit.indiana.edu/gustav,
 Ph: 812-856-5597 (o), 812-345-3284 (m), Fax: 812-855-3310/812-856-3147,
==
 Messenger: zdzisiekm AT hotmail DOT com
 Yahoo:     zdzisiekm AT sbcglobal DOT net
 Skype:     zdzislaw.meglicki


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019