Gnus development mailing list
 help / color / mirror / Atom feed
From: "Dewey M. Sasser" <dewey@newvision.com>
Cc: ding@ifi.uio.no
Subject: Re: cc:Mail messed up Re[2]: subjects
Date: 28 Mar 1997 12:39:14 -0800	[thread overview]
Message-ID: <deweywwqrzr7x.fsf@aerosmith.newvision.com> (raw)
In-Reply-To: Joe Hildebrand's message of 28 Mar 1997 12:28:27 -0600

>>>>> "Joe" == Joe Hildebrand <hildjj@mindspring.com> writes:

    Joe> Can message.el be changed so that whenever it is stripping
    Joe> out Re:'s, it does this:

    Joe> [Rr][Ee]\\(\\[[0-9]+\\]\\)?:

    Joe> so that my replys don't look like "Subject: Re: Re[2]: foo"?

See (gnus)Washing Mail.

What I've done is this:

(defun auto-split-correct-re ()
  "Correct re: headers"
  (let ((case-fold-search t))
    (goto-char (point-min))
    (if (re-search-forward
	 "subject:[ \t]*\\(\\(re\\(>\\|:\\)+\\)+\\)[ \t]*" nil 't)
	(progn
	  (goto-char (match-beginning 1))
	  (delete-region (point) (match-end 1))
	  (insert "Re: ")))))

(add-hook 'nnmail-prepare-incoming-header-hook 'auto-split-correct-re)

I haven't run into your particular problem, but you can modify that
regexp to handle it.  If you do so, pleased modify the function name
to avoid conflict with my auto-split package (which I'm releasing in
the near future).


-- 
Dewey M. Sasser 			voice: (617) 494-6000 
dewey@newvision.com                     PGP Key from public servers  
                                        PGP mail preferred.
|-------------------------------------------------------------------------|
| Anything worth doing is worth doing right, unless doing it right makes  |
| it no longer worth doing, in which case it is only worth doing it       |
| "good enough".                                                          |
|-------------------------------------------------------------------------|


      parent reply	other threads:[~1997-03-28 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-28 18:28 Joe Hildebrand
1997-03-28 19:50 ` Karl Kleinpaste
1997-03-28 20:39 ` Dewey M. Sasser [this message]

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=deweywwqrzr7x.fsf@aerosmith.newvision.com \
    --to=dewey@newvision.com \
    --cc=ding@ifi.uio.no \
    /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).