home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / misc / mail-Re.patch / text0000.txt < prev   
Encoding:
Text File  |  1990-07-22  |  1002 b   |  29 lines

  1. For some reason RMAIL doesn't prefix `Re:' to the subject when you're replying
  2. to a message.  I don't know if it's generally desirable, but if you do want
  3. that behavior here is a patch to get it.
  4.  
  5. *** /osc/arch/gnu/lisp/rmail.el    Tue May 16 14:54:22 1989
  6. --- /home/rd/jgk/elisp/rmail.el    Tue Jun 26 17:21:35 1990
  7. ***************
  8. *** 1206,1213 ****
  9.                   (mail-fetch-field "resent-message-id" t))
  10.                      ((mail-fetch-field "message-id"))))))
  11.       (and subject
  12. !      (string-match "\\`Re: " subject)
  13. !      (setq subject (substring subject 4)))
  14.       (mail-other-window nil
  15.         (mail-strip-quoted-names reply-to)
  16.         subject
  17. --- 1206,1214 ----
  18.                   (mail-fetch-field "resent-message-id" t))
  19.                      ((mail-fetch-field "message-id"))))))
  20.       (and subject
  21. !       (progn
  22. !     (string-match "^\\([\t ]\\|[Rr]e:\\|[Ff]wd:\\)*" subject)
  23. !     (setq subject (concat "Re: " (substring subject (match-end 0))))))
  24.       (mail-other-window nil
  25.         (mail-strip-quoted-names reply-to)
  26.         subject
  27.  
  28.  
  29.