- Timestamp:
- 06/29/10 16:22:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2958 r2979 557 557 } 558 558 559 $pattern = '/^[ \t]*Disposition-Notification-To (^:)*:(.+)*@(.+)*$/isUm';559 $pattern = '/^[ \t]*Disposition-Notification-To:[ ]*<?[[:alnum:]\._-]+@[[:alnum:]_-]+[\.[:alnum:]]+>?/sm'; 560 560 if (preg_match($pattern, $header_, $fields)) 561 561 { 562 preg_match('/[[:alnum:]\._\-]+@[[:alnum:]_\-\.]+/',$fields[0], $matches); 563 $return['DispositionNotificationTo'] = "<".$matches[0].">"; 562 if(preg_match('/[[:alnum:]\._\-]+@[[:alnum:]_\-\.]+/',$fields[0], $matches)){ 563 $return['DispositionNotificationTo'] = "<".$matches[0].">"; 564 } 564 565 } 565 566
Note: See TracChangeset
for help on using the changeset viewer.