Don't write lines that get to long when constructing
Return-Path : address line. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -82,12 +82,14 @@ POP * p;
|
|||||||
if ((return_path_end = index(return_path_adr, ' ')) != NULL)
|
if ((return_path_end = index(return_path_adr, ' ')) != NULL)
|
||||||
*return_path_end = '\0';
|
*return_path_end = '\0';
|
||||||
if (strlen(return_path_adr) != 0 && *return_path_adr != '\n') {
|
if (strlen(return_path_adr) != 0 && *return_path_adr != '\n') {
|
||||||
static char tmpbuf[MAXMSGLINELEN];
|
static char tmpbuf[MAXMSGLINELEN + 20];
|
||||||
strcpy(tmpbuf, "Return-Path:");
|
strcpy(tmpbuf, "Return-Path: ");
|
||||||
strcat(tmpbuf, return_path_adr);
|
strcat(tmpbuf, return_path_adr);
|
||||||
strcat(tmpbuf, "\n");
|
strcat(tmpbuf, "\n");
|
||||||
pop_sendline (p,tmpbuf);
|
if (strlen(tmpbuf) < MAXMSGLINELEN) {
|
||||||
return_path_sent++;
|
pop_sendline (p,tmpbuf);
|
||||||
|
return_path_sent++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user