TIP: Click on subject to list as thread! ANSI
echo: public_keys
to: TOMMI KOIVULA
from: WILFRED VAN VELZEN
date: 2020-01-09 20:25:00
subject: Re: GoldED

Hi Tommi,

On 2020-01-09 20:07:16, you wrote to me:

 TK> EXTERNUTIL 2 gpg.exe --default-key 2A6F822A -o @file --clearsign
 TK> @tmpfile
 TK> EDITSAVEUTIL 2 "gpg sign the msg --default-key 2A6F822A"

 TK> EXTERNUTIL 3 gpg.exe --default-key 2A6F822A -sea -o @file -r "@dname"
 TK> @tmpfile EDITSAVEUTIL 3 "gpg encrypt the msg --default-key 2A6F822A"

 TK> === Cut ===

 TK> My Golded.cfg in Windows.

My linux golded.cfg:

EXTERNOPTIONS -NoKeepCtrl

EXTERNUTIL 1 /home/fido/bin/fido_gpg.sh @file -sa                              
       ;sign
EXTERNUTIL 2 /home/fido/bin/fido_gpg.sh @file --clearsign                      
       ;clearsign
EXTERNUTIL 3 -Wipe /home/fido/bin/fido_gpg.sh @file -ea  -r "@dname" -r
"@oname"       ;encrypt
EXTERNUTIL 4 -Wipe /home/fido/bin/fido_gpg.sh @file -esa -r "@dname" -r
"@oname"       ;enc & sign
EXTERNUTIL 5 /home/fido/bin/fido_gpg.sh @file -u "@dname"                      
       ;decrypt
EXTERNUTIL 6 -noreload /home/fido/bin/fido_gpg.sh @file -ka -u "@dname"        
       ;add key

EDITSAVEUTIL 1 "S PGP Sign the msg"
EDITSAVEUTIL 2 "L PGP CLear-Sign the msg"
EDITSAVEUTIL 3 "E PGP Encrypt the msg"
EDITSAVEUTIL 4 "T PGP EncrypT & Sign the msg"

wilnux5:/home/fido/bin # cat fido_gpg.sh
#!/bin/dash
TFILE=$(mktemp) || exit 1
chmod a+rw $TFILE
IFILE="$1"
shift
sudo -u wilfred gpg --yes "$@" -o $TFILE $IFILE
mv -f $TFILE $IFILE

This because golded runs as user fido. (This could of course be improved to
check for the exit status of gpg before overwriting the $IFILE)

Bye, Wilfred.

--- FMail-lnx64 2.1.0.18-B20170815
* Origin: FMail development HQ (2:280/464)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.