diff options
| author | Paul Eggert | 2017-08-02 19:13:26 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-08-02 19:15:45 -0700 |
| commit | 2d2c12fc5f45ff73387efd6241447f3d9cbadf09 (patch) | |
| tree | 70d541944e89ad83cfaa35dad8b9e15b6faa8d48 | |
| parent | 5ed0bf1061cb0b2e70ee1d28f5f3586259ec0f3b (diff) | |
| download | emacs-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-- | INSTALL | 17 | ||||
| -rw-r--r-- | configure.ac | 13 | ||||
| -rw-r--r-- | doc/emacs/rmail.texi | 2 | ||||
| -rw-r--r-- | etc/NEWS | 10 |
4 files changed, 25 insertions, 17 deletions
| @@ -261,10 +261,10 @@ Emacs with the options '--without-dbus --without-gconf --without-gsettings'. | |||
| 261 | 261 | ||
| 262 | To read email via a network protocol like IMAP or POP, you can | 262 | To read email via a network protocol like IMAP or POP, you can |
| 263 | configure Emacs with the option '--with-mailutils', so that it always | 263 | configure Emacs with the option '--with-mailutils', so that it always |
| 264 | uses the GNU Mailutils 'movemail' program to retrieve mail. Otherwise | 264 | uses the GNU Mailutils 'movemail' program to retrieve mail; this is |
| 265 | the Emacs build procedure builds and installs an auxiliary 'movemail' | 265 | the default if GNU Mailutils is installed. Otherwise the Emacs build |
| 266 | program, a limited and insecure substitute that Emacs can use when | 266 | procedure builds and installs an auxiliary 'movemail' program, a |
| 267 | Mailutils is not installed; when this happens, there are several | 267 | limited and insecure substitute; when this happens, there are several |
| 268 | configure options such as --without-pop that provide fine-grained | 268 | configure options such as --without-pop that provide fine-grained |
| 269 | control over Emacs 'movemail' construction. | 269 | control over Emacs 'movemail' construction. |
| 270 | 270 | ||
| @@ -272,10 +272,9 @@ The Emacs mail reader RMAIL is configured to be able to read mail from | |||
| 272 | a POP3 server by default. Versions of the POP protocol older than | 272 | a POP3 server by default. Versions of the POP protocol older than |
| 273 | POP3 are not supported. While POP3 support is typically enabled, | 273 | POP3 are not supported. While POP3 support is typically enabled, |
| 274 | whether Emacs actually uses POP3 is controlled by individual users; | 274 | whether Emacs actually uses POP3 is controlled by individual users; |
| 275 | see the Rmail chapter of the Emacs manual. Unless you configure | 275 | see 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 | 276 | in effect, it is a good idea to configure --without-pop so that users |
| 277 | users are less likely to inadvertently read email via insecure | 277 | are less likely to inadvertently read email via insecure channels. |
| 278 | channels. | ||
| 279 | 278 | ||
| 280 | For image support you may have to download, build, and install the | 279 | For image support you may have to download, build, and install the |
| 281 | appropriate image support libraries for image types other than XBM and | 280 | appropriate image support libraries for image types other than XBM and |
| @@ -550,7 +549,7 @@ information on this. | |||
| 550 | Emacs info files. | 549 | Emacs info files. |
| 551 | 550 | ||
| 552 | 8) If your system uses lock files to interlock access to mailer inbox files, | 551 | 8) If your system uses lock files to interlock access to mailer inbox files, |
| 553 | and if you did not configure --with-mailutils, then you might need to | 552 | and if --with-mailutils is not in effect, then you might need to |
| 554 | make the Emacs-specific 'movemail' program setuid or setgid in order | 553 | make the Emacs-specific 'movemail' program setuid or setgid in order |
| 555 | to enable it to write the lock files. We believe this is safe. | 554 | to 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 | ||
| 237 | OPTION_DEFAULT_OFF([mailutils], | 237 | AC_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]) | ||
| 240 | if test "$with_mailutils" = no; then | 247 | if test "$with_mailutils" = no; then |
| 241 | with_mailutils= | 248 | with_mailutils= |
| 242 | fi | 249 | 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 | |||
| 1382 | version. There are two versions of the @command{movemail} program: the | 1382 | version. There are two versions of the @command{movemail} program: the |
| 1383 | GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}), | 1383 | GNU Mailutils version (@pxref{movemail,,,mailutils,GNU mailutils}), |
| 1384 | and an Emacs-specific version that is built and installed unless Emacs | 1384 | and an Emacs-specific version that is built and installed unless Emacs |
| 1385 | was configured using the @option{--with-mailutils} option. | 1385 | was configured @option{--with-mailutils} in effect. |
| 1386 | The two @command{mailtool} versions support the same | 1386 | The two @command{mailtool} versions support the same |
| 1387 | command line syntax and the same basic subset of options. However, the | 1387 | command line syntax and the same basic subset of options. However, the |
| 1388 | Mailutils version offers additional features. | 1388 | Mailutils version offers additional features. |
| @@ -31,10 +31,12 @@ Use 'configure --with-gnutls=no' to build even when GnuTLS is missing. | |||
| 31 | version 2.6.6 or later. | 31 | version 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 |
| 34 | GNU Mailutils 'movemail' to retrieve email. By default, the Emacs | 34 | GNU Mailutils to retrieve email. It is recommended, and is the |
| 35 | build procedure continues to build and install a limited and insecure | 35 | default if GNU Mailutils is installed. When --with-mailutils is not |
| 36 | 'movemail' substitute. Although --with-mailutils is recommended, it | 36 | in effect, the Emacs build procedure by default continues to build and |
| 37 | is not yet the default due to backward-compatibility concerns. | 37 | install a limited 'movemail' substitute that retrieves POP3 email only |
| 38 | via 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 |
| 40 | GCC to issue warnings without stopping the build. This behavior is | 42 | GCC to issue warnings without stopping the build. This behavior is |