From: Eli Zaretskii <eliz@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] Package proposal: gnus-mock
Date: Fri, 12 Oct 2018 11:16:07 +0300 [thread overview]
Message-ID: <83lg73wpfc.fsf@gnu.org> (raw)
In-Reply-To: <87tvltmvcg.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Wed, 10 Oct 2018 12:53:51 -0700)
> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Wed, 10 Oct 2018 12:53:51 -0700
>
> >> 2. There's a small Python script in there that acts as a dummy sendmail
> >> command: when you send an email from a Gnus mock installation, it
> >> hands it off to the Python script, which boomerangs it back to a
> >> folder in the local installation, so you can send yourself messages
> >> and see what they look like. The script is called with
> >> "#!/usr/bin/env python", which I assume will be fine for Unix-y
> >> platforms, but maybe not work for Windows. I'd like it to work for
> >> Windows -- does anyone have suggestions for a more portable way of
> >> doing this?
> >
> > Issue a shell command "python SCRIPT"?
>
> That would work on Windows? (I know nothing about Windows.)
Yes, it should. 'python' is a normal executable, so Windows should
know how to run it. It's the assumption that the OS understands the
hash-bang signature of a script that's unportable, it is
Unix-specific.
> The problem is that I'm injecting this program at the lowest level
> possible, as the value of `sendmail-program', so that
> `message-send-mail-with-sendmail' works correctly, and all aspects of
> Gnus/message code can be tested. `sendmail-program' is called with
> `call-process-region', so it needs to be an executable.
python.exe is an executable.
> Would there be some way to write an executable wrapper around the
> python program? What would that look like on Windows?
It's possible (with CPython, AFAIK), but why ask users to do something
like that? Invoking the interpreter directly is much easier, IMO.
next prev parent reply other threads:[~2018-10-12 8:16 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-10 18:49 [ELPA] Package proposal: gnus-mock Eric Abrahamsen
2018-10-10 19:01 ` Eli Zaretskii
2018-10-10 19:53 ` Eric Abrahamsen
2018-10-12 8:16 ` Eli Zaretskii [this message]
2018-10-12 17:24 ` Eric Abrahamsen
2018-10-12 17:55 ` Eli Zaretskii
2018-10-12 19:02 ` Eric Abrahamsen
2018-10-12 19:24 ` Yuri Khan
2018-10-12 19:57 ` Eric Abrahamsen
2018-10-13 12:10 ` Yuri Khan
2018-10-13 15:48 ` Eric Abrahamsen
2018-10-12 19:52 ` Eli Zaretskii
2018-10-12 20:00 ` Eric Abrahamsen
2018-10-10 19:30 ` Stefan Monnier
2018-10-10 20:12 ` Eric Abrahamsen
2018-10-10 20:20 ` Stefan Monnier
2018-10-10 20:58 ` Eric Abrahamsen
2018-10-11 4:24 ` Yuri Khan
2018-10-11 16:41 ` Eric Abrahamsen
2018-10-17 17:47 ` Eric Abrahamsen
2018-10-18 0:34 ` Stefan Monnier
2018-10-18 2:17 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lg73wpfc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=eric@ericabrahamsen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.