Comment 2 for bug 272282

Revision history for this message
czapa_ols (czapa-ols) wrote : Re: MailCheck can neither start evolution nor connect to POP3

(/usr/share/pyshared/screenlets/plugins/)Mail.py

->AttributeError: 'POP3Backend' object has no attribute 'mailcount'

declaration of mailcount is omitted in class MailCheckBackend
adding line "self.mailcount = 0" to the __init__ of this class (anywhere between lines 114-122) resolves this error.
But there are more :P

->self.status = MailCheckStatus.GOT_MAIL (line 369)
GOT_MAIL is not defined in class MailCheckStatus (lines 94-98), but IDLE is there defined twice.
change one of "IDLE" to "GOT_MAIL" (i suppose its not much important which one as all "calling" is done by names)

->MailboxStatus is newer set in POP3Backend so screenlet does not know if there are any messages.
change :
line 366 from "if msgnum > self.unseen_count:" to "if msgnum > self.mailcount:"
after line 369 add "self.mailbox_status = MailboxStatus.NEW_MAIL"
after line 374 add "self.mailbox_status = MailboxStatus.ALL_READ"

-> mailbox_status mistyped (missing underline) in lines 187,190,195,201

to start email client comment line 310 in (/usr/share/screenlets/MailCheck/)MailCheckScreenlet.py

If you have no knowledge about programming find someone who has, or wait for guys from Dev Team :D
And remember about backup as I could mistyped something.
Sorry for my English. It`s not my native language.