On Fri, Jun 24, 2011 at 11:42:22AM -0500, Derek Martin wrote: > On Fri, Jun 24, 2011 at 11:52:39PM +0800, XeCycle wrote: >> Hello, I've been using mutt for several months, and I like >> it. >> >> However I'm an Emacs fan, so I tried Gnus, but failed... it >> really is not a mail client. But Gnus can be easily extended >> with Emacs Lisp, which is a killer feature compared to mutt. >> AFAIK I think mutt can only execute shell commands via >> `command`. I think it'd be nice to integrate some language >> to muttrc, thus making customization easier. (I prefer perl >> for this task~) > > I think one of the reasons This hasn't been implemented in Mutt is > because you can already get the rough equivalent. You can write a > script in whatever language you prefer, which generates mutt > configuration commands, and then execute the resulting configuration > commands like so: > > source "/path/to/myscript|"
Yes, I know this. But it's still limited --- for example if I'd like to write a script to highlight the message, and still using the internal pager just for "pager_index_lines", I don't think it easy enough. > This means Mutt *configuration* is extensible in any language, and no > additional Mutt code is needed to provide it. It also might be nice to > have mutt's *features* extensible in some language, though arguably, > they already are: The language for that is C. :) That's of course, diving into the core of mutt and you can do everything. Well, usually I don't like to do this; playing with C is always dirty. I'm really tired with all sorts of traps in C. Thank you.
pgpYJ4umjsho0.pgp
Description: PGP signature