diff options
author | sterni <sternenseemann@systemli.org> | 2023-03-26T17·32+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-05-09T16·42+0000 |
commit | 7c6806cfa711a7c3e3472a605556b0989fe0a1c3 (patch) | |
tree | 9b273a0817f7a021ea0059d6797fc2d464c881c4 /third_party/lisp/mime4cl/mime.lisp | |
parent | f1604c99e51d1c3069303a6a5dcdddc694c4a20a (diff) |
refactor(3p/lisp/mime4cl): rename :stream to :underlying-stream r/6125
This makes sure that initializing coder-stream-mixin (for the most part) has the same interface as initializing qbase64:decode-stream. This will make integrating that as a faster replacement to mime4cl:base64-decoder-stream a bit easier. The idea is to replace the char by char base64 decoder with one that supports read-sequence. After that deliminited-input-stream needs to gain support for read-sequence as well, so we can actually take advantage of this fact. Finally, we'll have to evaluate the remaining decoders and think about switching the (base64) encoders over as well. Change-Id: If971da02437506e00a7c9fab2b94efc42725e62d Reviewed-on: https://cl.tvl.fyi/c/depot/+/8555 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'third_party/lisp/mime4cl/mime.lisp')
-rw-r--r-- | third_party/lisp/mime4cl/mime.lisp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/third_party/lisp/mime4cl/mime.lisp b/third_party/lisp/mime4cl/mime.lisp index a5917db67fc4..4c0d9e2c9b52 100644 --- a/third_party/lisp/mime4cl/mime.lisp +++ b/third_party/lisp/mime4cl/mime.lisp @@ -687,7 +687,7 @@ list of MIME parts." '("message" "rfc822" ()) '("text" "plain" (("charset" . "us-ascii")))) in (make-instance 'delimited-input-stream - :stream stream + :underlying-stream stream :dont-close t :start start :end end) @@ -729,7 +729,7 @@ guessed from the headers, use the *DEFAULT-TYPE*." (flet ((hdr (what) (header what headers))) (destructuring-bind (type subtype parms) - (or + (or (aand (hdr :content-type) (parse-content-type it)) *default-type*) @@ -823,7 +823,8 @@ returns a MIME-MESSAGE object." 'quoted-printable-encoder-input-stream) (t '8bit-encoder-input-stream)) - :stream (make-instance 'binary-input-adapter-stream :source body)))) + :underlying-stream + (make-instance 'binary-input-adapter-stream :source body)))) (defun choose-boundary (parts &optional default) (labels ((match-in-parts (boundary parts) |