summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-07-09 13:52:11 +0000
committerJonas Smedegaard <dr@jones.dk>2002-07-09 13:52:11 +0000
commit44782b95dbe424c019c99bedf5c477f9d31bfd43 (patch)
treecdc1b0486c8434771c64f826d3a25f7fd1f9c261
parent28fea579cef39eb54c0760f96940df2d2bc80cb7 (diff)
Add descriptive filename to pdf email.
-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" \