aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-03-21 10:20:05 -0700
committerPaul Eggert2017-03-21 11:14:51 -0700
commit9319de675e395517f9a7b50cae1a3aad9cd0abc2 (patch)
treef5f9eac77089d07d0baaa4a6493175ffe3d35547
parentbf8cf95d7d13ebc5d351cc2a8048f6695ab9faca (diff)
downloademacs-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--INSTALL7
-rw-r--r--configure.ac31
-rw-r--r--etc/NEWS12
3 files changed, 21 insertions, 29 deletions
diff --git a/INSTALL b/INSTALL
index a99f1078044..9b6c04f079e 100644
--- a/INSTALL
+++ b/INSTALL
@@ -265,17 +265,14 @@ uses the GNU Mailutils 'movemail' program to retrieve mail. Otherwise
265the Emacs build procedure builds and installs an auxiliary 'movemail' 265the Emacs build procedure builds and installs an auxiliary 'movemail'
266program, a limited and insecure substitute that Emacs can use when 266program, a limited and insecure substitute that Emacs can use when
267Mailutils is not installed; when this happens, there are several 267Mailutils is not installed; when this happens, there are several
268configure options such as --without-pop that provide fine-grained 268configure options such as --with-mail-unlink that provide fine-grained
269control over Emacs 'movemail' construction. 269control over Emacs 'movemail' construction.
270 270
271The Emacs mail reader RMAIL is configured to be able to read mail from 271The 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.
276--with-mailutils, it is a good idea to configure --without-pop so that
277users are less likely to inadvertently read email via insecure
278channels.
279 276
280For image support you may have to download, build, and install the 277For image support you may have to download, build, and install the
281appropriate image support libraries for image types other than XBM and 278appropriate 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
236OPTION_DEFAULT_OFF([mailutils], 232OPTION_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])
239if test "$with_mailutils" = no; then 235if test "$with_mailutils" = no; then
240 with_mailutils= 236 with_mailutils=
241fi 237fi
242AC_SUBST([with_mailutils]) 238AC_SUBST([with_mailutils])
243 239
244OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) 240OPTION_DEFAULT_OFF([pop],
241 [support POP mail retrieval with movemail (not recommended, as its
242 email retrieval is unencrypted)])
245if test "$with_pop" = yes; then 243if test "$with_pop" = yes; then
246 AC_DEFINE(MAIL_USE_POP) 244 AC_DEFINE(MAIL_USE_POP)
247fi 245fi
@@ -5482,15 +5480,11 @@ fi
5482 5480
5483AC_OUTPUT 5481AC_OUTPUT
5484 5482
5485if test ! "$with_mailutils"; then 5483if 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 5498that retrieves POP3 email via only unencrypted channels.
5505that retrieves POP3 email via only insecure channels. 5499To avoid the problem you can $emacs_fix_movemail.])
5506To 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
5509retrieve POP3 email. You might want to $emacs_fix_movemail.])
5510 fi
5511fi 5500fi
5512 5501
5513test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) 5502test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.])
diff --git a/etc/NEWS b/etc/NEWS
index cd98f533998..bf50d1a3eec 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
34GNU Mailutils 'movemail' to retrieve email. By default, the Emacs 34GNU Mailutils 'movemail' to retrieve email. By default, the Emacs
35build procedure continues to build and install a limited and insecure 35build procedure continues to build and install a limited 'movemail'
36'movemail' substitute. Although --with-mailutils is recommended, it 36substitute. Although --with-mailutils is recommended, it is not yet
37is not yet the default due to backward-compatibility concerns. 37the 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.)
41Using --with-pop (the previous default) preserves the historical
42behavior where Emacs 'movemail' retrieves network email only via
43unencrypted 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
40GCC to issue warnings without stopping the build. This behavior is 46GCC to issue warnings without stopping the build. This behavior is