Re: Conditionally removing signature

2009-07-20 Thread Noah Slater
On Tue, Jul 07, 2009 at 02:06:23PM +0200, Rocco Rutte wrote: > Please see if this example and text above it helps you: > >http://dev.mutt.org/doc/manual.html#ex-recips > > If I understand you right (mail _only_ to you: no sig, mail you and > other in the recips: sig), then this may work (un

Re: Conditionally removing signature

2009-07-11 Thread Jan-Herbert Damm
Hi, Concerning Roccos gpg.py script Cameron Simpson wrote on 10.07.09: > Use egrep. [...] Thanks for pointing it out, Cameron. I got the regex to work but still the script outputs the group command only with none of the emails from the gpg --list-keys command. Trying to figure out why is really m

Re: Conditionally removing signature

2009-07-09 Thread Cameron Simpson
On 09Jul2009 16:37, Jan-Herbert Damm wrote: | If you find this too OT, please accept my apolgies and ignore it. I will try to | ask somewhere "pythonic". Looks on topic to me. | Rocco Rutte wrote on 09.07.09: [...] | > mail_re = re.compile(r'^[^<]+<([^>]+)>.*') [...] | I havn't gotten it t

Re: Conditionally removing signature

2009-07-09 Thread Ed Blackman
On Tue, Jul 07, 2009 at 01:32:33PM -0500, Kyle Wheeler wrote: Not unless Ubuntu broke it. The -group support was added to 1.5.12 (released 2006-07-14). I don't remember when crypt_* stuff replaced the pgp_* stuff, but the related variable crypt_replyencrypt has been around since at least mutt 1

Re: Conditionally removing signature

2009-07-09 Thread Grant Edwards
On 2009-07-09, Jan-Herbert Damm wrote: > I havn't gotten it to work yet. Could the regex be the culprit? QOTW+ -- Grant Edwards grante Yow! But they went to MARS at around 1953!! visi.c

Re: Conditionally removing signature

2009-07-09 Thread Jan-Herbert Damm
Hi, If you find this too OT, please accept my apolgies and ignore it. I will try to ask somewhere "pythonic". Rocco Rutte wrote on 09.07.09: > #!/usr/bin/env python2.6 > > import subprocess, re > > if __name__ == '__main__': > mail_re = re.compile(r'^[^<]+<([^>]+)>.*') > a, p = set(),

Re: Conditionally removing signature

2009-07-09 Thread Rocco Rutte
Hi, * Kyle Wheeler wrote: > Well, a better idea would, imho, be to use the "group" command, like > so: > > group -group gpg -addr us...@example.org \ > us...@example.net \ > ... Yes, that's better. Rocco (attaching the script this t

Re: Conditionally removing signature

2009-07-08 Thread Kyle Wheeler
-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

Re: Conditionally removing signature

2009-07-08 Thread Rocco Rutte
Hi, * Kyle Wheeler wrote: > Actually, I do something slightly different: > send-hook . 'set crypt_autoencrypt=no' > send-hook '!~G ^%C pgp' 'set crypt_autoencrypt=yes' > Then, in my aliases file, I tag people that I want to encrypt things > to, like so: > alias -gro

Re: Conditionally removing signature

2009-07-07 Thread Rocco Rutte
On Tue, Jul 07, 2009 at 11:43:56AM -0400, Ed Blackman wrote: > On Tue, Jul 07, 2009 at 02:06:23PM +0200, Rocco Rutte wrote: > >Please see if this example and text above it helps you: > > > > http://dev.mutt.org/doc/manual.html#ex-recips > > When was this added? It was added on Oct. 2nd, 1998

Re: Conditionally removing signature

2009-07-07 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Tuesday, July 7 at 02:12 PM, quoth Ed Blackman: > On Tue, Jul 07, 2009 at 12:43:59PM -0500, Kyle Wheeler wrote: >> On Tuesday, July 7 at 11:43 AM, quoth Ed Blackman: >>> send-hook "~t joe@" set pgp_autoencrypt=yes # ... >> >> I think you probabl

Re: Conditionally removing signature

2009-07-07 Thread Ed Blackman
On Tue, Jul 07, 2009 at 12:43:59PM -0500, Kyle Wheeler wrote: On Tuesday, July 7 at 11:43 AM, quoth Ed Blackman: send-hook "~t joe@" set pgp_autoencrypt=yes # ... I think you probably want $crypt_autoencrypt instead of pgp_*. I think it must have changed in a recent version that you have an

Re: Conditionally removing signature

2009-07-07 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Tuesday, July 7 at 11:43 AM, quoth Ed Blackman: > send-hook "~t joe@" set pgp_autoencrypt=yes # ... I think you probably want $crypt_autoencrypt instead of pgp_*. > This autoencrypts whenever I email Joe directly (what I want) and > when I ema

Re: Conditionally removing signature

2009-07-07 Thread Ed Blackman
On Tue, Jul 07, 2009 at 02:06:23PM +0200, Rocco Rutte wrote: Please see if this example and text above it helps you: http://dev.mutt.org/doc/manual.html#ex-recips When was this added? I'm using Mutt 1.5.17+20080114 (Ubuntu Hardy), and have a similar request. I usually PGP sign emails

Re: Conditionally removing signature

2009-07-07 Thread Rocco Rutte
Hi, * Noah Slater wrote: Please see if this example and text above it helps you: http://dev.mutt.org/doc/manual.html#ex-recips If I understand you right (mail _only_ to you: no sig, mail you and other in the recips: sig), then this may work (untested): > send-hook .* "source

Conditionally removing signature

2009-07-06 Thread Noah Slater
Hey, I have the following configuration: send-hook .* "source ~/.mutt/include/tumbolia" send-hook apache "source ~/.mutt/include/apache" send-hook debian "source ~/.mutt/include/debian" send-hook gnu "source ~/.mutt/include/gnu" Each one of these files contains