Add signatures processing for private messages
This commit is contained in:
parent
abeb924554
commit
86f4a8d33a
@ -1457,6 +1457,7 @@ function encode_mail($item,$extended = false) {
|
|||||||
$x['to'] = encode_item_xchan($item['to']);
|
$x['to'] = encode_item_xchan($item['to']);
|
||||||
$x['raw'] = $item['mail_raw'];
|
$x['raw'] = $item['mail_raw'];
|
||||||
$x['mimetype'] = $item['mail_mimetype'];
|
$x['mimetype'] = $item['mail_mimetype'];
|
||||||
|
$x['sig'] = $item['sig'];
|
||||||
|
|
||||||
if($item['attach'])
|
if($item['attach'])
|
||||||
$x['attach'] = json_decode($item['attach'],true);
|
$x['attach'] = json_decode($item['attach'],true);
|
||||||
@ -1517,6 +1518,9 @@ function get_mail_elements($x) {
|
|||||||
|
|
||||||
$arr['mail_flags'] = 0;
|
$arr['mail_flags'] = 0;
|
||||||
|
|
||||||
|
if(array_key_exists('sig',$x))
|
||||||
|
$arr['sig'] = $x['sig'];
|
||||||
|
|
||||||
if($x['flags'] && is_array($x['flags'])) {
|
if($x['flags'] && is_array($x['flags'])) {
|
||||||
if(in_array('recalled',$x['flags'])) {
|
if(in_array('recalled',$x['flags'])) {
|
||||||
$arr['mail_recalled'] = 1;
|
$arr['mail_recalled'] = 1;
|
||||||
|
Reference in New Issue
Block a user