Sending files from nautilus is not possible

Bug #882337 reported by Christoph Langner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-gmail (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I installed gnome-gmail inside ubuntu oneiric with gnome-shell form the repositories and activated "Gnome Gmail" inside my prefered applications. It works, when i click on a mailto link inside a browser, gmail opens inside a new tab inside my browser. But i noticed, that it's not possible to send files as attachment from within Nautilus. When I open Nautilus, select a file and choose "Send by mail" from the context menu, i get a notification telling my that GNOME Gmail is "unable to determine IMAP Drafts folder location".

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-gmail 1.8.1-1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Thu Oct 27 01:53:07 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=de:en
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 LC_MESSAGES=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-gmail
UpgradeStatus: Upgraded to oneiric on 2011-10-08 (18 days ago)

Related branches

Revision history for this message
Christoph Langner (chrissss) wrote :
Revision history for this message
David Steele (daves) wrote :

There is a language dependency in the code. For attachments, gnome-gmail navigates to the Gmail "Drafts" folder to store the outgoing message. It uses the current translation of "Drafts" to find the folder in the current language for your Gmail account. The error you are seeing most likely comes from a language mismatch between gnome-gmail and Gmail. Since the error is in English, I'm guessing that your Gmail account is set to German. See http://sourceforge.net/tracker/?func=detail&aid=2970810&group_id=277145&atid=1176979 for a discussion.

Fix by matching the language between Ubuntu and Gmail. Or you can brute force it by changing the "Drafts" string definition in /usr/bin/gnome-gmail. For German, it is "Entwürfe".

Google has subsequently released an API that removes the translation dependency. That's on the wishlist.

Revision history for this message
David Steele (daves) wrote :

There is a language dependency in the code. For attachments, the software navigates to the "Drafts" folder as the place to store the outgoing message. The name of the Drafts folder in Gmail is dependent on the language setting. Since your error message is in English, I'm guessing that your Gmail account is set to German. See http://sourceforge.net/tracker/?func=detail&aid=2970810&group_id=277145&atid=1176979 for a discussion of the issue.

To fix, set Ubuntu and Gmail to the same language. Alternately, you may be able to add "LANG=de" at the front of the Exec line in /usr/share/applications/gnome-gmail.desktop. Or, brute force the "Drafts" string in /usr/bin/gnome-gmail (to "Entwürfe").

Google has recently provided an IMAP API extension that allows identification of the Drafts folder without translation support. That is on the wish list.

Revision history for this message
Christoph Langner (chrissss) wrote :

Hi David, hmmm... I use Ubuntu as well as Gmail in German. So I've got no language mismatch. I get the same error, when i change my gmail settings to use english. On the other hand, it doesn't help when i change inside /usr/bin/gnome-gmail the folder_name of the drafts folder. Per default line 143 looks like this...

            folder_name = _("Drafts")

...but when I use...

            folder_name = _("Entwürfe")

...nothing happens when, when I start Nautilus from the shell I see the following error: " File "/usr/bin/gnome-gmail", line 143
SyntaxError: Non-ASCII character '\xc3' in file /usr/bin/gnome-gmail on line 143, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details"

When I encode the umlaut into...

            folder_name = _("Entwürfe")

I get the same "Unable to determine IMAP Drafts folder location" error as before.

Thanks for your help!
Christoph

Revision history for this message
Christoph Langner (chrissss) wrote :

I used http://delog.wordpress.com/2011/05/10/access-imap-server-from-the-command-line-using-openssl/ to gain direct access to gmail account. When i "LIST" all my folders, i can see that all IMAP specific folders go english names...

* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasNoChildren) "/" "Queue"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Trash"

...even though my Gmail frontend is set to german.

Revision history for this message
David Steele (daves) wrote :

Hmmm indeed.

I suspect that I may not be processing translations correctly. When set for German, do you see any of the strings translated?

I'm working on the code for another problem. Maybe I can look into that Google IMAP extension.

Revision history for this message
Christoph Langner (chrissss) wrote :

I've got to ask. Which string do you mean?

Revision history for this message
David Steele (daves) wrote :

I was wondering if translations were working at all. They are.

I've attached a candidate release that should fix the problem. Let me know if it does, for you.

Revision history for this message
Heraldo Luciano (heraldo-luciano) wrote :

Hi!
I had this same problem, and with this update (gnome-gmail_1.8.2-1_all.deb) is now solved.
Perfect!

Thank you.

Revision history for this message
David Steele (daves) wrote :

Fixed in 1.8.2-1, by implementing GMail IMAP Extension to determine the localized Drafts folder - bug #885012

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

This bug was fixed in the package gnome-gmail - 1.8.2-1

---------------
gnome-gmail (1.8.2-1) unstable; urgency=low

  * Added Dependencies needed by GNOME 3 (python-glade2 and python-gconf)
  * Set as Default mailer on installation
  * Fix postinstall crash on upgrade (LP: #878494)
  * Lintian fixes
  * Fix setOOmailer XML write failure
  * Updates to 6 languages
  * Determine Drafts folder using Google IMAP Extentions (LP: #882337)
  * Remove dependency on libgnome2
 -- David Steele <email address hidden> Mon, 07 Nov 2011 19:34:04 +0000

Changed in gnome-gmail (Ubuntu):
status: New → Fix Released
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.