When using notifier for non-google domain, URL to mailbox is wrong

Bug #260090 reported by Lars Engebretsen
2
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://mail.google.com/a/domain.tld/

instead of just

http://gmail.google.com/

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://ch.archive.ubuntu.com hardy-updates/universe Packages
        100 /var/lib/dpkg/status
     1.6.1-3ubuntu2 0
        500 http://ch.archive.ubuntu.com hardy/universe Packages

Revision history for this message
Lars Engebretsen (lars-engebretsen) wrote :

I think that the following patch fixes the problem:

$ diff notifier.py~ notifier.py
352a353,356
> url = "http://mail.google.com/"
> useranddomain = self.options["gmailusername"].split('@')
> if len(useranddomain)>1:
> url += "a/"+useranddomain[1]+"/"
354,355c358,359
< print "launching browser "+self.options['browserpath']+" http://gmail.google.com"
< os.system(self.options['browserpath']+" http://gmail.google.com &")
---
> print "launching browser "+self.options['browserpath']+" "+url
> os.system(self.options['browserpath']+" "+url+"&")

Revision history for this message
Lars Engebretsen (lars-engebretsen) wrote :

P.S. The above patch might in fact also fix the problem that prompted bug 257198.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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