Archive of UserLand's first discussion group, started October 5, 1998.
Pulling the Re: Re: Re: Re: Re: Re: 's
Author: Christopher Short Posted: 10/13/1998; 11:07:27 PM Topic: Suggestion: Explore the Calendar Msg #: 222 (In response to 221) Prev/Next: 221 / 223
Dave,The regex working group happily provide you with the following snippet to cut down on proliferating "Re: "'s in the subject line.
In the newMessageForm (in the #tools table) change
local (subject = "Re: " pta^.messages^.[string.padwithzeros (inreplyto, 5)].subject)
to
local (subject = pta^.messages^.[string.padwithzeros (inreplyto, 5)].subject)
regex.subst( "^(re: )*(.*)", "Re: \\2", @subject )
You should do it also in getMessageSubject script - but that script doesn't seem to do anything.
I couldn't find any other instances where you were adding a "Re: " to a subject line.
Of course, you're free to ignore this message, and do the subject anyway you want :-)
Since discussionGroup.root is (presumably) example code - it also may not be wise to include a call to an extension like regex.
Cheers, Christopher
There are responses to this message:
- Re: Pulling the Re: Re: Re: Re: Re: Re: 's, Dave Winer, 10/14/1998; 3:55:11 AM
This page was archived on 6/13/2001; 4:45:41 PM.
© Copyright 1998-2001 UserLand Software, Inc.