Gnus development mailing list
 help / color / mirror / Atom feed
* Replacing "AW:" with "Re:"
@ 1999-09-16  9:36 Jochen Lillich
  1999-09-16 10:39 ` Jens Kloecker
  1999-09-16 11:03 ` Steinar Bang
  0 siblings, 2 replies; 8+ messages in thread
From: Jochen Lillich @ 1999-09-16  9:36 UTC (permalink / raw)


Hi!

The Gnus manual says in "Washing Mail":

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

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

Thanks,
	Jochen

-- 
*** Linux BBS: Die deutsche Website fuer Linux-News und -Infos ***
                    http://www.linuxbbs.org/


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

* Re: Replacing "AW:" with "Re:"
  1999-09-16  9:36 Replacing "AW:" with "Re:" Jochen Lillich
@ 1999-09-16 10:39 ` Jens Kloecker
  1999-09-16 11:03 ` Steinar Bang
  1 sibling, 0 replies; 8+ messages in thread
From: Jens Kloecker @ 1999-09-16 10:39 UTC (permalink / raw)
  Cc: ding

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


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

* Re: Replacing "AW:" with "Re:"
  1999-09-16  9:36 Replacing "AW:" with "Re:" Jochen Lillich
  1999-09-16 10:39 ` Jens Kloecker
@ 1999-09-16 11:03 ` Steinar Bang
  1999-09-16 18:30   ` Robert Bihlmeyer
                     ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: Steinar Bang @ 1999-09-16 11:03 UTC (permalink / raw)


>>>>> Jochen Lillich <jochen@dynamis.de>:

> The Gnus manual says in "Washing Mail":

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

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

Personally I use the following procmail rule to wash subject fields
before gnus even sees them:

:0 fhw
| /usr/bin/perl -ne "s/^(Subject:)\s+(S[Vv]:\s*|AW:\s*|Ad:\s*|R[eE](\(\d+\))?:\s*)+/\1 Re: /g;s/^(Subject:)\s+(=\?((iso|ISO)-8859-1|us-ascii)\?Q\?)((S[Vv]|AW|Ad|R[eE](\(\d+\))?)(:|=3[Aa])_*)+/\1 \2Re:_/g; s/\042\'([^\']*)\'\042/\042\1\042/g ; print"

(As well as AW, this takes care of "Ad", "SV" and "RE", and the
"galloping Re: SV: Re: syndrome...)

Unfortunately this doesn't help with USENET messages. :-/

I'm also unable to cover BASE64 encoded subjects (Oh yes!  Exchange
and Outlook variants cover them all...).


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

* Re: Replacing "AW:" with "Re:"
  1999-09-16 11:03 ` Steinar Bang
@ 1999-09-16 18:30   ` Robert Bihlmeyer
  1999-09-16 19:40   ` Lars Balker Rasmussen
  1999-09-20 13:26   ` Jan Rychter
  2 siblings, 0 replies; 8+ messages in thread
From: Robert Bihlmeyer @ 1999-09-16 18:30 UTC (permalink / raw)


Hi,

>>>>> On 16 Sep 1999 13:03:58 +0200
>>>>> Steinar Bang <sb@metis.no> said:

 Steinar> I'm also unable to cover BASE64 encoded subjects

You mean =?ISO-8859-X?B?....? stuff? Hmm, Gnus should grok these.

        Robbe

-- 
Robert Bihlmeyer	reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at>	<http://stud2.tuwien.ac.at/~e9426626/sig.html>


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

* Re: Replacing "AW:" with "Re:"
  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-20 13:26   ` Jan Rychter
  2 siblings, 1 reply; 8+ messages in thread
From: Lars Balker Rasmussen @ 1999-09-16 19:40 UTC (permalink / raw)


Steinar Bang <sb@metis.no> writes:
> (As well as AW, this takes care of "Ad", "SV" and "RE", and the
> "galloping Re: SV: Re: syndrome...)
> 
> Unfortunately this doesn't help with USENET messages. :-/

I found that most of the problem disappeared with the following:

  (setq gnus-simplify-ignored-prefixes "^\\(Sv: \\|Re: \\)+"
        gnus-simplify-subject-functions '(gnus-simplify-subject
					  gnus-simplify-whitespace))

