mirror of
https://github.com/friendica/friendica
synced 2025-04-26 14:30:13 +00:00
email integration, cont.
This commit is contained in:
parent
7cc5a9bba9
commit
ab099e9102
17 changed files with 433 additions and 30 deletions
|
@ -322,7 +322,7 @@ function probe_url($url) {
|
|||
$x = q("SELECT `prvkey` FROM `user` WHERE `uid` = %d LIMIT 1",
|
||||
intval(local_user())
|
||||
);
|
||||
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d LIMIT 1",
|
||||
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1",
|
||||
intval(local_user())
|
||||
);
|
||||
if(count($x) && count($r)) {
|
||||
|
@ -341,8 +341,8 @@ function probe_url($url) {
|
|||
$profile = 'http://' . substr($url,strpos($url,'@')+1);
|
||||
// fix nick character range
|
||||
$vcard = array('fn' => $name, 'nick' => $name, 'photo' => gravatar_img($url));
|
||||
$notify = 'smtp';
|
||||
$poll = 'email';
|
||||
$notify = 'smtp ' . random_string();
|
||||
$poll = 'email ' . random_string();
|
||||
$priority = 0;
|
||||
$x = email_msg_meta($mbox,$msgs[0]);
|
||||
$adr = imap_rfc822_parse_adrlist($x->from,'');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue