This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

POP Rmail in Emacs


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@hotmail.com
 Yahoo:     zdzisiekm@sbcglobal.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]