Ticket #7538: imap.diff
File imap.diff, 1.4 KB (added by , 13 years ago) |
---|
-
src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPProtocol.cpp
24 24 25 25 status_t 26 26 ConnectionReader::GetNextLine(BString& line, bigtime_t timeout, 27 uint32 minUnfinishedLine)27 int32 maxUnfinishedLine) 28 28 { 29 29 line.SetTo((const char*)NULL, 0); 30 30 … … 33 33 if (status == B_OK) 34 34 return status; 35 35 if (status == B_NAME_NOT_FOUND) { 36 if ( line.Length() < (int32)minUnfinishedLine)36 if (maxUnfinishedLine < 0 || line.Length() < maxUnfinishedLine) 37 37 continue; 38 38 else 39 39 return status; -
src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPProtocol.h
32 32 minUnfinishedLine characters are returned. */ 33 33 status_t GetNextLine(BString& line, 34 34 bigtime_t timeout = kIMAP4ClientTimeout, 35 uint32 minUnfinishedLine = 128);35 int32 maxUnfinishedLine = -1); 36 36 /*! Read data and append it to line till the end of file is 37 37 reached. */ 38 38 status_t FinishLine(BString& line);