author | isatest |
Thu, 05 Jun 2008 00:52:22 +0200 | |
changeset 27083 | b70c889810cf |
parent 27082 | 9102d87efd3d |
child 27084 | 654bf12de98b |
--- a/Admin/isatest/pmail Wed Jun 04 17:12:00 2008 +0200 +++ b/Admin/isatest/pmail Thu Jun 05 00:52:22 2008 +0200 @@ -94,4 +94,11 @@ [ -r "$BODY" ] || fail "could not read $BODY" -print_body "$SUBJECT" "$BODY" $@ | mail -t "$TO" +case `uname` in + Linux) for F in $@; do ATTACH="$ATTACH -a $F"; done + cat "$BODY" | mail -s "$SUBJECT" $ATTACH "$TO" + ;; + SunOS) + print_body "$SUBJECT" "$BODY" $@ | mail -t "$TO" + ;; +esac