Slight modification of already existed mutt2task script.
Dependencies:
- taskwarrior;
- taskopen script;
- elinks.
Based on this blogpost
This script creates task in taskwarrior from email within mutt. The subject of email becomes task name, and the body exports to taskopen note.
Change your location to script directory, and then link it:
ln -s $PWD/mutt2task.py ~/bin/
Add this to your .muttrc:
macro index,pager t "<pipe-message>mutt2task.py<enter>"
Just press t on email or inside email.