;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.60 2000/05/16 04:14:33 cph Exp $
+;;; $Id: imail-core.scm,v 1.61 2000/05/16 18:55:35 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define-generic message-internal-time (message))
(define-method message-internal-time ((message <message>))
- (let loop ((headers (get-all-header-fields headers "received")) (winner #f))
+ (let loop ((headers (get-all-header-fields message "received")) (winner #f))
(if (pair? headers)
(call-with-values
(lambda ()
(loop (cdr headers)
(if (or (not winner) (< time winner)) time winner))))
(or winner
- (let ((date (get-first-header-field-value headers "date" #f)))
+ (let ((date (get-first-header-field-value message "date" #f)))
(and date
(string->universal-time date)))))))
\f
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-imap.scm,v 1.44 2000/05/16 15:14:13 cph Exp $
+;;; $Id: imail-imap.scm,v 1.45 2000/05/16 18:55:37 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
\f
(define (imap:command:no-response connection command . arguments)
(let ((response
- (apply imap:command:no-response-1 connection command . arguments)))
+ (apply imap:command:no-response-1 connection command arguments)))
(if (not (imap:response:ok? response))
(error "Server signalled a command error:" response))))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-rmail.scm,v 1.27 2000/05/15 19:20:55 cph Exp $
+;;; $Id: imail-rmail.scm,v 1.28 2000/05/16 18:55:38 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
;; **** Do backup of file here.
(call-with-binary-output-file pathname
(lambda (port)
- (write-rmail-file-header (rmail-folder-header-fields folder))
+ (write-rmail-file-header (rmail-folder-header-fields folder) port)
(for-each (lambda (message) (write-rmail-message message port))
(file-folder-messages folder)))))
(close-port port))
(call-with-binary-output-file pathname
(lambda (port)
- (write-rmail-file-header (make-rmail-folder-header-fields '()))
+ (write-rmail-file-header (make-rmail-folder-header-fields '())
+ port)
(write-rmail-message message port))))))
-(define (write-rmail-file-header header-fields)
+(define (write-rmail-file-header header-fields port)
(write-string "BABYL OPTIONS: -*- rmail -*-" port)
(newline port)
(write-header-fields header-fields port)
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.45 2000/05/16 02:16:49 cph Exp $
+;;; $Id: imail-top.scm,v 1.46 2000/05/16 18:55:39 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(append-message message url-string)
(message-filed message)
(if (ref-variable imail-delete-after-output)
- ((ref-command imail-delete-forward) #f))
- (save-folder folder))))
+ ((ref-command imail-delete-forward) #f)))))
\f
;;;; Sending mail
;;; -*-Scheme-*-
;;;
-;;; $Id: imap-response.scm,v 1.16 2000/05/16 15:14:16 cph Exp $
+;;; $Id: imap-response.scm,v 1.17 2000/05/16 18:55:41 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
(let ((i (substring-search-forward "\r\n" string 0 n)))
(if i
(let loop ((i i) (n n))
- (let* ((n (substring-move! s (fix:+ i 1) n s i))
+ (let* ((n (substring-move! string (fix:+ i 1) n string i))
(i (substring-search-forward "\r\n" string (fix:+ i 1) n)))
(if i
(loop i n)