diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2014-08-28 16:32:21 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2014-08-28 16:32:21 -0300 |
commit | c51c1024299fcf69cc67388b7dc35760a0414d12 (patch) | |
tree | 1ba8a59c67c6129f6ed6aa4950d9613704fce725 /service/pixelated | |
parent | a6b76a9360cec5ead6621bd388397ee7ab663321 (diff) |
fix - account.mailboxes is a list of strings, using getMailbox to get from the name
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/mail_service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mail_service.py b/service/pixelated/adapter/mail_service.py index f5bfd1c8..5a60d1bb 100644 --- a/service/pixelated/adapter/mail_service.py +++ b/service/pixelated/adapter/mail_service.py @@ -57,8 +57,8 @@ class MailService: mails = [] if query['tags']: tags = [Tag(tag) for tag in query['tags']] - for leap_mailbox in self.account.mailboxes: - mailbox = PixelatedMailbox(leap_mailbox) + for leap_mailbox_name in self.account.mailboxes: + mailbox = PixelatedMailbox(self.account.getMailbox(leap_mailbox_name)) if len(mailbox.all_tags().intersection(tags)): # mailbox has at least one mail with tag for mail in mailbox.mails(): |