Comment 2 for bug 581715

Revision history for this message
Joel Ebel (jbebel) wrote :

I don't know about the other webmail systems, but gmail doesn't appear to handle multiple parameters. Here's a simple test:

desktop-webmail "mailto:?subject=SUBJECT&body=BODY"

This opens the following URL:
https://mail.google.com/mail/?extsrc=mailto&url=mailto:?subject=SUBJECT&body=BODY

If you put that directly in chrome or firefox, the body doesn't get set. However, this URL does work:

https://mail.google.com/mail/?extsrc=mailto&url=mailto:?subject=SUBJECT%26body=BODY

Likewise, encoding the '&' to %26 in the url given to desktop-webmail, this works:

desktop-webmail "mailto:?subject=SUBJECT%26body=BODY"

Perhaps desktop-webmail should be responsible for converting the '&' to %26. It doesn't seem like this should be the responsibility of xdg-open or gnome-open.