"Ivo Gandolfo" wrote:
> all work fine.
IMHO, ( I'm a dumbass) is wrong a regexp statements on my Slackware(tm) machine, es. exception not managed...
"""
$ /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg test2.txt
[GNUPG:] NEWSIG
gpgv: Firma effettuata dom 4 feb 2024, 22:30:02 CET
gpgv: utilizzando la chiave RSA 570EE1F8CC166E5969A9977BF7A357009C7679D8
[GNUPG:] KEY_CONSIDERED 570EE1F8CC166E5969A9977BF7A357009C7679D8 0
[GNUPG:] SIG_ID NrW6nLCa+J8faWSjNqL+znlHkBA 2024-02-04 1707082202
[GNUPG:] KEY_CONSIDERED 570EE1F8CC166E5969A9977BF7A357009C7679D8 0
[GNUPG:] GOODSIG F7A357009C7679D8 i2pn2-nocem <
i2pn2...@i2pn2.org>
gpgv: Firma valida da "i2pn2-nocem <
i2pn2...@i2pn2.org>"
[GNUPG:] VALIDSIG 570EE1F8CC166E5969A9977BF7A357009C7679D8 2024-02-04 1707082202 0 4 0 1 10 01 570EE1F8CC166E5969A9977BF7A357009C7679D8
"""
"""
$ /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg test.txt # this is a new sig
[GNUPG:] NEWSIG no...@usenet.ovh
gpgv: Firma effettuata dom 4 feb 2024, 22:15:01 CET
gpgv: utilizzando la chiave EDDSA 16BEEB50A7A31430DE6A41CE64DD21195789E33A
gpgv: autorità emittente "no...@usenet.ovh"
[GNUPG:] KEY_CONSIDERED 16BEEB50A7A31430DE6A41CE64DD21195789E33A 0
[GNUPG:] SIG_ID tHBBdXwOMM0AbTOiZWyT1gKeZBY 2024-02-04 1707081301
[GNUPG:] KEY_CONSIDERED 16BEEB50A7A31430DE6A41CE64DD21195789E33A 0
[GNUPG:] GOODSIG 64DD21195789E33A alfanet <no...@usenet.ovh>
gpgv: Firma valida da "alfanet <no...@usenet.ovh>"
[GNUPG:] VALIDSIG 16BEEB50A7A31430DE6A41CE64DD21195789E33A 2024-02-04 1707081301 0 4 0 22 8 01 16BEEB50A7A31430DE6A41CE64DD21195789E33A
"""
"""
$ grep -A20 "#logmsg(\"Command line was: \$INN::Config::gpgv --status-fd=1\"" perl-nocem
#logmsg("Command line was: $INN::Config::gpgv --status-fd=1"
# . ($keyring ? ' --keyring=' . $keyring : '') . " $art", 'debug');
#logmsg("Full PGP output: >>>$_<<<", 'debug');
if (/^\[GNUPG:\]\s+GOODSIG\s+\S+\s+(.*)/m) {
return 1 if $1 =~ /\Q$issuer\E/;
logmsg("Article $msgid: signed by $1 instead of $issuer");
} elsif (/^\[GNUPG:\]\s+NO_PUBKEY\s+(\S+)/m) {
logmsg("Article $msgid: $issuer (ID $1) not in keyring");
} elsif (/^\[GNUPG:\]\s+BADSIG\s+\S+\s+(.*)/m) {
logmsg("Article $msgid: bad signature from $1");
} elsif (/^\[GNUPG:\]\s+BADARMOR/m or /^\[GNUPG:\]\s+UNEXPECTED/m) {
logmsg("Article $msgid: malformed signature");
} elsif (/^\[GNUPG:\]\s+ERRSIG\s+(\S+)/m) {
# safety net: we get there if we don't know about some token
logmsg("Article $msgid: unknown error (ID $1)");
#
logmsg("Command line was: $INN::Config::gpgv --status-fd=1"
. ($keyring ? ' --keyring=' . $keyring : '') . " $art", 'debug');
logmsg("Full PGP output: >>>$_<<<", 'debug');
} else {
"""
grep -A1 -B1 "nocem: Command line was" news.log
Feb 5 00:00:06 gatto nocem: Article <nocembot-fr.0.4...@usenet.ovh>: unknown error (ID 64DD21195789E33A)
Feb 5 00:00:06 gatto nocem: Command line was: /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg /var/spool/inn/tmp/nocem.17167
Feb 5 00:00:06 gatto nocem: Full PGP output: >>>[GNUPG:] NEWSIG no...@usenet.ovh
--
Feb 5 00:20:03 gatto nocem: Article <nocembot-fr.0.4...@usenet.ovh>: unknown error (ID 64DD21195789E33A)
Feb 5 00:20:03 gatto nocem: Command line was: /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg /var/spool/inn/tmp/nocem.17167
Feb 5 00:20:03 gatto nocem: Full PGP output: >>>[GNUPG:] NEWSIG no...@usenet.ovh
"""
Thanks you all and sorry for the bustle
--
Roberto