Changeset 4346 for trunk/thirdparty/cl-smtp
- Timestamp:
- 04/01/09 17:21:11 (17 months ago)
- Files:
-
- 1 modified
-
trunk/thirdparty/cl-smtp/attachments.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thirdparty/cl-smtp/attachments.lisp
r2782 r4346 77 77 :content-type (format nil "~a;~%~tname=\"~a\"" (lookup-mime-type name) name) 78 78 :content-transfer-encoding "base64" 79 :content-disposition (format nil " attachment; filename=\"~a\"" name)))79 :content-disposition (format nil "inline; filename=\"~a\"" name))) 80 80 81 81 (defun send-end-marker (sock boundary) … … 92 92 &key 93 93 (buffer-size 256) ;; in KB 94 (wrap-at-column 7 0))94 (wrap-at-column 72)) 95 95 "Encodes the file contents given by file-in, which can be of any form appropriate to with-open-file, and write the base-64 encoded version to sock, which is a socket. 96 96 97 97 Buffer-size, given in KB, controls how much of the file is processed and written to the socket at one time. A buffer-size of 0, processes the file all at once, regardless of its size. One will have to weigh the speed vs, memory consuption risks when chosing which way is best. 98 98 99 Wrap-at-column controls where the encode string is divided for line breaks." 99 Wrap-at-column controls where the encode string is divided for line breaks." 100 100 (when (probe-file file-in) 101 101 ;;-- open filein ---------
