diff options
author | Friendika <info@friendika.com> | 2011-04-17 15:24:24 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-17 15:24:24 -0700 |
commit | 7cc5a9bba9ee892bac41fe3af4ae00da846ca96a (patch) | |
tree | b6fb7a1734807d1a48782a86b315a49781cddb6a | |
parent | 12571c42f12610e88e0159e1463de931269e033f (diff) | |
download | volse-hubzilla-7cc5a9bba9ee892bac41fe3af4ae00da846ca96a.tar.gz volse-hubzilla-7cc5a9bba9ee892bac41fe3af4ae00da846ca96a.tar.bz2 volse-hubzilla-7cc5a9bba9ee892bac41fe3af4ae00da846ca96a.zip |
email follow seems to be stabilising
-rw-r--r-- | include/Scrape.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Scrape.php b/include/Scrape.php index 320e18edb..05a53e538 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -339,11 +339,15 @@ function probe_url($url) { $network = NETWORK_MAIL; $name = substr($url,0,strpos($url,'@')); $profile = 'http://' . substr($url,strpos($url,'@')+1); - // fix nick + // fix nick character range $vcard = array('fn' => $name, 'nick' => $name, 'photo' => gravatar_img($url)); $notify = 'smtp'; $poll = 'email'; $priority = 0; + $x = email_msg_meta($mbox,$msgs[0]); + $adr = imap_rfc822_parse_adrlist($x->from,''); + if(strlen($adr[0]->personal)) + $vcard['fn'] = notags($adr[0]->personal); } imap_close($mbox); } |