Bug 246449

Summary: Attach file doesn't work if Thunderbird already open
Product: [Fedora] Fedora Reporter: Lorenzo Fiorini <lorenzo.fiorini>
Component: thunderbirdAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: mcepl
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-28 15:14:14 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 Lorenzo Fiorini 2007-07-02 10:08:03 UTC
Description of problem:
Openoffice File Send as attachment doesn't works if Thunderbird is already open. 

Version-Release number of selected component (if applicable):
f7, Thunderbird 2.0.0.4

How reproducible:
always


Steps to Reproduce:
1. start thunderbird
2. start OpenOffice Word Processor
3. choose File/Send/Document as Email
  
Actual results:
To:attachment=file:///tmp/sv9nm.tmp/sva00.tmp/noname.odt


Expected results:
noname.odt as attachment


Additional info:
This "bug" exit since years, in fact every new Fedora release or Thunderbird
update I have to "fix" /usr/bin/thunderbird compose as below.
Note that "standard" Thunderbird from mozilla.org works as expected.
OpenOffice is used only for example even calling thunderbird -compose from
command line expose the "bug".

    -compose)
        shift
        if [ "${ALREADY_RUNNING}" -eq "1" ]; then
            # remove 'mailto:' prefix
            ARGS="`echo $@ | sed 's/^mailto://'`"
# ---------> changed 
#            exec $MOZ_CLIENT_PROGRAM "mailto($ARGS)"
            exec $MOZ_CLIENT_PROGRAM xfeDoCommand(ComposeMessage,$ARGS)"
# ---------> changed
        else
            rm_shit
            exec $MOZ_PROGRAM $MOZARGS -compose "$@"
        fi
        ;;

Comment 1 Matěj Cepl 2008-02-28 15:14:14 UTC
We found that this bug has been already registered in the upstream database
(https://bugzilla.mozilla.org/show_bug.cgi?id=296635) and believe that it is
more appropriate to let it be resolved upstream.

Red Hat will continue to track the issue in the centralized upstream bug
tracker, and will review any bug fixes that become available for consideration
in future updates.

Thank you for the bug report.