From: Gregor Hoffleit <gregor@hoffleit.de>
To: Eric Sherman <hyperbolist@gmail.com>
Cc: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] choosing signatures
Date: Mon, 14 Jun 2010 11:46:47 +0200 [thread overview]
Message-ID: <1276508193-sup-213@sam.mediasupervision.de> (raw)
In-Reply-To: <1276188610-sup-3944@changeling.local>
* 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
prev parent reply other threads:[~2010-06-14 9:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-06 19:00 Daniel Goldin
2010-06-07 4:36 ` Richard Heycock
2010-06-08 5:16 ` Daniel Goldin
2010-06-08 11:57 ` Eric Sherman
2010-06-08 16:57 ` Daniel Goldin
2010-06-10 15:52 ` Gregor Hoffleit
2010-06-10 16:01 ` Eric Sherman
2010-06-10 16:08 ` Gregor Hoffleit
2010-06-10 17:02 ` Eric Sherman
2010-06-14 9:46 ` Gregor Hoffleit [this message]
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=1276508193-sup-213@sam.mediasupervision.de \
--to=gregor@hoffleit.de \
--cc=hyperbolist@gmail.com \
--cc=sup-talk@rubyforge.org \
/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