On Sun, Sep 30, 2007 at 11:32:09PM +0300, Timo Sirainen wrote:
http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta2.tar.gz http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta2.tar.gz.sig
Several bug/crashfixes. deliver now supports -a parameter (see http://wiki.dovecot.org/LDA) which allows Sieve plugin v1.1.2 to use envelope :detail "to" checks.
I also did one more API change for mailbox_transaction_commit*().
There's probably something still wrong with SORT command, but other than that I've fixed everything that's been reported.
This builds fine on NetBSD (with GNU make as well as with BSD make).
But I have a segfault with deliver+sieve. I took the Sieve vacation example from the Wiki and removed the fileinto/stop part so it reaches vacation:
require ["fileinto", "vacation"]; vacation # Reply at most once a day to a same sender :days 1 :subject "Out of office reply" # List of allowed recipient addresses from auto reply should be sent. :addresses ["j.doe@company.dom", "john.doe@company.dom"] "I'm out of office, please contact Joan Doe instead. Best regards John Doe";
deliver then segfaults with any message I feed it:
(gdb) bt #0 0xbdb0d92d in shouldRespond (m=0xbfbfe6d0, interp=0x80f0580, numaddresses=2, bc=0x80f5f00, i=7, from=0xbfbfc17c, to=0xbfbfc180) at bc_eval.c:236 #1 0xbdb0fcc9 in sieve_eval_bc (exe=0x80ec2e0, is_incl=0, i=0x80f0580, body_cache=0x0, sc=0xbfbfe730, m=0xbfbfe6d0, imapflags=0xbfbfd688, actions=0x80f6500, notify_list=0x80e1760, errmsg=0xbfbfd684) at bc_eval.c:1243 #2 0xbdb1505c in sieve_execute_bytecode (exe=0x80ec2e0, interp=0x80f0580, script_context=0xbfbfe730, message_context=0xbfbfe6d0) at script.c:868 #3 0xbdb04996 in cmu_sieve_run (namespaces=0x80ef428, storage_r=0xbfbfe7fc, mail=0x8101428, script_path=0x80e2e00 "/home/geert/.dovecot.sieve", username=0x80e2040 "geert", mailbox=0x80d2905 "INBOX") at sieve-cmu.c:966 #4 0xbdb02520 in cmusieve_deliver_mail (namespaces=0x80ef428, storage_r=0xbfbfe7fc, mail=0x8101428, username=0x80e2040 "geert", mailbox=0x80d2905 "INBOX") at cmusieve-plugin.c:76 #5 0x080595f1 in main () #6 0x080573cd in ___start ()
Geert