Removed auto trash

This commit is contained in:
2023-06-26 10:45:20 +02:00
parent d4295880b6
commit b0a34a8d9c

View File

@@ -33,9 +33,9 @@ async function getCodeFromEmail() {
imap.addFlags(attributes.uid, '\\Seen', (err) => {
if (err) console.log('Error marking email as seen:', err);
});
imap.move(attributes.uid, '\\Trash', (moveErr) => {
if (moveErr) console.log('Error moving email to trash:', moveErr);
});
// imap.move(attributes.uid, '\\Trash', (moveErr) => {
// if (moveErr) console.log('Error moving email to trash:', moveErr);
// });
mailListener.stop();
resolve(match[1]);
}