X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Femail.php;fp=include%2Femail.php;h=b8d99433e1e070b0c44514c18022d4f745fab072;hb=951006dd10628151c8f108f82c3260f13846e557;hp=ffd93bc2560502f09596bbce05db8c59cdc78e4c;hpb=41a36606c6ee92c914acbb7f6d9ea79c0a149088;p=friendica.git diff --git a/include/email.php b/include/email.php index ffd93bc256..b8d99433e1 100644 --- a/include/email.php +++ b/include/email.php @@ -58,7 +58,7 @@ function email_msg_headers($mbox,$uid) { $ret = array(); $h = explode("\n",$raw_header); if (count($h)) - foreach($h as $line ) { + foreach ($h as $line ) { if (preg_match("/^[a-zA-Z]/", $line)) { $key = substr($line,0,strpos($line,':')); $value = substr($line,strpos($line,':')+1); @@ -94,7 +94,7 @@ function email_get_msg($mbox,$uid, $reply) { else { $text = ''; $html = ''; - foreach($struc->parts as $ptop => $p) { + foreach ($struc->parts as $ptop => $p) { $x = email_get_part($mbox,$uid,$p,$ptop + 1, 'plain'); if ($x) { $text .= $x; @@ -206,10 +206,10 @@ function email_get_part($mbox,$uid,$p,$partno, $subtype) { function email_header_encode($in_str, $charset) { - $out_str = $in_str; + $out_str = $in_str; $need_to_convert = false; - for($x = 0; $x < strlen($in_str); $x ++) { + for ($x = 0; $x < strlen($in_str); $x ++) { if ((ord($in_str[$x]) == 0) || ((ord($in_str[$x]) > 128))) { $need_to_convert = true; }