diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-07-09 02:55:32 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-07-09 02:55:32 +0000 |
commit | 5a72ffd3213ca4e10c0d29000eda11cf66e0a06e (patch) | |
tree | 094c214a1132b635e08c04ea704d93c60fb94fca | |
parent | 38499aff2629192e9faff9d48f66b8361e6b7161 (diff) |
Remove pdf if emailed.
-rwxr-xr-x | pdfdistiller | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdfdistiller b/pdfdistiller index 6c13286..355e90e 100755 --- a/pdfdistiller +++ b/pdfdistiller @@ -75,8 +75,10 @@ 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 + rm $OUTPUTFILENAME elif [ -x /usr/bin/mimeit ]; then cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $2 "PDF print" + rm $OUTPUTFILENAME else chown $2 $OUTPUTFILENAME fi |