diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-14 13:19:28 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-14 13:19:28 -0700 |
commit | f4e708a02f70e0ca2dbe43419d6f1c92ff2000e9 (patch) | |
tree | 967b8738a06d5e67ba72698f96b5215034493a68 | |
parent | c7637a0c5394ae04c8abf1281043ca717a75e1cd (diff) | |
download | volse-hubzilla-f4e708a02f70e0ca2dbe43419d6f1c92ff2000e9.tar.gz volse-hubzilla-f4e708a02f70e0ca2dbe43419d6f1c92ff2000e9.tar.bz2 volse-hubzilla-f4e708a02f70e0ca2dbe43419d6f1c92ff2000e9.zip |
port of mail encoding
-rwxr-xr-x | include/items.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/items.php b/include/items.php index e69e83b83..5569cd1e4 100755 --- a/include/items.php +++ b/include/items.php @@ -1594,13 +1594,13 @@ function encode_mail($item,$extended = false) { if($extended) { $x['conv_guid'] = $item['conv_guid']; - if($item['mail_flags'] & MAIL_DELETED) + if(intval($item['mail_deleted'])) $x['flags'][] = 'deleted'; - if($item['mail_flags'] & MAIL_REPLIED) + if(intval($item['mail_replied'])) $x['flags'][] = 'replied'; - if($item['mail_flags'] & MAIL_ISREPLY) + if(intval($item['mail_isreply'])) $x['flags'][] = 'isreply'; - if($item['mail_flags'] & MAIL_SEEN) + if(intval($item['mail_seen'])) $x['flags'][] = 'seen'; } @@ -1629,16 +1629,16 @@ function get_mail_elements($x) { $arr['mail_recalled'] = 1; } if(in_array('replied',$x['flags'])) { - $arr['mail_flags'] |= MAIL_REPLIED; + $arr['mail_replied'] = 1; } if(in_array('isreply',$x['flags'])) { - $arr['mail_flags'] |= MAIL_ISREPLY; + $arr['mail_isreply'] = 1; } if(in_array('seen',$x['flags'])) { - $arr['mail_flags'] |= MAIL_SEEN; + $arr['mail_seen'] = 1; } if(in_array('deleted',$x['flags'])) { - $arr['mail_flags'] |= MAIL_DELETED; + $arr['mail_deleted'] = 1; } } |