From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: movemail Date: Wed, 2 Aug 2017 19:17:36 -0700 Organization: UCLA Computer Science Department Message-ID: <95a96392-6014-d364-2710-a4a830f34925@cs.ucla.edu> References: <83a83k0yu5.fsf@gnu.org> <1bcddec1-befd-fffc-b5b4-ec7f1e3bd844@cs.ucla.edu> <83shhbyvlw.fsf@gnu.org> <83d18dzxdo.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5B083BA7782C0C3A21204F86" X-Trace: blaine.gmane.org 1501726682 16196 195.159.176.226 (3 Aug 2017 02:18:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2017 02:18:02 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: theophilusx@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 03 04:17:56 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd5hw-0003f3-0I for ged-emacs-devel@m.gmane.org; Thu, 03 Aug 2017 04:17:52 +0200 Original-Received: from localhost ([::1]:53039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dd5i1-0006EA-WC for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2017 22:17:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dd5hu-0006Dk-7y for emacs-devel@gnu.org; Wed, 02 Aug 2017 22:17:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dd5hs-0001Q3-Of for emacs-devel@gnu.org; Wed, 02 Aug 2017 22:17:50 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43400) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dd5ho-0001N2-Rm; Wed, 02 Aug 2017 22:17:45 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6F54D160741; Wed, 2 Aug 2017 19:17:43 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id NWnxLM9HNkUd; Wed, 2 Aug 2017 19:17:37 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3B167160726; Wed, 2 Aug 2017 19:17:37 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0XqKSTROWT4Y; Wed, 2 Aug 2017 19:17:37 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 125AA160217; Wed, 2 Aug 2017 19:17:37 -0700 (PDT) In-Reply-To: <83d18dzxdo.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217253 Archived-At: This is a multi-part message in MIME format. --------------5B083BA7782C0C3A21204F86 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > We could do that right now, unless there are some > disadvantages. (Why didn't we do that till now?) Haven't a clue. I installed the attached. --------------5B083BA7782C0C3A21204F86 Content-Type: text/x-patch; name="0001-Default-to-with-mailutils-if-it-is-installed.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Default-to-with-mailutils-if-it-is-installed.patch" >From 2d2c12fc5f45ff73387efd6241447f3d9cbadf09 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 2 Aug 2017 19:13:26 -0700 Subject: [PATCH] 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 --- INSTALL | 17 ++++++++--------- configure.ac | 13 ++++++++++--- doc/emacs/rmail.texi | 2 +- etc/NEWS | 10 ++++++---- 4 files changed, 25 insertions(+), 17 deletions(-) diff --git a/INSTALL b/INSTALL index ea96890..33084b9 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 c3e440a..c9e8c0d 100644 --- a/configure.ac +++ b/configure.ac @@ -234,9 +234,16 @@ AC_DEFUN # 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 046087e..f2416a0 100644 --- a/doc/emacs/rmail.texi +++ b/doc/emacs/rmail.texi @@ -1382,7 +1382,7 @@ Movemail 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 44f5ff5..b72793d 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 -- 2.7.4 --------------5B083BA7782C0C3A21204F86--