summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpdfdistiller2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdfdistiller b/pdfdistiller
index 6a6497d..9a3298f 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -86,9 +86,11 @@ chmod a+r $OUTPUTFILENAME
if [ "$user" != "" ]; then
if [ -x /usr/bin/mime-construct ]; then
+ echo "Send as pdf to $user using mime-construct" >> $LOGFILE
/usr/bin/mime-construct --to "$user" --subject "PDF print" --type application/pdf --attachment `basename $OUTPUTFILENAME` --file $OUTPUTFILENAME \
&& rm $OUTPUTFILENAME
elif [ -x /usr/bin/mimeit ]; then
+ echo "Send as pdf to $user using mimeit" >> $LOGFILE
cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $user "PDF print" \
&& rm $OUTPUTFILENAME
else