<<< Date Index >>>     <<< Thread Index >>>

Re: Conditionally removing signature



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wednesday, July  8 at 06:05 PM, quoth Rocco Rutte:
>Nice. Toying with this leads me to:
>
>      send-hook .             'set crypt_autoencrypt=no'
>      send-hook '!~G ^%C gpg' 'set crypt_autoencrypt=yes'
>      source ~/gpg.py|
>
>where gpg.py is the attached script (in case anyone finds it useful).

ahh! Interesting.

>It adds a line like to this to the config:
>
>      alias -group gpg user1@xxxxxxxxxxx user1@xxxxxxxxxxx \
>                      user1@xxxxxxxxxxx user1@xxxxxxxxxxx \
>                      ...

Well, a better idea would, imho, be to use the "group" command, like 
so:

     group -group gpg -addr user1@xxxxxxxxxxx \
                            user2@xxxxxxxxxxx \
                            ...

Here's a perl version of that script, just in case people don't want 
to fuss with keeping python around:

     #!/usr/bin/perl
     open(KEYS, "gpg --list-keys|");
     print "group -group gpg -addr";
     while (<KEYS>) {
         next unless /^uid .*<([^>]+)>/;
         print " $1";
     }
     print "\n";
     close KEYS;

~Kyle
- -- 
Coffee is the common man's gold, and like gold, it brings to every 
person the feeling of luxury and nobility.
                                                  -- Sheik Abd-al-Kadir
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKVNENAAoJECuveozR/AWeUjcP/iPcn62wYO5S/2h1IzwmO4ff
mRKN/AzZn76kSnCTOErsnuUFoFCQgvfS1pNgXgWvQf2aMOz/eczKDN4UVDKvtdOv
T8qIqtcWclkddD3/lkKW8lxEIspA7SOf8q4pCmmwILsqvFJayQK0L9ZJVuN9PjcI
N0okWkfLl0Y3lcWL5dEloBXebWwP3fPNKs2Ddp+O/vLb+SlWXjfvB2ZIcoTrS3E4
RxtGAE/JsCpsUKpH0O2YRg9Ii1uzGjtojRxqRPfP6z7e6zUJ0n4QkUr7qxhHbMbj
k/C9xTkm3/cTZoWbUSYh4bpWVh+aw52KUba/mFXc+jJycMAoJRonvZdcb7DzRy08
7sMLHb+JEcOJS+IhvgJTzJPZFDGIvPuhyQS9ta9g9VmxhNTtM6/Em50df7nmV6QX
NffcrZSg9pcWyOR9jsAY1d+iEAd09iCh9WU99q7xS9PVf6B3n9QrTMMUydgoJpoP
qfubC6PpH0Cv6Og8+Fz5f1ypl4Gvp20SM8F4tJUA8ec3l3PZVdSMbjs5HWVGrk08
BUIpeqgt8vmfbw3WJvGHWZbJNdLBG7IVBizoXMqUNSnrN26uz2wNdGpPecTXWv/M
n1Vz7mCsdznHveJq0b1jPTQZJo4ebDn93uYaDMlaSHki7j8XQ6dRe573q3T8AMNF
kZxtwgTNo/mIeo54s4Bh
=n+oX
-----END PGP SIGNATURE-----