[imapfilter-devel] which lua version?

Lefteris Chatzibarbas lefcha at hellug.gr
Fri May 7 17:03:38 EEST 2004


On Fri, May 07, 2004 at 01:37:43PM +0200, pw wrote:
> Hi,
> I have used imapfilter+lua-1.0-rc2 without problems. But since rc3 is 
> available only without lua, I compiled lua-5.0.2 myself and got errors on 
> using the function "pclose". imapfilter-1.0-rc3 worked with the lua-code from
> imapfilter+lua-1.0-rc2, though. The reason seems to be the difference between 
> the lua code distributed by imapfilter and the original lua-5.0.2 code, as 
> can be seen by the output of diff below.
> Strange, because from the files distributed by imapfilter, it seems that 
> lua-5.0.2 is used there, too...
> 
> any comments?

The imapfilter+lua distribution had Lua 5.0.2 + patches that enhanced the
popen() function of Lua and added a pclose() that returned the exit status of
the child process. 

Since imapfilter 1.0-rc3 I implemented my own version of popen(), along with
pclose(), and also added some auxiliary functions that make piping to the stdin
and from the stdout of a process easier.  These functions are pipe_to() and
pipe_from(), which are documented in the imapfilter_config(5) manual page and
used in examples in sample.extend.lua. So, you should use these functions
instead of popen()/pclose()/read()/write()/whatever, demonstrated in previous
release candidates of imapfilter.




More information about the Imapfilter-devel mailing list