aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c8
1 files changed, 7 insertions, 1 deletions
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 */