diff options
| author | Paul Eggert | 2017-03-21 10:20:05 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-03-21 11:14:51 -0700 |
| commit | 9319de675e395517f9a7b50cae1a3aad9cd0abc2 (patch) | |
| tree | f5f9eac77089d07d0baaa4a6493175ffe3d35547 | |
| parent | bf8cf95d7d13ebc5d351cc2a8048f6695ab9faca (diff) | |
| download | emacs-9319de675e395517f9a7b50cae1a3aad9cd0abc2.tar.gz emacs-9319de675e395517f9a7b50cae1a3aad9cd0abc2.zip | |
Make --without-pop the default.
Suggested by Angelo Graziosi in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00431.html
* configure.ac: Change the default from --with-pop to
--without-pop. Adjust diagnostics to match.
| -rw-r--r-- | INSTALL | 7 | ||||
| -rw-r--r-- | configure.ac | 31 | ||||
| -rw-r--r-- | etc/NEWS | 12 |
3 files changed, 21 insertions, 29 deletions
| @@ -265,17 +265,14 @@ uses the GNU Mailutils 'movemail' program to retrieve mail. Otherwise | |||
| 265 | the Emacs build procedure builds and installs an auxiliary 'movemail' | 265 | the Emacs build procedure builds and installs an auxiliary 'movemail' |
| 266 | program, a limited and insecure substitute that Emacs can use when | 266 | program, a limited and insecure substitute that Emacs can use when |
| 267 | Mailutils is not installed; when this happens, there are several | 267 | Mailutils is not installed; when this happens, there are several |
| 268 | configure options such as --without-pop that provide fine-grained | 268 | configure options such as --with-mail-unlink that provide fine-grained |
| 269 | control over Emacs 'movemail' construction. | 269 | control over Emacs 'movemail' construction. |
| 270 | 270 | ||
| 271 | The Emacs mail reader RMAIL is configured to be able to read mail from | 271 | 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. |
| 276 | --with-mailutils, it is a good idea to configure --without-pop so that | ||
| 277 | users are less likely to inadvertently read email via insecure | ||
| 278 | channels. | ||
| 279 | 276 | ||
| 280 | For image support you may have to download, build, and install the | 277 | For image support you may have to download, build, and install the |
| 281 | appropriate image support libraries for image types other than XBM and | 278 | appropriate image support libraries for image types other than XBM and |
diff --git a/configure.ac b/configure.ac index 833aaa5eb27..83071e619b0 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -229,19 +229,17 @@ AC_DEFUN([OPTION_DEFAULT_ON], [dnl | |||
| 229 | m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$with_features])dnl | 229 | m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$with_features])dnl |
| 230 | ])dnl | 230 | ])dnl |
| 231 | 231 | ||
| 232 | # FIXME: The default options '--without-mailutils --with-pop' result | ||
| 233 | # in a movemail implementation that supports only unencrypted POP3 | ||
| 234 | # connections. Encrypted connections should be the default. | ||
| 235 | |||
| 236 | OPTION_DEFAULT_OFF([mailutils], | 232 | OPTION_DEFAULT_OFF([mailutils], |
| 237 | [rely on GNU Mailutils being installed; this makes the options | 233 | [rely on GNU Mailutils being installed, so that --with-pop through |
| 238 | --without-pop through --with-mailhost irrelevant]) | 234 | --with-mailhost are irrelevant]) |
| 239 | if test "$with_mailutils" = no; then | 235 | if test "$with_mailutils" = no; then |
| 240 | with_mailutils= | 236 | with_mailutils= |
| 241 | fi | 237 | fi |
| 242 | AC_SUBST([with_mailutils]) | 238 | AC_SUBST([with_mailutils]) |
| 243 | 239 | ||
| 244 | OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) | 240 | OPTION_DEFAULT_OFF([pop], |
| 241 | [support POP mail retrieval with movemail (not recommended, as its | ||
| 242 | email retrieval is unencrypted)]) | ||
| 245 | if test "$with_pop" = yes; then | 243 | if test "$with_pop" = yes; then |
| 246 | AC_DEFINE(MAIL_USE_POP) | 244 | AC_DEFINE(MAIL_USE_POP) |
| 247 | fi | 245 | fi |
| @@ -5482,15 +5480,11 @@ fi | |||
| 5482 | 5480 | ||
| 5483 | AC_OUTPUT | 5481 | AC_OUTPUT |
| 5484 | 5482 | ||
| 5485 | if test ! "$with_mailutils"; then | 5483 | if test ! "$with_mailutils" && test "$with_pop" = yes; then |
| 5486 | case $opsys in | 5484 | case $opsys in |
| 5487 | cygwin | mingw32) | 5485 | cygwin | mingw32) |
| 5488 | # Don't suggest GNU Mailutils, as it hasn't been ported. | 5486 | # Don't suggest GNU Mailutils, as it hasn't been ported. |
| 5489 | if test "$with_pop" = yes; then | 5487 | emacs_fix_movemail="use '$0' (without '--with-pop')";; |
| 5490 | emacs_fix_movemail="use '$0 --without-pop'" | ||
| 5491 | else | ||
| 5492 | emacs_fix_movemail= | ||
| 5493 | fi;; | ||
| 5494 | *) | 5488 | *) |
| 5495 | emacs_fix_movemail="use '$0 --with-mailutils'" | 5489 | emacs_fix_movemail="use '$0 --with-mailutils'" |
| 5496 | case `(movemail --version) 2>/dev/null` in | 5490 | case `(movemail --version) 2>/dev/null` in |
| @@ -5500,14 +5494,9 @@ if test ! "$with_mailutils"; then | |||
| 5500 | esac;; | 5494 | esac;; |
| 5501 | esac | 5495 | esac |
| 5502 | 5496 | ||
| 5503 | if test "$with_pop" = yes; then | 5497 | AC_MSG_WARN([This configuration installs a 'movemail' program |
| 5504 | AC_MSG_WARN([This configuration installs a 'movemail' program | 5498 | that retrieves POP3 email via only unencrypted channels. |
| 5505 | that retrieves POP3 email via only insecure channels. | 5499 | To avoid the problem you can $emacs_fix_movemail.]) |
| 5506 | To fix this you can $emacs_fix_movemail.]) | ||
| 5507 | elif test "$emacs_fix_movemail"; then | ||
| 5508 | AC_MSG_NOTICE([This configuration installs a 'movemail' program that cannot | ||
| 5509 | retrieve POP3 email. You might want to $emacs_fix_movemail.]) | ||
| 5510 | fi | ||
| 5511 | fi | 5500 | fi |
| 5512 | 5501 | ||
| 5513 | test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) | 5502 | test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) |
| @@ -32,9 +32,15 @@ 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 'movemail' to retrieve email. By default, the Emacs |
| 35 | build procedure continues to build and install a limited and insecure | 35 | build procedure continues to build and install a limited 'movemail' |
| 36 | 'movemail' substitute. Although --with-mailutils is recommended, it | 36 | substitute. Although --with-mailutils is recommended, it is not yet |
| 37 | is not yet the default due to backward-compatibility concerns. | 37 | the default due to backward-compatibility concerns. |
| 38 | |||
| 39 | ** The option 'configure --without-pop' is now the default. | ||
| 40 | (This option's setting matters only if --with-mailutils is not used.) | ||
| 41 | Using --with-pop (the previous default) preserves the historical | ||
| 42 | behavior where Emacs 'movemail' retrieves network email only via | ||
| 43 | unencrypted channels. | ||
| 38 | 44 | ||
| 39 | ** The new option 'configure --enable-gcc-warnings=warn-only' causes | 45 | ** The new option 'configure --enable-gcc-warnings=warn-only' causes |
| 40 | GCC to issue warnings without stopping the build. This behavior is | 46 | GCC to issue warnings without stopping the build. This behavior is |