summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
04174cd)
If the --hello parameter is given, display the notmuch hello buffer
instead of the message composition buffer if no message composition
parameters are given.
Signed-off-by: Jani Nikula <jani@nikula.org>
``-i, --body=``\ <file>
Specify a file to include into the body of the message.
``-i, --body=``\ <file>
Specify a file to include into the body of the message.
+ ``--hello``
+ Go to the Notmuch hello screen instead of the message composition
+ window if no message composition parameters are given.
+
``--no-window-system``
Even if a window system is available, use the current terminal.
``--no-window-system``
Even if a window system is available, use the current terminal.
CREATE_FRAME=
ELISP=
MAILTO=
CREATE_FRAME=
ELISP=
MAILTO=
# Short options compatible with mutt(1).
while getopts :s:c:b:i:h opt; do
# Short options compatible with mutt(1).
while getopts :s:c:b:i:h opt; do
opt=${opt%%=*}
;;
# Long options without arguments.
opt=${opt%%=*}
;;
# Long options without arguments.
- --help|--print|--no-window-system|--client|--auto-daemon|--create-frame)
+ --help|--print|--no-window-system|--client|--auto-daemon|--create-frame|--hello)
;;
*)
echo "$0: unknown long option ${opt}, or argument mismatch." >&2
;;
*)
echo "$0: unknown long option ${opt}, or argument mismatch." >&2
--create-frame)
CREATE_FRAME="-c"
;;
--create-frame)
CREATE_FRAME="-c"
;;
+ --hello)
+ HELLO=1
+ ;;
*)
# We should never end up here.
echo "$0: internal error (option ${opt})." >&2
*)
# We should never end up here.
echo "$0: internal error (option ${opt})." >&2
exit 1
fi
ELISP="(browse-url-mail \"${MAILTO}\")"
exit 1
fi
ELISP="(browse-url-mail \"${MAILTO}\")"
+elif [ -z "${ELISP}" -a -n "${HELLO}" ]; then
+ ELISP="(notmuch)"
else
ELISP="(notmuch-mua-new-mail) ${ELISP}"
fi
else
ELISP="(notmuch-mua-new-mail) ${ELISP}"
fi