all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#26376: Rmail fails with any protocol but pop and imap
@ 2017-04-05 19:55 Glenn Morris
  0 siblings, 0 replies; only message in thread
From: Glenn Morris @ 2017-04-05 19:55 UTC (permalink / raw)
  To: 26376

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".







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-05 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-05 19:55 bug#26376: Rmail fails with any protocol but pop and imap Glenn Morris

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.