Loading...
Loading...
Fetch full email MIME content and attachment files from IMAP by message reference. Use when downstream steps already have a stage-1 mail_ref and need full headers/body/attachments for a specific message, with message_id_norm as the primary lookup key and uid only as fallback.
npx skill4agent add tiangong-ai/skills email-imap-full-fetchHEADER Message-IduidBODY.PEEK[].emlmessage_id_normmail_ref.message_id_normfetch --message-id "<message_id_norm or raw Message-Id>"fetch --uid "<uid>"--mailboxIMAP_MAILBOXmail_refpython3 scripts/imap_full_fetch.py fetch --message-id "<caa123@example.com>"python3 scripts/imap_full_fetch.py fetch --uid "123456"python3 scripts/imap_full_fetch.py fetch --message-id "<caa123@example.com>" --uid "123456"mail_refheaderstext_plaintext_htmlattachmentssaved_eml_pathmail_refaccountmailboxuidmessage_id_rawmessage_id_normdateattachments[]filenamecontent_typebytesdispositionsaved_pathskipped_reasonsaved_eml_path.emlBODY.PEEK[]message_id_norm--message-id--uid--mailboxIMAP_MAILBOXINBOX--save-eml-dir.emlIMAP_FULL_SAVE_EML_DIR--index-dirIMAP_FULL_INDEX_DIR<save-eml-dir>/.index--save-attachments-dirIMAP_FULL_SAVE_ATTACHMENTS_DIR--max-attachment-bytesIMAP_FULL_MAX_ATTACHMENT_BYTES--allow-extIMAP_FULL_ALLOW_EXT--connect-timeoutIMAP_CONNECT_TIMEOUTIMAP_HOSTIMAP_USERNAMEIMAP_PASSWORDIMAP_NAMEIMAP_PORTIMAP_SSLIMAP_MAILBOXscripts/imap_full_fetch.py