After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 594744 - evolution doesn't handle encoded mailto urls
evolution doesn't handle encoded mailto urls
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
2.26.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[composer]
Depends on:
Blocks:
 
 
Reported: 2009-09-10 13:58 UTC by Giuseppe Sacco
Modified: 2009-10-10 21:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Giuseppe Sacco 2009-09-10 13:58:49 UTC
My application requires to open the default mail client and to compose a
new message using a specific attachment.

In order to be desktop manager agnostic, I use the command xdg-email.
When gnome is the running desktop manager, xdg-open calls gnome-open,
and gnome-open call evolution.

xdg-email encode the attachment pathname into URL, and gnome-open call
evolution using the same encoded string, but evolution doesn't un-encode
that string and cannot find the specified file.

Example:

$ XDG_UTILS_DEBUG_LEVEL=30 /usr/bin/xdg-email \
    --attach /tmp/allegato5316366537919686103.TIF 
Running gnome-open "mailto:?attach=%2Ftmp%2Fallegato5316366537919686103.TIF"

you may see that xdg-email encode the string and call gnome-open. Then
evolution pop up and display an (Italian) error message: Impossibile
allegare il file «%2Ftmp%2Fallegato5316366537919686103.TIF» a questo
messaggio (It's not possible to attache file ... to this message). The
error message detail says "file not found".

I tried calling directory evolution using this mailto URI and I get the
same error. The command I write is:
$ evolution "mailto:?attach=%2Ftmp%2Fallegato5316366537919686103.TIF"

Thanks,
Giuseppe Sacco
Comment 1 Matthew Barnes 2009-09-11 09:23:54 UTC
Works fine on master.  Need to check 2.27.
Comment 2 Giuseppe Sacco 2009-09-11 13:28:33 UTC
Currently I cannot test 2.27 since I am using Debian packages from unstable. Version 2.27 is currently in "experimental", so I'll wait a few days for a new upload to "unstable" before trying it.

Thanks,
Giuseppe
Comment 3 Giuseppe Sacco 2009-10-10 21:11:28 UTC
I just tested the problem against 2.27 and it is fixed.
Thank you