(fill in your favourite Re-variants).

I don't bother with removing them from articles.  Damned if I want to
waste my time cleaning up after Mickeysoft.
-- 
Lars Balker Rasmussen                                           "Woo hoo!?"


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

* Re: Replacing "AW:" with "Re:"
  1999-09-16 19:40   ` Lars Balker Rasmussen
@ 1999-09-17  7:37     ` Steinar Bang
  1999-09-18  9:51       ` Lars Balker Rasmussen
  0 siblings, 1 reply; 8+ messages in thread
From: Steinar Bang @ 1999-09-17  7:37 UTC (permalink / raw)


>>>>> Lars Balker Rasmussen <lbr@image.dk>:

> Steinar Bang <sb@metis.no> writes:
>> (As well as AW, this takes care of "Ad", "SV" and "RE", and the
>> "galloping Re: SV: Re: syndrome...)
>> 
>> Unfortunately this doesn't help with USENET messages. :-/

> I found that most of the problem disappeared with the following:

>   (setq gnus-simplify-ignored-prefixes "^\\(Sv: \\|Re: \\)+"
>         gnus-simplify-subject-functions '(gnus-simplify-subject
> 					  gnus-simplify-whitespace))

> (fill in your favourite Re-variants).

Does this fix subjects in summary listings?  Or just in the article
itself? 


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

* Re: Replacing "AW:" with "Re:"
  1999-09-17  7:37     ` Steinar Bang
@ 1999-09-18  9:51       ` Lars Balker Rasmussen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Balker Rasmussen @ 1999-09-18  9:51 UTC (permalink / raw)


Steinar Bang <sb@metis.no> writes:
> >>>>> Lars Balker Rasmussen <lbr@image.dk>:
> >   (setq gnus-simplify-ignored-prefixes "^\\(Sv: \\|Re: \\)+"
> >         gnus-simplify-subject-functions '(gnus-simplify-subject
> > 					  gnus-simplify-whitespace))
> 
> Does this fix subjects in summary listings?  Or just in the article
> itself? 

Only in summary listings.  It doesn't bother me in the article itself.
-- 
Lars Balker Rasmussen                                           "Woo hoo!?"


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

* Re: Replacing "AW:" with "Re:"
  1999-09-16 11:03 ` Steinar Bang
  1999-09-16 18:30   ` Robert Bihlmeyer
  1999-09-16 19:40   ` Lars Balker Rasmussen
@ 1999-09-20 13:26   ` Jan Rychter
  2 siblings, 0 replies; 8+ messages in thread
From: Jan Rychter @ 1999-09-20 13:26 UTC (permalink / raw)
  Cc: ding

>>>>> "Steinar" == Steinar Bang <sb@metis.no>:
>>>>> Jochen Lillich <jochen@dynamis.de>:
 >> The Gnus manual says in "Washing Mail":

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

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

 Steinar> Personally I use the following procmail rule to wash subject
 Steinar> fields before gnus even sees them:
[...]
 Steinar> (As well as AW, this takes care of "Ad", "SV" and "RE", and
 Steinar> the "galloping Re: SV: Re: syndrome...)

 Steinar> Unfortunately this doesn't help with USENET messages. :-/
[...]

We have a similar problem here in Poland with "Odp:". I wrote a couple
of functions that take care of the problem in Gnus (I won't post them,
several nice solutions were already proposed). However, whenever I
reply to any mail and my functions kick in, they also insert a notice
that the Subject line has been processed in that way and refer people to 
a web page that explains how horribly broken Microsoft programs are.

As far as USENET is concerned, we have (with a couple of fellow
newsadmins) recently inserted appropriate filtering rules into
filter_nnrpd.pl on most large newsservers in Poland. They cut the crap
from subject lines and insert a notice into X-Notice headers. I can only
recommend that approach to newsadmins worldwide.

--J.


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

end of thread, other threads:[~1999-09-20 13:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-16  9:36 Replacing "AW:" with "Re:" Jochen Lillich
1999-09-16 10:39 ` Jens Kloecker
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

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