Subject: Re: [sup-talk] changing "excerpts from" string?

From: Ben Walton <[email-masked]>
Date: Wed, 14 Jul 2010 09:45:00 -0400

Excerpts from David Rysdam's message of Wed Jul 14 09:24:01 -0400 2010:

> Is the format of that a config option that isn't documented or is it
> hardcoded?

What you're looking for is the attribution hook.  Run sup with -l to
see the list of available hooks and the location where sup expects to
find the file.  Additionally, it tells you 'what you get' and 'what to
give back.'

In this case, you have a message variable available that represents
the message you're replying to and you need to return a string.

HTH.
-Ben

--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: David Rysdam <[email-masked]>
Date: Wed, 14 Jul 2010 09:24:01 -0400

"Excerpts from <person's> message of Tue Jul 13 10:46:51 -0400"

---

From: Mariano Mara <[email-masked]>
Date: Wed, 14 Jul 2010 10:40:38 -0300

> Is the format of that a config option that isn't documented or is it

$ grep -Rn Excerpts *
modes/edit-message-mode.rb:476:    @body.join("\n") =~ /(\S+)\s*Excerpts
from.*\n(>.*\n)+\s*\Z/
modes/reply-mode.rb:14:Generates an attribution ("Excerpts from Joe
Bloggs's message of Fri Jan 11 09:54:32 -0500 2008:").
modes/reply-mode.rb:187:    "Excerpts from [email-masked]}'s message of
[email-masked]}:"

Looks hardcoded to me. Since I don't really understand ruby, this is a
wild guess.

Mariano

---

From: David Rysdam <[email-masked]>
Date: Wed, 14 Jul 2010 09:49:40 -0400

> find the file.  Additionally, it tells you 'what you get' and 'what to

Whoa, that -l thing is an awesome feature.  One thanks for the
attribution hook and one thanks for the -l feature.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk