aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-08-02 19:13:26 -0700
committerPaul Eggert2017-08-02 19:15:45 -0700
commit2d2c12fc5f45ff73387efd6241447f3d9cbadf09 (patch)
tree70d541944e89ad83cfaa35dad8b9e15b6faa8d48
parent5ed0bf1061cb0b2e70ee1d28f5f3586259ec0f3b (diff)
downloademacs-2d2c12fc5f45ff73387efd6241447f3d9cbadf09.tar.gz
emacs-2d2c12fc5f45ff73387efd6241447f3d9cbadf09.zip
Default to --with-mailutils if it is installed
* configure.ac (with_mailutils): Default to 'yes' if GNU Mailutils is installed. See: http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00054.html
-rw-r--r--INSTALL17
-rw-r--r--configure.ac13
-rw-r--r--doc/emacs/rmail.texi2
-rw-r--r--etc/NEWS10
4 files changed, 25 insertions, 17 deletions
diff --git a/INSTALL b/INSTALL
index ea968904325..33084b9da38 100644
--- a/INSTALL
+++ b/INSTALL
@@ -261,10 +261,10 @@ Emacs with the options '--without-dbus --without-gconf --without-gsettings'.
261 261
262To read email via a network protocol like IMAP or POP, you can 262To read email via a network protocol like IMAP or POP, you can
263configure Emacs with the option '--with-mailutils', so that it always 263configure Emacs with the option '--with-mailutils', so that it always
264uses the GNU Mailutils 'movemail' program to retrieve mail. Otherwise 264uses the GNU Mailutils 'movemail' program to retrieve mail; this is
265the Emacs build procedure builds and installs an auxiliary 'movemail' 265the default if GNU Mailutils is installed. Otherwise the Emacs build
266program, a limited and insecure substitute that Emacs can use when 266procedure builds and installs an auxiliary 'movemail' program, a
267Mailutils is not installed; when this happens, there are several 267limited and insecure substitute; when this happens, there are several
268configure options such as --without-pop that provide fine-grained 268configure options such as --without-pop that provide fine-grained
269control over Emacs 'movemail' construction. 269control over Emacs 'movemail' construction.
270 270
@@ -272,10 +272,9 @@ The Emacs mail reader RMAIL is configured to be able to read mail from
272a POP3 server by default. Versions of the POP protocol older than 272a POP3 server by default. Versions of the POP protocol older than
273POP3 are not supported. While POP3 support is typically enabled, 273POP3 are not supported. While POP3 support is typically enabled,
274whether Emacs actually uses POP3 is controlled by individual users; 274whether Emacs actually uses POP3 is controlled by individual users;
275see the Rmail chapter of the Emacs manual. Unless you configure 275see the Rmail chapter of the Emacs manual. Unless --with-mailutils is
276--with-mailutils, it is a good idea to configure --without-pop so that 276in effect, it is a good idea to configure --without-pop so that users
277users are less likely to inadvertently read email via insecure 277are less likely to inadvertently read email via insecure channels.
278channels.
279 278
280For image support you may have to download, build, and install the 279For image support you may have to download, build, and install the
281appropriate image support libraries for image types other than XBM and 280appropriate image support libraries for image types other than XBM and
@@ -550,7 +549,7 @@ information on this.
550Emacs info files. 549Emacs info files.
551 550
5528) If your system uses lock files to interlock access to mailer inbox files, 5518) If your system uses lock files to interlock access to mailer inbox files,
553and if you did not configure --with-mailutils, then you might need to 552and if --with-mailutils is not in effect, then you might need to
554make the Emacs-specific 'movemail' program setuid or setgid in order 553make the Emacs-specific 'movemail' program setuid or setgid in order
555to enable it to write the lock files. We believe this is safe. 554to enable it to write the lock files. We believe this is safe.
556 555
diff --git a/configure.ac b/configure.ac
index c3e440adcaa..c9e8c0dd1c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -234,9 +234,16 @@ AC_DEFUN([OPTION_DEFAULT_ON], [dnl
234# in a movemail implementation that supports only unencrypted POP3 234# in a movemail implementation that supports only unencrypted POP3
235# connections. Encrypted connections should be the default. 235# connections. Encrypted connections should be the default.
236 236
237OPTION_DEFAULT_OFF([mailutils], 237AC_ARG_WITH([mailutils],
238 [rely on GNU Mailutils, so that the --without-pop through --with-mailhost 238 [AS_HELP_STRING([--with-mailutils],
239 options are irrelevant]) 239 [rely on GNU Mailutils, so that the --without-pop through --with-mailhost
240 options are irrelevant; this is the default if GNU Mailutils is
241 installed])],
242 [],
243 [with_mailutils=$with_features
244 if test "$with_mailutils" = yes; then
245 (movemail --version) >/dev/null 2>&1 || with_mailutils=no
246 fi])
240if test "$with_mailutils" = no; then 247if test "$with_mailutils" = no; then
241 with_mailutils= 248 with_mailutils=
242fi 249fi
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi
index 046087ef452..f2416a07776 100644
--- a/doc/emacs/rmail.texi
+++ b/doc/emacs/rmail.texi
@@ -1382,7 +1382,7 @@ Rmail attempts to locate the @command{movemail} program and determine its
1382version. There are two versions of the @command{movemail} program: the 1382version. There are two versions of the @command{movemail} program: the
1383GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}), 1383GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}),
1384and an Emacs-specific version that is built and installed unless Emacs 1384and an Emacs-specific version that is built and installed unless Emacs
1385was configured using the @option{--with-mailutils} option. 1385was configured @option{--with-mailutils} in effect.
1386The two @command{mailtool} versions support the same 1386The two @command{mailtool} versions support the same
1387command line syntax and the same basic subset of options. However, the 1387command line syntax and the same basic subset of options. However, the
1388Mailutils version offers additional features. 1388Mailutils version offers additional features.
diff --git a/etc/NEWS b/etc/NEWS
index 44f5ff5bded..b72793dec08 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -31,10 +31,12 @@ Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
31version 2.6.6 or later. 31version 2.6.6 or later.
32 32
33** The new option 'configure --with-mailutils' causes Emacs to rely on 33** The new option 'configure --with-mailutils' causes Emacs to rely on
34GNU Mailutils 'movemail' to retrieve email. By default, the Emacs 34GNU Mailutils to retrieve email. It is recommended, and is the
35build procedure continues to build and install a limited and insecure 35default if GNU Mailutils is installed. When --with-mailutils is not
36'movemail' substitute. Although --with-mailutils is recommended, it 36in effect, the Emacs build procedure by default continues to build and
37is not yet the default due to backward-compatibility concerns. 37install a limited 'movemail' substitute that retrieves POP3 email only
38via insecure channels; to avoid this problem, use either
39--with-mailutils or --without-pop when configuring.
38 40
39** The new option 'configure --enable-gcc-warnings=warn-only' causes 41** The new option 'configure --enable-gcc-warnings=warn-only' causes
40GCC to issue warnings without stopping the build. This behavior is 42GCC to issue warnings without stopping the build. This behavior is