Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望 imap 的命令语法从没有附件的消息中获取只是标题和文本正文。
我尝试了这个命令但不起作用:UID FETCH uid (BODY[HEADER] BODY[1])
谢谢
存在用于获取邮件数据的原始提取命令
UID FETCH 2 (BODY[]<0.size>)
例如,如果你想获取前 100 个字节的邮件,那么你可以触发一个命令
UID FETCH 2 (BODY[]<0.100>)
但是您将不得不自己解析数据。