Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliyun mail uses UidSearch() or Search() method reporting "invalid command or parameters" #638

Closed
xuecangqiuye opened this issue Aug 29, 2024 · 5 comments

Comments

@xuecangqiuye
Copy link

xuecangqiuye commented Aug 29, 2024

I'm using v2 version.
I saw the same problem at #412, but it seems that it doesn't have a solution for this problem.
Can you tell that if this problem is caused by Aliyun mail server or by my mistaken usage?

image

@emersion
Copy link
Owner

Can you obtain debug logs?

@xuecangqiuye
Copy link
Author

Thanks for your reply!
Sorry for taking so long, here is the log

* OK AliYun IMAP Server Ready
T2 CAPABILITY
T1 OK LOGIN completed
T3 CAPABILITY
T4 SELECT INBOX
* CAPABILITY IMAP4rev1 IDLE XLIST UIDPLUS ID SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=EXTERNAL
T2 OK CAPABILITY completed
* CAPABILITY IMAP4rev1 IDLE XLIST UIDPLUS ID SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=EXTERNAL
T3 OK CAPABILITY completed
* 33 EXISTS
* 0 RECENT
* OK [UNSEEN 32]
* OK [UIDNEXT 75] Predicted next UID.
* OK [UIDVALIDITY 2] UIDs valid.
* FLAGS (\Answered \Seen \Deleted \Draft \Flagged)
* OK [PERMANENTFLAGS (\Answered \Seen \Deleted \Draft \Flagged)] Limited.
T4 OK [READ-WRITE] SELECT completed
T5 UID SEARCH (SUBJECT "test134")
T5 BAD invalid command or parameters

@emersion
Copy link
Owner

emersion commented Sep 3, 2024

Hm. That command looks correct to me. I'm not sure why the server refuses it.

@xuecangqiuye
Copy link
Author

Hm. That command looks correct to me. I'm not sure why the server refuses it.

So it may be a server problem.
Thanks a lot!

@Android-KitKat
Copy link

So it may be a server problem.

It was indeed a server issue.
I found some relevant information to help anyone who encounters the same situation in the future.

阿里邮箱IMAP场景示例:获取邮件信息(SELECT、SEARCH和FETCH)-阿里云帮助中心

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants