[imapfilter-devel] whishes

Cyrille Lefevre clefevre-lists at 9online.fr
Sat May 15 15:44:32 EEST 2004


"Lefteris Chatzibarbas" <lefcha at hellug.gr> wrote:
> On Sat, May 15, 2004 at 01:29:32PM +0200, Cyrille Lefevre wrote:
> > do you thing it would be possible to implement open/read/write/close
> > to a socket to communicate w/ other programs such as sendmail ?
> 
> There is a Lua library named "luasocket" that makes it possible to do
> socket programming in Lua.

that's pretty good. so, most of the code may probably rewritten in lua, no ? :)
do you think about that ?

> > another interresting feature would have to have a deliver function
> > w/ file locking, so imapfilter would be enable to replace the couple
> > fetchmail/procmail to speadup things a lot.
> 
> Yes, it may seem as a good idea to add more features, but then
> imapfilter wouldn't be an "IMAP mail filtering utility", but other
> things, too.  I try to keep imapfilter small and make it do one specific
> thing well...

the advantage of the "new" imapfilter over procmail is the lua language.
not that lua is more powerfull than procmail rules, but, at least, mixed
and/or rules are a pain to write using procmail, not using lua. also, the
chain would be more simple using imapfilter w/ such functionnalities. the
one I have, right now, is fetchmail -> sendmail -> procmail -> deliver,
using imapfilter, it would be : imapfilter :) of course, I may already
use only imapfilter since I also have an IMAP server, but delivering to
mailboxes would be mush faster and simple than using an IMAP server.

> A user can easily write messages to the filesystem using Lua and I may
> add, after 1.0, auxiliary functions that will save messages to the
> filesystem in mbox, maildir, etc. format.
> 
> > of course, for instance, an external deliver program may be forked,
> > but this isn't an efficient solution.
> > 
> > well, in this case, some other functions would have to be created to
> > ease the use of imapfilter, and a daemon mode would have to be
> > implemented as well, etc.
> 
> BTW, the "daemon mode" is already implemented in 1.0-rc4.

ok! not seen yet :)

Cyrille Lefevre.
-- 
mailto:clefevre-lists at 9online.fr




More information about the Imapfilter-devel mailing list