unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Re: Thoughts on notmuch and Lua
@ 2010-01-16 10:11 Sebastian
  0 siblings, 0 replies; 8+ messages in thread
From: Sebastian @ 2010-01-16 10:11 UTC (permalink / raw)
  To: notmuch

> We've talked about switching from default tags of "inbox" and "unread"
> to simply having new mail tagged with a "new" tag.

Ohh, please make the standard set of tags for new mail configurable in the config file. I might want to add different tags for special purposes, like "not_virus_scanned_yet" or what not by default. Having to run a script just to add those tags to any "new" mails sounds a bit complicated and error-prone to me.

spaetz

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Thoughts on notmuch and Lua
@ 2010-01-14  8:47 Ali Polatel
  2010-01-14 23:00 ` Carl Worth
  0 siblings, 1 reply; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2010-01-16 19:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-16 10:11 Thoughts on notmuch and Lua Sebastian
  -- strict thread matches above, loose matches on Subject: below --
2010-01-14  8:47 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

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).