[imapfilter-devel] function question

John Webster jwebster at es.net
Fri May 27 00:16:35 EEST 2011


Please disregard.  :-}  I found my mistake.
I forgot the IMAP in the account statement.
Everything is working fine now.


jw

--On May 25, 2011 9:38:55 AM -0700 John Webster <jwebster at es.net> wrote:

> 
> I'm trying to define the following function:
> 
> badCharsets = function (mailbox)
>      local result1 = mailbox:contain_field('Content-Type', 'koi8-r') +
>                mailbox:contain_field('Content-Type', 'iso-8859-9') +
>                mailbox:contain_field('Content-Type', 'windows-1254') +
>                mailbox:contain_field('Content-Type', '-=SPLIT') +
>                mailbox:contain_subject('=%?utf-8%?Q%?') +
>                mailbox:contain_subject('=%?iso-8859-9%?') +
>                mailbox:contain_from('=%?iso-8859-9%?')
>      local result2 = mailbox:is_undeleted()
>      return result1 * result2
>      end
>      
> 
> However I'm getting the following error:
> 
>    attempt to index local 'mailbox' (a nil value)
> 
> 
> Can someone tell me why?
> 
> Thanks.
> 
> jw

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20110526/6af3cee0/attachment.pgp>


More information about the Imapfilter-devel mailing list