From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] filter question
Date: Sun, 24 Feb 2008 14:58:00 -0800 [thread overview]
Message-ID: <1203893761-sup-560@south> (raw)
In-Reply-To: <1203801642-sup-8748@altis>
Reformatted excerpts from Guillaume Quintard's message of 2008-02-23:
> I still have a little problem about filters though. they don't seem to
> do anything. I have this in my before-add-message.rb :
>
> message.add_label "sent" if message.from =~ /guillaume.quintard at gmail.com/
>
> but, when I send mail to myself, it doesn't label the mail.
Yep, there was a bug where the before-add-message hook wasn't being
called on sent messages. I've fixed this in git next. Update and try
now.
But you shouldn't have to write that hook, because the sent label is
applied to all sent messages anyways!
(Also, you'd need to use message.from.email because message.from is a
Person object).
--
William <wmorgan-sup at masanjin.net>
next prev parent reply other threads:[~2008-02-24 22:58 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 [this message]
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
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=1203893761-sup-560@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