office: Integrate neomutt and taskwarrior
The beginning of what I hope can be a useful integration: send mails to taskwarrior as tasks and open the corresponding mail from tasks in taskwarrior. To make a task out of an e-mail, in neomutt, simply press `t` when the mail is selected or opened. It will create an automatic task in taskwarrior with the description "Reply to [mail] by [sender]" and tag it as mail. If you press `T` instead, you can give the task your own description and tags. In taskwarrior, you can simply `t open <taskid>` on a task that came from neomutt to show the message content on the command line (using notmuch). This is still a bit rudimentary and I would like an improved display, but it works for now.
This commit is contained in:
parent
a89249badd
commit
aefce1c498
3 changed files with 107 additions and 0 deletions
|
|
@ -59,3 +59,7 @@ macro index o "<sync-mailbox><shell-escape>export MBSYNC_PRE=true; sync-mail gma
|
|||
# Saner copy/move dialogs
|
||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||
|
||||
# Send mail to taskwarrior
|
||||
macro index,pager T "<pipe-message>mutt2task -c -d -t<enter>" "add mail as task to taskwarrior with custom description and tags"
|
||||
macro index,pager t "<pipe-message>mutt2task -c<enter>" "add mail as task to taskwarrior"
|
||||
|
|
|
|||
|
|
@ -13,5 +13,8 @@ notes.command = "$EDITOR ${XDG_DATA_HOME:-~/.local/share}/task/notes/$UUID.md"
|
|||
links.regex = "^https?://"
|
||||
links.command = "xdg-open $FILE"
|
||||
|
||||
mail.regex = "^<.*@.*>$"
|
||||
mail.command = "notmuch show mid:${FILE:1:-1}"
|
||||
|
||||
[CLI]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue