[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] choosing signatures
* Eric Sherman <hyperbolist@gmail.com> [Do Jun 10 19:02:45 +0200 2010]
> Excerpts from Gregor Hoffleit's message of Thu Jun 10 12:08:34 -0400 2010:
> > Wouldn't the before-edit hook work for replying, as well?
>
> I imagine so, and peeking quickly at reply-mode.rb seems to confirm this.
> I probably wrote these way back when starting to use sup when I assumed
> that before-edit only fired on new emails and reply-from only fired on
> replies. The next time I need to change their behavior I'll probably
> DRY-ify my hooks. Thanks for pointing this out.
Short update: When I tried your code, I couldn't get before-edit work as
expected. Appearently, the before-edit hook is called multiple times in
reply-mode, with varying headers, which broke my naive transformations:
Subsequent calls reverted/overwrote changes made in earlier calls.
I haven't looked in depth at this, though.
Gregor
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk