-version 2.7 - Sacred Grove ()
+version 2.7 - Sacred Grove (2022-06-12)
+ Fixed bug #12. Missing translation key
+ Adapted some new PHP code formatting
+ New syntax in config file. See update.txt for more details
+ Fixed #13
+ Fixed #15
- # Fixed #14
+ + Fixed #14
+ + Fixed some small email importer notices and warnings
version 2.6 - Hypostyle (2021-03-21)
If you activate EMAIL_JOB_PROTECT you NEED to set an individual string in EMAIL_JOB_PROTECT_SECRET
AND remove the provided .htaccess file in the job folder.
+cli: php email-import.php ----hiddenSouce=EMAIL_JOB_PROTECT_SECRET
+webaccess: email-import.php?hiddenSouce=EMAIL_JOB_PROTECT_SECRET
+
Use the following settings in the config file:
define('EMAIL_JOB_PROTECT', false); => Set to true if you want this kind of "protection"
-define('EMAIL_JOB_PROTECT_SECRET', 'YOUR_SOME_SECRET_STRING'); => Change to your liking
\ No newline at end of file
+define('EMAIL_JOB_PROTECT_SECRET', 'YOUR_SOME_SECRET_STRING'); => Change to your liking
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2020 Johannes Keßler
+ * Copyright 2016-2022 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
# time settings
date_default_timezone_set('Europe/Berlin');
-define('DEBUG',false);
+const DEBUG = false;
## set the error reporting
ini_set('log_errors',true);
foreach($emails as $emailId=>$emailData) {
$links = EmailImportHelper::extractEmailLinks($emailData['body']);
if(!empty($links)) {
- if(DEBUG === true) var_dump($links);
+ if(DEBUG === true) var_dump("Links in email:",$links);
foreach($links as $linkstring) {
# defaults
if (!filter_var($newdata['link'], FILTER_VALIDATE_URL)) {
error_log("ERROR Invalid URL: ".var_export($newdata['link'],true));
- if(DEBUG === true) var_dump($newdata['link']);
+ if(DEBUG === true) var_dump("Invalid URL:", $newdata['link']);
continue;
}
continue;
}
- if(DEBUG === true) var_dump($newdata);
+ if(DEBUG === true) var_dump("New data", $newdata);
$linkObj = new Link($DB);
$linkID = false;
}
}
}
-
}
}
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2021 Johannes Keßler
+ * Copyright 2016-2022 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
*/
function __construct() {
# create the mailboxstring
- $this->_connectionstring = '{'.$this->_server.':'.$this->_port.'/imap/ssl}';
+ $this->_connectionstring = '{'.$this->_server.':'.$this->_port.'/imap/ssl/novalidate-cert}';
}
/**
*
*/
function __destruct() {
- imap_close($this->_connection);
+ //imap_close($this->_connection);
}
/**
break;
case ENC7BIT: # 0 7BIT
- $ret = imap_qprint($body);
+ // imap_qprint($body); does throws notices
+ $ret = quoted_printable_decode($body);
break;
case ENCOTHER: # 5 OTHER