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;
    }
}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.