2

I have a mailbox on gmail that has the following UIDs if I do a search 'ALL'.

[ 2, 5, 6, 51 ]

Oddly, if I do a search for '3:*', I only get [6, 51] back.

==> A6 UID SEARCH 3:*
<== '* SEARCH 6 51\r\nA6 OK SEARCH completed (Success)\r\n'
[parsing incoming] saw untagged SEARCH
<== 'A6 OK SEARCH completed (Success)\r\n'

From my understanding of IMAP, it is supposed to return [5, 6, 51] right? Is this a bug with Gmail or just my incorrect understandging?

4

1 回答 1

6

你想要UID SEARCH UID 3:*。您正在按消息序列号进行搜索。1 -> 2, 2 -> 5, 3 -> 6, 4 -> 51。因此,您正在搜索消息 3 和 4,它们的 UID 分别为 6 和 51。

于 2013-04-30T21:56:16.217 回答