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

@@ -74,7 +74,7 @@ function email_msg_headers($mbox,$uid) {
}
function email_get_msg($mbox,$uid) {
function email_get_msg($mbox,$uid, $reply) {
$ret = array();
$struc = (($mbox && $uid) ? @imap_fetchstructure($mbox,$uid,FT_UID) : null);
@@ -114,7 +114,7 @@ function email_get_msg($mbox,$uid) {
$ret['body'] = removegpg($ret['body']);
$msg = removesig($ret['body']);
$ret['body'] = $msg['body'];
$ret['body'] = convertquote($ret['body'], false);
$ret['body'] = convertquote($ret['body'], $reply);
if (trim($html) != '')
$ret['body'] = removelinebreak($ret['body']);