php, , @ . . !
php imap_fetchstructure() ext/imap/php_imap.c, mail_fetchstructure_full(), c-client.
c-client/rfc822.c :
case 'C':
if (!strcmp (tmp+1,"C")) rfc822_parse_adrlist (&env->cc,d,host);
else if ((tmp[1] == 'O') && (tmp[2] == 'N') && (tmp[3] == 'T') &&
(tmp[4] == 'E') && (tmp[5] == 'N') && (tmp[6] == 'T') &&
(tmp[7] == '-') && body)
switch (MIMEp) {
case -1:
if (!(MIMEp =
search ((unsigned char *) s-1,i,
(unsigned char *)"\012MIME-Version",(long) 13))) {
#if 1
if (!strcmp (tmp+8,"TRANSFER-ENCODING") ||
(!strcmp (tmp+8,"TYPE") && strchr (d,'/'))) {
MM_LOG ("Warning: MIME header encountered in non-MIME message",
PARSE);
MIMEp = 1;
}
else
#endif
, , grep. , .
, CONTENT-TRANSFER-ENCODING CONTENT-TYPE MIME-.
edit MM_LOG mm_log, , php/ext/imap/php_imap.c. imap_fetchstructure() ( !), , imap_errors(). , .