Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] filter question
Date: Mon, 25 Feb 2008 09:02:19 -0800	[thread overview]
Message-ID: <1203958719-sup-6567@south> (raw)
In-Reply-To: <1203920420-sup-2769@altis>

Reformatted excerpts from kingshivan's message of 2008-02-24:
> ok, I got it, this line was causing problem :
> message.add_label "server" if message.from.email =~ /@server.com/
> 
> replacing @ with \@ did the trick

Weird. That shouldn't make a difference. @ doesn't require escaping in
regexes. E.g.:

  $ irb
  irb(main):001:0> "bob at server.com" =~ /@server.com/
  => 3
  irb(main):002:0> "bob at server.com" =~ /\@server.com/
  => 3

Well, if it works, it works.

> PS : in fact, I'd have another questio : is there an way to switch the
> "from" field, like it is done in gmail ? I entered two additionnal
> email addresses with sup-config but found no option to use them.

There's no way in the GUI, at least currently. I would like to have a
way, but I'm not sure what the interface would look like.

You have two options: you can overwrite the From: line in the editor
when you compose an email, or you can use the before-edit hook to
programmatically set the From address based on the to address, etc.

-- 
William <wmorgan-sup at masanjin.net>


  reply	other threads:[~2008-02-25 17:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23 21:34 Guillaume Quintard
2008-02-24 22:58 ` William Morgan
2008-02-25  0:12   ` Guillaume Quintard
2008-02-25  5:13     ` William Morgan
2008-02-25  6:28       ` shivan
2008-02-25 17:02         ` William Morgan [this message]
2008-02-25 17:42           ` Guillaume Quintard
2008-02-28 17:43             ` William Morgan

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=1203958719-sup-6567@south \
    --to=wmorgan-sup@masanjin.net \
    /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