diff options
author | friendica <info@friendica.com> | 2012-06-05 19:28:04 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-05 19:28:04 -0700 |
commit | 5389efffa9c8d2da40bf6ea448562ae67538e0d4 (patch) | |
tree | 231aff8915a99e3f2098ccd28b095077088a70e0 /include/Scrape.php | |
parent | ae08d2c49b042780d87e17b73d8bb7c4b99263da (diff) | |
download | volse-hubzilla-5389efffa9c8d2da40bf6ea448562ae67538e0d4.tar.gz volse-hubzilla-5389efffa9c8d2da40bf6ea448562ae67538e0d4.tar.bz2 volse-hubzilla-5389efffa9c8d2da40bf6ea448562ae67538e0d4.zip |
add email probe logging, limit typo check to main addon files and skip additional support files
Diffstat (limited to 'include/Scrape.php')
-rw-r--r-- | include/Scrape.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Scrape.php b/include/Scrape.php index 227252600..ca8f6e83a 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -435,10 +435,13 @@ function probe_url($url, $mode = PROBE_NORMAL) { $password = ''; openssl_private_decrypt(hex2bin($r[0]['pass']),$password,$x[0]['prvkey']); $mbox = email_connect($mailbox,$r[0]['user'],$password); + if(! $mbox) + logger('probe_url: email_connect failed.'); unset($password); } if($mbox) { $msgs = email_poll($mbox,$orig_url); + logger('probe_url: searching ' . $orig_url . ', ' . count($msgs) . ' messages found.', LOGGER_DEBUG); if(count($msgs)) { $addr = $orig_url; $network = NETWORK_MAIL; |