GNU bug report logs - #26376
Rmail fails with any protocol but pop and imap

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Wed, 5 Apr 2017 19:56:01 UTC

Severity: normal

Tags: confirmed, patch

Merged with 18130, 18278

Found in version 25.2

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26376 in the body.
You can then email your comments to 26376 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26376; Package emacs. (Wed, 05 Apr 2017 19:56:01 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: Rmail fails with any protocol but pop and imap
Date: Wed, 05 Apr 2017 15:55:07 -0400
Package: emacs
Version: 25.2

The Emacs manual node "Movemail" goes on about the various protocols one
can use with GNU movemail: mbox, mh, maildir, file, pop, imap.

It seems that only pop and imap can ever have worked.

Eg:

emacs -Q --eval "(setq rmail-movemail-program \"/path/to/movemail\"
   rmail-primary-inbox-list \"/path/to/file\")"

works fine, but change that to "file:///path/to/file" and Emacs just
reports "No mail".

rmail-insert-inbox-text calls (expand-file-name "file:///path/to/file"),
which returns non-existent nonsense. It needs to strip the protocal prefix.


The maildir: case is then going to further break when it gets to this bit:

  ;; On some systems, /usr/spool/mail/foo is a directory
  ;; and the actual inbox is /usr/spool/mail/foo/foo.
  (if (file-directory-p file)
     (setq file (expand-file-name (user-login-name) file)))


On a related subject, all the non-remote examples in the manual seem to
be missing a "/" after the protocol. Eg "mbox://var/spool/mail/smith"
should be "mbox:///var/spool/mail/smith".






Merged 18130 18278 26376. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 09 Apr 2017 01:08:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 09 Apr 2017 01:08:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 26.1, send any further explanations to 18278 <at> debbugs.gnu.org and Sergey Poznyakoff <gray <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 09 Apr 2017 01:45:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 07 May 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.