* [PATCH] article-hide-list-identifiers: handle "Fw:" and tabs
@ 2003-01-09 7:21 Michael Shields
2003-01-11 20:30 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Michael Shields @ 2003-01-09 7:21 UTC (permalink / raw)
lisp/ChangeLog addition:
2003-01-09 Michael Shields <shields@msrl.com>
* gnus-art.el (article-hide-list-identifiers): Handle Outlook's
"Fw:", which is like "Re:" somehow. Handle both spaces and tabs.
gnus source patch:
Diff command: cvs -q diff -u
Files affected: lisp/gnus-art.el
Index: lisp/gnus-art.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v
retrieving revision 6.269
diff -u -r6.269 gnus-art.el
--- lisp/gnus-art.el 2003/01/08 04:15:26 6.269
+++ lisp/gnus-art.el 2003/01/09 07:22:59
@@ -2259,12 +2278,14 @@
(article-narrow-to-head)
(goto-char (point-min))
(while (re-search-forward
- (concat "^Subject: +\\(R[Ee]: +\\)*\\(" regexp " *\\)")
+ (concat "^Subject:[ \t]+\\(\\(R[Ee]\\|Fw\\):[ \t]+\\)*\\("
+ regexp " *\\)")
nil t)
- (delete-region (match-beginning 2) (match-end 0))
+ (delete-region (match-beginning 3) (match-end 0))
(beginning-of-line))
(when (re-search-forward
- "^Subject: +\\(\\(R[Ee]: +\\)+\\)R[Ee]: +" nil t)
+ "^Subject:[ \t]+\\(\\(\\(R[Ee]\\|Fw\\):[ \t]+\\)+\\)\\(R[Ee]\\|Fw\\):[ \t]+"
+ nil t)
(delete-region (match-beginning 1) (match-end 1))))))))
(defun article-hide-pgp ()
--
Shields.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] article-hide-list-identifiers: handle "Fw:" and tabs
2003-01-09 7:21 [PATCH] article-hide-list-identifiers: handle "Fw:" and tabs Michael Shields
@ 2003-01-11 20:30 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-11 20:30 UTC (permalink / raw)
Michael Shields <shields@msrl.com> writes:
> * gnus-art.el (article-hide-list-identifiers): Handle Outlook's
> "Fw:", which is like "Re:" somehow. Handle both spaces and tabs.
Well, there's more than Fw -- there's Aw, Sv, etc. I think
`article-hide-list-identifiers' is probably the wrong place to do
this -- if such a washing function is wanted, then it should be made
into its own function, and handle as many of the local broken Outlook
versions as possible...
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-11 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09 7:21 [PATCH] article-hide-list-identifiers: handle "Fw:" and tabs Michael Shields
2003-01-11 20:30 ` Lars Magne Ingebrigtsen
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).