diff options
author | Michael Vogel <icarus@dabo.de> | 2012-03-17 11:07:49 +0100 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-03-17 11:07:49 +0100 |
commit | 8a1f175df022e2fc2c2162aa314ea34454482d48 (patch) | |
tree | 08daca362b42d402322787f4e69810c2999ff791 /include/poller.php | |
parent | b5120888cf6e3aac29aa2a8d80bddcab73822e1e (diff) | |
download | volse-hubzilla-8a1f175df022e2fc2c2162aa314ea34454482d48.tar.gz volse-hubzilla-8a1f175df022e2fc2c2162aa314ea34454482d48.tar.bz2 volse-hubzilla-8a1f175df022e2fc2c2162aa314ea34454482d48.zip |
New bbcode element: "spoiler". Mail: Top post quotes are now embraced in "spoiler" elements
Diffstat (limited to 'include/poller.php')
-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 3bc98e36f..085e95a6a 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; |