Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 659786

Summary: xdg-email fails to supply To address for Thunderbird
Product: Red Hat Enterprise Linux 6 Reporter: Matthew Mosesohn <mmosesoh>
Component: xdg-utilsAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: jhunt, msanders, pkovar, tpelka, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xdg-utils-1.0.2-17.20091016cvs.el6 Doc Type: Bug Fix
Doc Text:
Previously, there was a typo found in the xdg-utils source code. As a consequence, Thunderbird, after passing in an email address, created a compose window without the "To:" address. With this update, the typo has been fixed so that the "To:" address is now passed in correctly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-31 09:18:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Mosesohn 2010-12-03 16:51:35 UTC
Description of problem:
If you try to run xdg-email $EMAILADDRESS, it creates a compose window in Thunderbird, but the To: address is missing.

This problem exists regardless of whatever other arguments are supplied to xdg-email.

Version-Release number of selected component (if applicable):
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
thunderbird-3.1.3-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Set default mail client to Thunderbird
2. run xdg-email bugzilla
  
Actual results:
A new email is created without the To field entered.

If I run ps waux | grep compose, this is the output:
mmosesoh 15757  0.0  0.0 106008  1268 pts/9    S+   11:48   0:00 /bin/sh /usr/lib64/thunderbird-3.1/thunderbird -compose 
mmosesoh 15771  0.0  0.0 106008  1320 pts/9    S+   11:48   0:00 /bin/sh /usr/lib64/thunderbird-3.1/run-mozilla.sh /usr/lib64/thunderbird-3.1/thunderbird-bin -compose 
mmosesoh 15775 25.0  1.4 606432 58076 pts/9    Sl+  11:48   0:00 /usr/lib64/thunderbird-3.1/thunderbird-bin -compose 
mmosesoh 15787  0.0  0.0 103156   832 pts/12   S+   11:48   0:00 grep compose


Expected results:
bugzilla should appear in the To field prepopulated when the Thunderbird Compose window is presented.

Additional info:
Other arguments for CC and BCC and body seem fine.
The issue also appears if you try all of the examples in xdg-email --manual, such as:
xdg-email 'Jeremy White <jwhite>'

Comment 2 RHEL Program Management 2011-01-07 15:39:07 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Tomáš Bžatek 2011-01-21 16:58:34 UTC
This upstream commit may solve the issue: http://cgit.freedesktop.org/portland/xdg-utils/commit/?id=845c4c67f8e3236016b59197c8d723d5f8fc0a4d

Comment 8 Tomáš Bžatek 2011-08-01 13:20:54 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: there was a typo in the code

Consequence: thunderbird created a compose window, but the To: address was missing

Fix: a typo has been fixed

Result: destination address is passed in correctly

Comment 9 Petr Kovar 2011-08-03 13:15:53 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,7 +1 @@
-Cause: there was a typo in the code
+Previously, there was a typo found in the xdg-utils source code. As a consequence, Thunderbird, after passing in an email address, created a compose window without the "To:" address. With this update, the typo has been fixed so that the "To:" address is now passed in correctly.-
-Consequence: thunderbird created a compose window, but the To: address was missing
-
-Fix: a typo has been fixed
-
-Result: destination address is passed in correctly

Comment 11 Tomáš Bžatek 2011-08-12 16:31:17 UTC
(In reply to comment #10)
> There is problem with escaping special characters when used in email address or
> file name of attachment.

Filed upstream as https://bugs.freedesktop.org/show_bug.cgi?id=40041 - patches are there and are partially committed but we're still querying Thunderbird upstream to get clean solution.

The inability to handle URI-encoded strings in Thunderbird however result in limitation of comma character use - leading to argument (address or attachment respectively) separation.

Comment 13 Tomáš Bžatek 2011-08-18 13:53:12 UTC
Added few more patches in the xdg-utils-1.0.2-17.20091016cvs.el6 build.

Please note however due to the way Thunderbird handles the "-compose" argument, it's not possible to attach a file with comma in the filename. I doubt it was ever working, perhaps for old Thunderbird versions.

Thunderbird upstream bugzilla for this issue is https://bugzilla.mozilla.org/show_bug.cgi?id=678521

Comment 15 errata-xmlrpc 2011-08-31 09:18:11 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1229.html