[Dovecot] assertion failure when appending

Johannes Berg johannes at sipsolutions.net
Tue Oct 9 20:13:50 EEST 2007

On Tue, 2007-10-09 at 14:02 +0200, Max wrote:

> First, thank you Johannes for your terrific work. I just love the
> antispam plugin and it's really worth the effort to get it installed.

Thanks :)

> But now to the point, unfortunately I ran into the same issue you
> mentioned in your mail:
> Oct  9 11:54:35 server dovecot: IMAP(imap-user at imap-server): file maildir-
> 	save.c: line 456 (maildir_save_finish): assertion failed: 
> 	(ctx->seq != 0)
> Oct  9 11:54:35 server dovecot: IMAP(imap-user at imap-server): Raw backtrace:
> 	imap [0x80a8a4b] -> imap(i_info+0) [0x80a899a] -> 
> 	imap(maildir_save_cancel+0) [0x806ca6d] ->
> 	/usr/lib/dovecot/imap/lib90_antispam_plugin.so [0xb7ef04c6] -> 
> 	imap [0x8056097] -> imap [0x805688b] -> 
> 	imap(io_loop_handler_run+0x105) [0x80ae3bf] -> 
> 	imap(io_loop_run+0x1c) [0x80ad6e4] -> imap(main+0x4d0) [0x8062b0d] -> 
> 	/lib/libc.so.6(__libc_start_main+0xdc) [0xb7dda824] -> 
> 	imap [0x8055e51]
> Oct  9 11:54:35 server dovecot: child 27849 (imap) killed with signal 6
> This is how I reproduce the problem:
> 1) Start Outlook 2003
> 2) Connect to Dovecot 
> 3) Create a new IMAP folder named "Sent Items"
> 4) Open my old Outlook.pst data file
> 5) Copy one message from the old "Sent Items" folder to the new IMAP 
>    folder (Outlook: "OK")
> 6) Copy another message from the old folder to the new folder 
>    (Outlook: "Failure")
> 7) Assertion fails and imap child gets killed

Right. Similar here when I have a "Sent" folder and send mail that is
appended to it.

> The problem disappears when I disable the antispam plugin.

Same here. Do you have a quota setup? I'm not entirely sure but I think
that the quota plugin might have the same problem. If anyone has the
quota plugin set up I'd appreciate a quick test like the one above.

> Currently my best guess is that the problem might be related to the
> fact that the mails Outlook stores in the "Sent Items" folder are
> lacking headers.

I'm pretty sure the problem lies deeper than that since we hook into the
storage code here.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20071009/0d5b92d8/attachment.bin 

More information about the dovecot mailing list