diff options
author | francis <francis> | 2009-09-08 12:01:56 +0000 |
---|---|---|
committer | francis <francis> | 2009-09-08 12:01:56 +0000 |
commit | 40eedc5006e6dd2a99bc823dbf5985db5e021d8c (patch) | |
tree | 8568a76de58150b82b27da5b6ba0c4950c2385bc /script | |
parent | 617685592351d522d4070ecff437e8af0974e027 (diff) |
Remove output files when done.
Diffstat (limited to 'script')
-rwxr-xr-x | script/mailin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/mailin b/script/mailin index 103c87f77..eeaf0e5aa 100755 --- a/script/mailin +++ b/script/mailin @@ -1,6 +1,6 @@ #!/bin/bash -OUTPUT=/tmp/wdtk-malin-$RANDOM$RANDOM$RANDOM$RANDOM.txt +OUTPUT=/tmp/foi-malin-$RANDOM$RANDOM$RANDOM$RANDOM.txt cd `dirname $0` cd ../../ @@ -18,8 +18,11 @@ then echo "$BODY" | /usr/bin/mutt -s "$SUBJ" -a $OUTPUT $OPTION_CONTACT_EMAIL # tell exim error was temporary, so try again later (no point bouncing message to authority) + rm -f $OUTPUT exit 75 fi +cat $OUTPUT +rm -f $OUTPUT exit 0 |