On Sun, May 15, 2016 at 12:51:19PM +0200, Ionel Mugurel Ciobîcă wrote: > On 15-05-2016, at 10h 30'49", Chris Green wrote about "Can one do something > to an E-Mail without even opening/seeing it in mutt?" > > As per the subject is it possible for mutt to do something to an > > E-Mail in its inbox without the user seeing/doing anything at all? > > > > E.g. is there some sort of hook that can, for example, reply to or > > delete an E-Mail from a specific address without any user interaction? > > You could use procmail. This will act on the e-mail before it is > delivered to an inbox. Depending on your needs the action can be to > store the e-mail, to delete it, to send an automatic reply, etc. > > I can give you few examples of recipes you need to put in your > $HOME/.procmailrc. > > I do not see any reason you would want to accomplish that within mutt > itself. > I already have a procmail-lookalike script in Python that I wrote myself, I was just being lazy hoping that mutt might do what I want. I'll add some code to my script.
-- Chris Green
