diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-08-18 11:04:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-08-18 11:04:39 +0000 |
commit | 4b2cbf7289de1af2b2138f418bf874d2d39213a9 (patch) | |
tree | 7111f3b27564a2384ea0c1f55ac42d710ed031c7 /pop3.c | |
parent | 9220032f8017cfb6a4ee0ddea3ee3d510686dc13 (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |