]> git.mxchange.org Git - friendica.git/blobdiff - include/email.php
more spaces + some curly spaces added
[friendica.git] / include / email.php
index ffd93bc2560502f09596bbce05db8c59cdc78e4c..b8d99433e1e070b0c44514c18022d4f745fab072 100644 (file)
@@ -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;
                }