fix handling of messages w/o body
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5476 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -147,7 +147,7 @@ pop_send(POP *p)
|
|||||||
}
|
}
|
||||||
/* Send the message body */
|
/* Send the message body */
|
||||||
{
|
{
|
||||||
int blank_line = 0;
|
int blank_line = 1;
|
||||||
while (fgets(buffer, MAXMSGLINELEN-1, p->drop)) {
|
while (fgets(buffer, MAXMSGLINELEN-1, p->drop)) {
|
||||||
/* Look for the start of the next message */
|
/* Look for the start of the next message */
|
||||||
if (!IS_MAILDIR(p) && blank_line && strncmp(buffer,"From ",5) == 0)
|
if (!IS_MAILDIR(p) && blank_line && strncmp(buffer,"From ",5) == 0)
|
||||||
|
Reference in New Issue
Block a user