about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
Diffstat (limited to 'mcom')
-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