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

Unable to Process Incoming Emails on Aliyun Mail #32504

Open
Android-KitKat opened this issue Nov 14, 2024 · 0 comments
Open

Unable to Process Incoming Emails on Aliyun Mail #32504

Android-KitKat opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@Android-KitKat
Copy link

Android-KitKat commented Nov 14, 2024

Description

I believe it is the SEARCH command in the IMAP protocol with the specified CHARSET parameter that caused the issue.
The server completely rejects the CHARSET parameter, resulting in a malfunction.

We can choose to modify the existing code or switch to the v2 version of go-imap, which should resolve the issue.
This is because the comments in v2 specifically mention this situation.
https://github.com/emersion/go-imap/blob/3e14ef3cd2b7de584d2f27881d8e017e4f794802/imapclient/search.go#L36-L44

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

2024/11/14 15:00:00 ...incoming/incoming.go:64:func1() [E] Error while processing incoming emails: could not process messages: imap search failed: invalid command or parameters
WanELQ LOGIN "git@[hidden]" "[hidden]"
WanELQ OK LOGIN completed
466sjQ SELECT INBOX
* 2 EXISTS
* 0 RECENT
* OK [UNSEEN 0]
* OK [UIDNEXT 3] Predicted next UID.
* OK [UIDVALIDITY 2] UIDs valid.
* FLAGS (\Answered \Seen \Deleted \Draft \Flagged)
* OK [PERMANENTFLAGS (\Answered \Seen \Deleted \Draft \Flagged)] Limited.
466sjQ OK [READ-WRITE] SELECT completed
ExitOw SEARCH CHARSET UTF-8 UNSEEN SMALLER 10485760
ExitOw BAD invalid command or parameters
GstFPw LOGOUT
* BYE IMAP4rev1 Server logging out
GstFPw OK LOGOUT completed

Screenshots

No response

Git Version

2.43.0

Operating System

CentOS Stream 8

How are you running Gitea?

Download the binary from Github Releases and run it using SystemD.

Related configuration:

[email.incoming]
ENABLED = true
HOST = imap.qiye.aliyun.com
PORT = 993
USE_TLS = true
REPLY_TO_ADDRESS = git+%{token}@[hidden]
USERNAME = git@[hidden]
PASSWORD = [hidden]
DELETE_HANDLED_MESSAGE = false

Database

PostgreSQL

@Android-KitKat Android-KitKat changed the title Unable to Process Inbound Emails from Aliyun Mail Unable to Process Incoming Emails on Aliyun Mail Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant