pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
253 stars 32 forks source link

Refactorings related to Account class #165

Closed tikank closed 6 years ago

tikank commented 6 years ago

This is refactoring and preparation to get rid of extra attiributes in the Account class. Idle and imap attributes were used here and there to check if an account supports notifications. I added supports_notifications method to the Account and backend classes.

pulb commented 6 years ago

Many thanks for all your pull requests! I also noticed that the _backends dict in backends/init.py seems to contain some needless params (i.e. 'idle' and 'imap' for the pop3 backend and 'imap' for for the imap backend)