To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=40043





------- Additional comments from [EMAIL PROTECTED] Tue Apr 26 14:19:36 -0700 
2005 -------
I'm attaching a small shell script that we installed to work around this bug. 
If anyone on Linux/Unix would like to prohibit users from sending out ODT files
through their mailer, this little script gives you an idea of how to do a
pre-check before allowing it to pass to your mail (Evolution in our case).

We installed this code into /usr/bin/evolution which OOo 2.0 thinks is really
Evolution

#!/bin/ksh
#
# Raw string as passed from OpenOffice 2.0
#
FILE_TO_ATTACH=$1

MINI_FILE=` echo $FILE_TO_ATTACH | awk -F "%2f" ' {print $5}'`

# Check for it never being saved
SAVED_ONCE=` echo "$MINI_FILE" | awk ' { print substr ($1, 1, 6) }'`
#
# Unsaved buffer, don't let them email it, in ODT format
#
if [[ $SAVED_ONCE = "noname" ]]
then
        /usr/local/bin/gxmessage -center "This document is an unsaved buffer,
save it and then it can be attached to Evolution"
        exit 0
fi

(this would then pass it to your email system)


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to