mail applet's gmail login fails when special characters used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Awn Extras |
Fix Released
|
Medium
|
onox |
Bug Description
When using Gmail login option (not POP or IMAP), password with special characters fail to login due to the HTTP Basic Authentication method used by feedparser (https:/
Instead you could use an HTTPBasicAuthHa
To resolve the problem just open mail.py, located at /usr/share/
==============
OPEN mail.py
==============
======
FIND
======
f = feedparser.parse(\
"https:/
==============
REPLACE WITH
==============
import urllib2
auth = urllib2.
f = feedparser.parse(\
'https:/
Related branches
description: | updated |
tags: | added: mail |
Changed in awn-extras: | |
status: | Fix Committed → Fix Released |
I've rewritten the above script as it stopped working after a while.
============== avant-window- navigator/ applets/ mail/mail. py
OPEN /usr/share/
==============
====== /%s:%<email address hidden> /gmail/ feed/atom/ unread/ " \
% (self.data[ "username" ], self.data[ 'password' ]))
FIND
======
f = feedparser.parse(\
"https:/
if "bozo_exception" in f.keys():
raise LoginError(_("There seem to be problems with our \
connection to your account. Your best bet is probably \
to log out and try again."))
# Hehe, Google is funny. Bozo exception
==============
password_ mgr = urllib2. HTTPPasswordMgr WithDefaultReal m()
password_ mgr.add_ password( None, 'https:/ /mail.google. com', \
self. data["username" ], self.data[ "password" ])
REPLACE WITH
==============
import urllib2
auth = urllib2. HTTPBasicAuthHa ndler(password_ mgr) build_opener( auth)
opener = urllib2.
try: /mail.google. com/gmail/ feed/atom')
raise LoginError(_("There seem to be problems with our \
src = opener.open('https:/
except:
connection to your account. Your best bet is probably \
to log out and try again."))
feed = src.read() parse(feed)
f = feedparser.