$boundary =
trim( $line );
$boundary =
explode( '"',
$boundary );
$boundary =
$boundary[1
];
} if ( preg_match( '/Subject: /i',
$line ) ) { $subject =
trim( $line );
$subject =
substr( $subject, 9,
strlen( $subject ) - 9
);
// Captures any text in the subject before $phone_delim as the subject.
if ( function_exists( 'iconv_mime_decode'
) ) { $subject =
iconv_mime_decode( $subject, 2,
get_option( 'blog_charset'
) );
} else { $subject =
wp_iso_descrambler( $subject );
} $subject =
explode( $phone_delim,
$subject );
$subject =
$subject[0
];
} /*
* Set the author using the email address (From or Reply-To, the last used)
* otherwise use the site admin.
*/
if ( !
$author_found &&
preg_match( '/^(From|Reply-To): /',
$line ) ) { if ( preg_match( '|[a-z0-9_.-]+@[a-z0-9_.-]+(?!.*<)|i',
$line,
$matches ) ) {