Parsing of unread count only works in English, original GMail (not e.g. German GApps)

Bug #1069576 reported by Florian Heinle
110
This bug affects 28 people
Affects Status Importance Assigned to Milestone
unity-webapps-gmail (Ubuntu)
Fix Released
Undecided
Justin McPherson

Bug Description

The current implementation that parses gmail's html code makes to many assumptions about what strings are present. As a result, parsing fails and no unread notifications show when there is unread mail.

As a (1) German user of (2) Google Apps the script fails for me at two points: First, the string "navigate to" is translated to German in my GMail, hence cannot be found. Second, my Google Apps domain uses "Foo-Mail" as a title, hence the button that usually reads GMail (and leads to a dropbox of Mail, contacts and tasks) reads "Foo-Mail" for me.

I managed to get things working on my machine, patch is included.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity-webapps-gmail 2.4.7 [modified: usr/share/unity-webapps/userscripts/unity-webapps-gmail/GMail.user.js]
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic i686
ApportVersion: 2.6.1-0ubuntu3
Architecture: i386
Date: Mon Oct 22 01:49:33 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120404)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: unity-webapps-gmail
UpgradeStatus: Upgraded to quantal on 2012-10-21 (0 days ago)

Related branches

Revision history for this message
Florian Heinle (tiax) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "gmail-webapps.diff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-webapps-gmail (Ubuntu):
status: New → Confirmed
Revision history for this message
hackel (hackel) wrote :

Florian's patch fixes new mail notifications for me (Google Apps set to proper English instead of US). The Compose New Message quicklist function still does not work, it simply switches to the Gmail tab. The messaging menu also lists new messages, but it does so for every label, quich is quite cumbersome as it adds 14 items to the menu. If this is the intended functionality and not an issue with the patch, then I'll file this in a separate bug.

todaioan (alan-ar06)
Changed in unity-webapps-gmail (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Olivier Febwin (febcrash) wrote :

Is it really fixed ?
I've the same problem with french gmail

Revision history for this message
Antoine Apollis (apollisa) wrote :

I have also Google Apps with Gmail set in French and the icon doesn’t show the number of unread messages. I have the latest version of the package (2.4.7) although.

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

Please disregard todaioan. I don't know why he is randomly changing bug statuses D:

Changed in unity-webapps-gmail (Ubuntu):
status: Fix Released → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-webapps-gmail (Ubuntu):
status: New → Confirmed
Revision history for this message
Loic Dreux (loic.dreux) wrote :

I attached a patch for french users.

Revision history for this message
Bence Lukács (lukacs-bence1) wrote :
Revision history for this message
Florian Heinle (tiax) wrote :

> Ubuntu “unity-webapps-gmail” package Bugs Bug #1076905
> Reported by Claudio Arseni on 2012-11-09

> Ubuntu “unity-webapps-gmail” package Bugs Bug #1069576
> Reported by Florian Heinle on 2012-10-22

Revision history for this message
Bence Lukács (lukacs-bence1) wrote :

Oh, sorry, then the other bug is the duplicate of this one :)

Revision history for this message
papukaija (papukaija) wrote :

Just to clarify that an older bug is not necessarily always the master bug, but in this case this bug has a patch so it is better to use this bug as the base for duplicate bugs. Thanks.

David Barth (dbarth)
tags: added: rls-s-incoming
Changed in unity-webapps-gmail (Ubuntu):
assignee: nobody → Justin McPherson (justinmcp)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-webapps-gmail - 2.4.16+13.10.20131016.2-0ubuntu1

---------------
unity-webapps-gmail (2.4.16+13.10.20131016.2-0ubuntu1) saucy; urgency=low

  [ Justin McPherson ]
  * The test for a Gmail or mail title was removed. The text is not
    always exactly equal to this. When this function is called, its
    already determined that this page is Gmail. (LP: #1069576)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 76
 -- Ubuntu daily release <email address hidden> Wed, 16 Oct 2013 16:08:31 +0000

Changed in unity-webapps-gmail (Ubuntu):
status: Confirmed → 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.