此IMAP ESEARCH命令语法有什么问题? [英] What is wrong with this IMAP ESEARCH command syntax?

查看:113
本文介绍了此IMAP ESEARCH命令语法有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种搜索邮件服务器上所有IMAP文件夹的方法.我最近发现了 IMAP ESEARCH命令,该命令扩展了常规SEARCH命令的搜索范围文件夹.但是,我似乎无法使其正常工作.

I am looking for a way to search across all IMAP folders on my mail server. I recently discovered the IMAP ESEARCH command, which extends the usual SEARCH command to search across folders. I cannot, however, seem to make it work.

我已经检查邮件服务器支持ESEARCH.远程登录后,我执行了以下操作:

I have checked that the mail server supports ESEARCH. After telnet-ing in, I executed the following:

* OK JAMES IMAP4rev1 Server Server server-address is ready.
A1 LOGIN test test
A1 OK LOGIN completed.
A2 CAPABILITY
* CAPABILITY SASL-IR IDLE LITERAL+ AUTH=PLAIN CONDSTORE ESEARCH CHILDREN UIDPLUS UNSELECT WITHIN ENABLE I18NLEVEL=1 SEARCHRES IMAP4rev1 NAMESPACE QRESYNC
A2 OK CAPABILITY completed.
A3 LIST "" "*"
* LIST (\HasNoChildren) "." "INBOX"
* LIST (\HasNoChildren) "." "Drafts"
* LIST (\HasNoChildren) "." "Sent"
* LIST (\HasNoChildren) "." "Trash"
A3 OK LIST completed.

请注意ESEARCH的存在.然后,我尝试了以下ESEARCH,但失败了.

Note the presence of ESEARCH. I then tried the following ESEARCH, which fails.

A4 ESEARCH IN (mailboxes "INBOX") unseen
A4 BAD failed. Unknown command.

普通搜索效果很好

A5 SELECT INBOX
* FLAGS (\Answered \Deleted \Draft \Flagged \Seen)
...
A5 OK [READ-WRITE] SELECT completed.
A6 SEARCH UNSEEN
* SEARCH 3
A6 OK SEARCH completed.

根据我对规范和正式语法的理解,工作.任何帮助或指示,将不胜感激.

From what I can read of the spec and the formal syntax this should work. Any help or pointers would be much appreciated.

推荐答案

该文档指出ESEARCH由功能MULTISEARCH描述.

That document indicates ESEARCH is described by capability MULTISEARCH.

功能ESEARCH可能还有其他功能吗?

Capability ESEARCH might be something else?

这篇关于此IMAP ESEARCH命令语法有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