aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-08-18 11:04:39 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-08-18 11:04:39 +0000
commit4b2cbf7289de1af2b2138f418bf874d2d39213a9 (patch)
tree7111f3b27564a2384ea0c1f55ac42d710ed031c7 /pop3.c
parent9220032f8017cfb6a4ee0ddea3ee3d510686dc13 (diff)
downloadfetchmail-4b2cbf7289de1af2b2138f418bf874d2d39213a9.tar.gz
fetchmail-4b2cbf7289de1af2b2138f418bf874d2d39213a9.tar.bz2
fetchmail-4b2cbf7289de1af2b2138f418bf874d2d39213a9.zip
*** empty log message ***
svn path=/trunk/; revision=2046
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 */