Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Multiple mailboxes #2

Closed
wants to merge 3 commits into from
Closed

Conversation

FrankZwiers
Copy link
Contributor

Implements the feature requested in issue #1 and also contains a fix for a bug that caused the mailpoller to crash when the mail couldn't be decoded.

- Instead of always polling the inbox of an account you can now specify
  the mailbox you want to poll
- We encode the message with the errors=ignore option because otherwhise
  message_from_string could crash when trying to encode with errors=strict
@@ -17,6 +17,7 @@

import imaplib
import email, email.utils, email.header
import codecs
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to import the codecs module here, since you're not using it. (.encode() and .decode() are string properties)

@ghost ghost assigned zoni Dec 6, 2012
@zoni
Copy link
Owner

zoni commented Jan 23, 2013

I've merged b50ec4a and added a small change on top of that which ensures INBOX is used as a mailbox when mailbox isn't specified, to ensure people updating the plugin won't have to adjust their config.

I don't like the changes from de447f0 though, that isn't right. There's more encoding/decoding mess I need to do properly some time though, so I will get around to that later.

Thanks!

@zoni zoni closed this Jan 23, 2013
@zoni zoni mentioned this pull request Jan 23, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants