From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38425 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: message-subject-re Date: Wed, 29 Aug 2001 15:43:24 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035174290 22324 80.91.224.250 (21 Oct 2002 04:24:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:24:50 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 8807 invoked from network); 29 Aug 2001 19:43:29 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (261@129.22.96.25) by gnus.org with SMTP; 29 Aug 2001 19:43:29 -0000 Original-Received: (qmail 20170 invoked by uid 500); 29 Aug 2001 19:43:46 -0000 Original-To: ding@gnus.org Mail-Copies-To: never In-Reply-To: (Simon Josefsson's message of "Wed, 29 Aug 2001 21:33:19 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Original-Lines: 20 Xref: main.gmane.org gmane.emacs.gnus.general:38425 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38425 Simon Josefsson wrote: >+The provided functions (which both are used by default) are: >+ >+* `message-strip-list-identifiers' (Removes `gnus-list-identifiers'.) >+* `message-strip-subject-re' (Removes `message-subject-re-regexp'.) >+* `message-add-subject-re' (Prepends \"Re: \".) Err, "both"? :) Here's one to get rid of "(was:.*". I think there's an RFC that says this should be done, but I can't remember anything concrete. (defun message-subject-strip-was (subject) "Remove \" +(was:.*\" from SUBJECT." (save-match-data (if (string-match " +(was:" subject) (substring subject 0 (match-beginning 0)) subject))) paul