]> git.mxchange.org Git - friendica.git/commitdiff
email follow seems to be stabilising
authorFriendika <info@friendika.com>
Sun, 17 Apr 2011 22:24:24 +0000 (15:24 -0700)
committerFriendika <info@friendika.com>
Sun, 17 Apr 2011 22:24:24 +0000 (15:24 -0700)
include/Scrape.php

index 320e18edbf4e4e52e6b9f12af252f58c99f637b4..05a53e53866c443a796cec0c06908cabc32fbe7c 100644 (file)
@@ -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);
                                }