;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.104 2000/06/19 05:00:47 cph Exp $
+;;; $Id: imail-core.scm,v 1.105 2000/06/19 22:06:21 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(string-trim (header-field-value header)))))
(define (get-all-header-field-values headers name)
- (let ((headers (get-all-header-fields headers name)))
- (and (pair? headers)
- (decorated-string-append
- "" ", " ""
- (map (lambda (header)
- (string-trim (header-field-value header)))
- headers)))))
+ (map (lambda (header)
+ (string-trim (header-field-value header)))
+ (get-all-header-fields headers name)))
\f
(define (header-field-name? object)
(and (string? object)
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.172 2000/06/19 20:27:37 cph Exp $
+;;; $Id: imail-top.scm,v 1.173 2000/06/19 22:06:24 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define (imail-reply-headers message cc?)
(let ((resent-reply-to
(get-last-header-field-value message "resent-reply-to" #f))
- (from (get-first-header-field-value message "from" #f)))
+ (from (get-first-header-field-value message "from" #f))
+ (concat
+ (lambda (strings)
+ (and (pair? strings)
+ (decorated-string-append "" ", " "" strings)))))
`(("To"
,(rfc822:canonicalize-address-string
(or resent-reply-to
- (get-all-header-field-values message "reply-to")
+ (concat (get-all-header-field-values message "reply-to"))
from)))
("CC"
,(and cc?
(let ((to
(if resent-reply-to
(get-last-header-field-value message "resent-to" #f)
- (get-all-header-field-values message "to")))
+ (concat (get-all-header-field-values message "to"))))
(cc
(if resent-reply-to
(get-last-header-field-value message "resent-cc" #f)
- (get-all-header-field-values message "cc"))))
+ (concat (get-all-header-field-values message "cc")))))
(let ((cc
(if (and to cc)
(string-append to ", " cc)
(if (ref-variable imail-reply-with-re)
(string-append "Re: " subject)
subject))))))
-
+\f
(define (imail-dont-reply-to addresses)
(let ((pattern
(re-compile-pattern