[gnu.emacs.bug] rmail.el vs. rfc822

drk@rational.com (David Kaelbling) (10/24/89)

In GNU Emacs 18.55.2 of Fri Oct 13 1989 on igor (berkeley-unix)

rmail.el generates "in-reply-to" fields which contain unquoted special
characters (commas are the most common culprit, but '@' and '.' are
also illegal).  An easy fix which doesn't require the full glory of
mail-use-rfc822 is to quote the field.  

*** ../dist-18.55/lisp/rmail.el	Fri Oct 13 16:51:36 1989
--- rmail.el	Mon Oct 23 17:08:09 1989
***************
*** 1258,1264 ****
  	  (setq field (if stop-pos
  			  (substring from start-pos stop-pos)
  			  from))))
!     (if date (setq field (concat field "'s message of " date)))
      (if message-id (setq field (concat field " " message-id)))
      field))
  
--- 1258,1267 ----
  	  (setq field (if stop-pos
  			  (substring from start-pos stop-pos)
  			  from))))
! ;DRK 10/23/89  Make in-reply-to field more rfc822 complient.
! ;              Comma, @, and . are a special characters and must be quoted.
! ;   (if date (setq field (concat field "'s message of " date)))
!     (if date (setq field (concat "\"" field "'s message of " date "\"")))
      (if message-id (setq field (concat field " " message-id)))
      field))
  
***************