New bbcode element: "spoiler". Mail: Top post quotes are now embraced in "spoiler" elements

This commit is contained in:
Michael Vogel
2012-03-17 11:07:49 +01:00
parent b5120888cf
commit 8a1f175df0
6 changed files with 39 additions and 5 deletions

View File

@@ -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;