Changeset 90180ef in github


Ignore:
Timestamp:
Feb 11, 2008 7:03:43 PM (5 years ago)
Author:
till <till@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ddc34f9
Parents:
6f99263
Message:
  • added bad_date_display.patch from #1484577
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/imap.inc

    r5bc0ab1 r90180ef  
    15211521    $request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC "; 
    15221522    $request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID "; 
    1523     $request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY)])\r\n"; 
     1523    $request .= "REFERENCES RECEIVED DISPOSITION-NOTIFICATION-TO X-PRIORITY)])\r\n"; 
    15241524 
    15251525        if (!fputs($fp, $request)) { 
     
    15481548                                if (ord($line[0])<=32) { 
    15491549                                    $lines[$i] .= (empty($lines[$i])?'':"\n").trim(chop($line)); 
    1550                                 } else{ 
     1550                                } else { 
    15511551                                        $i++; 
    15521552                                        $lines[$i] = trim(chop($line)); 
     
    15651565                                    break; 
    15661566                } 
    1567                         } while (trim($line[0]) != ')' && strncmp($line, $key, strlen($key)));  // patch from "Maksim Rubis" <siburny@hotmail.com> 
     1567            // patch from "Maksim Rubis" <siburny@hotmail.com> 
     1568                        } while (trim($line[0]) != ')' && strncmp($line, $key, strlen($key))); 
    15681569                         
    15691570            if (strncmp($line, $key, strlen($key))) {  
     
    15721573                        if (is_array($headers)) { 
    15731574                                reset($headers); 
    1574                                 while ( list($k, $bar) = each($headers) ) $headers[$k] = ''; 
     1575                                while (list($k, $bar) = each($headers)) { 
     1576                        $headers[$k] = ''; 
     1577                    } 
    15751578                        } 
    15761579     
     
    15861589                                                $result[$id]->timestamp = iil_StrToTime($string); 
    15871590                                                break; 
     1591                    case 'received': 
     1592                        if (!isset($result[$id]->date)) { 
     1593                            $_received = substr(strstr(str_replace("\n", 
     1594                                '', $string), '; '), 2); 
     1595     
     1596                            $result[$id]->date      = str_replace("\n", '', $_received); 
     1597                            $result[$id]->timestamp = iil_StrToTime($_received); 
     1598                        } 
     1599                        break; 
    15881600                                        case 'from': 
    15891601                                                $result[$id]->from = $string; 
Note: See TracChangeset for help on using the changeset viewer.