You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use IMAP uid to retrieve new mails instead of "NOT SEEN" flag
This commit introduces new configuration options:
* `uid_tracking` - set to `true` to use IMAP uid instead of "NOT SEEN" flag
* `sincedb_path` - path to file with last processed IMAP uid. Defaults to
`#{path.data}/plugins/input/imap/.sincedb_#{Digest::MD5.hexdigest("#{@user}_#{@host}_#{@PORT}_#{@folder}")}`
IMAP uid is always stored in the file `sincedb_path` regardles of the
`uid_tracking` setting, so we can switch between "NOT SEEN" and "UID"
tracking. In transition from the previous plugin version, we first need
to process at least one mail with `uid_tracking` set to `false` to save
the last processed IMAP uid and then switch `uid_tracking` to `true`.
Fixes#36
0 commit comments