From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.devel Subject: Re: movemail location Date: Sun, 10 Jun 2018 12:20:00 -0300 Message-ID: <86zi02mzxb.fsf@phe.ftfl.ca> References: <867en7j3k5.fsf@phe.ftfl.ca> <83lgbnsw9k.fsf@gnu.org> <86vaarzst1.fsf@phe.ftfl.ca> <83efhfsqyw.fsf@gnu.org> <86r2lfzr3o.fsf@phe.ftfl.ca> <83d0wzs77c.fsf@gnu.org> <867en7z7ea.fsf@phe.ftfl.ca> <83a7s2sn4s.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1528643928 20851 195.159.176.226 (10 Jun 2018 15:18:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 15:18:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (berkeley-unix) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 10 17:18:44 2018 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 1fS279-0005Lj-Fi for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2018 17:18:43 +0200 Original-Received: from localhost ([::1]:44414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS29G-0001qk-K3 for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2018 11:20:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS28X-0001mC-Ch for emacs-devel@gnu.org; Sun, 10 Jun 2018 11:20:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fS28U-0005Bi-7e for emacs-devel@gnu.org; Sun, 10 Jun 2018 11:20:09 -0400 Original-Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:42788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fS28U-0005BH-1z for emacs-devel@gnu.org; Sun, 10 Jun 2018 11:20:06 -0400 Original-Received: by mail-pf0-x231.google.com with SMTP id w7-v6so8914716pfn.9 for ; Sun, 10 Jun 2018 08:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=MO9dDcRqYSKsdPOAxZ8A8mnmKS33/ae/Aoylu+k+y94=; b=fjKXXiLUoLbUm6Tv/kvtf41i/93j5q4M2M1lUHzEWKaKHLXCyGHjJRd0vHKRwYCTRq bouBc3ehJ0ik8xTbDk+wy0JpxIt73PSMKMfMwgAYo2AugTVhHwH3Z2pyVdta6RHkkZYZ jT68woQE5E1lb6qjbDEj2VgE5Gq+4zBLKT8JI= 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:in-reply-to:references :user-agent:date:message-id:mime-version; bh=MO9dDcRqYSKsdPOAxZ8A8mnmKS33/ae/Aoylu+k+y94=; b=uWkwfmOHZz75Vf/eD7oktAFT4Kp2csJxQbqZp0zRi6kTUhHLDm3sZahxt//kJkUG55 Ss0k7D2M7zWe28cR6S6eG1wo5v9Gz60ld+agmbTVa7nzOYSwvIMgyDvScQP1oOWwEAFl bixTYX6PY1tUvCP1AjtAwnKM5r0+67N2RTAYqFau9KXR1b0ILB6CCdpBqoSdQsXd1Rl+ +uvBYF9oVThOOVYTR/87r3sdmkVNuyuIQvgEJhYwTehicLvr+Vi2xPidBhWkgdXdmcAZ zfzE5qfEuAGcz3qifPlB8rrNMNhtVQamAtqvquenP+1w/zA3EiXbJMXOHX9e+vesxbTD 0EcA== X-Gm-Message-State: APt69E0PTEGnZdDMVa1/c9A64bp7SIzh6K+xP1hDEhMqSIt25a+ozODs mt+fA/BDWQ/w5ZvqRl3TGud8EfzwPzI= X-Google-Smtp-Source: ADUXVKIQO3FGNz5pJAEu01D+O4UVBtX/XTkHN6nPwaQZyb8N5Fnxn/JZH/r5WJELotGQXNDObDi4TQ== X-Received: by 2002:a63:3348:: with SMTP id z69-v6mr11550300pgz.171.1528644004791; Sun, 10 Jun 2018 08:20:04 -0700 (PDT) Original-Received: from phe.ftfl.ca.ftfl.ca (hlfxns017vw-142-68-132-248.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.132.248]) by smtp.gmail.com with ESMTPSA id 10-v6sm43333351pfs.111.2018.06.10.08.20.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Jun 2018 08:20:03 -0700 (PDT) In-Reply-To: <83a7s2sn4s.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Jun 2018 17:59:47 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::231 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:226167 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> From: Joseph Mingrone >> Cc: emacs-devel@gnu.org >> Date: Sat, 09 Jun 2018 23:45:33 -0300 >> >> Robert's suggestion [1] sounds reasonable. >> >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31737#15 >> > And mine doesn't? If so, could you say why? >> Let's make sure we are on the same page. >> This is what Robert suggested. >> "Perhaps gnus should check in 'exec-directory' first if >> mail-source-movemail-program is nil, and then fall back to >> 'executable-find'? Or perhaps we should just forget about 'our' movemail >> and require people to install Mailutils. >> I think you are suggesting that Gnus simply specify the executable name, >> movemail, and PATH will take care of finding it. Is that correct? >> Assuming that works, that also seems reasonable. The only possible >> drawback could be for users who specify a value for >> `mail-source-movemail-program'. Won't that value be ignored? > Sorry, I should have been more explicit. My suggestion is to replace > this: > (apply > 'call-process > (append > (list > (or mail-source-movemail-program > (expand-file-name "movemail" exec-directory)) > nil errors nil from to))))) > with this: > (apply > 'call-process > (append > (list > (or mail-source-movemail-program "movemail") > nil errors nil from to))))) > Since call-process calls the moral equivalent of executable-find > internally, calling executable-find during initialization is > redundant: call-process will find movemail on exec-path; moreover, > Robert's suggestion will not work if movemail was installed or moved > after mail-source.el was loaded. > Did I succeed to explain myself this time? Yes, this is clear and seems reasonable. The way things work now, if a user configures using --with-mailutils=no, then he will be guaranteed by default [1] to be using Emacs' own movemail installed under exec-directory. This will change with your suggestion. I think that's reasonable, but we were just pointing out that the default behaviour will change. [1] Since mail-source-movemail-program default to nil --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEVbCTpybDiFVxIrrVNqQMg7DW754FAlsdQaBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUACgkQNqQMg7DW 755bQw//RDr4kUEcEjQAGMWcyfGZHhJY6gCuajQSbItW0nFk2HeBpmeJeVf03ueo jeIH1zGg/N6NqJgGYTaeQmMtSCe2ERapClA5+LbgMFtfAA5gRQLSxByVDPD4HKV5 6QJEbpG2ZmGZoS5JJHmd99aXDkMA5byoepdVMWWYCPFwOClpWEQDL/uSGBw04Gi6 CwvdWgFfkjPaHY0NGXWR7VNTel0XynvVsCchEoPBqAF8PPaV6+p+3TRBODERo9t6 P8aG/vaFjBs0al3kB8qINZyZ66WnXJ7/BDNdC4j8xI0rcaLYR9/j+tOB5AUsrXSh 1zQS+VcT6DDBIchLLyiog9gk4eARju1EFacguM1+Yf40aHlsPeB+BqYhuygnT7FQ YfulHT+tDAHEuVDdkOx0c/pHVofPu23JpLrTdqW84nhBmAA6goR6gKYMCOLpe7jA vVv9IAbXi6Rsjelw9cJCYOyK+Ik066GnR4hyoZgEBYiMyiLFkQh5WYoMBAl383aW dsSNJnqJ3z7QIwiCQlhLMiD30QBu4VWT++UeNwvAaWfMEPrColONndDMkKuq372p Uhov5J8s4V9tTnJa3fT6CwUISAi8FnvcFPPrHbNCDIviWpUHrncmXOSbbwEuR0it icihvOIuX6SctbplxavTJlWNcyPdpAVRWVHoktpMoY9WNgkXKdE= =5xsA -----END PGP SIGNATURE----- --=-=-=--