imap“搜索全部”范围:所有文件夹/当前文件夹?
我试图弄清楚 IMAP 的 search
(带有参数:"unseen all"
)命令是否可以通过搜索邮箱中的所有文件夹或仅搜索当前选定的文件夹来工作?
即,当选择INBOX
并发出search
命令时,它没有找到任何新消息。
a select "INBOX" * 383 EXISTS * 0 RECENT [...] a search unseen all * SEARCH a OK Success
但是,当我进入包含新邮件的文件夹时,它会起作用:
a select "inbox/test1/test2" [...] a uid search unseen all * SEARCH 7 8 9
它检测到三封新邮件,这是事实。所以我的问题是,这种行为正确吗?难道不应该搜索未见过的全部
在所有文件夹中搜索新邮件吗?
I'm trying to figure out if IMAP's search
(with args: "unseen all"
) command works by searching all folders in a mailbox, or just the currently selected folder?
I.e. when selecting INBOX
and issuing search
command, it doesn't find any new messages.
a select "INBOX" * 383 EXISTS * 0 RECENT [...] a search unseen all * SEARCH a OK Success
But when I move into a folder which has a new message, it works:
a select "inbox/test1/test2" [...] a uid search unseen all * SEARCH 7 8 9
It detects three new messages, which is the truth. So my question is, is this behavior correct? Shouldn't search unseen all
search all folders for new messages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 RFC
其中关键字 ALL 指的是
所以,不,似乎没有一个标准的方法来完成您正在寻找的事情(尽管很可能有各种 IMAP 服务器的插件可以促进这一点)。
According to the RFC
where the keyword ALL refers to
So, no, there does not appear to be a standard way to do what you're looking for (although there may well be plugins for various IMAP servers that facilitate that).