Finished AWS, remade account sorter.

This commit is contained in:
2023-06-15 13:07:06 +02:00
parent cb4ae768bd
commit a7de30a6ad
6 changed files with 150 additions and 23 deletions

View File

@@ -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]);
}