From: Gaute Hope <eg@gaute.vetsj.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] [patch] Add crypto_selector variable to before-edit
Date: Fri, 12 Mar 2010 23:34:16 +0100 [thread overview]
Message-ID: <1268433226-sup-8467@dolk> (raw)
In-Reply-To: <1268431172-sup-9482@nemesis.home>
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]
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"] == "foo@ba.r"
>
> (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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2010-03-12 22:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 14:32 Daniel Schoepe
2010-01-23 12:53 ` William Morgan
2010-01-24 11:10 ` Carlos Garcia Campos
2010-01-26 15:55 ` Daniel Schoepe
2010-01-26 18:19 ` Ben Walton
2010-02-27 18:17 ` Rich Lane
2010-03-09 10:29 ` Gaute Hope
2010-03-12 22:03 ` Daniel Schoepe
2010-03-12 22:34 ` Gaute Hope [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1268433226-sup-8467@dolk \
--to=eg@gaute.vetsj.com \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox