projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ef43e
)
Import/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Wed, 3 Mar 2021 09:05:25 +0000
(17:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 3 Mar 2021 09:05:25 +0000
(17:05 +0800)
Import/Core_email.php
patch
|
blob
|
history
diff --git
a/Import/Core_email.php
b/Import/Core_email.php
index
3116f51
..
c9ee274
100644
(file)
--- a/
Import/Core_email.php
+++ b/
Import/Core_email.php
@@
-118,6
+118,11
@@
class Pman_Core_Import_Core_email extends Pman
$headers = $parts[1];
$from = new Mail_RFC822();
$from_str = $from->parseAddressList($headers['From']);
+ if (is_a($from_str,'PEAR_Error')) {
+ echo $from_str->toString() . "\n";
+ exit;
+ }
+
$from_name = trim($from_str[0]->personal, '"');