Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-simplify-subject-functions
@ 2003-10-01 18:26 Denis Dzyubenko
  2003-10-01 19:00 ` gnus-simplify-subject-functions Jesper Harder
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Dzyubenko @ 2003-10-01 18:26 UTC (permalink / 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).



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnus-simplify-subject-functions
  2003-10-01 18:26 gnus-simplify-subject-functions Denis Dzyubenko
@ 2003-10-01 19:00 ` Jesper Harder
  2003-10-01 19:37   ` gnus-simplify-subject-functions Denis Dzyubenko
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Harder @ 2003-10-01 19:00 UTC (permalink / raw)


Denis Dzyubenko <shad@mail.kubtelecom.ru> writes:

> 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 ?

I think `gnus-simplify-subject-functions' doesn't do what you think
it does.  The option is used for threading, i.e. to decide when two
subjects are considered the same.

`gnus-list-identifiers' is probably what you want.

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

Did you try `i gnus-simplify-subject-functions' in the Gnus manual?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnus-simplify-subject-functions
  2003-10-01 19:00 ` gnus-simplify-subject-functions Jesper Harder
@ 2003-10-01 19:37   ` Denis Dzyubenko
  0 siblings, 0 replies; 3+ messages in thread
From: Denis Dzyubenko @ 2003-10-01 19:37 UTC (permalink / raw)


On Wed, 01 Oct 2003 21:00:29 +0200,
 Jesper Harder(JH) wrote:

JH> `gnus-list-identifiers' is probably what you want.

yes, thank you, this works fine.

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

JH> Did you try `i gnus-simplify-subject-functions' in the Gnus manual?

i did't know about Info-index function

-- 
Denis.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-01 19:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01 18:26 gnus-simplify-subject-functions Denis Dzyubenko
2003-10-01 19:00 ` gnus-simplify-subject-functions Jesper Harder
2003-10-01 19:37   ` gnus-simplify-subject-functions Denis Dzyubenko

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).