-
Notifications
You must be signed in to change notification settings - Fork 14
Description
First of all, just want to say thank you for a very handy utility.
I wanted mbsync to run not just when I received new mail, but also whenever messages were deleted from the server, or marked as read (in case, for example, I delete them from my phone). For that reason, I added event listeners for node-imap's 'expunge' and 'update' events. (It's not very pretty, I know – JS is not my main language.)
But since that functionality goes beyond the stated purpose of imapnotify ('Execute scripts on new messages using IDLE IMAP command'), I thought it would make more sense to hold off on a PR, and ask if there would be interest in merging this feature first.
Are there any use cases where users would want to trigger their scripts only on new mail, and not on deletions or other changes to the mailbox?