-
Notifications
You must be signed in to change notification settings - Fork 1
/
netscape-progress.patch
48 lines (41 loc) · 1.42 KB
/
netscape-progress.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Scott Moorhouse <[email protected]>
Subject: Re: qmail-pop3d and Netscape
Date: Tue, 27 Jul 1999 11:16:59 -0500
After taking a look at qmail-pop3d.c, it looked easy to write a patch
to make Messenger's progress meter work again, so I took the initiative
to do so. The diff is so tiny (1 pg with context), I'll just include
it here for anybody to use.
Thanks for pointing me in the right direction.
*** qmail-pop3d.c.orig Tue Jul 27 11:07:33 1999
--- qmail-pop3d.c Tue Jul 27 10:50:39 1999
***************
*** 267,273 ****
fd = open_read(m[i].fn);
if (fd == -1) { err_nosuch(); return; }
! okay();
substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf));
blast(&ssmsg,limit);
close(fd);
--- 267,277 ----
fd = open_read(m[i].fn);
if (fd == -1) { err_nosuch(); return; }
! /* okay(); */
! puts("+OK ");
! put(strnum,fmt_ulong(strnum,m[i].size));
! puts(" octets\r\n");
! flush();
substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf));
blast(&ssmsg,limit);
close(fd);
On Tue, Jul 27, 1999 at 09:29:34AM +0300, Anand Buddhdev wrote:
> On Mon, Jul 26, 1999 at 09:04:09AM -0500, Scott Moorhouse wrote:
>
> I believe this is a Netscape problem. It doesn't use the message size
> value from the LIST command, but instead expects the message size to be
> given after the OK to the RETR command, like this:
>
> ...
> RETR 1
> +OK 345 octets
[...]