all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [ELPA] Package proposal: gnus-mock
@ 2018-10-10 18:49 Eric Abrahamsen
  2018-10-10 19:01 ` Eli Zaretskii
  2018-10-10 19:30 ` Stefan Monnier
  0 siblings, 2 replies; 22+ messages in thread
From: Eric Abrahamsen @ 2018-10-10 18:49 UTC (permalink / raw)
  To: emacs-devel

Hi,

I've just pushed the branch scratch/gnus-mock to ELPA, containing a
package I'd like to add there.

It's called "Gnus Mock", and provides a dummy test installation for
Gnus, which you can use for working on Gnus features and testing Gnus
bugs without endangering your own Gnus setup. I'm hoping this makes it
easier to do work on Gnus -- it's often hard to hack on without a full
working installation, and no one wants to risk their own mail on that.

In a nutshell, you run M-x gnus-mock-start, which first copies a dummy
Gnus installation (including mails) into a temporary directory, boots up
a new "emacs -Q", and points all Gnus-related variables at the temporary
directory. You can start Gnus as usual, hack on whatever you like,
accidentally delete data, and when it all gets too messy you can just
kill the secondary Emacs, and start over afresh.

Two questions:

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.")

   That seems to work fine, but I wanted to check there wasn't a
   better/safer way to do it.

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?


Future plans include more different pre-installed servers, including
checking for a "dovecot" executable and setting up an nnimap server if
it's found.

Comments very welcome!

Eric




^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-10-18  2:17 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.