unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Thoughts on notmuch and Lua
@ 2010-01-14  8:47 Ali Polatel
  2010-01-14 23:00 ` Carl Worth
  0 siblings, 1 reply; 13+ messages in thread
From: Ali Polatel @ 2010-01-14  8:47 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

Before trying to implement anything I decided to send a mail to the list
to ask people's opinion.

What's the problem?
===================
Notmuch isn't very configurable.

How can Lua integration solve this?
===================================
Here are initial thoughts on how to integrate Lua with notmuch.
Any comments appreciated.

1. Configuration file:
The configuration file can be a Lua script that allows more dynamic
configuration. Here's an example:

# notmuch configuration file:
config = {}
config.dbpath = "/path/to/maildir"
config.exclude = function (maildir)
    return not string.match(maildir, ".*Trash.*")
    end
...

2. Hooks:
This is a feature I really miss having switched from sup.
There can be many hooks, a hook that formats search output,
a hook that is called before adding messages to the database which may
be used to add initial tags depending on headers etc.

Why Lua?
========
Lua has many advantages over other scripting languages when it comes to
integration with a C program. It has a very clean and easy C API, the
overhead of running Lua scripts is not noticable among other things.

-- 
Regards,
Ali Polatel

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-01-17  7:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14  8:47 Thoughts on notmuch and Lua Ali Polatel
2010-01-14 23:00 ` Carl Worth
2010-01-15  0:16   ` martin f krafft
2010-01-15 20:45     ` Carl Worth
2010-01-15 21:09       ` Ali Polatel
2010-01-15 23:15         ` Carl Worth
2010-01-16 19:10           ` Ali Polatel
2010-01-16 20:18           ` inbox/unread tags for new messages [was: Re: Thoughts on notmuch and Lua] Jameson Rollins
2010-01-16 22:22             ` Carl Worth
2010-01-16 23:38               ` Jameson Rollins
2010-01-17  2:05                 ` Ben Gamari
2010-01-17  2:33                 ` Carl Worth
2010-01-17  7:05                   ` Jameson Rollins

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).