From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88181 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Gnus mock package for testing Gnus Date: Sat, 13 Oct 2018 09:06:07 -0700 Message-ID: <878t31omq8.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539446731 24542 195.159.176.226 (13 Oct 2018 16:05:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2018 16:05:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36395@lists.math.uh.edu Sat Oct 13 18:05:27 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBMPu-0006E9-8I for ding-account@gmane.org; Sat, 13 Oct 2018 18:05:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1gBMQx-0004im-V2; Sat, 13 Oct 2018 11:06:32 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gBMQo-0004fs-HX for ding@lists.math.uh.edu; Sat, 13 Oct 2018 11:06:22 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gBMQm-00033Z-Te for ding@lists.math.uh.edu; Sat, 13 Oct 2018 11:06:22 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBMQl-0007A8-L1 for ding@gnus.org; Sat, 13 Oct 2018 18:06:19 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gBMOe-0004ne-11 for ding@gnus.org; Sat, 13 Oct 2018 18:04:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:0Sv/DSvo2U6ZZ4Ha8YLS6XXbulM= X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin (3.4.2 2018-09-13) analysis follows Bayesian score: 0.1843 Ham tokens: 0.000-40--1491h-0s--1d--H*M:fsf, 0.000-39--1469h-0s--1d--H*MI:fsf, 0.000-32--1202h-0s--1d--H*UA:Emacs, 0.000-32--1181h-0s--1d--H*u:Emacs, 0.000-25--943h-0s--1d--H*UA:Gnus Spam tokens: 0.997-33006--605h-26734s--0d--H*r:quimby.gnus.org, 0.995-34005--1018h-27857s--0d--HTo:D*gnus.org, 0.994-1644--52h-1349s--0d--H*RU:quimby.gnus.org, 0.994-1644--52h-1349s--0d--Hx-spam-relays-external:quimby.gnus.org, 0.993-35009--1314h-28891s--0d--H*RT:80.91.231.51 Autolearn status: no autolearn_force=no -0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20% [score: 0.1843] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88181 Archived-At: Hello Gnus hackers and bughunters, I've just put a package on Elpa called gnus-mock, which provides a dummy Gnus installation that you can use for hunting bugs, or working on Gnus features. You run M-x gnus-mock-start, and it will start up a second Emacs process, with Gnus pre-configured to use a dummy setup, complete with fake mail data, that you can wreck to your heart's content. When it gets too messy you just kill the second Emacs process, restart it, and everything's back the way it was. It also comes with a little Python script as a fake sendmail program, so you can send yourself emails in a little loop. If anyone's on Windows, I'd appreciate testing of this feature, as I don't have access to a Windows machine and it's a bit of a guess. My hope is that this will make it easier to hunt bugs, report bugs, profile Gnus, and develop new features, without endangering your own mail data. Right now it only comes with a single nnmaildir server; future plans include adding more servers, including looking for a "dovecot" executable and maybe setting up a nnimap server. Enjoy! Eric