I did the patch below and it worked for me.
diff --git a/dovecot/src/lib/istream.c b/dovecot/src/lib/istream.c
index 4b218b9..b195b4f 100644
--- a/dovecot/src/lib/istream.c
+++ b/dovecot/src/lib/istream.c
@@ -245,6 +245,10 @@ char *i_stream_next_line(struct istream *stream)
}
}
+ if(ret_buf == NULL && i == _stream->pos) {
+ ret_buf = i_stream_next_line_finish(_stream, i);
+ }
+
return ret_buf;
2008/11/4 Giorgenes Gelatti <giorgenes at gmail.com>
> Hello there,
>
> I have a "subscriptions" file that is *not* ended with a line
break
> (created by another system).
> When I do a "lsub "" "*"" the last mailbox
name is not listed.
> Debugging a little showed that it looks like i_stream_next_line() is not
> returning the last line if it doesn't end with a line break.
>
> Is this a bug?
>
> btw, i'm using version 1.1.6.
>
> []'s
>
>