projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b8da76
)
Import/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Mon, 9 Feb 2015 10:20:11 +0000
(18:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 9 Feb 2015 10:20:11 +0000
(18:20 +0800)
Import/Core_email.php
patch
|
blob
|
history
diff --git
a/Import/Core_email.php
b/Import/Core_email.php
index
df29da1
..
8401763
100644
(file)
--- a/
Import/Core_email.php
+++ b/
Import/Core_email.php
@@
-49,10
+49,13
@@
class Pman_Core_Import_Core_email extends Pman
require_once 'Mail/mimeDecode.php';
$decoder = new Mail_mimeDecode($mailtext);
$parts = $decoder->getSendArray();
- print_R($parts);exit;
+ $headers = $parts[1];
+ $from = $headers['From'];
$from_name = explode(" ", $parts[0])[0];
$from_email = explode(" ", $parts[0])[1];
+
+
$c->setFrom(array(
'from_name' => trim($from_name, '"'),
'from_email' => $from_email,