Excerpts from Edward Z. Yang's message of Mon Jun 08 17:59:39 -0400 2009: > What's your opinion on making this default behavior, with no configuration > twiddle?
Reading the thread, it's not clear exactly what your hook does, or what behavior you want as the default. I didn't see anything which said what you were trying to accomplish. Attempting to figure it out from your code samples, I'm guessing that you're trying to get sup to always reply with a from address of the known address of yours found in the recipient list of the email being relied to, if any? If so, I accomplish that with: -----------------------------------%<----------------------------------- # Reply with the address they used for me if it's an account of mine if(b = (message.to + message.cc).find { |p| AccountManager.is_account? p }) b else AccountManager.default_account end -----------------------------------%<----------------------------------- My opinion is that this is a common enough need that it should be provided in the set of example hooks with the distribution, and/or in a hook cookbook on the wiki. I do get the sense that there might be a lot of people out there who want to use the default (always use default account) behavior, so I'm not sure about switching the default. I wouldn't exactly be against it, though. Sorry if I'm misinterpreting what you've been trying to do. I didn't see any direct mention of the goal in the thread. Marc
signature.asc
Description: PGP signature
_______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk