Conor Daly wrote:
>
.......
> >
> > 1) Whenever I see the first message of an uninteresting
> > thread, I tell mutt that I'm not interested in it.
> >
> > 2) mutt writes this to some log file
> It occurs to me that you could use some kind of send or save
> hook to run a script which greps the from line into a log
> file. Perhaps something like
forward to bitbucket@localhost and use a send hook on that address
My first idea had been to save all these "to-be-deleted" messages
into a trash folder, and have the external script filtering
^Subject and ^From lines out of the folder. If possible however,
I would like to implement something that doesn't require extra
resources (i.e. extra mailboxes for complete messages or bogus
accounts)
What would REALLY do the trick is some "shell excape" which just makes
mutt
do the following:
echo subject_and_From_header >> some_file
I did read the whole manual some time ago, but I can't remember any
"shell-excape", i.e. something that make mutt execute shell commands
with dynamic arguments. Is something like that available?
> Post the rest would you?
>
I found several pop clients written in perl that can be easily
modified to fetch the headers only from the pop server, and send
"delete" commands when some header matches a certain pattern.
I don't have any URL here, but a search on CPAN would find them.
Another source for this is the example code of the O'Reilly Book
"Advanced Perl Programming", available on their ftp site: that
book is what gave me the idea.
Marco