Hi all,

I know this is a very old thread, but since the problem is still there
for me with OO 2.0 on my debian testing system, I thought maybe the
workaround I found could help.

On Mon, 2005-04-11 at 18:34 -0400, Peter N. Spotts wrote:
> Folks,
> 
> When sending a file using OO's send-file function, I can get a blank,
> unsaved word processing file to attach itself to a Sylpheed email
> form. But when I try to do the same thing with a working file, one
> which I've saved to a specific directory, OO no longer attaches the
> file to the Sylpheed-Claws email. I have to do it manually. Where
> does the "attach" function in OO look to find the file it will attach
> to a specified email client? Or is this, as they say, a known issue?
> The problem does not arise using Thunderbird. With T-bird, OO will
> attach the file wherever I have saved it.
> 
> I have experimented with Sylpheed with the Mozilla plugin activated
> and deactivated. No difference. Suggestions? (Aside from: Stay with
> Thunderbird ;-)   )

I have exactly the same behaviour and noticed it only happens with
files whose name contains blank characters. When mozilla-thunderbird
is selected in the e-mail option dialog box, OO runs :

mozilla-thunderbird -compose -attach <filename with blanks replaced by
%20>,

so it works, while, when sylpheed-claws-gtk2 is selected, OO runs

sylpheed-claws-gtk2 --attach <filename>

without quotes around <filename> nor replacement of blank characters,
so it fails whenever <filename> contains blanks.

the workaround I found is to put somewhere in my path the following
shell script, called sylpheed-claws_for_oo.sh

#!/bin/sh
args="$*"
file=${args/--attach /}
sylpheed-claws-gtk2 --attach "$file"

and select it as mail program in OO options.
Then, sending any file as attachment through OO seems to work.

Hope that helps

regards,

Denis


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to