aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-19 17:17:20 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-19 17:17:20 +0200
commitc1252561324ec662525c874106d07f2063ef4e25 (patch)
treeba3215c40cab02d2f8ce4d03123c08b70f8f01cf
parent1eef4b729a2e12ea1fa34d23ce5d03cf7689ffa7 (diff)
downloadmblaze-c1252561324ec662525c874106d07f2063ef4e25.tar.gz
mcom: integrate msign and mencrypt
-rwxr-xr-xmcom20
1 files changed, 19 insertions, 1 deletions
diff --git a/mcom b/mcom
index d0e6190..f06da6f 100755
--- a/mcom
+++ b/mcom
@@ -251,8 +251,26 @@ while :; do
fi
c=
;;
+ sign)
+ msign $draft >$draftmime
+ mshow -t $draftmime
+ c=
+ ;;
+ encrypt)
+ mencrypt $draft >$draftmime
+ mshow -t $draftmime
+ c=
+ ;;
+ show)
+ if [ -e $draftmime ]; then
+ mshow "$draftmime"
+ else
+ mshow "$draft"
+ fi
+ c=
+ ;;
*)
- printf 'What now? ([s]end, [c]ancel, [d]elete, [e]dit, [m]ime) '
+ printf 'What now? ([s]end, [c]ancel, [d]elete, [e]dit, [m]ime, sign, encrypt) '
read -r c
;;
esac