[GH-ISSUE #52] Make IMAP crawler leave email unread #52

Closed
opened 2026-02-27 15:54:43 +03:00 by kerem · 3 comments
Owner

Originally created by @akropp on GitHub (Jul 27, 2017).
Original GitHub issue: https://github.com/RD17/ambar/issues/52

IMAP crawler should not mark emails as read. At least in gmail, this is the current behavior.

If the fetch call in imapcrawler.py is changed to:
callResult, data = self.connection.uid('fetch', messageId, '(BODY.PEEK[])')

This has the desired behavior on gmail. I do not have other IMAP accounts to test.

Originally created by @akropp on GitHub (Jul 27, 2017). Original GitHub issue: https://github.com/RD17/ambar/issues/52 IMAP crawler should not mark emails as read. At least in gmail, this is the current behavior. If the fetch call in imapcrawler.py is changed to: callResult, data = self.connection.uid('fetch', messageId, '(BODY.PEEK[])') This has the desired behavior on gmail. I do not have other IMAP accounts to test.
kerem 2026-02-27 15:54:43 +03:00
Author
Owner

@sochix commented on GitHub (Aug 2, 2017):

Thanks for the feedback, will check it

<!-- gh-comment-id:319651895 --> @sochix commented on GitHub (Aug 2, 2017): Thanks for the feedback, will check it
Author
Owner

@buster39 commented on GitHub (Aug 6, 2017):

Hi @akropp my gmail setup does not work. But yours seems to. Could you please post your crawler config for gmail? The part "Locations" and "credentials" are interesting for me.

Thanks

<!-- gh-comment-id:320501765 --> @buster39 commented on GitHub (Aug 6, 2017): Hi @akropp my gmail setup does not work. But yours seems to. Could you please post your crawler config for gmail? The part "Locations" and "credentials" are interesting for me. Thanks
Author
Owner

@sochix commented on GitHub (Sep 5, 2017):

Done. @buster39 please create new issue with description of your problem

<!-- gh-comment-id:327138278 --> @sochix commented on GitHub (Sep 5, 2017): Done. @buster39 please create new issue with description of your problem
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ambar#52
No description provided.