Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: relax the comparison of subject lines
Date: Sun, 11 Jun 2006 23:33:47 +0200	[thread overview]
Message-ID: <v9pshfidhg.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m2wtbn5uwd.fsf@janus.isnogud.escape.de>

On Sun, Jun 11 2006, Urs Thuermann wrote:

> AFAIK, the usual comparison considers two subject lines equal, if they
> are exactly identical or if they only differ in that one of them has a
> "Re: " prepended.
[...]
>   "Subject:  foo"
>   "Subject:  Re: foo"   or   "Subject:  Re:  foo"

,----[ (info "(gnus)Loose Threads") ]
| `gnus-simplify-subject-functions'
|      If non-`nil', this variable overrides
|      `gnus-summary-gather-subject-limit'.  This variable should be a
|      list of functions to apply to the `Subject' string iteratively to
|      arrive at the simplified version of the string.
| 
|      Useful functions to put in this list include:
| 
|     `gnus-simplify-subject-re'
|           Strip the leading `Re:'.
| 
|     `gnus-simplify-subject-fuzzy'
|           Simplify fuzzily.
| 
|     `gnus-simplify-whitespace'
|           Remove excessive whitespace.
| 
|     `gnus-simplify-all-whitespace'
|           Remove all whitespace.
| 
|      You may also write your own functions, of course.
`----

> It would further be nice, if replying to a subject "AW: foo" would
> cause Gnus to generate a subject "Re: foo" in the reply instead of
> "Re: AW: foo".

See `gnus-simplify-subject-re' above which uses
`message-subject-re-regexp':

,----[ (info "(message)Message Headers") ]
| `message-subject-re-regexp'
|      Responses to messages have subjects that start with `Re: '.  This
|      is _not_ an abbreviation of the English word "response", but is
|      Latin, and means "in response to".  [...]
| 
|      Here's an example of a value to deal with these headers when
|      responding to a message:
| 
|           (setq message-subject-re-regexp
|                 (concat
|                  "^[ \t]*"
|                    "\\("
|                      "\\("
|                        "[Aa][Nn][Tt][Ww]\\.?\\|"     ; antw
|                        "[Aa][Ww]\\|"                 ; aw
|                        "[Ff][Ww][Dd]?\\|"            ; fwd
|                        "[Oo][Dd][Pp]\\|"             ; odp
|                        "[Rr][Ee]\\|"                 ; re
|                        "[Rr][\311\351][Ff]\\.?\\|"   ; ref
|                        "[Ss][Vv]"                    ; sv
|                      "\\)"
|                      "\\(\\[[0-9]*\\]\\)"
|                      "*:[ \t]*"
|                    "\\)"
|                  "*[ \t]*"
|                  ))
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  reply	other threads:[~2006-06-11 21:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-11 19:56 Urs Thuermann
2006-06-11 21:33 ` Reiner Steib [this message]
2006-06-13 11:07   ` Urs Thuermann
2006-06-13 14:13     ` Reiner Steib

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=v9pshfidhg.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).