Handbook
Glossary
decode-email-body ( parsed-email body -- parsed-email )
Vocabulary
imap
Inputs
parsed-email
an
object
body
an
object
Outputs
parsed-email
an
object
Definition
USING:
accessors
base64
combinators
io.encodings.string
io.encodings.utf8
kernel
;
IN:
imap
:
decode-email-body
( parsed-email body -- parsed-email )
over
content-transfer-encoding>>
{
{
"base64"
[
base64>
utf8
decode
>>decoded-body
]
}
[
drop
>>decoded-body
]
}
case
;