[cl-smtp-devel] Patch to support sending raw messages

Hans Hübner hans at huebner.org
Mon Mar 24 07:58:57 UTC 2008


Hi Anton and whoever is interested,

I made yet another patch to CL-SMTP so that it performs automatic
conversion of non-ASCII characters in email headers to quoted
characters according to RFC2047.  This is implemented as a specialized
stream class SMTP-OUTPUT-STREAM that is used during message output.
The SMTP-OUTPUT-STREAM class also does conversion of #\Newline to
#\Return #\Newline - This might be better done with a properly set up
FLEXI-STREAMS encoding;  I'm not sure.

One thing that might usefully be added to SMTP-OUTPUT-STREAM is dot
masking.  Dot masking is not currently automatic for the
WITH-SMTP-MAIL macro, and that ought to change.

I will propably split the cl-smtp.lisp file in the future into two
files:  smtp.lisp will contain only SMTP protocol handling
functionality and compose-message.lisp will contain the message
composition functionality.

Further thoughts?  Let me know.

-Hans



More information about the cl-smtp-devel mailing list