When using notifier for non-google domain, URL to mailbox is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gmail-notify (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gmail-notify
Using gmail-notify for a gmail account on a non-google domain works just fine by specifying <email address hidden> as the user name. However, the URL used for going to the mailbox should in this case be
http://
instead of just
Release of Ubuntu:
$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
Version of package:
$ apt-cache policy gmail-notify
gmail-notify:
Installerad: 1.6.1-3ubuntu2.1
Kandidat: 1.6.1-3ubuntu2.1
Versionstabell:
*** 1.6.1-3ubuntu2.1 0
500 http://
100 /var/lib/
1.6.1-3ubuntu2 0
500 http://
I think that the following patch fixes the problem:
$ diff notifier.py~ notifier.py mail.google. com/" "gmailusername" ].split( '@') in)>1: ain[1]+ "/" options[ 'browserpath' ]+" http:// gmail.google. com" self.options[ 'browserpath' ]+" http:// gmail.google. com &") options[ 'browserpath' ]+" "+url self.options[ 'browserpath' ]+" "+url+"&")
352a353,356
> url = "http://
> useranddomain = self.options[
> if len(useranddoma
> url += "a/"+useranddom
354,355c358,359
< print "launching browser "+self.
< os.system(
---
> print "launching browser "+self.
> os.system(