From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Mon, 25 Feb 2008 09:02:19 -0800 Subject: [sup-talk] filter question In-Reply-To: <1203920420-sup-2769@altis> References: <1203801642-sup-8748@altis> <1203893761-sup-560@south> <1203898237-sup-1505@altis> <1203916279-sup-3593@south> <1203920420-sup-2769@altis> Message-ID: <1203958719-sup-6567@south> 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