From: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Minimal Gnus setup for test purposes
Date: Wed, 26 Jul 2023 22:00:47 +0200 [thread overview]
Message-ID: <f3c33d78-8bbb-0bef-ff8c-a1373b1113ac@vodafonemail.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 2512 bytes --]
In the context of some ol-gnus bug I created a minimal Gnus setup. Ihor
wanted to have a look at it, so here it is.
To use:
- create an empty directory /foo/bar/baz and say
unzip -qd /foo/bar/baz gnus-minimal-test.zip
- if you want to use the nnselect backend based on notmuch (haven't
tested other search engines), ensure you have notmuch installed and
generate the search index with
HOME=/foo/bar/baz notmuch new
- HOME=/foo/bar/baz make vanilla, HOME=/foo/bar/baz emacs -Q, whatever.
Only ensure to set the home directory to that newly created directory
when starting Emacs.
- M-x load-file ~/.gnus RET
- M-x gnus RET
You should see a rather bland *Group* buffer along the following lines:
1: nndraft:drafts
182: nntp+news.gmane.io:gmane.emacs.announce
156101: nntp+news.gmane.io:gmane.emacs.orgmode
0: nnml+archive:test01
0: nnml+archive:test02
0: nnvirtual:test03
0: nnselect:test04
(Please don't judge Gnus by this boring look - after all, this is a
minimal test!)
From here you can select groups and articles with RET:
nndrafts+ - where Gnus saves mail drafts
nntp+... - obvious
nnml+... - Gnus' own article archive backend
nnvitual+ - "virtual" group on archives test01 & test02
nnselect+ - search group searching for "emacs" in
archives test01 & test02
and exit from these (and Gnus itself) with `q'.
More notes:
- Not sure as to how that could be used with ERT. Gnus itself has only
very basic tests in the Emacs distribution, AFAICT. Using Gnus is
something rather interactive, after all, and I have little ERT
experience and none with interactive tests.
- Gnus expects all these files relative to the home directory. In
particular, there are some reference to that in the configuration files.
Here it would be helpful if ERT could be tricked into changing the home
directory to some temporary directory, as done in the instructions given
above. IIRC the home directory must be set before Gnus starts.
- If some of the groups shown above, like nntp (requiring internet
connectivity) or nnselect (requiring notmuch), are not suitable for
ERT, these could be removed from the setup.
- Gnus should be rather stable. Anyhow, if you decide to test
Org-Gnus-interaction, you most likely will be testing 10% Org
functionality and 90% Gnus functionality. Which comes at a certain
risk, of course.
Have fun and feel free to ask or comment ...
[-- Attachment #2: gnus-minimal-test.zip --]
[-- Type: application/zip, Size: 18913 bytes --]
next reply other threads:[~2023-07-26 20:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 20:00 Jens Schmidt [this message]
2023-07-26 20:36 ` Minimal Gnus setup for test purposes Kévin Le Gouguec
2023-07-27 8:06 ` Ihor Radchenko
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f3c33d78-8bbb-0bef-ff8c-a1373b1113ac@vodafonemail.de \
--to=jschmidt4gnu@vodafonemail.de \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).