bug: incoming email feature fails #12436
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Can you reproduce the bug on the Forgejo test instance?
No, I can't try it on the test instance for some reason
Description
The incoming email feature fails to process email replies when the token in the reply-to address is lowercase. I only tested on my own self hosted instance (also on a local gitea instance, it has the same issue). That is why I set the first question to "no".
illegal base32 data at input byte 0I think this happens because:
This potentially affects any email client that normalizes email addresses to lowercase.
As far as I understand Forgejo checks multiple headers for tokens (To, Delivered-To, and References), so this affects all token extraction paths.
Steps to reproduce:
Forgejo Version
15.0.1+gitea-1.22.0
How are you running Forgejo?
Running in Kubernetes using Helm chart forgejo-helm/forgejo version 17.0.1
Configuration: PostgreSQL database, Valkey (Redis) for cache/session/queue, Minio (Garage S3) for storage, incoming email via IMAP (imap.forwardemail.net)
Logs
I added some line numbers to the logging, the error is on line 5. It's actually the only log that gets through when sending an email in.
Logs with DEBUG level enabled
Database
PostgreSQL
The straightforward fix would be to upper-case it before it goes into verification. Marking as good first issue.
Hey @Gusted! I would love to work on it! pls assign it to me!
@abidos the comment enough is to indicate you're working on it. We don't really use the assignee feature otherwise.