Skip to content

Commit

Permalink
getDeletedEmails
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartasWar committed Nov 29, 2024
1 parent 5981b6d commit 938d39f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion EMailService.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,16 @@ def get_emails(self, date : datetime = None)->list[Email]:
html_files = html_file_names)]
return listofMails

def getDeletetEmail()->list[str]:
def getDeletedEmail(self)->list[str]:
listofUIPsDatenbank = []
listofUIPsIMAP = []
for mailbox in self.IMAP.list_folders():
self.IMAP.select_folder(mailbox)
messages_ids = self.IMAP.search(["ALL"])
for message_data in self.IMAP.fetch(messages_ids,["RFC822","UID"]).items():
listofUIPsIMAP.append(message_data.get(b"UID"))
return listofUIPsDatenbank-listofUIPsIMAP




Expand Down

0 comments on commit 938d39f

Please sign in to comment.