imprv: reply
This commit is contained in:
@@ -14,13 +14,14 @@ if [ ! "${CONFIG_LOADED:-}" ]; then
|
||||
|
||||
PRIMARY_NAME=${PRIMARY_NAME:-$($NOTMUCH config get user.name)}
|
||||
PRIMARY_EMAIL=${PRIMARY_EMAIL:-$($NOTMUCH config get user.primary_email)}
|
||||
BCC_TO_SELF=${BCC_TO_SELF:-}
|
||||
|
||||
if [ ! "${SMTPLOGFILE:-}" ]; then
|
||||
SMTPLOGFILE=$(mktemp)
|
||||
trap 'rm -f "$SMTPLOGFILE"' EXIT INT
|
||||
fi
|
||||
|
||||
export PRIMARY_NAME PRIMARY_EMAIL SET_TERMINAL_TITLE SMTPLOGFILE
|
||||
export PRIMARY_NAME PRIMARY_EMAIL BCC_TO_SELF SET_TERMINAL_TITLE SMTPLOGFILE
|
||||
|
||||
export CONFIG_LOADED=1
|
||||
fi
|
||||
|
||||
@@ -9,8 +9,7 @@ nm_new() {
|
||||
# Print the message id of the last message within a thread.
|
||||
# @argument $1: thread id
|
||||
nm_last_message_in_thread() {
|
||||
# TODO: We may be smarter here that just incorporating excluded messages
|
||||
$NOTMUCH search --output=messages --sort=oldest-first --offset=-1 thread:"$1" | sed 's/^...//'
|
||||
$NOTMUCH search --output=messages --sort=newest-first --limit=1 thread:"$1" | sed 's/^...//'
|
||||
}
|
||||
|
||||
# Print the header of a message (with trailing empty line)
|
||||
|
||||
@@ -43,17 +43,3 @@ multiprompt() {
|
||||
--bind="ctrl-c,esc,ctrl-q:" \
|
||||
--color='border:yellow,header:yellow' | head -1 || true
|
||||
}
|
||||
|
||||
# ASCII-encode address
|
||||
# asciiaddress() {
|
||||
# firstword=1
|
||||
# for word in $*; do
|
||||
# [ "${firstword:-}" ] || echo -n ' ' && firstword=
|
||||
# case $word in
|
||||
# *[![:cntrl:][:print:]]*) echo -n $word ;;
|
||||
# *) return 0 ;;
|
||||
# esac
|
||||
# isascii "$word" && echo -n "$word" || echo -n "=?UTF-8?B?$(echo -n "$word" | base64)?="
|
||||
# done
|
||||
# }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user