aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-28 19:57:28 -0700
committerfriendica <info@friendica.com>2012-03-28 19:57:28 -0700
commita946b7cea3e589fc08ca25d84e5d660efa5b3de6 (patch)
treeebf3ee7180161123f2befda27075c4a3a941853b /include/poller.php
parent60fe74ce970468be187664198529dbd8d5a01a6c (diff)
parent75f3d41da2d85cb61ac627807011c312b96e3bb1 (diff)
downloadvolse-hubzilla-a946b7cea3e589fc08ca25d84e5d660efa5b3de6.tar.gz
volse-hubzilla-a946b7cea3e589fc08ca25d84e5d660efa5b3de6.tar.bz2
volse-hubzilla-a946b7cea3e589fc08ca25d84e5d660efa5b3de6.zip
Merge branch 'pull'
Diffstat (limited to 'include/poller.php')
-rwxr-xr-xinclude/poller.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index 8262c1d60..90a97867c 100755
--- a/include/poller.php
+++ b/include/poller.php
@@ -504,7 +504,12 @@ function poller_run($argv, $argc){
//$datarray['title'] = notags(trim($meta->subject));
$datarray['created'] = datetime_convert('UTC','UTC',$meta->date);
- $r = email_get_msg($mbox,$msg_uid);
+ // Is it reply?
+ $reply = ((substr(strtolower($datarray['title']), 0, 3) == "re:") or
+ (substr(strtolower($datarray['title']), 0, 3) == "re-") or
+ (raw_refs != ""));
+
+ $r = email_get_msg($mbox,$msg_uid, $reply);
if(! $r) {
logger("Mail: can't fetch msg ".$msg_uid);
continue;