From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Package proposal: gnus-mock Date: Wed, 10 Oct 2018 22:01:13 +0300 Message-ID: <83d0shy6bq.fsf@gnu.org> References: <87d0shr60b.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539198010 15896 195.159.176.226 (10 Oct 2018 19:00:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 19:00:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 10 21:00:06 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 1gAJiI-0003xp-JA for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2018 21:00:06 +0200 Original-Received: from localhost ([::1]:58716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAJkO-0006wd-9S for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2018 15:02:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAJjW-0006wX-9J for emacs-devel@gnu.org; Wed, 10 Oct 2018 15:01:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAJjS-0000nW-KT for emacs-devel@gnu.org; Wed, 10 Oct 2018 15:01:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAJjS-0000nS-FL; Wed, 10 Oct 2018 15:01:18 -0400 Original-Received: from [176.228.60.248] (port=3472 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gAJjR-0007Xi-Fk; Wed, 10 Oct 2018 15:01:18 -0400 In-reply-to: <87d0shr60b.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Wed, 10 Oct 2018 11:49:56 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:230318 Archived-At: > From: Eric Abrahamsen > Date: Wed, 10 Oct 2018 11:49:56 -0700 > > 1. I find the data directory like so: > > (defconst gnus-mock-data-dir > (file-name-as-directory (expand-file-name > "data" > (file-name-directory load-file-name))) > "Source directory for Gnus mock data.") Why not use data-directory? > 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"?