[imapfilter-devel] job execution order?
Lefteris Chatzibarbas
lefcha at hellug.gr
Sun Nov 23 10:13:15 EET 2003
On Sat, Nov 22, 2003 at 03:08:09PM +0100, Michael Herger wrote:
> Hi
>
> I've just created my firest imapfilter scripts. It's all working fine. But
> I had to do some trial and error because I did not find a hint on the
> order in which jobs are executed. What's the rule? First accounts/folders,
> then job per account/folder?
After IMAPFilter reads the configuration file and creates all necessary
data structures, it starts by going through the list of accounts. It
connects to the server specified, and then goes through the list of
mailboxes belonging to the server. For each mailbox it applies the
filters that were specified for it. This goes on until the last
account, the last mailbox and the last filter.
Also, mailbox data structures (a linked list that is part of an account)
are created in the order that the mailboxes are declared in the config
file with the "folder" keyword. The filters that should be applied to a
mailbox, are also in the order that the "job" keyword defines them in
the config file.
> The man page could use some explanation about this :-).
Good idea! I'll add an explanation.
More information about the Imapfilter-devel
mailing list