Gnus development mailing list
 help / color / mirror / Atom feed
From: Denis Dzyubenko <shad@mail.kubtelecom.ru>
Subject: gnus-simplify-subject-functions
Date: Wed, 01 Oct 2003 22:26:10 +0400	[thread overview]
Message-ID: <87y8w4n7b1.fsf@mail.kubtelecom.ru> (raw)

Hello,

How does gnus-simplify-subject-functions work ? I tried this:

=+==
(defun my-gnus-simplify-talk-ru (subject)
  (setq my-subj subject)
  (if (string-match " - fido7.su.c-cpp" subject)
      (substring subject 0 (match-beginning 0))
    subject))

(setq gnus-simplify-subject-functions '(my-gnus-simplify-talk-ru))
=+==

I test my function, it works fine:
(my-gnus-simplify-talk-ru "Old Subject - fido7.su.c-cpp")
returns "Old Subject".

But when replying " - fido7.su.c-cpp" is not removed from subjects -
what I do wrong ?

btw, is gnus-simplify-* functions documented? I can't find anything
about these functions in Gnus documentation.

-- 
Denis.

I had a dream... DIR C: 999,937,498,127 bytes free (df: /usr 999937498727 blocks free).



             reply	other threads:[~2003-10-01 18:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-01 18:26 Denis Dzyubenko [this message]
2003-10-01 19:00 ` gnus-simplify-subject-functions Jesper Harder
2003-10-01 19:37   ` gnus-simplify-subject-functions Denis Dzyubenko

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=87y8w4n7b1.fsf@mail.kubtelecom.ru \
    --to=shad@mail.kubtelecom.ru \
    /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).