Mail crashes parsing mails without author field

Bug #586838 reported by Rafal Misiewicz
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Low
Gabor Karsay

Bug Description

Mail Applet and Avant Window Navigator version: 0.4.0
Fedora 12

AttributeError: object has no attribute 'author'

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 78, in __init__
    self.login()
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 108, in login
    self.perform_login(key)
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 127, in perform_login
    self.mail.update() # Update
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 540, in update
    t.append(MailItem(i.title, i.author))
  File "/usr/lib/python2.6/site-packages/feedparser.py", line 236, in __getattr__
    raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'author'

Related branches

summary: - mail applet crashes on start
+ mail applet crashes on start up
Revision history for this message
Carharttguy (carharttguy) wrote : Re: mail applet crashes on start up

Got this bug to, just from today. No idea what's changed between today and yesterday.

tags: added: applet mail
onox (onox)
Changed in awn-extras:
assignee: nobody → Gabor Karsay (gabor-karsay)
tags: added: traceback
Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Thanks for your report, but I can't reproduce this on Ubuntu 10.04 nor Fedora 13 with awn-extras trunk rev. 1398.
Would you please answer these questions:
Is it reproducable? Does it happen all the time?
It seems you are using Gmail, right?
Is it dependent on the email? Does it happen with certain emails or if the inbox is empty?
Carharttguy, do you have the same setup as Rafał Misiewicz and get the same error message?

Changed in awn-extras:
status: New → Incomplete
Revision history for this message
Rafal Misiewicz (r-misiewicz) wrote :

Yes, I'm using Gmail. This bug happens only when I get e-mails with no author, sent by some kind of PHP script. This bug hasn't happened for me in last 2-3 months, probably because I haven't got this kind of mail in this time.

Revision history for this message
Carharttguy (carharttguy) wrote :

No, I'm using Ubuntu 10.04, but I (.ant reproduce this bug, It happens very rarely. And only on startup. Really weird. But iatm, it is weeks ago i've seen this bug on my machine.

Changed in awn-extras:
status: Incomplete → In Progress
Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Thanks for your responses, fixed in rev. 1403.

summary: - mail applet crashes on start up
+ Mail crashes parsing mails without author field
Changed in awn-extras:
importance: Undecided → Low
milestone: none → 0.4.2
status: In Progress → Fix Committed
Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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