Package: fakepop
Version: 7
Tags: patch
When fakepop receives a "LIST" command, it sends a reply that looks like
this (for example):
+OK<CR><LF>
1<SP>1024<LF>
2<SP>2048<LF>
.<CR><LF>
Note that the message sizes only have a line feed character after them,
rather than the carriage return/line feed combo required by the POP
standard. The carriage return is missing.
This problem causes (at least) the Mac OS X "Mail" POP client to hang
after issuing a "LIST" command.
The following trivial patch solves the problem:
--- fakepop.c.orig 2004-12-01 09:13:02.000000000 -0800
+++ fakepop.c 2005-11-21 06:30:04.000000000 -0800
@@ -49,7 +49,7 @@
j = msg_gettotalmsgs();
printf("+OK\r\n");
for (i = 1; i <= j; i++) {
- printf("%d %d\n", i, msg_getsize(i));
+ printf("%d %d\r\n", i, msg_getsize(i));
}
printf(".\r\n");
}
Thanks!
--
Robert L Mathews, Tiger Technologies http://www.tigertech.net/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]