Repository navigation
Minor Changes
-
0e62036:
mail_attachment_fetchdownloads one attachment of one message and returns its content in the reply.mail_readnow lists a message's attachments — name, type, size, blobId — so a call can pick theblobIdthis tool takes.The attachment's declared size is checked against
files.maxDownloadSizebefore any byte moves, the same guardfiles_fetchapplies to a node. By default the tool inflates a gzip attachment, unpacks a zip one (every entry, each prefixed by its name, when it holds several), and returns a plain-text, XML or JSON attachment as-is; anything else, ordecode: "raw", comes back as base64. Decoded output is cut atmaxBytesand the cut is announced, the same convention asmail_read.