Gnus development mailing list
 help / color / mirror / Atom feed
From: Jens Kloecker <kloecker@springer.de>
Cc: ding@gnus.org
Subject: Re: Replacing "AW:" with "Re:"
Date: Thu, 16 Sep 1999 12:39:06 +0200	[thread overview]
Message-ID: <x51zbznnsl.fsf@ET010.pip.springer.de> (raw)
In-Reply-To: Jochen Lillich's message of "Thu, 16 Sep 1999 11:36:02 +0200"

>>>>> "jl" == Jochen Lillich <jochen@dynamis.de> writes:

    jl> Hi!
    jl> The Gnus manual says in "Washing Mail":

    jl> 	Case in point: The German version of Microsoft
    jl> 	Exchange adds `AW: ' to the subjects of replies
    jl> 	instead of `Re: '.  I could pretend to be shocked and
    jl> 	dismayed by this, but I haven't got the energy.  It is
    jl> 	to laugh.

    jl> But it doesn't say how to actually do something about
    jl> that. Now, how do I replace this annoying "AW:" by "Re:"?

I use

(defun jk-change-outlook-headers ()
  "Change AW: to Re:
   in mails produced by the German version of Microsoft Exchange."
  (goto-char (point-min))
  (if (re-search-forward "^X-Mailer: Internet Mail Service" nil t)
      (progn
	(goto-char (point-min))
	(if (re-search-forward "^\\(Subject: \\)AW:" nil t)
	    (replace-match "\\1Re:" t)))))

(add-hook 'nnmail-prepare-incoming-header-hook 'jk-change-outlook-headers)

-- 
Jens Kloecker
Electronic Technologies, Springer-Verlag
email: kloecker@springer.de


  reply	other threads:[~1999-09-16 10:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-16  9:36 Jochen Lillich
1999-09-16 10:39 ` Jens Kloecker [this message]
1999-09-16 11:03 ` Steinar Bang
1999-09-16 18:30   ` Robert Bihlmeyer
1999-09-16 19:40   ` Lars Balker Rasmussen
1999-09-17  7:37     ` Steinar Bang
1999-09-18  9:51       ` Lars Balker Rasmussen
1999-09-20 13:26   ` Jan Rychter

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=x51zbznnsl.fsf@ET010.pip.springer.de \
    --to=kloecker@springer.de \
    --cc=ding@gnus.org \
    /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).