IMAP 获取所选文件夹的 UID 列表
如何从所选文件夹中检索 IMAP UID 列表?我想获取邮件 UID 列表,因此我传递了 1150 UID FETCH FLAGS (\Seen \Flagged)
,但我无法检索该列表:它给了我一个类似 <代码>错误命令。那么如何从所选文件夹中检索 UID 列表呢?
How can I retrieve the list of IMAP UIDs from the selected folder? I want to get the list of mail UIDs, so I am passing the 1150 UID FETCH FLAGS (\Seen \Flagged)
, but I am not able to retrieve the list: it gives me an error like BAD Command
. So how I can retrieve the list of UID from the selected folder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
列出当前所选文件夹中所有 UID 的最简单(也是最紧凑)的方法是通过 UID SEARCH ALL :
您的 UID FETCH 请求中的错误遗漏了序列集并包括标志列表。如果你将其重写为
or
它将起作用。
The easiest (and most compact) way to list all the UIDs in the currently-selected folder is via
UID SEARCH ALL
:The errors in your
UID FETCH
request were leaving out the sequence-set and including a list of flags. If you rewrote it asor
it would work.