Is mutt extensible with a programming language?
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~) Or --- Is there a fork of mutt that already support this? pgpLH7fWwPsxM.pgp Description: PGP signature
Re: Is mutt extensible with a programming language?
* On 24 Jun 2011, 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~) No, this is not currently possible. It has been discussed but is not on the roadmap for development. You can produce your configuration programmatically in any way you like though. For example, if make-muttrc is a program whose stdout is a valid muttrc, you can make a ~/.muttrc that looks like: source make-muttrc | -- David Champion • d...@uchicago.edu • IT Services • University of Chicago
Re: Is mutt extensible with a programming language?
XeCycle xecy...@gmail.com wrote: But Gnus can be easily extended with Emacs Lisp, which is a killer feature compared to mutt. [...] Or --- Is there a fork of mutt that already support this? Ludovic Courtès implemented this with Guile. It's not in the mutt mainline but appears to be here: http://savannah.nongnu.org/projects/mutt-guile/ Charles -- --- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ ---
Re: Is mutt extensible with a programming language?
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| 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. :) -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpVDg4kwGkNU.pgp Description: PGP signature
Re: Is mutt extensible with a programming language?
On 2011-06-24, Charles Cazabon charlesc-lists-mutt-us...@pyropus.ca wrote: XeCycle xecy...@gmail.com wrote: But Gnus can be easily extended with Emacs Lisp, which is a killer feature compared to mutt. [...] Or --- Is there a fork of mutt that already support this? Ludovic Court??s implemented this with Guile. It's not in the mutt mainline but appears to be here: http://savannah.nongnu.org/projects/mutt-guile/ Looks like it hasn't been touched in 7 years. Still, it's an interesting idea. -- Grant Edwards grant.b.edwardsYow! Why are these athletic at shoe salesmen following gmail.comme??
Re: Is mutt extensible with a programming language?
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
Re: Is mutt extensible with a programming language?
On Fri, Jun 24, 2011 at 10:20:01AM -0600, Charles Cazabon wrote: XeCycle xecy...@gmail.com wrote: But Gnus can be easily extended with Emacs Lisp, which is a killer feature compared to mutt. [...] Or --- Is there a fork of mutt that already support this? Ludovic Courtès implemented this with Guile. It's not in the mutt mainline but appears to be here: http://savannah.nongnu.org/projects/mutt-guile/ This looks nice, but... yeah, it's really too old. More than three years without new releases and the package itself still in alpha, I think it won't be stable enough for everyday use. Thank you. pgpVWuzuHM00q.pgp Description: PGP signature
Re: Is mutt extensible with a programming language?
XeCycle xecy...@gmail.com writes: 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. After using mutt for about 15+ years, I recently switched to gnus. It may take some reading of the documentation and some trying to get started, and the documentation is a little overwhelming at first. Nonetheless I'm finding it extremely worthwhile even though I have only just begun to explore the possibilities. Gnus has one big disadvantage: It can be awfully slow. Mutt is awesome and totally reliable; gnus is awesome and extremely powerful. (I can't tell yet how reliable gnus is.) One of the things I missed very much with mutt was seamless integration with emacs. You can only get pretty close. Since you're an emacs fan, you might want to give gnus another, very serious try rather than waiting 15 years or so before you switch :)
Re: Is mutt extensible with a programming language?
On Fri, Jun 24, 2011 at 11:05:17AM -0500, David Champion wrote: * On 24 Jun 2011, 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~) No, this is not currently possible. It has been discussed but is not on the roadmap for development. So it not for this very mutt... Well, a fork will be appreciated. I don't think I'm capable of this, I've never wrote something in C. Any active developers interested in this? You can produce your configuration programmatically in any way you like though. For example, if make-muttrc is a program whose stdout is a valid muttrc, you can make a ~/.muttrc that looks like: source make-muttrc | -- Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 Facebook: Carl Lei Twitter: XeCycle Blog: http://xecycle.blogspot.com Sat, 25 Jun 2011 09:00:50 +0800 pgpCUPbxX2PGT.pgp Description: PGP signature
Re: Is mutt extensible with a programming language?
On Sat, Jun 25, 2011 at 03:04:09AM +0200, lee wrote: XeCycle xecy...@gmail.com writes: 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. After using mutt for about 15+ years, I recently switched to gnus. It may take some reading of the documentation and some trying to get started, and the documentation is a little overwhelming at first. Nonetheless I'm finding it extremely worthwhile even though I have only just begun to explore the possibilities. Gnus has one big disadvantage: It can be awfully slow. Yes... It's more than *awfully* slow. Now I use it as a newsreader, subscribing several groups at gmane and also some RSS feeds. Mixing them with mail will probably be even more slow, which is also a reason for my insisting on mutt. Mutt is awesome and totally reliable; gnus is awesome and extremely powerful. (I can't tell yet how reliable gnus is.) Recently I'm also trying Chromium; I use Firefox with Pentadactyl now. In Chromium, I didn't find anything comparable to Vimperator/Pentadactyl, but it's much faster than Firefox. Well, these comparisons are similar. One of the things I missed very much with mutt was seamless integration with emacs. You can only get pretty close. Since you're an emacs fan, you might want to give gnus another, very serious try rather than waiting 15 years or so before you switch :) Thanks for your advice, I will try it if I have the time. -- Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 Facebook: Carl Lei Twitter: XeCycle Blog: http://xecycle.blogspot.com Sat, 25 Jun 2011 10:04:52 +0800 pgpia37D9L1RM.pgp Description: PGP signature