[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnus-mock e533ff2 06/27: Provide support for fakesendma
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnus-mock e533ff2 06/27: Provide support for fakesendmail script in windows, bump to 0.1.1 |
Date: |
Tue, 1 Dec 2020 10:11:36 -0500 (EST) |
branch: externals/gnus-mock
commit e533ff2761b64dfc702a46b62827590415b94abb
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Provide support for fakesendmail script in windows, bump to 0.1.1
* packages/gnus-mock/data/windows-sendmail-wrapper.cmd: Executable
wrapper for the fakesendmail.py Python script.
* packages/gnus-mock/gnus-mock.el (gnus-mock-sendmail-program): Detect
if we're using Windows, and set accordingly.
---
data/windows-sendmail-wrapper.cmd | 4 ++++
gnus-mock.el | 8 +++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/data/windows-sendmail-wrapper.cmd
b/data/windows-sendmail-wrapper.cmd
new file mode 100755
index 0000000..53fe4c5
--- /dev/null
+++ b/data/windows-sendmail-wrapper.cmd
@@ -0,0 +1,4 @@
+@echo off
+set ERRORLEVEL=
+call python fake-sendmail.py %*
+exit /b %ERRORLEVEL%
diff --git a/gnus-mock.el b/gnus-mock.el
index 715aa27..39d94f0 100644
--- a/gnus-mock.el
+++ b/gnus-mock.el
@@ -4,7 +4,7 @@
;; Author: Eric Abrahamsen <eric@ericabrahamsen.net>
;; Maintainer: Eric Abrahamsen <eric@ericabrahamsen.net>
-;; Version: 0.1
+;; Version: 0.1.1
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -91,7 +91,6 @@ started."
:group 'gnus-mock
:type 'string)
-
(defcustom gnus-mock-cleanup-p t
"When non-nil, delete temporary files after shutdown.
Each Gnus mock session will create a unique temporary directory,
@@ -105,7 +104,10 @@ so multiple sessions will not conflict if this option is
nil."
:type 'boolean)
(defcustom gnus-mock-sendmail-program
- (when (executable-find "python") "fakesendmail.py")
+ (when (executable-find "python")
+ (if (memq system-type '(cygwin ms-dos windows-nt))
+ "windows-sendmail-wrapper.cmd"
+ "fakesendmail.py"))
"Program used as the value of `sendmail-program'."
:group 'gnus-mock
:type 'string)
- [elpa] branch externals/gnus-mock created (now 84c6b96), Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 4d8423a 01/27: Gnus mock initial commit, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock a9208d3 02/27: Split gnus-mock-settings-file into two separate options, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 20ed31e 03/27: Create necessary empty maildir on startup, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock e533ff2 06/27: Provide support for fakesendmail script in windows, bump to 0.1.1,
Stefan Monnier <=
- [elpa] externals/gnus-mock 9a13623 09/27: * gnus-mock.el: Make sure the 'data' subdir is included, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 6beed29 07/27: packages/gnus-mock: Adjust copyright, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock d499861 04/27: Warn user if sendmail-program is unavailable, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 88de2e8 05/27: Maybe clean up dirs if the start process fails, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock a21fb5d 08/27: gnus-mock/data/.gnus.el: Fix comment, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 9cf301f 10/27: [gnus-mock] Zoop the condition-case up around the whole function, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 5431bdd 13/27: [gnus-mock] Fix two small bugs, bump version to 0.2.1, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 5564ed9 15/27: [gnus-mock] Don't completely swallow errors, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock de629d1 20/27: [gnus-mock] Add Paul Eggert's misencoded Gnus message, bump to 0.4.2, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock adbd14e 24/27: [gnus-mock] Improvement to previous patch, bump to 0.4.4, Stefan Monnier, 2020/12/01