bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] Bug in sieve engine


From: Kostas Zorbadelos
Subject: [bug-mailutils] Bug in sieve engine
Date: Tue, 1 Nov 2005 10:18:03 +0200
User-agent: Mutt/1.5.9i

Hello to everyone.
I believe I found a bug in the implementation of the sieve engine. I
include a program that demonstrates the faulty behaviour. My program
opens a mailbox and for each message it creates a new sieve machine,
compiles the same sieve file, calls sieve_message() and destroys the
machine. 
The program is called as 

./sieve_eng_test mbox:test.mbox filters.sieve

From: Smara Frementiti <address@hidden>
 Subject: SE THELO TORA
 Sieve flag: 0
filters.sieve:21: recursive inclusion
Error compile sieve script: Operation not permitted

The sieve engine produces the error "recursive inclusion". I believe I
have traced the error and has to do with the variables

char *sieve_filename;  
int sieve_line_num;  
ino_t sieve_source_inode;

in sieve.l that are not initialized. However, I hate to admit, my
lex/yacc skills are quite rusty (I definetely should go through the
dragon book again).

I include my program, the makefile, the sieve file and the test
mailbox. All tests are against snapshot 20050929 (with a patch of mine
that has to do with the reject action, already sent to the list).
Let me know if you need anything else to trace the problem.

Kostas 

-- 
  Kostas Zorbadelos
  Systems Designer/Developer, Otenet SA 
  address@hidden contact: kzorba (at) otenet.gr
  
  Out there in the darkness, out there in the night
  out there in the starlight, one soul burns brighter
  than a thousand suns.

Attachment: sieve_eng_test.c
Description: Text Data

Attachment: test.mbox
Description: Text document

Attachment: filters.sieve
Description: Text document

Attachment: progMakefile
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]