Subject: Re: [sup-talk] [patch] Add crypto_selector variable to before-edit

From: Gaute Hope <[email-masked]>
Date: Fri, 12 Mar 2010 23:34:16 +0100

Excerpts from Daniel Schoepe's message of 2010-03-12 23:03:03 +0100:
> Excerpts from Gaute Hope's message of Tue Mar 09 11:29:13 +0100 2010:
> > Could someone be so kind and provide an example for setting it to i.e.
> > 'Sign' by default, given a specific from address?
> > 
> > - gaute
> 
> Something like this should work:
> 
> crypto_selector.set_to :sign if header["From"] == "[email-masked]"
> 
> (You might need to use e.g. a regex if the header also contains the name,
> as in "Foo Bar <mail>")

Thanks, that did it!

- gaute

---

From: Daniel Schoepe <[email-masked]>
Date: Tue, 26 Jan 2010 16:55:55 +0100

Excerpts from William Morgan's message of Sat Jan 23 13:53:04 +0100 2010:
> Hi Daniel,
> 
> I like the idea, but would prefer a dedicated "crypto-mode" hook
> analogous to how we have the "reply-to" hook for setting the default
> reply-to mode.

Okay, here's the new patch:
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Ben Walton <[email-masked]>
Date: Tue, 26 Jan 2010 13:19:57 -0500

> Okay, here's the new patch:

+1 for this.  Patch looks OK to my eye, fwiw.

-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Daniel Schoepe <[email-masked]>
Date: Mon, 18 Jan 2010 15:32:26 +0100

This patch adds crypto_selector to the variables available to the
before-edit hook, so one can set default crypto-options or
sign/encrypt a mail depending on e.g the message or header content.

Users should beware that the variable can be nil, since the same hook
is also run from reply_mode which doesn't have access to the
crypto_selector element or crypto-support can be absent entirely.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: William Morgan <[email-masked]>
Date: Sat, 23 Jan 2010 07:53:04 -0500

Hi Daniel,

William <[email-masked]>

---

From: Carlos Garcia Campos <[email-masked]>
Date: Sun, 24 Jan 2010 12:10:30 +0100

> analogous to how we have the "reply-to" hook for setting the default

+1

I filed a bug report for that some time ago indeed:

http://masanjin.net/sup-bugs/issue13

-- 
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Daniel Schoepe <[email-masked]>
Date: Fri, 12 Mar 2010 23:03:03 +0100

---

From: Rich Lane <[email-masked]>
Date: Sat, 27 Feb 2010 13:17:48 -0500

Applied to master.

---

From: Gaute Hope <[email-masked]>
Date: Tue, 09 Mar 2010 11:29:13 +0100

- gaute