[imapfilter-devel] can't solve "table expected, got nil"
Joel CARNAT
joel at carnat.net
Fri Aug 13 11:32:56 EEST 2004
Hi,
I use imapfilter on 4 differents accounts.
I have a problem with one of them.
The error imapfilter returns is :
imapfilter: /home/jcarnat/.imapfilter/config.lua:105: table expected, got nil
I just can't get what this means.
Here's the bit of configuration concerned :
----------------------------------------
options.timeout = 120
options.charset = 'ISO-8859-15'
jcarnat = {
server = 'xxx.xxx.xxx.xxx',
username = 'jcarnat',
password = 'XXX',
}
nagios = {
'from "nagios"',
}
results = match(admin, 'INBOX', nagios)
move(admin, 'INBOX', admin, 'nagios', results)
results = match(jcarnat, 'INBOX', nagios)
move(jcarnat, 'INBOX', jcarnat, 'supervision', results)
----------------------------------------
account "admin" works OK, but not account "jcarnat"
ktrace says :
----------------------------------------
14568 imapfilter RET write 12/0xc
14568 imapfilter CALL fcntl(3,4,2)
14568 imapfilter RET fcntl 0
14568 imapfilter CALL fcntl(3,3,0)
14568 imapfilter RET fcntl 2
14568 imapfilter CALL fcntl(3,4,6)
14568 imapfilter RET fcntl 0
14568 imapfilter CALL select(4,0xbfbff3a0,0,0,0xbfbff398)
14568 imapfilter RET select 1
14568 imapfilter CALL read(3,0x8052000,0x1000)
14568 imapfilter GIO fd 3 read 25 bytes
"1017 OK mailbox closed.\r
"
14568 imapfilter RET read 25/0x19
14568 imapfilter CALL fcntl(3,4,2)
14568 imapfilter RET fcntl 0
14568 imapfilter CALL socket(2,1,0)
14568 imapfilter RET socket 9
14568 imapfilter CALL connect(9,0xbfbff3d0,0x10)
14568 imapfilter RET connect 0
14568 imapfilter CALL fcntl(9,3,0)
14568 imapfilter RET fcntl 2
14568 imapfilter CALL fcntl(9,4,6)
14568 imapfilter RET fcntl 0
14568 imapfilter CALL select(0xa,0xbfbff380,0,0,0xbfbff378)
14568 imapfilter RET select 1
14568 imapfilter CALL read(9,0x8052000,0x1000)
14568 imapfilter RET read 0
14568 imapfilter CALL close(9)
14568 imapfilter RET close 0
14568 imapfilter CALL __sigprocmask14(3,0xbfbff5bc,0)
14568 imapfilter RET __sigprocmask14 0
14568 imapfilter CALL write(2,0x804f18e,0xc)
14568 imapfilter GIO fd 2 wrote 12 bytes
"imapfilter: "
14568 imapfilter RET write 12/0xc
14568 imapfilter CALL write(2,0xbfbfed70,0x42)
14568 imapfilter GIO fd 2 wrote 66 bytes
"/home/jcarnat/.imapfilter/config.lua:105: table expected, got
nil
"
14568 imapfilter RET write 66/0x42
14568 imapfilter CALL write(8,0x8081000,0x25)
14568 imapfilter GIO fd 8 wrote 37 bytes
"\^U\^C\^A\0
,\M-k\M-0'q\M-M\M^F\M-}\M-!\M-'t\M-%\M^Q!\M^C\M-o\M-#F\^?\M-w\^W\M-,\
q\M^NrAhN`\M-sr\M-I"
14568 imapfilter RET write 37/0x25
14568 imapfilter CALL close(8)
14568 imapfilter RET close 0
14568 imapfilter CALL close(4)
14568 imapfilter RET close 0
14568 imapfilter CALL close(3)
14568 imapfilter RET close 0
14568 imapfilter CALL exit(2)
----------------------------------------
anyone has idea ?
TIA,
Jo
More information about the Imapfilter-devel
mailing list