mailimport: Bug that prevented mails to be imported
This commit is contained in:
parent
4164257cb2
commit
fc816feb6d
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ function onepoll_run(&$argv, &$argc){
|
||||||
// If it seems to be a reply but a header couldn't be found take the last message with matching subject
|
// If it seems to be a reply but a header couldn't be found take the last message with matching subject
|
||||||
if(!x($datarray,'parent-uri') and $reply) {
|
if(!x($datarray,'parent-uri') and $reply) {
|
||||||
$r = q("SELECT `uri` , `parent-uri` FROM `item` WHERE MATCH (`title`) AGAINST ('".'"%s"'."' IN BOOLEAN MODE) ORDER BY `created` DESC LIMIT 1",
|
$r = q("SELECT `uri` , `parent-uri` FROM `item` WHERE MATCH (`title`) AGAINST ('".'"%s"'."' IN BOOLEAN MODE) ORDER BY `created` DESC LIMIT 1",
|
||||||
besc(protect_sprintf($datarray['title'])));
|
dbesc(protect_sprintf($datarray['title'])));
|
||||||
if(count($r))
|
if(count($r))
|
||||||
$datarray['parent-uri'] = $r[0]['parent-uri'];
|
$datarray['parent-uri'] = $r[0]['parent-uri'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue