From: Glenn Morris <rgm@gnu.org>
To: 26376@debbugs.gnu.org
Subject: bug#26376: Rmail fails with any protocol but pop and imap
Date: Wed, 05 Apr 2017 15:55:07 -0400 [thread overview]
Message-ID: <uf1st6pr38.fsf@fencepost.gnu.org> (raw)
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".
reply other threads:[~2017-04-05 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uf1st6pr38.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=26376@debbugs.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).