Re: What is IMAP status for now?
- From: Peter Bloomfield <PeterBloomfield MindSpring com>
- To: balsa-list gnome org
- Subject: Re: What is IMAP status for now?
- Date: Tue, 15 Oct 2002 09:06:29 -0400
On 2002.10.15 08:53 Olaf Fr??czyk wrote:
[ snip ]
> I just tested it:
> If ends with newline - OK
> If doesn't - Junk after literal
>
> Olaf
This patch should fix it. It was made against current BALSA_2
cvs code, but should apply cleanly to all recent source trees.
Peter
Index: libmutt/imap/message.c
===================================================================
RCS file: /cvs/gnome/balsa/libmutt/imap/message.c,v
retrieving revision 1.9.2.1
diff -u -r1.9.2.1 message.c
--- libmutt/imap/message.c 30 May 2002 21:33:01 -0000 1.9.2.1
+++ libmutt/imap/message.c 15 Oct 2002 13:03:30 -0000
@@ -447,7 +447,7 @@
/* some platforms, it sometimes returns non-NULL at EOF */
len=0;
nl=1;
- while(fgets(buf, sizeof(buf), fp) && !feof(fp))
+ while(!feof(fp) && fgets(buf, sizeof(buf), fp))
{
if(nl && !strncmp(buf, "Status: ", 8))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]