all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jpw@pobox.com (John Paul Wallington)
To: emacs-devel@gnu.org
Subject: fix pop snarfing on Windows Rmail
Date: Wed, 20 Aug 2008 23:38:40 +0100	[thread overview]
Message-ID: <82r68jfh1r.fsf@FILTH.SHOOTYBANGBANG.COM> (raw)

I have a Windows machine where Rmail is configured like this:

(setq rmail-primary-inbox-list '("po:user:localhost"))
(setq rmail-remote-password-required t)
(setq rmail-remote-password "password")

and it didn't work to get any mail from the pop server.

Looks like this patch is needed:

2008-08-20  John Paul Wallington  <jpw@pobox.com>

	* mail/rmail.el (rmail-insert-inbox-text): Ensure that the
	filename of `tofile' doesn't contain any colons on Windows
	and Cygwin systems.

Index: rmail.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/mail/rmail.el,v
retrieving revision 1.454
diff -u -r1.454 rmail.el
--- rmail.el	6 May 2008 07:22:26 -0000	1.454
+++ rmail.el	20 Aug 2008 22:22:51 -0000
@@ -1804,8 +1804,8 @@
 		    (concat ".newmail-"
 			    (file-name-nondirectory
 			     (if (memq system-type '(windows-nt cygwin))
-				 ;; cannot have "po:" in file name
-				 (substring file 3)
+				 ;; cannot have colons in file name
+				 (replace-regexp-in-string ":" "-" file)
 			       file)))
 		    ;; Use the directory of this rmail file
 		    ;; because it's a nuisance to use the homedir

I'll install it in a few days unless someone objects.




             reply	other threads:[~2008-08-20 22:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 22:38 John Paul Wallington [this message]
2008-08-21  5:31 ` fix pop snarfing on Windows Rmail Eli Zaretskii
2008-08-21 12:36   ` John Paul Wallington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82r68jfh1r.fsf@FILTH.SHOOTYBANGBANG.COM \
    --to=jpw@pobox.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.