Re: What is IMAP status for now?



On 2002.10.15 14:06:29 +0100 Peter Bloomfield wrote:

> 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))
>    {

this does look like a think-o as it drops the last line. i'll look at
current mutt code and bring it up

-- 
Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey: 0x1FC57F0A
http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5 7F0A
Software is like sex; it's better when it's free. - Linus Torvalds



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]