server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

Email matching fails when addresses contain uppercase letters

Open Franck-Patissier-Orbeet opened this issue 3 months ago • 1 comments

Module

fetchmail_attach_from_folder

Bug Description

Emails containing uppercase letters in the address are not linked to partner records.

Steps to reproduce the issue

Configure a folder to attach emails to partners based on the email field.

Save a partner with an email address in uppercase ([email protected]) and/or another in lowercase ([email protected]).

Drop an email into the monitored folder with the same address but in a different case (e.g., [email protected]).

Notice that no match is found, even though the address exists in Odoo.

Expected Behavior

The matching should be case-insensitive, so that:

[email protected] [email protected] [email protected] are all treated as the same address.

Additional Context

Odoo version: 18 IMAP/Email server: Gmail

This issue prevents emails with uppercase/mixed-case addresses from being attached to the correct partners, even when the address exists in Odoo.

Franck-Patissier-Orbeet avatar Sep 30 '25 18:09 Franck-Patissier-Orbeet

I would like to solve the issue for hacktoberfest

aviralgarg05 avatar Oct 01 '25 11:10 aviralgarg05