[Dovecot] problem with i_stream_next_line()
Giorgenes Gelatti
giorgenes at gmail.com
Tue Nov 4 22:41:05 EET 2008
with attachment may be more useful.
tks.
2008/11/4 Giorgenes Gelatti <giorgenes at gmail.com>
> 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
>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: istream.c.diff
Type: text/x-diff
Size: 374 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20081104/555a5407/attachment.bin
More information about the dovecot
mailing list