[imapfilter-devel] Error: attempt to index field 'INBOX'

Lefteris Chatzimparmpas lefcha at hellug.gr
Sat Oct 20 10:55:20 EEST 2007


On Fri, Oct 19, 2007 at 07:58:41PM -0300, Alejandro Jakubi wrote:
> Yes, I want messages with the pattern [SPAM] in the subject be moved
> and just stay there flagged as deleted, and I want messages with
> another pattern in the subject be deleted (ie removed) immediately
> from the INBOX. Do those options interfere with this second task?

Yes. As David said, this is a global IMAP server side behaviour...

> Also, I want a log file whose lines are the actions (move, delete)
> that imapfilter makes, as those that I get on the output with the
> command line option -v:
> 
> 4 messages moved from xxx/INBOX to xxx/mail/SPAM.
> 
> plus the name of the rule/pattern used (or some equivalent label), and
> the date and time of the action. How do I get that?

Also, as David mentioned, you have to print() stuff yourself, I can't
add options for every detail one might want, that's where Lua comes
handy.  You might try to print() extra information and add the -v
option, and redirect the output to some file...

> Indeed, with the command line option -l a "logfile" is created but
> nothing is written inside. Is this one the expected behaviour?

The -l option is only to log any errors, probably useful when making
imapfilter a daemon...

> Regards, Alejandro




More information about the Imapfilter-devel mailing list