[imapfilter-devel] bad argument #1 to `getn'

Lefteris Chatzibarbas lefcha at hellug.gr
Tue Apr 6 18:27:08 EEST 2004


On Wed, May 05, 2004 at 10:55:59PM +1000, Gautam Gopalakrishnan wrote:
> hello,
> 
> I'm trying rc1 and am unable to get started. Below is my
> ~/.imapfilter/config.lua:
> 
> -------------
> 
> options.timeout = 120
> options.subscribe = true
> 
> acc1 = {
> 	server = 'mail1.monash.edu.au',
> 	username = 'ggop',
> 	password = '*',
> 	ssl = 'ssl3',
> }
> 
> all = {}
> 
> results = match(acc1, 'INBOX', all)
> move(acc1, 'INBOX', results, acc1, 'all')
                      ^^^^^^^
Try this:

  move(acc1, 'INBOX', acc1, 'all', results)


As I have stated in my previous mail:

  Changed argument order on some functions (copy(), move(), flag(),
  fetchheaders()) so you should check and correct your 1.0-beta configuration
  file (probably last change to the config file until 1.0).

So the "messages" table always goes to the end of the command, thus it is more
consistent this way.  Sorry for the confusion/inconvenience.




More information about the Imapfilter-devel mailing list