aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2017-03-16 23:50:37 -0700
committerPaul Eggert2017-03-17 00:15:48 -0700
commit9f771f6440a61433d34f14aee4046cf2fa6ba391 (patch)
tree2394bc49b97cd025f338af449fc97992db3f9ccf /doc
parentffbb46849990bf4bf952e01b78c9a1a0ca0d4432 (diff)
downloademacs-9f771f6440a61433d34f14aee4046cf2fa6ba391.tar.gz
emacs-9f771f6440a61433d34f14aee4046cf2fa6ba391.zip
Emacs 'movemail' is now a configure-time option
The new configure option --with-mailutils lets the builder say that Emacs should assume that GNU Mailutils is installed, instead of continuing to build and install its own limited and insecure substitute for 'movemail'. * INSTALL, etc/NEWS, etc/PROBLEMS: Mention --with-mailutils. * configure.ac: Add --with-mailutils option. (with_mailutils): New variable. Do not bother configuring 'movemail' when not building it. Warn about issues relating to --with-mailutils. * doc/emacs/rmail.texi (Movemail): Mention --with-mailutils. (Movemail, Remote Mailboxes): Document port numbers in POP and IMAP URLs. * lib-src/Makefile.in (with_mailutils): New macro. (UTILITIES): Use it.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/rmail.texi82
1 files changed, 41 insertions, 41 deletions
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi
index d46398281fb..b64ec223be7 100644
--- a/doc/emacs/rmail.texi
+++ b/doc/emacs/rmail.texi
@@ -1380,15 +1380,17 @@ which applies the code when displaying the text.
1380your Rmail file (@pxref{Rmail Inbox}). When loaded for the first time, 1380your Rmail file (@pxref{Rmail Inbox}). When loaded for the first time,
1381Rmail attempts to locate the @code{movemail} program and determine its 1381Rmail attempts to locate the @code{movemail} program and determine its
1382version. There are two versions of the @code{movemail} program: the 1382version. There are two versions of the @code{movemail} program: the
1383native one, shipped with GNU Emacs (the Emacs version) and the one 1383GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}),
1384included in GNU mailutils (the mailutils version, 1384and an Emacs-specific version that is built and installed unless Emacs
1385@pxref{movemail,,,mailutils,GNU mailutils}). They support the same 1385was configured using the @option{--with-mailutils} option.
1386The two @command{mailtool} versions support the same
1386command line syntax and the same basic subset of options. However, the 1387command line syntax and the same basic subset of options. However, the
1387Mailutils version offers additional features. 1388Mailutils version offers additional features.
1388 1389
1389 The Emacs version of @code{movemail} is able to retrieve mail from 1390 The Emacs version of @command{movemail} can retrieve mail from the
1390the usual Unix mailbox formats and from remote mailboxes using the 1391usual Unix mailbox formats. Although it can also use the POP3
1391POP3 protocol. 1392protocol, this is not recommended because it does not support POP3 via
1393encrypted TLS channels.
1392 1394
1393 The Mailutils version is able to handle a wide set of mailbox 1395 The Mailutils version is able to handle a wide set of mailbox
1394formats, such as plain Unix mailboxes, @code{maildir} and @code{MH} 1396formats, such as plain Unix mailboxes, @code{maildir} and @code{MH}
@@ -1401,7 +1403,7 @@ in @ref{URL,,,mailutils,Mailbox URL Formats}. In short, a
1401@acronym{URL} is: 1403@acronym{URL} is:
1402 1404
1403@smallexample 1405@smallexample
1404@var{proto}://[@var{user}[:@var{password}]@@]@var{host-or-file-name} 1406@var{proto}://[@var{user}[:@var{password}]@@]@var{host-or-file-name}[:@var{port}]
1405@end smallexample 1407@end smallexample
1406 1408
1407@noindent 1409@noindent
@@ -1422,6 +1424,9 @@ User password to access the remote mailbox.
1422@item host-or-file-name 1424@item host-or-file-name
1423Hostname of the remote server for remote mailboxes or file name of a 1425Hostname of the remote server for remote mailboxes or file name of a
1424local mailbox. 1426local mailbox.
1427
1428@item port
1429Optional port number, if not the default for that protocal.
1425@end table 1430@end table
1426 1431
1427@noindent 1432@noindent
@@ -1429,19 +1434,20 @@ local mailbox.
1429 1434
1430@table @code 1435@table @code
1431@item mbox 1436@item mbox
1432Usual Unix mailbox format. In this case, neither @var{user} nor 1437Usual Unix mailbox format. In this case, @var{user}, @var{pass} and
1433@var{pass} are used, and @var{host-or-file-name} denotes the file name 1438@var{port} are not used, and @var{host-or-file-name} denotes the file
1434of the mailbox file, e.g., @code{mbox://var/spool/mail/smith}. 1439name of the mailbox file, e.g., @code{mbox://var/spool/mail/smith}.
1435 1440
1436@item mh 1441@item mh
1437A local mailbox in the @acronym{MH} format. @var{user} and 1442A local mailbox in the @acronym{MH} format. @var{user}, @var{pass}
1438@var{pass} are not used. @var{host-or-file-name} denotes the name of 1443and @var{port} are not used. @var{host-or-file-name} denotes the name
1439@acronym{MH} folder, e.g., @code{mh://Mail/inbox}. 1444of @acronym{MH} folder, e.g., @code{mh://Mail/inbox}.
1440 1445
1441@item maildir 1446@item maildir
1442A local mailbox in the @acronym{maildir} format. @var{user} and 1447A local mailbox in the @acronym{maildir} format. @var{user},
1443@var{pass} are not used, and @var{host-or-file-name} denotes the name of 1448@var{pass} and @var{port} are not used, and @var{host-or-file-name}
1444@code{maildir} mailbox, e.g., @code{maildir://mail/inbox}. 1449denotes the name of @code{maildir} mailbox, e.g.,
1450@code{maildir://mail/inbox}.
1445 1451
1446@item file 1452@item file
1447Any local mailbox format. Its actual format is detected automatically 1453Any local mailbox format. Its actual format is detected automatically
@@ -1451,15 +1457,15 @@ by @code{movemail}.
1451A remote mailbox to be accessed via POP3 protocol. @var{user} 1457A remote mailbox to be accessed via POP3 protocol. @var{user}
1452specifies the remote user name to use, @var{pass} may be used to 1458specifies the remote user name to use, @var{pass} may be used to
1453specify the user password, @var{host-or-file-name} is the name or IP 1459specify the user password, @var{host-or-file-name} is the name or IP
1454address of the remote mail server to connect to; e.g., 1460address of the remote mail server to connect to, and @var{port} is the
1455@code{pop://smith:guessme@@remote.server.net}. 1461port number; e.g., @code{pop://smith:guessme@@remote.server.net:995}.
1456 1462
1457@item imap 1463@item imap
1458A remote mailbox to be accessed via IMAP4 protocol. @var{user} 1464A remote mailbox to be accessed via IMAP4 protocol. @var{user}
1459specifies the remote user name to use, @var{pass} may be used to 1465specifies the remote user name to use, @var{pass} may be used to
1460specify the user password, @var{host-or-file-name} is the name or IP 1466specify the user password, @var{host-or-file-name} is the name or IP
1461address of the remote mail server to connect to; 1467address of the remote mail server to connect to, and @var{port} is the
1462e.g., @code{imap://smith:guessme@@remote.server.net}. 1468port number; e.g., @code{imap://smith:guessme@@remote.server.net:993}.
1463@end table 1469@end table
1464 1470
1465 Alternatively, you can specify the file name of the mailbox to use. 1471 Alternatively, you can specify the file name of the mailbox to use.
@@ -1483,44 +1489,40 @@ listed in @code{rmail-movemail-search-path}, then in @code{exec-path}
1483@pindex movemail 1489@pindex movemail
1484 1490
1485 Some sites use a method called POP for accessing users' inbox data 1491 Some sites use a method called POP for accessing users' inbox data
1486instead of storing the data in inbox files. By default, the @code{Emacs 1492instead of storing the data in inbox files. The Mailutils
1487movemail} can work with POP (unless the Emacs @code{configure} script 1493@command{movemail} by default supports POP with TLS encryption.
1488was run with the option @samp{--without-pop}). 1494Although the @command{Emacs movemail} supports unencrypted POP, this
1489 1495is not recommended due to the lack of encryption. Both versions of
1490Similarly, the Mailutils @code{movemail} by default supports POP, unless 1496@command{movemail} work only with POP3, not with older versions of
1491it was configured with the @samp{--disable-pop} option. 1497POP.
1492
1493Both versions of @code{movemail} only work with POP3, not with older
1494versions of POP.
1495 1498
1496@cindex @env{MAILHOST} environment variable 1499@cindex @env{MAILHOST} environment variable
1497@cindex POP mailboxes 1500@cindex POP mailboxes
1498 No matter which flavor of @code{movemail} you use, you can specify 1501 You can specify
1499a POP inbox by using a POP @dfn{URL} (@pxref{Movemail}). A POP 1502a POP inbox by using a POP @dfn{URL} (@pxref{Movemail}). A POP
1500@acronym{URL} is of the form 1503@acronym{URL} is of the form
1501@samp{pop://@var{username}@@@var{hostname}}, where 1504@samp{pop://@var{username}@@@var{hostname}:@var{port}}, where
1502@var{hostname} is the host name or IP address of the remote mail 1505@var{hostname} and @var{port} are the host name (or IP address)
1506and port number of the remote mail
1503server and @var{username} is the user name on that server. 1507server and @var{username} is the user name on that server.
1504Additionally, you may specify the password in the mailbox @acronym{URL}: 1508Additionally, you may specify the password in the mailbox @acronym{URL}:
1505@samp{pop://@var{username}:@var{password}@@@var{hostname}}. In this 1509@samp{pop://@var{username}:@var{password}@@@var{hostname}:@var{port}}. In this
1506case, @var{password} takes preference over the one set by 1510case, @var{password} takes preference over the one set by
1507@code{rmail-remote-password} (see below). This is especially useful 1511@code{rmail-remote-password} (see below). This is especially useful
1508if you have several remote mailboxes with different passwords. 1512if you have several remote mailboxes with different passwords.
1509 1513
1510 For backward compatibility, Rmail also supports an alternative way of 1514 For backward compatibility, Rmail also supports an alternative way of
1511specifying remote POP mailboxes. Specifying an inbox name in the form 1515specifying remote POP mailboxes. Specifying an inbox name in the form
1512@samp{po:@var{username}:@var{hostname}} is equivalent to 1516@samp{po:@var{username}:@var{hostname}:@var{port}} is equivalent to
1513@samp{pop://@var{username}@@@var{hostname}}. If you omit the 1517@samp{pop://@var{username}@@@var{hostname}:@var{port}}. If you omit the
1514@var{:hostname} part, the @env{MAILHOST} environment variable specifies 1518@var{:hostname} part, the @env{MAILHOST} environment variable specifies
1515the machine on which to look for the POP server. 1519the machine on which to look for the POP server.
1516 1520
1517@c FIXME mention --with-hesiod "support Hesiod to get the POP server host"?
1518
1519@cindex IMAP mailboxes 1521@cindex IMAP mailboxes
1520 Another method for accessing remote mailboxes is IMAP@. This method is 1522 Another method for accessing remote mailboxes is IMAP@. This method is
1521supported only by the Mailutils @code{movemail}. To specify an IMAP 1523supported only by the Mailutils @code{movemail}. To specify an IMAP
1522mailbox in the inbox list, use the following mailbox @acronym{URL}: 1524mailbox in the inbox list, use the following mailbox @acronym{URL}:
1523@samp{imap://@var{username}[:@var{password}]@@@var{hostname}}. The 1525@samp{imap://@var{username}[:@var{password}]@@@var{hostname}:@var{port}}. The
1524@var{password} part is optional, as described above. 1526@var{password} part is optional, as described above.
1525 1527
1526@vindex rmail-remote-password 1528@vindex rmail-remote-password
@@ -1550,9 +1552,7 @@ preserve your inbox contents; use @code{rmail-preserve-inbox} instead.
1550 1552
1551@cindex Kerberos POP authentication 1553@cindex Kerberos POP authentication
1552 The @code{movemail} program installed at your site may support 1554 The @code{movemail} program installed at your site may support
1553Kerberos authentication (the Emacs @code{movemail} does so if Emacs was 1555Kerberos authentication. If it is supported, it is used by default
1554configured with the option @code{--with-kerberos} or
1555@code{--with-kerberos5}). If it is supported, it is used by default
1556whenever you attempt to retrieve POP mail when 1556whenever you attempt to retrieve POP mail when
1557@code{rmail-remote-password} and @code{rmail-remote-password-required} 1557@code{rmail-remote-password} and @code{rmail-remote-password-required}
1558are unset. 1558are unset.