Next: Remote Mailboxes, Previous: Rmail Rot13, Up: Rmail
movemail
program
When invoked for the first time, Rmail attempts to locate the
movemail
program and determine its version. There are two
versions of movemail
program: the native one, shipped with GNU
Emacs (the “emacs version”) and the one included in GNU mailutils
(the “mailutils version,” see movemail). They support the same command line syntax and the same
basic subset of options. However, the ‘mailutils’ version offers
additional features.
The Emacs version of movemail
is able to retrieve mail from
usual UNIX mailbox formats and from remote mailboxes using the POP3
protocol.
The Mailutils version is able to handle a wide set of mailbox
formats, such as plain UNIX mailboxes, maildir
and MH
mailboxes, etc. It is able to retrieve remote mail using POP3 or
IMAP4 protocol, and can retrieve mail from them using a TLS encrypted
channel. It also accepts mailbox argument in the URL form.
The detailed description of mailbox URLs can be found in
URL. In short, a URL
is:
proto://[user[:password]@]host-or-file-name
where square brackets denote optional elements.
Proto can be one of:
mbox://var/spool/mail/smith
.
mh://Mail/inbox
.
maildir
mailbox, e.g., maildir://mail/inbox
.
movemail
.
pop://smith:guessme@remote.server.net
.
imap://smith:guessme@remote.server.net
.
Alternatively, you can specify the file name of the mailbox to use. This is equivalent to specifying the ‘file’ protocol:
/var/spool/mail/user == file://var/spool/mail/user
The variable rmail-movemail-program
controls which version of
movemail
to use. If that is a string, it specifies the
absolute file name of the movemail
executable. If it is
nil
, Rmail searches for movemail
in the directories
listed in rmail-movemail-search-path
and exec-path
, then
in exec-directory
.