jcreigno / nodejs-mail-notifier

nodejs library to listen incoming mail
MIT License
168 stars 77 forks source link

add ability to delete parsed mail #34

Open taoxuau opened 7 years ago

taoxuau commented 7 years ago

A small change for my convenience but maybe you're happy with that.

DigitalLeaves commented 4 years ago

Hello, First of all, thanks for this fantastic library and thanks @gustawdaniel for this addition. Very useful indeed.

Is this feature actually added and working? I tried it today and the messages remain in the inbox folder. This is my configuration:

const imap = {
  user: env.email.automation.user,
  password: env.email.automation.password,
  host: env.email.automation.host,
  port: env.email.automation.port,
  tls: true, 
  tlsOptions: { rejectUnauthorized: false },
  markDeleted: true,
  autoExpunge: true
};

However, I configured the account in an email client and the messages remain there... I see only "Seen" flag added: flags: [ '\\Seen' ]