Watches IMAP folders for new messages. When a new message is added to INBOX or Screened Out the sender is added/updated in a CardDAV address book and contact groups are adjusted:
- If message lands in
INBOX: ensure contact exists, removeScreened Outgroup, addScreenedgroup - If message lands in
Screened Out: ensure contact exists, removeScreenedgroup, addScreened Outgroup
Setup:
- Copy
.env.exampleto.envand fill in values. - npm install
- npm start
Notes:
- This project uses the
imappackage to watch folders. Some IMAP servers support IDLE; others require polling. - CardDAV operations are performed via WebDAV requests using
node-fetch.