info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: relax the comparison of subject lines


From: Reiner Steib
Subject: Re: relax the comparison of subject lines
Date: Sun, 11 Jun 2006 23:33:47 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]