[Dovecot] IMAP-proxy or not with sogo webmail and dovecot backend

Timo Sirainen tss at iki.fi
Thu Feb 23 02:56:29 EET 2012


On Wed, 2012-02-22 at 23:56 +0000, Ed W wrote:
> On 22/02/2012 23:41, Timo Sirainen wrote:
> > I've heard LUA being a commonly used embedded language, but I'd prefer
> > to instead support several very widely used languages, such as
> > Perl/Python.
> 
> I'm a perl/ruby fan myself, but I would still recommend a good look at 
> lua (or python) simply because they seem to be performant, easy to use, 
> and on the surface seem to have had some thought about making them 
> "embeddable".

SWIG appears to generate Lua bindings just as well. But yes, I noticed
Lua 5.1 has a feature called FFI that makes calling C functions quite
easy (but then again, SWIG is supposed to do the same thing).

> Perl has some memory management issues if you leave it long running, 
> also writing XS code looks ok on the surface, but is an exercise in hair 
> pulling in practice....

I've written a Perl plugin to irssi before directly with XS, and that's
my main motivation for using some kind of an easy generator this time.
It's way too much trouble to write any glue functions, especially when
it works for only a single scripting language.




More information about the dovecot mailing list