Removed auto trash
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user