🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98870

mail-strip-quoted-names from GNUS reply / for fakemail

#98870
From: Daniel Jacobson
Date: Fri, 22 Feb 1991 00:10
47 lines
2386 bytes
[hoping to post to both "bug" and "gnus" groups]

Well, in order to get the "To:" name stripped in a GNUS mail reply
buffer headed to the fakemail program (like vm-strip-reply-headers in
the VM mailer), I did (warning, I'm a drunk e-lisp driver):

near the bottom of .emacs:

;hack to not screw up fakemail on a GNUS reply
(load "rnewspost")
(load "gmail-fix") ;uses mail-strip-quoted-names in news-mail-reply

where gmail-fix.el consists of:

(defun news-mail-reply ()
  "Mail a reply to the author of the current article.
While composing the reply, use \\[news-reply-yank-original] to yank the
original message into it.
\"fixed\" by Dan_Jacobson@ATT.COM 2/1991 to do mail-strip-quoted-names
so not to bomb with fakemail."
  (interactive)
  (let (from cc subject date to reply-to
	     (buffer (current-buffer)))
    (save-restriction
      (narrow-to-region (point-min) (progn (goto-line (point-min))
					   (search-forward "\n\n")
					   (- (point) 1)))
      (setq from (mail-fetch-field "from")
	    subject (mail-fetch-field "subject")
	    reply-to (mail-fetch-field "reply-to")
	    date (mail-fetch-field "date"))
      (setq to from)
      (pop-to-buffer "*mail*")
      (mail nil
;;	    (if reply-to reply-to to)
;;Dan Jacobson 2/1991 to not screw up fakemail call:
	    (mail-strip-quoted-names (if reply-to reply-to to))	;DJ

	    subject
	    (let ((stop-pos (string-match "  *at \\|  *@ \\| *(\\| *<" from)))
	      (concat (if stop-pos (substring from 0 stop-pos) from)
		      "'s message of "
		      date))
	    nil
	   buffer))))

;; Dan_Jacobson@ATT.COM  Naperville IL USA  +1 708-979-6364
Technical Details
Message-ID: <9102220036.AA21048@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!ncar!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,84bea7ebb7e85721,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-02-22 16:03:02 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!ncar!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: danj1@ihlpz.att.com (Daniel Jacobson)
Newsgroups: gnu.emacs.bug
Subject: mail-strip-quoted-names from GNUS reply / for fakemail
Message-ID: <9102220036.AA21048@life.ai.mit.edu>
Date: 22 Feb 91 00:10:08 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: Dan_Jacobson@att.com
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 47
Approved: bug-gnu-emacs@prep.ai.mit.edu