Oops - that patch was wrong, musn't mix unbuffered and buffered output.
Please try this one instead.
Sorry about the noise...
Brian.
--- sqwebmail/folder.c.orig Sun Nov 2 16:02:49 2003
+++ sqwebmail/folder.c Sun Nov 2 21:25:50 2003
@@ -3402,12 +3408,11 @@
static int download_func(const char *p, size_t cnt, void *voidptr)
{
- while (cnt--)
- if (putchar((int)(unsigned char)*p++) == EOF)
- {
- cleanup();
- fake_exit(0);
- }
+ if (fwrite(p, 1, cnt, stdout) != cnt)
+ {
+ cleanup();
+ fake_exit(0);
+ }
return (0);
}