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,15 +82,17 @@ POP * p;
|
||||
if ((return_path_end = index(return_path_adr, ' ')) != NULL)
|
||||
*return_path_end = '\0';
|
||||
if (strlen(return_path_adr) != 0 && *return_path_adr != '\n') {
|
||||
static char tmpbuf[MAXMSGLINELEN];
|
||||
strcpy(tmpbuf, "Return-Path:");
|
||||
static char tmpbuf[MAXMSGLINELEN + 20];
|
||||
strcpy(tmpbuf, "Return-Path: ");
|
||||
strcat(tmpbuf, return_path_adr);
|
||||
strcat(tmpbuf, "\n");
|
||||
if (strlen(tmpbuf) < MAXMSGLINELEN) {
|
||||
pop_sendline (p,tmpbuf);
|
||||
return_path_sent++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Send the header of the message followed by a blank line */
|
||||
|
Reference in New Issue
Block a user