summaryrefslogtreecommitdiff
path: root/libsieve
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-14 14:48:02 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-14 14:48:02 +0000
commit564bb3f00bf1232d6f7423e71aeadd559c32a6ba (patch)
tree39e26fd2601a623b036ab17202c2ade236b9d38f /libsieve
parentb5025fea376e643bee34f266425c0b787637099b (diff)
downloadmailutils-564bb3f00bf1232d6f7423e71aeadd559c32a6ba.tar.gz
mailutils-564bb3f00bf1232d6f7423e71aeadd559c32a6ba.tar.bz2
(instr_action): Increase action_count; (sieve_run): Log implicit keep action.
Diffstat (limited to 'libsieve')
-rw-r--r--libsieve/runtime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsieve/runtime.c b/libsieve/runtime.c
index f361846b2..616ce9917 100644
--- a/libsieve/runtime.c
+++ b/libsieve/runtime.c
@@ -60,6 +60,7 @@ instr_action (sieve_machine_t mach)
sieve_debug (mach, "%4lu: ACTION: %s\n",
(unsigned long) (mach->pc - 1),
SIEVE_ARG (mach, 3, string));
+ mach->action_count++;
instr_run (mach);
}
@@ -250,10 +251,15 @@ sieve_run (sieve_machine_t mach)
{
if (setjmp (mach->errbuf))
return 1;
+
+ mach->action_count = 0;
for (mach->pc = 1; mach->prog[mach->pc].handler; )
(*mach->prog[mach->pc++].instr) (mach);
+ if (mach->action_count == 0)
+ sieve_log_action (mach, "IMPLICIT KEEP", NULL);
+
if (INSTR_DEBUG (mach))
sieve_debug (mach, "%4lu: STOP\n", mach->pc);

Return to:

Send suggestions and report system problems to the System administrator.