Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Re: Incorporate message-utils.el?
Date: Fri, 13 Sep 2002 17:32:40 +0200	[thread overview]
Message-ID: <vaflm65ykfb.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <v9admlgbwh.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Fri, 13 Sep 2002 17:14:06 +0200")

Reiner Steib <4uce.02.r.steib@gmx.net> writes:

> On Fri, Sep 13 2002, Kai Großjohann wrote:
>
>> and then make hooks that frob the subject correspondingly.
>
> Okay, I think I have to do something similar to this line:
>
>   (setq subject (concat "Re: " (message-strip-subject-re subject)))

One suggestion: invoke message-make-reply-subject instead, and do
something like

(defcustom message-make-reply-subject-functions
  '(message-strip-subject-re message-util-strip-was)
  "Some useful docstring"
  ...other.custom.stuff...)

(defun message-make-reply-subject (subject)
  (let ((funcs message-make-reply-subject-functions))
    (while funcs
      (setq subject (funcall (pop funcs) subject)))
    subject))

>> What do you think?
>
> I'll try to do it. 
>
> Concerning item (d) of my previous message (default behavior strip or
> not strip the was:...-part) there are different opinions. So I think
> we need a user-variable for it at least. Whether the default of this
> variable should be 'ask or nil (never do a change) can be decided by
> the person committing the patch if we cannot find a consensus on
> this. ;-)

How about message-make-reply-subject-functions?  With a suitably
clever :type declaration, users could easily switch on/off a list of
known functions and also add their own.

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)



  reply	other threads:[~2002-09-13 15:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 11:55 Kai Großjohann
2002-09-12 13:24 ` Reiner Steib
2002-09-12 13:35   ` Kai Großjohann
2002-09-12 20:12     ` Reiner Steib
2002-09-12 23:43       ` Daniel Pittman
2002-09-13  5:25       ` Mark Trettin
2002-09-13 13:15       ` Kai Großjohann
2002-09-13 15:14         ` Reiner Steib
2002-09-13 15:32           ` Kai Großjohann [this message]
2002-09-16 18:01             ` Reiner Steib
2002-09-16 19:32               ` Kai Großjohann
2002-12-29 17:21               ` Lars Magne Ingebrigtsen

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=vaflm65ykfb.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.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).