Re: [Dovecot] problem with i_stream_next_line()

2008-11-05 Thread Giorgenes Gelatti
Ok. I've made a new patch in the subscription-file.c to fix my problem. Attached... thank you 2008/11/4 Timo Sirainen <[EMAIL PROTECTED]> > It's not a good idea to change the code that way. For example > dovecot-uidlist reading relies on i_stream_next_line() not returning a > partially written.

Re: [Dovecot] problem with i_stream_next_line()

2008-11-04 Thread Timo Sirainen
It's not a good idea to change the code that way. For example dovecot- uidlist reading relies on i_stream_next_line() not returning a partially written. That's why the API description also says: /* Gets the next line from stream and returns it, or NULL if more data is needed to make a ful

Re: [Dovecot] problem with i_stream_next_line()

2008-11-04 Thread Giorgenes Gelatti
with attachment may be more useful. tks. 2008/11/4 Giorgenes Gelatti <[EMAIL PROTECTED]> > 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/

Re: [Dovecot] problem with i_stream_next_line()

2008-11-04 Thread Giorgenes Gelatti
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) }

[Dovecot] problem with i_stream_next_line()

2008-11-04 Thread Giorgenes Gelatti
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 li