|
|
@ -143,6 +143,14 @@ fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
) fi
|
|
|
|
) fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
*mbnc*)
|
|
|
|
|
|
|
|
printf '%s: \n' Resent-To
|
|
|
|
|
|
|
|
from=$(mhdr -h local-mailbox "$MBLAZE/profile")
|
|
|
|
|
|
|
|
[ "$from" ] && printf 'Resent-From: %s\n' "$from"
|
|
|
|
|
|
|
|
msgid | sed 's/^/Resent-/'
|
|
|
|
|
|
|
|
printf 'Resent-Date: %s\n' "$(mdate)"
|
|
|
|
|
|
|
|
mseq "${@:-.}" | xargs -d'\n' cat
|
|
|
|
|
|
|
|
;;
|
|
|
|
*mrep*)
|
|
|
|
*mrep*)
|
|
|
|
[ "$#" -eq 0 ] && set -- .
|
|
|
|
[ "$#" -eq 0 ] && set -- .
|
|
|
|
ng=$(mhdr -h newsgroups "$1")
|
|
|
|
ng=$(mhdr -h newsgroups "$1")
|
|
|
@ -178,16 +186,20 @@ fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f "$MBLAZE/signature" ]; then
|
|
|
|
case "$0" in
|
|
|
|
SIGNATURE="$MBLAZE/signature"
|
|
|
|
*mbnc*) ;;
|
|
|
|
elif [ -f ~/.signature ]; then
|
|
|
|
*)
|
|
|
|
SIGNATURE="$HOME/.signature"
|
|
|
|
if [ -f "$MBLAZE/signature" ]; then
|
|
|
|
fi
|
|
|
|
SIGNATURE="$MBLAZE/signature"
|
|
|
|
|
|
|
|
elif [ -f ~/.signature ]; then
|
|
|
|
|
|
|
|
SIGNATURE="$HOME/.signature"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$SIGNATURE" ]; then
|
|
|
|
if [ -n "$SIGNATURE" ]; then
|
|
|
|
printf '%s\n' '-- '
|
|
|
|
printf '%s\n' '-- '
|
|
|
|
cat "$SIGNATURE"
|
|
|
|
cat "$SIGNATURE"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
esac
|
|
|
|
} >$draft
|
|
|
|
} >$draft
|
|
|
|
|
|
|
|
|
|
|
|
automime=
|
|
|
|
automime=
|
|
|
@ -200,6 +212,14 @@ while :; do
|
|
|
|
*.*) sendmail="mblow";;
|
|
|
|
*.*) sendmail="mblow";;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resent="$(maddr -h resent-to "$draft")"
|
|
|
|
|
|
|
|
case "$resent" in
|
|
|
|
|
|
|
|
?*)
|
|
|
|
|
|
|
|
sendmail=$(mhdr -h sendmail "$MBLAZE/profile")
|
|
|
|
|
|
|
|
sendmail="${sendmail:-sendmail} -- $resent"
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
if [ -e $draftmime ]; then
|
|
|
|
if [ -e $draftmime ]; then
|
|
|
|
if [ $draft -ot $draftmime ] || [ "$automime" -eq 1 ]; then
|
|
|
|
if [ $draft -ot $draftmime ] || [ "$automime" -eq 1 ]; then
|
|
|
|
stampdate $draftmime
|
|
|
|
stampdate $draftmime
|
|
|
|