Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Eliminating repetitious "Re: Re: Re: ..."
Date: 02 Feb 2001 16:22:50 -0500	[thread overview]
Message-ID: <m34ryc230f.fsf@multivac.student.cwru.edu> (raw)
In-Reply-To: ShengHuo ZHU's message of "31 Jan 2001 13:07:49 -0500"

I've thought of adding something like the following to nnmaildir,
although it really belongs in Gnus proper, not in backends: I look at
a group/topic paramter called, say, canonicalize-subject.  Its value
is a function.  I call that function, giving it the actual subject as
an argument.  It returns a canonicalized subject.  I use the
canonicalized subject for NOV data, but leave the original article
unmodified.

Some useful default things that could be done to the subject:
- remove "\`\(Re:|[blah]| *\)*"
- remove "(was: .*\'"
- replace " +" with " "
It looks like a hook might be more appropriate, but then the
individual functions would all have to look at a variable instead of
their arguments, and set the variable instead of return the new
subject.  Or else the functions would have to be called by a helper
function, instead of in the usual hook fashion.

The article itself should not be modified.  The canonicalized subject
should be used for thread gathering, display in the Summary buffer,
constructing replies, and maybe even article display (but not for
C-u g, of course).  If I do this in my backend by canonicalizing the
NOV subject, I'd be able to hit some of these areas, but not all.


paul



      parent reply	other threads:[~2001-02-02 21:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-31 14:31 Karl Kleinpaste
2001-01-31 15:41 ` Oyvind Moll
2001-01-31 18:07 ` ShengHuo ZHU
2001-01-31 19:57   ` Karl Kleinpaste
2001-01-31 20:55     ` ShengHuo ZHU
2001-02-02 21:22   ` Paul Jarc [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=m34ryc230f.fsf@multivac.student.cwru.edu \
    --to=prj@po.cwru.edu \
    /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;
as well as URLs for NNTP newsgroup(s).