mcom: Remove 'encrypt' and 'sign' options

Starting encryption only after a draft has been created is too late,
because drafts might be synchronized with a remote IMAP server. To
use gpg safely, command line options are needed instead of these
interactive options.
pull/158/head
codesoap 5 years ago
parent eb55662e2f
commit 7e3c635e73

12
mcom

@ -495,16 +495,6 @@ while :; do
fi
c=
;;
sign)
msign "$msg_sketch" >"$draft"
mshow -t "$draft"
c=
;;
encrypt)
mencrypt "$msg_sketch" >"$draft"
mshow -t "$draft"
c=
;;
show)
if [ -e "$draft" ]; then
mshow "$draft"
@ -514,7 +504,7 @@ while :; do
c=
;;
*)
printf 'What now? (%s[s]end, [c]ancel, [d]elete, [e]dit, [m]ime, sign, encrypt) ' "${automime:+mime and }"
printf 'What now? (%s[s]end, [c]ancel, [d]elete, [e]dit, [m]ime) ' "${automime:+mime and }"
read -r c
;;
esac

Loading…
Cancel
Save