[MailCheck] MailCheck can neither start evolution nor connect to POP3

Bug #272282 reported by Niclas Lockner
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Individual Screenlets
Fix Released
High
Papp Bence

Bug Description

As the summary says, I can't get MailCheck to connect to my POP3 server or open evolution.
I have attached the output I received from starting the screenlet from a terminal.

These are the versions:
Screenlets 0.1.2
MailCheck 0.3 (the one that comes with screenlets 0.1.2)
Ubuntu 8.04

Revision history for this message
Niclas Lockner (niclasl) wrote :
Revision history for this message
czapa_ols (czapa-ols) wrote :

(/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.

Revision history for this message
Luca Waldner (fantasmino) wrote :

I was affected by this bug, too, but the patch of czapa_ols work very fine!
Thanks a lot!

PS: Today is 1th December. I have installed screenlets yesterday. The solution is in your post. More than two months are spent from the opening bug.
WHY I have still downloaded and installed the bugged version?
I applied the patch in a couple of minutes, and I don't know anything about programming!

Revision history for this message
Lintila (lintila) wrote :

Thanks czapa_ols

I made the corrections to the code in those two files and it now works nicely!

Hopefully they can make those changes and update the screenlet so that new users that install it don't have to go through all that code editing.

Thanks Again,
Lintila

Revision history for this message
Papp Bence (sclegnrbs) wrote :

Thanks czapa_ols

Can you send here the patch?

affects: screenlets → indiv-screenlets
Papp Bence (sclegnrbs)
Changed in indiv-screenlets:
status: New → In Progress
importance: Undecided → High
Papp Bence (sclegnrbs)
summary: - MailCheck can neither start evolution nor connect to POP3
+ [MailCheck] MailCheck can neither start evolution nor connect to POP3
Papp Bence (sclegnrbs)
Changed in indiv-screenlets:
assignee: nobody → Papp Bence (sclegnrbs)
Revision history for this message
Papp Bence (sclegnrbs) wrote :

Fix committed in #604.

Changed in indiv-screenlets:
status: In Progress → Fix Committed
Märt Põder (boamaod)
Changed in indiv-screenlets:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.