Re: Is mutt extensible with a programming language?
On 24.06.11,23:52, 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~) Or --- Is there a fork of mutt that already support this? You can extend mutt by using macros with scripts that you can load in addition to your .muttrc, or you can source the scripts directly. Here is a script I load in mutt with a macro when I need it: #!/bin/sh lab=$1 file=$2 formail -A X-Label: NA $file $file.tmp mv $file.tmp $file sleep 1 touch $file I would guess that much or most of the things you can do with Gnus can also be done in mutt, but only in a different way. Is there something specifically you would do in mutt that you do in Gnus now? Jostein
Re: Is mutt extensible with a programming language?
Jostein Berntsen jber...@broadpark.no writes: On 24.06.11,23:52, 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~) Or --- Is there a fork of mutt that already support this? You can extend mutt by using macros with scripts that you can load in addition to your .muttrc, or you can source the scripts directly. Here is a script I load in mutt with a macro when I need it: #!/bin/sh lab=$1 file=$2 formail -A X-Label: NA $file $file.tmp mv $file.tmp $file sleep 1 touch $file I would guess that much or most of the things you can do with Gnus can also be done in mutt, but only in a different way. Is there something specifically you would do in mutt that you do in Gnus now? Well, I'm just starting to use Gnus, so I cannot answer this. Yes, mutt can do most of the things about mail, but I believe there must be something it can't do, or can't do easily. Invoking external scripts is the solution, but it's hard to write, since they're not integrated to mutt. Now I'm trying Gnus, and if I still failed it, I will probably get back to mutt. pgpLe44nZHlhu.pgp Description: PGP signature
Re: Is mutt extensible with a programming language?
I would guess that much or most of the things you can do with Gnus can also be done in mutt, but only in a different way. Is there something specifically you would do in mutt that you do in Gnus now? Well, I'm just starting to use Gnus, so I cannot answer this. Yes, mutt can do most of the things about mail, but I believe there must be something it can't do, or can't do easily. Invoking external scripts is the solution, but it's hard to write, since they're not integrated to mutt. Now I'm trying Gnus, and if I still failed it, I will probably get back to mutt. Mutt is more modular which means that you can use any programming language you like and hook it into muttrc. Perl works great, as does Bash, Python, Ruby and other. Mails can also be piped directly to scripts of course. Jostein
Re: Is mutt extensible with a programming language?
On Fri, Jun 24, 2011 at 11:52:39PM +0800, XeCycle wrote: 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? I use a mutt+Lua combination, but I only put Lua hooks into a few specific spots so it's pretty limited in what it can do. For example I use Lua functions to label the subject lines for messages from a whitelist of senders. -Dave Dodge
Re: Is mutt extensible with a programming language?
XeCycle xecy...@gmail.com writes: On Sat, Jun 25, 2011 at 03:04:09AM +0200, lee wrote: 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. So far, I have found only two things gnus is slow with: * processing incoming email is *awfully* slow * creating a summary buffer when there are *many* unread messages to show The second one isn't really an issue. The first one is currently very annoying because I still have a lot of messages that need to be processed in the process of switching from maildir to nnml --- and that's mainly my fault because I started doing it the wrong way. Still that should be much faster. It's not a fair comparison, though, because it's something mutt doesn't do. 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. Chromium is a MUA? I tried it and found it can't even display PDF documents and cannot be configured to do anything but display a web page. It isn't noticeably faster than konqueror (with webkit) or seamonkey.
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