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

[req] Pull all mail instead of just un-seen #31

Open
dekimsey opened this issue Aug 21, 2018 · 1 comment
Open

[req] Pull all mail instead of just un-seen #31

dekimsey opened this issue Aug 21, 2018 · 1 comment

Comments

@dekimsey
Copy link

IMAP is intended to be used by multiple mail clients. We have some ops/qa folk that check the mailboxes independently of logstash. Their viewing is marking the messages as seen and the plugin is hard-coded to skip those messages. I'd like for the plugin to pull all messages instead of just UNSEEN ones.

To do this, the plugin would need to use the UID imap api and track the current uid index similar to how logstash-input-file tracks file pointers. IMAP UIDs have some uniqueness guarantees that I feel can be leveraged here.

There is something to be said for also setting the fingerprint on the event to a hash of (folder name, folder UIDVALIDITY, message UID) tuple.

  • Version: logstash-5.3.2
  • Operating System: CentOS 7
@pemontto
Copy link
Contributor

Marking as read issue fixed in #46

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

3 participants