From: Paul Eggert Date: Thu, 3 Aug 2017 02:13:26 +0000 (-0700) Subject: Default to --with-mailutils if it is installed X-Git-Tag: emacs-26.0.90~517^2~37 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d2c12fc5f45ff73387efd6241447f3d9cbadf09;p=emacs.git 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 --- 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'. To read email via a network protocol like IMAP or POP, you can configure Emacs with the option '--with-mailutils', so that it always -uses the GNU Mailutils 'movemail' program to retrieve mail. Otherwise -the Emacs build procedure builds and installs an auxiliary 'movemail' -program, a limited and insecure substitute that Emacs can use when -Mailutils is not installed; when this happens, there are several +uses the GNU Mailutils 'movemail' program to retrieve mail; this is +the default if GNU Mailutils is installed. Otherwise the Emacs build +procedure builds and installs an auxiliary 'movemail' program, a +limited and insecure substitute; when this happens, there are several configure options such as --without-pop that provide fine-grained control over Emacs 'movemail' construction. @@ -272,10 +272,9 @@ The Emacs mail reader RMAIL is configured to be able to read mail from a POP3 server by default. Versions of the POP protocol older than POP3 are not supported. While POP3 support is typically enabled, whether Emacs actually uses POP3 is controlled by individual users; -see the Rmail chapter of the Emacs manual. Unless you configure ---with-mailutils, it is a good idea to configure --without-pop so that -users are less likely to inadvertently read email via insecure -channels. +see the Rmail chapter of the Emacs manual. Unless --with-mailutils is +in effect, it is a good idea to configure --without-pop so that users +are less likely to inadvertently read email via insecure channels. For image support you may have to download, build, and install the appropriate image support libraries for image types other than XBM and @@ -550,7 +549,7 @@ information on this. Emacs info files. 8) If your system uses lock files to interlock access to mailer inbox files, -and if you did not configure --with-mailutils, then you might need to +and if --with-mailutils is not in effect, then you might need to make the Emacs-specific 'movemail' program setuid or setgid in order to enable it to write the lock files. We believe this is safe. 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 # in a movemail implementation that supports only unencrypted POP3 # connections. Encrypted connections should be the default. -OPTION_DEFAULT_OFF([mailutils], - [rely on GNU Mailutils, so that the --without-pop through --with-mailhost - options are irrelevant]) +AC_ARG_WITH([mailutils], + [AS_HELP_STRING([--with-mailutils], + [rely on GNU Mailutils, so that the --without-pop through --with-mailhost + options are irrelevant; this is the default if GNU Mailutils is + installed])], + [], + [with_mailutils=$with_features + if test "$with_mailutils" = yes; then + (movemail --version) >/dev/null 2>&1 || with_mailutils=no + fi]) if test "$with_mailutils" = no; then with_mailutils= fi 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 version. There are two versions of the @command{movemail} program: the GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}), and an Emacs-specific version that is built and installed unless Emacs -was configured using the @option{--with-mailutils} option. +was configured @option{--with-mailutils} in effect. The two @command{mailtool} versions support the same command line syntax and the same basic subset of options. However, the Mailutils 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. version 2.6.6 or later. ** The new option 'configure --with-mailutils' causes Emacs to rely on -GNU Mailutils 'movemail' to retrieve email. By default, the Emacs -build procedure continues to build and install a limited and insecure -'movemail' substitute. Although --with-mailutils is recommended, it -is not yet the default due to backward-compatibility concerns. +GNU Mailutils to retrieve email. It is recommended, and is the +default if GNU Mailutils is installed. When --with-mailutils is not +in effect, the Emacs build procedure by default continues to build and +install a limited 'movemail' substitute that retrieves POP3 email only +via insecure channels; to avoid this problem, use either +--with-mailutils or --without-pop when configuring. ** The new option 'configure --enable-gcc-warnings=warn-only' causes GCC to issue warnings without stopping the build. This behavior is