From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Package proposal: gnus-mock Date: Fri, 12 Oct 2018 12:02:13 -0700 Message-ID: <878t33xa2y.fsf@ericabrahamsen.net> References: <87d0shr60b.fsf@ericabrahamsen.net> <83d0shy6bq.fsf@gnu.org> <87tvltmvcg.fsf@ericabrahamsen.net> <83lg73wpfc.fsf@gnu.org> <87d0sfxem2.fsf@ericabrahamsen.net> <837einvyl6.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539370838 14103 195.159.176.226 (12 Oct 2018 19:00:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2018 19:00:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 12 21:00:34 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 1gB2fp-0003Y0-5J for ged-emacs-devel@m.gmane.org; Fri, 12 Oct 2018 21:00:33 +0200 Original-Received: from localhost ([::1]:42291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB2hv-0001kf-Og for ged-emacs-devel@m.gmane.org; Fri, 12 Oct 2018 15:02:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB2hn-0001jw-7Z for emacs-devel@gnu.org; Fri, 12 Oct 2018 15:02:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gB2hk-0002Be-1g for emacs-devel@gnu.org; Fri, 12 Oct 2018 15:02:35 -0400 Original-Received: from [195.159.176.226] (port=49814 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gB2hj-00029P-O0 for emacs-devel@gnu.org; Fri, 12 Oct 2018 15:02:31 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gB2fR-00033m-2t for emacs-devel@gnu.org; Fri, 12 Oct 2018 21:00:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:zo+L2yQbKJYR47b4UlBPhP28inA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:230355 Archived-At: Eli Zaretskii writes: >> From: Eric Abrahamsen >> Date: Fri, 12 Oct 2018 10:24:21 -0700 >> >> I don't want to make the users do anything, I'm just saying that I can't >> change `message-send-mail-with-sendmail' to use >> `shell-command-on-region' instead of `call-process-region'. > > call-process-region accepts arguments to the program, doesn't it? I don't have any control over the call, though. It looks like this: (apply 'call-process-region (append (list (point-min) (point-max) sendmail-program nil errbuf nil "-oi") message-sendmail-extra-arguments (and (null message-sendmail-f-is-evil) (list "-f" (message-sendmail-envelope-from))) (if (null message-interactive) '("-oem" "-odb")) (if resend-to-addresses (list resend-to-addresses) '("-t")))) All I've got to work with is the value of `sendmail-program'. I can't even stick the script name in `message-sendmail-extra-arguments', because Python will complain about the "-oi" argument. All I can think of is providing a separate executable for Windows users, but I don't know what that executable would look like. Thanks again, Eric