🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1697

Fix for bug in rmail.el

#1697
From: andys
Date: Wed, 17 May 1989 21:01
37 lines
2107 bytes
Yesterday I reported a bug in rmail such that it looped when the
time zone specifier in the From_ line was of the form [+-]nnnn.
The problem was a missing blank in a regular expression in the
function rmail-nuke-pinhead-header.  (I would note that a code
writer using a function name like that should be real sure that
his/her code is not pinheaded itself).  The context diff for this
change follows the signature.

Andy Sherman
--
Andy Sherman/AT&T Bell Laboratories/Murray Hill, NJ           *NEW ADDRESS*
AUDIBLE:  (201) 582-5928                                      *NEW PHONE*
READABLE: andys@ulysses.ATT.COM  or att!ulysses!andys         *NEW EMAIL*
The views and opinions are my own.  Who else would want them? *OLD DISCLAIMER*

-----------------context diff for rmail.el follows-------------------------

*** /usr/add-on/emacs/lisp/rmail.el	Thu Apr  6 19:26:17 1989
--- lisp/rmail.el	Wed May 17 16:46:19 1989
***************
*** 594,600 ****
  	  (goto-char start))
  	(let ((case-fold-search nil))
  	  (if (re-search-forward
! 	       "^From \\([^ ]*\\(\\|\".*\"[^ ]*\\)\\)  ?\\([^ ]*\\) \\([^ ]*\\) *\\([0-9]*\\) \\([0-9:]*\\)\\( [A-Z]?[A-Z][A-Z]T\\|[-+][0-9][0-9][0-9][0-9]\\|\\) 19\\([0-9]*\\) *\n" nil t)
  	      (replace-match
  		(concat
  		  ;; Keep and reformat the date if we don't
--- 594,600 ----
  	  (goto-char start))
  	(let ((case-fold-search nil))
  	  (if (re-search-forward
! 	       "^From \\([^ ]*\\(\\|\".*\"[^ ]*\\)\\)  ?\\([^ ]*\\) \\([^ ]*\\) *\\([0-9]*\\) \\([0-9:]*\\)\\( [A-Z]?[A-Z][A-Z]T\\| [-+][0-9][0-9][0-9][0-9]\\|\\) 19\\([0-9]*\\) *\n" nil t)
  	      (replace-match
  		(concat
  		  ;; Keep and reformat the date if we don't
Technical Details
Message-ID: <8905181939.AA00349@AENEAS.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!tut.cis.ohio-state.edu!ulysses.att.com!andys

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!tut.cis.ohio-state.edu!ulysses.att.com!andys
From: andys@ulysses.att.com
Newsgroups: gnu.emacs.bug
Subject: Fix for bug in rmail.el
Message-ID: <8905181939.AA00349@AENEAS.MIT.EDU>
Date: 17 May 89 21:01:41 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 37