Mercurial > libervia-backend
comparison src/plugins/plugin_misc_maildir.py @ 588:beaf6bec2fcd
Remove every old-style class.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | 952322b1d490 |
children | e629371a28d3 |
comparison
equal
deleted
inserted
replaced
587:952322b1d490 | 588:beaf6bec2fcd |
---|---|
54 MAILDIR_PATH = "Maildir" | 54 MAILDIR_PATH = "Maildir" |
55 | 55 |
56 class MaildirError(Exception): | 56 class MaildirError(Exception): |
57 pass | 57 pass |
58 | 58 |
59 class MaildirBox(): | 59 class MaildirBox(object): |
60 | 60 |
61 def __init__(self, host): | 61 def __init__(self, host): |
62 info(_("Plugin Maildir initialization")) | 62 info(_("Plugin Maildir initialization")) |
63 self.host = host | 63 self.host = host |
64 | 64 |
304 observer_cb() | 304 observer_cb() |
305 except KeyError: | 305 except KeyError: |
306 pass | 306 pass |
307 | 307 |
308 | 308 |
309 class MailboxUser: | 309 class MailboxUser(object): |
310 """This class is used to access a mailbox""" | 310 """This class is used to access a mailbox""" |
311 | 311 |
312 def xmppMessage2mail(self, message): | 312 def xmppMessage2mail(self, message): |
313 """Convert the XMPP's XML message to a basic rfc2822 message | 313 """Convert the XMPP's XML message to a basic rfc2822 message |
314 @param xml: domish.Element of the message | 314 @param xml: domish.Element of the message |