mutt

Search Email by Alias in Mutt

Aim: search email items using alias It is very neccessary to search email by the name, since we usually can not rember the email address, but the names. However, there is no built-in solutions to do this. Solution Since mutt extact the name from a file called alias, and mutt has very handy function of limit. I build a workflow by reading the input (name), and find the email address by sed etc.

Forward Message With Attachments in Mutt

Problem: Forward attachment in mutt is hard This is a pain for every mutt user. I got a solution which can satisfy my need. Solution Add these two lines to your .muttrc. This will forward an email with the text self. unset mime_forward set mime_forward_rest=yes Add the following line to your .vimrc too. This will tag all attachments but the first one may not include, which depend on the number of attachments.

Save Attachments to Special Folder in Mutt

Problem: How to save attachments in mutt? No built-in solution for save multiple attachments to special folder in mutt. I spent couple hours to develop a workflow for doing this. Solution In muttrc: macro attach s "<shell-escape>~/.config/mutt/bin/saveattach.sh\n:source /tmp/from\ns" "Save attachment to specific folder" macro attach S "<shell-escape>~/.config/mutt/bin/saveattach.sh\n:source /tmp/from\ns" "Save attachment to specific folder" Shell script in ~/.config/mutt/bin/saveattach.sh #!/bin/bash if [[ -e /tmp/from ]]; then rm /tmp/from fi echo $HOME"//" > /tmp/from nvim "+normal G$" +startinsert /tmp/from path=`cat /tmp/from` echo $path if [[ !

Mark Mutt Email Item as a Task for Taskwarrior

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 as important and mark as a task" Code #!/bin/sh # Author: Ming Su <me@drwater.net> # 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 as important and mark as a task" # 自

My favorate tools list

My favorate tools list.