Gnus development mailing list
 help / color / mirror / Atom feed
From: clemens fischer <ino@despammed.com>
Subject: gnus-simplify-subject-fuzzy doesn't work
Date: Fri, 11 Oct 2002 20:27:08 +0200	[thread overview]
Message-ID: <elawhlvn.fsf@ID-23066.news.dfncis.de> (raw)

i've got a despammed address.  emails i receive thru it are prefixed
with "\\[despammed\\] ".  i want to get rid of this string, because i
keep forgetting to delete it when replying.

i've got:


(setq gnus-simplify-subject-fuzzy-regexp '(
      "\\[despammed\\]"
      )
      gnus-simplify-ignored-prefixes "\\[despammed\\]"
      gnus-simplify-subject-functions '(
      gnus-simplify-subject-fuzzy
      cf-gnus-simplify-subject-summary
      )
)

which doesn't seem to work.  i even tried to cook up my own:

(defun cf-gnus-simplify-subject-summary (subject)
  "Remove \"Summary:\" from subject lines."
  (if (string-match
       "\\`\\(.*\\)\\[despammed\\] \\(.*\\)\\'"
       subject)
      (concat
       ;(substring subject (match-beginning 1) (match-end 1))
       ;(substring subject (match-beginning 2) (match-end 2))
       (match-string 1 subject)
       (match-string 2 subject)
      )
    subject))

which also doesn't work.  is there something wrong with
gnus-simplify-subject-fuzzy?  i expected it to make the prefix
disappear in both the summary and the article buffer, but it is left
untouched.

clemens





             reply	other threads:[~2002-10-11 18:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11 18:27 clemens fischer [this message]
2002-10-11 18:44 ` Henrik Enberg
2002-10-12 13:58   ` Clemens Fischer
2002-10-12 19:22     ` Josh Huber
2002-10-13 14:15       ` Clemens Fischer
2002-10-16 11:44         ` Niklas Morberg
2002-10-16 20:02           ` clemens fischer
2002-10-17  6:48             ` Niklas Morberg
2002-10-13 17:28   ` Kai Großjohann
2002-10-17  6:55     ` Niklas Morberg
2002-10-17  8:26       ` Simon Josefsson

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=elawhlvn.fsf@ID-23066.news.dfncis.de \
    --to=ino@despammed.com \
    /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).