Show
Ignore:
Timestamp:
04/01/09 17:21:11 (17 months ago)
Author:
hans
Message:

Somewhat obscure fix for sending attachments in certain firewalled
environment. Supplied by Russ Tyndall.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thirdparty/cl-smtp/attachments.lisp

    r2782 r4346  
    7777   :content-type (format nil "~a;~%~tname=\"~a\"" (lookup-mime-type name) name) 
    7878   :content-transfer-encoding "base64" 
    79    :content-disposition (format nil "attachment; filename=\"~a\"" name))) 
     79   :content-disposition (format nil "inline; filename=\"~a\"" name))) 
    8080 
    8181(defun send-end-marker (sock boundary) 
     
    9292                                   &key  
    9393                                   (buffer-size 256) ;; in KB 
    94                                    (wrap-at-column 70)) 
     94                                   (wrap-at-column 72)) 
    9595  "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. 
    9696 
    9797Buffer-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.  
    9898 
    99 Wrap-at-column controls where the encode string is divided for line breaks."  
     99Wrap-at-column controls where the encode string is divided for line breaks." 
    100100    (when (probe-file file-in) 
    101101      ;;-- open filein ---------