Finished AWS, remade account sorter.
This commit is contained in:
@@ -33,6 +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);
|
||||
});
|
||||
mailListener.stop();
|
||||
resolve(match[1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user