|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在Python的doc帮助中,sort似乎有三个以上的函数,并未有reverse这个参数:sort(sort_criteria, charset, search_criterion[, ...]),原谅我有道翻译看不懂,请大佬们解释一下这三个参数的作用分别是干什么的。。。
翻译结果:
sort命令是搜索的变体,具有对结果排序的语义。返回的数据包含一个以空格分隔的匹配消息编号列表。
Sort在search_criterion参数之前有两个参数;括号中的sort_criteria列表和搜索字符集。注意,与搜索不同,搜索字符集参数是强制性的。还有一个uid排序命令,它对应于uid搜索对应于搜索的排序方式。sort命令首先使用charset参数在搜索条件中解释字符串,搜索邮箱中匹配给定搜索条件的消息。然后返回匹配消息的数量。
这是一个IMAP4rev1扩展命令。
英语版:
The sort command is a variant of search with sorting semantics for the results. Returned data contains a space separated list of matching message numbers.
Sort has two arguments before the search_criterion argument(s); a parenthesized list of sort_criteria, and the searching charset. Note that unlike search, the searching charset argument is mandatory. There is also a uid sort command which corresponds to sort the way that uid search corresponds to search. The sort command first searches the mailbox for messages that match the given searching criteria using the charset argument for the interpretation of strings in the searching criteria. It then returns the numbers of matching messages.
This is an IMAP4rev1 extension command
你应该点下面那个list method首先知道你要查的是啥
|
|