🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #100119

Fix for bug in rmail.el

#100119
From: andys
Date: Sat, 20 May 1989 01:53
37 lines
2181 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: <30786@sri-unix.SRI.COM>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcvax!uunet!lll-winken!arisia!quintus!sri-unix!root

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,9247abc64e3877c6
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1989-05-20 15:26:18 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcvax!uunet!lll-winken!arisia!quintus!sri-unix!root
From: andys@ulysses.att.com
Newsgroups: gnu.emacs.bug
Subject: Fix for bug in rmail.el
Message-ID: <30786@sri-unix.SRI.COM>
Date: 20 May 89 01:53:51 GMT
Sender: root@unix.SRI.COM
Lines: 37
Posted: Sat May 20 02:53:51 1989