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

[16.0] fetchmail_attach_from_folder: Add option to fetch without reading

Open ikus060 opened this issue 10 months ago • 1 comments

Is your feature request related to a problem? For my usecase, I want odoo to process emails from a GMail folder, but I do now want Odoo to maked them as read. Moslty, because we still want to users to continue processing their emails as usual with GMail web interface instead of Odoo, while having a copy of those emails in Odoo.

Current implementation make use of "(RFC822)" fetch command which mark email as read on the server.

Describe the solution you'd like As a workarround, I changed the implementation to replace fetch "(RFC822)" by fetch "(BODY.PEEK[])" which behave properly be fetching the emails but without changing the seen flag on the server.

Describe alternatives you've considered N/A

Additional context I would recommand to change the current implementation to make use of "(BODY.PEEK[])" all the time instead of "(RFC822)"

ikus060 avatar Feb 28 '25 21:02 ikus060

Done with this commit: a21f957229f337da6b9dc2b9db85cd87cb300c3b

Issue should be closed.

NL66278 avatar May 01 '25 10:05 NL66278