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> "[EMAIL PROTECTED]" =~ /@server.com/ => 3 irb(main):002:0> "[EMAIL PROTECTED]" =~ /[EMAIL PROTECTED]/ => 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 <[EMAIL PROTECTED]> _______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
