1998-07-02 04:09:37 +00:00
|
|
|
*** pop_dropcopy.c.orig Thu Jul 2 07:56:52 1998
|
|
|
|
--- pop_dropcopy.c Thu Jul 2 07:58:24 1998
|
1998-06-28 21:11:55 +00:00
|
|
|
***************
|
1998-06-30 19:14:17 +00:00
|
|
|
*** 471,478 ****
|
1998-06-30 06:44:00 +00:00
|
|
|
*cp++ = '\n';
|
|
|
|
*cp = '\0';
|
|
|
|
|
|
|
|
! mp->length += strlen("X-UIDL: ") + strlen(mp->uidl_str) + 1;
|
|
|
|
! p->drop_size += strlen("X-UIDL: ") + strlen(mp->uidl_str)+1;
|
|
|
|
|
|
|
|
/* New UIDs do not dirty the mailspool if NO_STATUS is set. They
|
|
|
|
are just recalculated each time the popper is run or LMOS is
|
1998-06-30 19:14:17 +00:00
|
|
|
--- 471,480 ----
|
1998-06-30 06:44:00 +00:00
|
|
|
*cp++ = '\n';
|
|
|
|
*cp = '\0';
|
|
|
|
|
|
|
|
! i = strlen("X-UIDL: ") + (DIG_SIZE * 2) + 2;
|
|
|
|
! mp->length += i;
|
|
|
|
! p->drop_size += i;
|
|
|
|
! mp->lines++;
|
|
|
|
|
|
|
|
/* New UIDs do not dirty the mailspool if NO_STATUS is set. They
|
|
|
|
are just recalculated each time the popper is run or LMOS is
|
|
|
|
***************
|
1998-06-30 20:31:15 +00:00
|
|
|
*** 483,491 ****
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
! } else if (CONTENT_LENGTH && !strncmp(buffer, "Content-Length:", 15)) {
|
|
|
|
! cont_len = atoi(buffer + 15);
|
|
|
|
! MD5Update(&mdContext,(unsigned char *)buffer,strlen(buffer));
|
|
|
|
continue; /* not part of the message size */
|
|
|
|
} else if (!uidl_found && (!strncasecmp("Received:", buffer, 9) ||
|
|
|
|
!strncasecmp("Date:", buffer, 5) ||
|
|
|
|
--- 485,495 ----
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
1998-07-02 04:09:37 +00:00
|
|
|
! } else if (!strncasecmp(buffer, "Content-Length:", 15)) {
|
1998-06-30 20:31:15 +00:00
|
|
|
! if (CONTENT_LENGTH) {
|
|
|
|
! cont_len = atoi(buffer + 15);
|
|
|
|
! MD5Update(&mdContext,(unsigned char *)buffer,strlen(buffer));
|
|
|
|
! }
|
|
|
|
continue; /* not part of the message size */
|
|
|
|
} else if (!uidl_found && (!strncasecmp("Received:", buffer, 9) ||
|
|
|
|
!strncasecmp("Date:", buffer, 5) ||
|
|
|
|
***************
|
1998-06-30 19:14:17 +00:00
|
|
|
*** 504,511 ****
|
|
|
|
if( (len = strlen(cp)) > MIN_UIDL_LENGTH && len < MAX_UIDL_LENGTH ) {
|
|
|
|
uidl_found++;
|
|
|
|
mp->uidl_str = (char *)strdup(cp);
|
|
|
|
! mp->length += nchar + 1;
|
|
|
|
! p->drop_size += nchar + 1;
|
|
|
|
}
|
1998-06-30 06:44:00 +00:00
|
|
|
}
|
|
|
|
continue; /* Do not include this value in the message size */
|
1998-06-30 20:31:15 +00:00
|
|
|
--- 508,517 ----
|
1998-06-30 19:14:17 +00:00
|
|
|
if( (len = strlen(cp)) > MIN_UIDL_LENGTH && len < MAX_UIDL_LENGTH ) {
|
|
|
|
uidl_found++;
|
|
|
|
mp->uidl_str = (char *)strdup(cp);
|
|
|
|
! len += strlen("X-UIDL: ") + 1;
|
|
|
|
! mp->length += len;
|
|
|
|
! p->drop_size += len;
|
|
|
|
! mp->lines++;
|
|
|
|
}
|
1998-06-30 06:44:00 +00:00
|
|
|
}
|
|
|
|
continue; /* Do not include this value in the message size */
|
|
|
|
***************
|
1998-06-30 19:14:17 +00:00
|
|
|
*** 717,724 ****
|
1998-06-30 06:44:00 +00:00
|
|
|
*cp++ = '\n';
|
|
|
|
*cp = '\0';
|
|
|
|
|
|
|
|
! mp->length += strlen("X-UIDL: ") + strlen(mp->uidl_str) + 1;
|
|
|
|
! p->drop_size += strlen("X-UIDL: ") + strlen(mp->uidl_str)+1;
|
|
|
|
|
|
|
|
/* New UIDs do not dirty the mailspool if NO_STATUS is set. They
|
|
|
|
are just recalculated each time the popper is run or LMOS is
|
1998-06-30 20:31:15 +00:00
|
|
|
--- 723,732 ----
|
1998-06-30 06:44:00 +00:00
|
|
|
*cp++ = '\n';
|
|
|
|
*cp = '\0';
|
|
|
|
|
|
|
|
! i = strlen("X-UIDL: ") + (DIG_SIZE * 2) + 2;
|
|
|
|
! mp->length += i;
|
|
|
|
! p->drop_size += i;
|
|
|
|
! mp->lines++;
|
|
|
|
|
|
|
|
/* New UIDs do not dirty the mailspool if NO_STATUS is set. They
|
|
|
|
are just recalculated each time the popper is run or LMOS is
|
|
|
|
***************
|
1998-06-30 20:31:15 +00:00
|
|
|
*** 729,739 ****
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
! } else if (CONTENT_LENGTH && !strncmp(buffer, "Content-Length:", 15)) {
|
|
|
|
! cont_len = atoi(buffer + 15);
|
|
|
|
! MD5Update(&mdContext,(unsigned char *)buffer,strlen(buffer));
|
|
|
|
continue; /* Not included in message size */
|
|
|
|
-
|
|
|
|
} else if (!uidl_found && (!strncasecmp("Received:", buffer, 9) ||
|
|
|
|
!strncasecmp("Date:", buffer, 5) ||
|
|
|
|
!strncasecmp("Message-Id:",buffer, 11) ||
|
|
|
|
--- 737,748 ----
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
1998-07-02 04:09:37 +00:00
|
|
|
! } else if (!strncasecmp(buffer, "Content-Length:", 15)) {
|
1998-06-30 20:31:15 +00:00
|
|
|
! if (CONTENT_LENGTH) {
|
|
|
|
! cont_len = atoi(buffer + 15);
|
|
|
|
! MD5Update(&mdContext,(unsigned char *)buffer,strlen(buffer));
|
|
|
|
! }
|
|
|
|
continue; /* Not included in message size */
|
|
|
|
} else if (!uidl_found && (!strncasecmp("Received:", buffer, 9) ||
|
|
|
|
!strncasecmp("Date:", buffer, 5) ||
|
|
|
|
!strncasecmp("Message-Id:",buffer, 11) ||
|
|
|
|
***************
|
1998-06-30 19:14:17 +00:00
|
|
|
*** 753,760 ****
|
|
|
|
if( (len = strlen(cp)) > MIN_UIDL_LENGTH && len < MAX_UIDL_LENGTH ) {
|
|
|
|
uidl_found++;
|
|
|
|
mp->uidl_str = (char *)strdup(cp);
|
|
|
|
! mp->length += nchar + 1;
|
|
|
|
! p->drop_size += nchar + 1;
|
|
|
|
}
|
1998-06-30 06:44:00 +00:00
|
|
|
}
|
|
|
|
continue; /* Do not include this value in the message size */
|
1998-06-30 20:31:15 +00:00
|
|
|
--- 762,771 ----
|
1998-06-30 19:14:17 +00:00
|
|
|
if( (len = strlen(cp)) > MIN_UIDL_LENGTH && len < MAX_UIDL_LENGTH ) {
|
|
|
|
uidl_found++;
|
|
|
|
mp->uidl_str = (char *)strdup(cp);
|
|
|
|
! len += strlen("X-UIDL: ") + 1;
|
|
|
|
! mp->length += len;
|
|
|
|
! p->drop_size += len;
|
|
|
|
! mp->lines++;
|
|
|
|
}
|
1998-06-30 06:44:00 +00:00
|
|
|
}
|
|
|
|
continue; /* Do not include this value in the message size */
|
1998-07-02 04:09:37 +00:00
|
|
|
***************
|
|
|
|
*** 1031,1036 ****
|
|
|
|
--- 1042,1048 ----
|
|
|
|
(void)ftruncate(dfd, (OFF_T)offset);
|
|
|
|
}
|
|
|
|
#ifdef BULLDB
|
|
|
|
+ if (p->bulldir != NULL)
|
|
|
|
#ifdef GDBM
|
|
|
|
gdbm_close(p->bull_db);
|
|
|
|
#else
|