Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Daniel Schoepe <daniel.schoepe@googlemail.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:03:03 +0100	[thread overview]
Message-ID: <1268431172-sup-9482@nemesis.home> (raw)
In-Reply-To: <1268130450-sup-8181@dolk>


[-- Attachment #1.1: Type: text/plain, Size: 403 bytes --]

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>")

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

  reply	other threads:[~2010-03-12 22:07 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 [this message]
2010-03-12 22:34         ` Gaute Hope

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=1268431172-sup-9482@nemesis.home \
    --to=daniel.schoepe@googlemail.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