diff options
Diffstat (limited to 'service/app')
-rw-r--r-- | service/app/adapter/mail_service.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/app/adapter/mail_service.py b/service/app/adapter/mail_service.py index a11825e0..ab9304e0 100644 --- a/service/app/adapter/mail_service.py +++ b/service/app/adapter/mail_service.py @@ -9,6 +9,7 @@ from app.bitmask_libraries.auth import LeapCredentials from app.adapter.pixelated_mail import PixelatedMail from app.tags import Tags + class MailService: def __init__(self): @@ -30,6 +31,7 @@ class MailService: self.leap_session = LeapSessionFactory(self.provider).create(LeapCredentials(self.username, self.password)) self.account = self.leap_session.account self.mailbox = self.account.getMailbox(self.mailbox_name) + def mails(self, query): return self.mailbox.messages or [] |