aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-07-19 14:51:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-07-19 14:51:00 +0000
commit73799e479c5ff0f5788212cc06c35792c2da3149 (patch)
treebde01323a8d059a82c72b290b336ba12b3bad80b /pop3.c
parentc2398336ad81e3d7e9ff6ce76528bcc934367e40 (diff)
downloadfetchmail-73799e479c5ff0f5788212cc06c35792c2da3149.tar.gz
fetchmail-73799e479c5ff0f5788212cc06c35792c2da3149.tar.bz2
fetchmail-73799e479c5ff0f5788212cc06c35792c2da3149.zip
Freeze bug fixes befoire adding more features.
svn path=/trunk/; revision=38
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index fab11a2b..0be6b211 100644
--- a/pop3.c
+++ b/pop3.c
@@ -40,7 +40,7 @@ int POP3_sendSTAT (int *msgcount, int socket);
int POP3_sendRETR (int msgnum, int socket);
int POP3_sendDELE (int msgnum, int socket);
int POP3_sendLAST (int *last, int socket);
-int POP3_readmsg (int socket, int mboxfd, char *host, int topipe);
+int POP3_readmsg (int socket, int mboxfd, char *host, int topipe, int rewrite);
int POP3_BuildDigest (char *buf, struct hostrec *options);
#endif
@@ -165,7 +165,10 @@ struct hostrec *queryctl;
goto cleanUp;
if (number >= first || queryctl->fetchall)
- ok = POP3_readmsg(socket,mboxfd,queryctl->servername,queryctl->output == TO_MDA);
+ ok = POP3_readmsg(socket,mboxfd,
+ queryctl->servername,
+ queryctl->output == TO_MDA,
+ queryctl->rewrite);
else
ok = 0;
if (ok != 0)
@@ -537,11 +540,12 @@ int socket;
globals: reads outlevel.
*********************************************************************/
-int POP3_readmsg (socket,mboxfd,pophost,topipe)
+int POP3_readmsg (socket,mboxfd,pophost,topipe,rewrite)
int socket;
int mboxfd;
char *pophost;
int topipe;
+int rewrite;
{
char buf [MSGBUFSIZE];
char *bufp;
@@ -610,7 +614,7 @@ int topipe;
/*
* Edit some headers so that replies will work properly.
*/
- if (inheaders)
+ if (inheaders && rewrite)
reply_hack(bufp, pophost);
/* write this line to the file */