Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (17 sloc) 652 Bytes
#! /bin/bash
script_name="$(basename "$0")"
help_msg="Tag emails sent via Emacs' notmuch interface sanely.
As of this writing, when you send an email in notmuch's Emacs interface, it's
tagged as 'inbox' and 'unread'.
'inbox' might make some sense, but 'unread'? For something you sent?
This script is part of my workaround, and is meant to be called from Emacs.
Usage: $script_name"
if [ $# -gt 0 ] && [ $1 == '--help' ]; then
echo "$help_msg"
elif [ $# -gt 0 ]; then
echo "$help_msg" >&2
exit 2
primary_email="$(notmuch config get user.primary_email)"
notmuch tag -unread -inbox -- "from:$primary_email" and is:unread
You can’t perform that action at this time.