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

[16.0] fetchmail_attach_from_folder: Add option to fetch without reading #3214

Open
ikus060 opened this issue Feb 28, 2025 · 0 comments
Open

Comments

@ikus060
Copy link

ikus060 commented Feb 28, 2025

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 ikus060 changed the title [16.0] fetchmail_attach_from_folder: Add uption to fetch without reading [16.0] fetchmail_attach_from_folder: Add option to fetch without reading Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant