Install Download from github: mingsu/mutt2task git clone https://github.com/mingsu/mutt2task ~/.mutt/bin/mutt2task chmod +x ~/.mutt/bin/mutt2task/mutt2task Add this to .muttrc macro index,pager T "<pipe-message>~/.mutt/bin/mutt2task<enter>" Or the following one macro index I "<pipe-message>~/.mutt/bin/mutt2task<enter><flag-message><sync-mailbox>" "flag message