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

Alejandro Jakubi jakubi at df.uba.ar
Sat Oct 20 19:19:11 EEST 2007


Lefteris,

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

I see, but from what he says, it seems also that changing the value of the
options along the execution of a function allows limiting their scope in a time
sense.

> 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...

I wish to make imapfilter run in the background, using daemon_mode(), once I
get it configured to make some tasks. So, I would find very useful to have a
log of the actions as described in my previous message. Because of its
convenience, I have thought that this is a usual setup, and geting such a log
is quite natural. If not, could you give me a pointer to an
example/documentation of using print() and redirecting output to a file in
this context?

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

What kind of errors? For instance, if imapfilter tries to filter while Pine is
open and "holding" the INBOX, would an error appear in the logfile?

> If you ask me, there is no reason for having messages marked deleted in
> your spam folder; I mean they are out of the way in some folder other

There is a reason. Those messages with [SPAM] in the subject are labeled by
the departamental mail handling system (using SpamAssassin 3.1.7, apparently),
using probabilistic algorithms, etc. So, the chance exist that a non spam
message is labeled spam. Then, I store these messages in a spam folder and
check them before erasing. But in practice, very seldom I need to rescue a message
from this folder. So, it becomes most convenient for me to move these messages
to the spam folder and flag them already as deleted, so that they are removed when
I close my desktop email client (Pine/PCPine).

Currently I do this moving and flaging with filter rules of Pine running it on
the departamental server. And occasionally I use IMP/Horde webmail client with
similar results.

Now, the idea is to make this moving, flaging, etc, automatically.

Alejandro















More information about the Imapfilter-devel mailing list