From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#31737: 26.1.50; Gnus does not use mailutils movemail Date: Mon, 11 Jun 2018 10:27:13 +0200 Message-ID: <871sddk9su.fsf@gmail.com> References: <87sh5zk9br.fsf@gmail.com> <8736xzvgrg.fsf@yandex.com> <87o9gnk7vb.fsf@gmail.com> <831sdhuwc1.fsf@gnu.org> <87tvqdjmid.fsf@gmail.com> <83sh5xtaa5.fsf@gnu.org> <87602tjesm.fsf@gmail.com> <83muw5t78t.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528705569 24606 195.159.176.226 (11 Jun 2018 08:26:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 08:26:09 +0000 (UTC) Cc: m43cap@yandex.com, 31737@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 10:26:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fSI9L-0006H8-Su for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jun 2018 10:26:04 +0200 Original-Received: from localhost ([::1]:47083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSIBS-0004tI-Sw for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jun 2018 04:28:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSIBM-0004t4-5K for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 04:28:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSIBG-0002UR-6L for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 04:28:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSIBG-0002UK-19 for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 04:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fSIBF-0007Eo-Rg for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 04:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jun 2018 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31737 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31737-submit@debbugs.gnu.org id=B31737.152870564327743 (code B ref 31737); Mon, 11 Jun 2018 08:28:01 +0000 Original-Received: (at 31737) by debbugs.gnu.org; 11 Jun 2018 08:27:23 +0000 Original-Received: from localhost ([127.0.0.1]:42755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSIAd-0007DP-Gg for submit@debbugs.gnu.org; Mon, 11 Jun 2018 04:27:23 -0400 Original-Received: from mail-wr0-f169.google.com ([209.85.128.169]:36236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSIAc-0007DC-Cb for 31737@debbugs.gnu.org; Mon, 11 Jun 2018 04:27:22 -0400 Original-Received: by mail-wr0-f169.google.com with SMTP id f16-v6so19386344wrm.3 for <31737@debbugs.gnu.org>; Mon, 11 Jun 2018 01:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=sdc5Dh7W9fRhYeapdVXZVvd0UTEwS4WeEZmn2U68PoA=; b=SJnWH00Yh/85E2CcAXWewxRqWYMUUZHOXD+bh+e9gmo2iOzCFTcxYzdqMqssWClrkl vpLxVOGvdxSnx6eaQWAPBBJ2iQ1OlfqI+LxQeJYRiGx6QA0JWuPaeMj6sSokP4CPxnTM YcLMsBeDBOOPBfFSCCfAvoK/5B59C/2/RNtID3OQpfSY3vhAE19ZaHGkLVKqNOKFAfgU IyoBx3o3re+awcVMBok0ax0BdtC3wvYiDWqHqiuOCMz2pOBT6rPAlGtsfnwTgkaQjVJ7 oPGsAcmpAlgcq1MBMfQDISrrnf39JxyE/oEzjIkivz8GxHXXv12cJY+gjmBxX+6JYCHq Ff5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=sdc5Dh7W9fRhYeapdVXZVvd0UTEwS4WeEZmn2U68PoA=; b=Xs60jJnDNcDO8iecptqBN4NrcS/WB3B9QiOZ87dh8EyXProEEe97pGFMiWVAV9hD2l Xt0NHQO1ym0agqMXVd7gYDY+dsZ3xMrooUyvAng6S0/R7upU5AJ5VEqbRXFWae3MpC8O FhDHx475NgniEFOUWM+YfvmLeV9eLmZTGARYtVWsrPaJOCCEIBBUsqutXnikOIlGyy4p LHXasd4/xUxwqoa8RhWRKKhw+LETE1iHPYMM2u8odpz25RGc6Uflr8/uG4KaJxTAccEY uvgPGZI5duKyh83uLQj9mhSMLdEkqTmDcKwSH0ff/1B32IPIrtsGltcx93YWKf+v6oUd ymaw== X-Gm-Message-State: APt69E2YrC+4PkiLDf25yQuXyhrmdnQhaXSB1pFu27qY6qwR8z7tRcZC 1/i/D8TR9d3DM7TvQU6FRN+6hpNp X-Google-Smtp-Source: ADUXVKJJHPhZTCMXwy4jRfmWm+gfUs/UYuG/M2WxwO6u7rTFRLpYPTMSCpVhFV/Pr0LTTGR2WHEgmw== X-Received: by 2002:adf:9525:: with SMTP id 34-v6mr11327648wrs.99.1528705636109; Mon, 11 Jun 2018 01:27:16 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v68-v6sm12623668wmd.12.2018.06.11.01.27.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 01:27:14 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83muw5t78t.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Jun 2018 22:20:50 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147279 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> Cc: m43cap@yandex.com, 31737@debbugs.gnu.org >> Date: Fri, 08 Jun 2018 20:47:53 +0200 >>=20 >> > But then the fix should be where mail-source-movemail-progam is used, >> > not in its default value, right? Gnus should use executable-find to >> > look for the program named by mail-source-movemail-progam. >> > >>=20 >> It blindly calls call-process at the moment, rather than using >> executable-find, but that=CA=BCs a separate issue. > > But call-process looks up the program along exec-path, and exec-path > puts exec-directory at its end. Right? So if GNU Mailutils are > installed and on PATH, Gnus should find its movemail first, right? Or > am I missing something? > > IOW, if Gnus calls call-process, then it already uses executable-find, > albeit internally. As noted on emacs-devel, gnus passes (expand-file-name "movemail" exec-directory) to call-process, so it doesn=CA=BCt search in $PATH. I think the current suggested fix is this: (append (list (or mail-source-movemail-program - (expand-file-name "movemail" exec-directory)) + "movemail" nil errors nil from to))))) (when (file-exists-p to) (set-file-modes to mail-source-default-file-modes)) That will work for people who have Mailutils installed in $PATH, and for those who don=CA=BCt it should use the exec-directory one. The only issue is that people who install Mailutils after they've built emacs will now be switched to using the Mailutils movemail, with no indication that it=CA=BCs happened. Robert PS The possible requirement for passing '--emacs' to movemail is still not clear to me. Rmail cares whether it=CA=BCs using Mailutils, but I don= =CA=BCt know if Gnus does.