summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpdfdistiller2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdfdistiller b/pdfdistiller
index 698d1eb..3515117 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -74,7 +74,7 @@ fi
chmod a+r $OUTPUTFILENAME
if [ "$2" != "" ]; then
if [ -x /usr/bin/mime-construct ]; then
- /usr/bin/mime-construct --to "$2" --subject "PDF print" --type application/pdf --file $OUTPUTFILENAME \
+ /usr/bin/mime-construct --to "$2" --subject "PDF print" --type application/pdf --attachment `basename $OUTPUTFILENAME` --file $OUTPUTFILENAME \
&& rm $OUTPUTFILENAME
elif [ -x /usr/bin/mimeit ]; then
cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $2 "PDF print" \