node.js - IMAP APPEND with gmail, treat as new incoming email -


i have got nodejs app imap "append" new message gmail, custom date/time. works fine. but, how make gmail treat actual new incoming email? (which needs sorted based on existing filters, pushed spam if needed,etc). functions carried out on new incoming email gmail. there such event can raised on newly created email, maybe using uid? gmail support such functionality through imap?

p.s: using "inbox" npm package. tried reading imap spec, couldn't understand much. (only got understand append command part).

no. imap append means 'put directly in folder'. can use flags argument of append make sure don't mark \seen, it'll unread message.

the way make new email steps , filtering send via smtp.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -