[imapfilter-devel] Lua -> attempt to perform arithmetic on local
Gilion Goudsmit
ggoudsmit at byss.net
Tue Sep 8 15:53:06 EEST 2009
On Sep 8, 2009, at 14:11, Hans-Werner Hilse wrote:
>> On another note, is there some way to daemonize that uses the IMAP
>> IDLE feature instead of just polling?
>>
>> That would reduce load on our IMAP server and handle any mail even
>> faster; right now I sometimes still see unfiltered mail for a minute
>> or two...
>
> I wrote a patch that does this.
Awesome!
> It didn't yet receive much testing and
> is not (yet) incorporated into the distribution. I once sent it as an
> RFC to this list:
> http://lists.hellug.gr/pipermail/imapfilter-devel/2007/000514.html
>
> Please, have a try. I think it should still apply (though not 100%
> cleanly, but that should not matter), if it doesn't work, just drop
> me a
> note!
It seems like the patch applied cleanly, but I'm getting an error when
I try to run my updated config:
imapfilter: /home/giel/.imapfilter/config.lua:95: attempt to call
method 'idle_supported' (a table value)
The relevant (I think) snippet is:
mailbox = account.INBOX
if not mailbox:idle_supported() then
print ("IDLE extension not supported.")
end
If I check my installed files, I do see the changes to account.lua:
[giel at boba .imapfilter]$ grep idle /usr/share/imapfilter/account.lua
function Account.idle_supported(self)
return ifcore.idle_supported(self._imap)
Could it be that the lua part of the patch applied, but the C parts
silently didn't?
I'm testing this all through rpm's that I created with a .spec file I
modified from Mandriva by the way; it now already includes the IDLE
patch too. Once it's all clean I'll post the .spec file here too.
Thanks, G.
More information about the Imapfilter-devel
mailing list