[neomutt-users] GPG-setup: How to test without involving others?

Richard Russon rich at flatcap.org
Thu Jul 9 12:34:28 CEST 2026


Hi tuxic,

> is there a way to check whether the own setup of
> gpg-encryption will work without bombarding others
> with lot of binary garbage?

Here's a very crude way to do it...

Create a temp mailbox: mkdir -p fake/{cur,new,tmp}
Create a fake sendmail script (fake.sh)

#!/bin/sh
cat > fake/cur/outgoing.eml

Run NeoMutt and set some config:

:set smtp_url="" sendmail="fake.sh"

Then compose and send an email.

To make this more useful, you could use mktemp(1) in the script to
create a random filename, and run a second NeoMutt watching the fake
mailbox.

Cheers,
    FlatCap / Rich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20260709/049cedf0/attachment.sig>


More information about the neomutt-users mailing list