Next: Retrieving Mail from Remote Mailboxes, Previous: Reading Rot13 Messages, Up: Reading Mail with Rmail [Contents][Index]
35.18movemail
program
Rmail uses the movemail
program to move mail from your inbox to your Rmail file (see Rmail Files and Inboxes). When loaded for the first time, Rmail attempts to locate the movemail
program and determine its version. There are two versions of the movemail
program: the GNU Mailutils version (see movemail in GNU Mailutils Manual), and an Emacs-specific version that is built and installed unless Emacs was configured --with-mailutils in effect. The two movemail
versions support the same command line syntax and the same basic subset of options. However, the Mailutils version offers additional features and is more secure.
The Emacs version of movemail
can retrieve mail from the usual Unix mailbox formats. Warning: Although it can also use the POP3 protocol, this is not recommended because it does not support POP3 via encrypted TLS channels.
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 access remote mailboxes using the POP3 or IMAP4 protocol, and can retrieve mail from them using a TLS encrypted channel. It also accepts mailbox arguments in URL form. The detailed description of mailbox URLs can be found in Mailbox in GNU Mailutils Manual. In short, a URL is:
proto://[user[:password]@]host-or-file-name[:port]
where square brackets denote optional elements.
Specifies the mailbox protocol, or format to use. The exact semantics of the rest of URL elements depends on the actual value of proto (see below).
User name to access the remote mailbox.
User password to access the remote mailbox.
Hostname of the remote server for remote mailboxes or file name of a local mailbox.
Optional port number, if not the default for that protocol.
proto can be one of:
mbox
Usual Unix mailbox format. In this case, user, pass and port are not used, and host-or-file-name denotes the file name of the mailbox file, e.g., mbox:///var/spool/mail/smith
.
mh
A local mailbox in the MH format. user, pass and port are not used. host-or-file-name denotes the name of MH folder, e.g., mh:///Mail/inbox
.
maildir
A local mailbox in the maildir format. user, pass and port are not used, and host-or-file-name denotes the name of maildir
mailbox, e.g., maildir:///mail/inbox
.
file
Any local file in mailbox format. Its actual format is detected automatically by movemail
.
pop
pops
A remote mailbox to be accessed via POP3 protocol. See Retrieving Mail from Remote Mailboxes, for details.
imap
imaps
A remote mailbox to be accessed via IMAP4 protocol. See Retrieving Mail from Remote Mailboxes, for details.
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
, then in exec-path
(see Running Shell Commands from Emacs), then in exec-directory
. This variable should be customized before starting Rmail; if you customize it after starting Rmail, you will need to set rmail-movemail-variant-in-use
to the nil
value, and then restart Rmail.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4