From 4b2cbf7289de1af2b2138f418bf874d2d39213a9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 18 Aug 1998 11:04:39 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=2046 --- pop3.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 6b595fe6..0682fd74 100644 --- a/pop3.c +++ b/pop3.c @@ -550,10 +550,14 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp) if (sdps_enable) { int linecount = 0; + +#define DUMMY_HEADER "Delivered-To: " /* will only get discarded */ +#define DUMMY_LENGTH (sizeof(DUMMY_HEADER) - 1) + strcpy(buf, DUMMY_HEADER); sdps_envto = (char *)NULL; gen_send(sock, "*ENV %d", number); do { - if (gen_recv(sock, buf, sizeof(buf))) + if (gen_recv(sock, buf + DUMMY_LENGTH, sizeof(buf) - DUMMY_LENGTH)) { break; } @@ -565,6 +569,8 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp) } } while (buf[0] !='.'); +#undef DUMMY_HEADER +#undef DUMMY_LENGTH } #endif /* SDPS_ENABLE */ -- cgit v1.2.3