Added variable rmail-reply-with-re and support in
authorBrian A. LaMacchia <edu/mit/csail/zurich/bal>
Tue, 27 Aug 1991 20:14:27 +0000 (20:14 +0000)
committerBrian A. LaMacchia <edu/mit/csail/zurich/bal>
Tue, 27 Aug 1991 20:14:27 +0000 (20:14 +0000)
rmail-reply for adding the Re: to subject lines in replies.

v7/src/edwin/rmail.scm

index 472ef833d3ead89d32c5d43a7bed5510c7f81e9a..7255530a5c289cd3ec142d7b1d62c2332d160041 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/rmail.scm,v 1.5 1991/05/16 17:47:23 hal Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/rmail.scm,v 1.6 1991/08/27 20:14:27 bal Exp $
 ;;;
 ;;;    Copyright (c) 1991 Massachusetts Institute of Technology
 ;;;
@@ -107,6 +107,11 @@ Called with the start and end marks of the header as arguments."
   false
   boolean?)
 
+(define-variable rmail-reply-with-re
+  "True means prepend subject with Re: in replies."
+  false
+  boolean?)
+
 (define-variable rmail-mode-hook
   "An event distributor that is invoked when entering RMAIL mode."
   (make-event-distributor))
@@ -888,9 +893,13 @@ original message into it."
                        (or (and resent-reply-to
                                 (fetch-last-field "resent-subject" start end))
                            (fetch-first-field "subject" start end))))
-                  (if (and subject (string-prefix-ci? "re: " subject))
-                      (string-tail subject 4)
-                      subject))
+                  (if (ref-variable rmail-reply-with-re)
+                      (if (and subject (string-prefix-ci? "re: " subject))
+                          subject
+                          (string-append "Re: " subject))
+                      (if (and subject (string-prefix-ci? "re: " subject))
+                          (string-tail subject 4)
+                          subject)))
                 (if resent-reply-to
                     (make-in-reply-to-field
                      from