Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] changing "excerpts from" string?
@ 2010-07-14 13:24 David Rysdam
  2010-07-14 13:40 ` Mariano Mara
  2010-07-14 13:45 ` Ben Walton
  0 siblings, 2 replies; 4+ messages in thread
From: David Rysdam @ 2010-07-14 13:24 UTC (permalink / raw)
  To: sup-talk

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

Is the format of that a config option that isn't documented or is it
hardcoded?
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-talk] changing "excerpts from" string?
  2010-07-14 13:24 [sup-talk] changing "excerpts from" string? David Rysdam
@ 2010-07-14 13:40 ` Mariano Mara
  2010-07-14 13:45 ` Ben Walton
  1 sibling, 0 replies; 4+ messages in thread
From: Mariano Mara @ 2010-07-14 13:40 UTC (permalink / raw)
  To: sup-talk

Excerpts from David Rysdam's message of Wed Jul 14 10:24:01 -0300 2010:
> "Excerpts from <person's> message of Tue Jul 13 10:46:51 -0400"
> 
> Is the format of that a config option that isn't documented or is it
> hardcoded?

$ 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 #{@m.from.name}'s message of
#{@m.date}:"

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

Mariano
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-talk] changing "excerpts from" string?
  2010-07-14 13:24 [sup-talk] changing "excerpts from" string? David Rysdam
  2010-07-14 13:40 ` Mariano Mara
@ 2010-07-14 13:45 ` Ben Walton
  2010-07-14 13:49   ` David Rysdam
  1 sibling, 1 reply; 4+ messages in thread
From: Ben Walton @ 2010-07-14 13:45 UTC (permalink / raw)
  To: sup-talk

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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-talk] changing "excerpts from" string?
  2010-07-14 13:45 ` Ben Walton
@ 2010-07-14 13:49   ` David Rysdam
  0 siblings, 0 replies; 4+ messages in thread
From: David Rysdam @ 2010-07-14 13:49 UTC (permalink / raw)
  To: sup-talk

Excerpts from Ben Walton's message of Wed Jul 14 09:45:00 -0400 2010:
> 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.'

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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-14 14:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-14 13:24 [sup-talk] changing "excerpts from" string? David Rysdam
2010-07-14 13:40 ` Mariano Mara
2010-07-14 13:45 ` Ben Walton
2010-07-14 13:49   ` David Rysdam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox