664 |
/* Reset internal fetch counter. */ |
/* Reset internal fetch counter. */ |
665 |
fetch_response(&sockpri, 1, NULL, 0); |
fetch_response(&sockpri, 1, NULL, 0); |
666 |
t = imap_fetch(&sockpri, tok, s); |
t = imap_fetch(&sockpri, tok, s); |
667 |
do { |
do |
668 |
r = fetch_response(&sockpri, 0, hdrs, t); |
r = fetch_response(&sockpri, 0, hdrs, t); |
669 |
|
while (r == RESPONSE_NONE); |
670 |
|
|
671 |
if (*hdrs) { |
if (*hdrs) { |
672 |
if (options & OPTION_HEADERS) |
if (options & OPTION_HEADERS) |
673 |
info("%s\n", hdrs); |
info("%s\n", hdrs); |
674 |
log_info(LOG_WRITE, hdrs); |
log_info(LOG_WRITE, hdrs); |
675 |
} else { |
} else { |
676 |
log_info(LOG_WRITE, NULL); |
log_info(LOG_WRITE, NULL); |
677 |
} |
} |
|
} while (r == RESPONSE_NONE); |
|
678 |
} |
} |
679 |
|
|
680 |
xfree(mcp); |
xfree(mcp); |