From f8777a6adf924c33b5d641b293ac707df6d0c87e Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 15 Dec 2024 01:10:24 -0800 Subject: hack to delete uids --- src/email.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/email.ts') diff --git a/src/email.ts b/src/email.ts index f916022..f8916d4 100644 --- a/src/email.ts +++ b/src/email.ts @@ -21,7 +21,7 @@ interface ImapClientI { ) => Promise; connect: () => Promise; getMailboxLock: (mailbox: string) => Promise; - messageDelete: (uids: number[]) => Promise; + messageDelete: (uids: number[], opts: any) => Promise; close: () => void; } @@ -257,8 +257,7 @@ export const perform = ( // cleanup. TE.bind("deleted", ({ imap, uid, mailboxLock }) => TE.tryCatch( - // () => imap.messageDelete([uid], { uid: true }), - () => imap.messageDelete([uid]), + () => imap.messageDelete([uid], { uid: true }), ToErrorWithLock(mailboxLock), ), ), -- cgit v1.2.3-70-g09d2