diff options
Diffstat (limited to 'include/poller.php')
-rw-r--r--[-rwxr-xr-x] | include/poller.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php index 8262c1d60..90a97867c 100755..100644 --- 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; |