From: Patrick Gundlach <newsgroup@levana.de>
Subject: Re: Remove in-reply-to in received messages
Date: 21 May 2002 16:59:07 +0200 [thread overview]
Message-ID: <vuelg5eedg.fsf@levana.de> (raw)
In-Reply-To: <m3r8kja0zr.fsf@defun.localdomain>
Jesper Harder <harder@myrealbox.com> writes:
Hello,
> Patrick Gundlach <newsgroup@levana.de> writes:
> > how do I remove the In-Reply-to: header in received messages?
>
> You could do something like:
>
> (defun jh-ignore-in-reply-to ()
> (goto-char (point-min))
> (when (re-search-forward "^In-Reply-To:" nil t)
> (beginning-of-line)
> (insert "X-Ignored-")))
>
> (add-hook 'nnmail-prepare-incoming-header-hook 'jh-ignore-in-reply-to)
>
> Which changes "In-Reply-To: .." to "X-Ignored-In-Reply-To: .." in
> incoming mail.
Well, I don't want to delete the In-Reply-To from all messages, only
from selected ones. I have now something extremly ugly (some
copy&paste, some of you code which works fine):
(defun pg-gnus-remove-inreplyto ()
(let ((winconf (current-window-configuration))
(gnus-have-all-headers t)
gnus-article-prepare-hook
gnus-article-decode-hook
gnus-display-mime-function
gnus-break-pages)
(gnus-summary-select-article nil 'force)
(set-buffer gnus-article-buffer)
(gnus-article-edit-mode)
(goto-char (point-min))
(when (re-search-forward "^In-Reply-To:" nil t)
(beginning-of-line)
(insert "X-Ignored-"))
(gnus-article-edit-done)
(setq gnus-prev-winconf winconf))
(gnus-summary-select-article nil 'force))
But since I have no idea of Gnus internals, this seems to work for
me. But, I have now seen, that I also have to remove the References:
header. Is there any predefined function in Gnus?
Patrick
--
I'll fade into the darkness
parent reply other threads:[~2002-05-21 14:59 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <m3r8kja0zr.fsf@defun.localdomain>]
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=vuelg5eedg.fsf@levana.de \
--to=newsgroup@levana.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).