{
int i;
/* search for the interesting parts */
for (i = 0; header[i]; i++) {
int len = strlen(header[i]);
{
int i;
/* search for the interesting parts */
for (i = 0; header[i]; i++) {
int len = strlen(header[i]);
!strncasecmp(line, header[i], len) &&
line[len] == ':' && isspace(line[len + 1])) {
/* Unwrap inline B and Q encoding, and optionally
!strncasecmp(line, header[i], len) &&
line[len] == ':' && isspace(line[len + 1])) {
/* Unwrap inline B and Q encoding, and optionally
again:
if (!memcmp(line+content_top->boundary_len, "--", 2)) {
/* we hit an end boundary */
again:
if (!memcmp(line+content_top->boundary_len, "--", 2)) {
/* we hit an end boundary */
/* slurp in this section's info */
while (read_one_header_line(line, sizeof(line), fin))
/* slurp in this section's info */
while (read_one_header_line(line, sizeof(line), fin))
/* eat the blank line after section info */
return (fgets(line, sizeof(line), fin) != NULL);
/* eat the blank line after section info */
return (fgets(line, sizeof(line), fin) != NULL);
/* process the email header */
while (read_one_header_line(line, sizeof(line), fin))
/* process the email header */
while (read_one_header_line(line, sizeof(line), fin))