From b0a34a8d9c61988643ef71614d6e70b5039722f7 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 26 Jun 2023 10:45:20 +0200 Subject: [PATCH] Removed auto trash --- modules/codeHandler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codeHandler.js b/modules/codeHandler.js index 21dec66..9ac59bd 100644 --- a/modules/codeHandler.js +++ b/modules/codeHandler.js @@ -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]); }