Hacker News new | ask | show | jobs
by seuss1969 3287 days ago
Then you should try looking at NeoMutt (www.neomutt.org). It's a pseudo fork of Mutt that has added a lot of new features.

Recently it landed full Lua scripting support as well. Guess you're not the only one that was looking for more powerful configuration within mutt.

1 comments

I'm guilty of the Lua feature, and even though it's only covering the existing muttrc API, it can already do quite a lot. The Lua feature is (not yet) turned on by default at compile time (and thus in systems distributions).

I'd be very happy to have more feedback and help to extend further that API and have some great scripts happening!

I think the point where Lua gets interesting is when it can be invoked when a new message is received, or you can iterate over message heads & the message-list(s) and process them automatically.

For example you might have a folder of "backup results", you'd want to mark all that have a subject of "Backup OK" as read, and flag the ones that have a subject of "Backup FAILED" as "important". Those are the kind of tasks I automate with my lua-based mail-client.

You can get more interesting and say "Keep only the most recent 100 messages in folder XXX" which applies whenever you either launch the client, or open a given folder too.