POP3::strip_clf() WordPress Method
POP3::strip_clf() is a method used to remove the Content-Length field from a email header. This is useful when a email is not correctly formatted and the Content-Length field is preventing the email from being parsed correctly.
POP3::strip_clf( $text = "" ) #
Source
File: wp-includes/class-pop3.php
616 617 618 619 620 621 622 623 624 625 | function strip_clf ( $text = "" ) { // Strips \r\n from server responses if ( empty ( $text )) return $text ; else { $stripped = str_replace ( array ( "\r" , "\n" ), '' , $text ); return $stripped ; } } |
Expand full source codeCollapse full source codeView on TracView on GitHub