Changeset 2807
- Timestamp:
- 03/27/08 09:14:36 (10 months ago)
- Files:
-
- trunk/thirdparty/cl-mime/classes.lisp (modified) (1 diff)
- trunk/thirdparty/cl-mime/encoding.lisp (modified) (1 diff)
- trunk/thirdparty/cl-mime/parse-mime.lisp (modified) (1 diff)
- trunk/thirdparty/cl-mime/utilities.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/thirdparty/cl-mime/classes.lisp
r2045 r2807 108 108 :accessor prologue 109 109 :initform nil 110 :initarg :prologue) 110 :initarg :prologue 111 :type (or null string)) 111 112 (epilogue 112 113 :accessor epilogue 113 114 :initform nil 114 :initarg :epilogue)) 115 :initarg :epilogue 116 :type (or null string))) 115 117 (:documentation "Multipart Mime Object Representation")) 116 118 trunk/thirdparty/cl-mime/encoding.lisp
r2045 r2807 36 36 ((array (unsigned-byte 8)) 37 37 (usb8-array-to-base64-string content :columns 75)))) 38 (:quoted-printable (qprint:encode content ))))))38 (:quoted-printable (qprint:encode content :columns 75)))))) 39 39 40 40 trunk/thirdparty/cl-mime/parse-mime.lisp
r2045 r2807 56 56 (if (equal mime-version "1.0") 57 57 58 (let* ((encoding (intern ( or (string-upcase59 (cdr (assoc :content-transfer-encoding60 headers)) )61 "7BIT")58 (let* ((encoding (intern (string-upcase 59 (or (cdr (assoc :content-transfer-encoding 60 headers)) 61 "7BIT")) 62 62 :keyword)) 63 63 (mime-obj-gen trunk/thirdparty/cl-mime/utilities.lisp
r2045 r2807 23 23 (in-package :mime) 24 24 25 ;;; This function reads a line from the given input stream that 26 ;;; is either terminated by LF or by CRLF. 27 (defun read-line/strip-cr (&rest args) 28 (multiple-value-bind (line missing-newline-p) 29 (apply #'read-line args) 30 (if (not missing-newline-p) 31 (let ((l (length line))) 32 (if (and (>= l 1) (char= (char line (1- l)) #\Return)) 33 (values (subseq line 0 (1- l)) missing-newline-p) 34 (values line missing-newline-p))) 35 (values line missing-newline-p)))) 25 36 26 37 ;;; This macro does very little other than tidy up the do-loops I tend to do … … 30 41 reached or EXIT-CLAUSE is true where upon EXIT-BODY is executed. 31 42 Executes BODY for every line in the file" 32 `(do ((,line-var (read-line ,stream nil 'eof)33 (read-line ,stream nil 'eof)))43 `(do ((,line-var (read-line/strip-cr ,stream nil 'eof) 44 (read-line/strip-cr ,stream nil 'eof))) 34 45 ((or (eql ,line-var 'eof) 35 46 ,exit-clause)
