GNU bug report logs -
#26376
Rmail fails with any protocol but pop and imap
Previous Next
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.
Full log
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
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".
This bug report was last modified 8 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.