aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-17 11:07:49 +0100
committerMichael Vogel <icarus@dabo.de>2012-03-17 11:07:49 +0100
commit8a1f175df022e2fc2c2162aa314ea34454482d48 (patch)
tree08daca362b42d402322787f4e69810c2999ff791 /include/poller.php
parentb5120888cf6e3aac29aa2a8d80bddcab73822e1e (diff)
downloadvolse-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-xinclude/poller.php7
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;