Mutt -> Compose -> Some kind of alert?

Alex Sa 097115+mutt at gmail.com
Fri Oct 5 04:40:03 UTC 2018


On 10/5/18, John Hawkinson <jhawk at mit.edu> wrote:
> I suggest you
>
>   set edit_headers

Now, that's something! Thanks, John!

For those, who are interested: because of email addresses present in
the editor while editing the message, in Vim, I can create something
like that (in $VIMHOME/ftdetect/mail.vim):

    autocmd BufEnter *mutt-MyMachine* call BeAware()
    function BeAware()
        if search('PersonX at gmail.com')
            !alert 'Add Y, Z'
        endif
    endfunction

Which will alert me if this specific string 'PersonX at gmail.com' will
be present in the buffer.

Looks pretty nice :).



-- 
Alex


More information about the Mutt-users mailing list