diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-14 13:11:24 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-14 13:11:24 -0700 |
commit | 732c6134ddfc6bb1df191c7967069e008d85acfb (patch) | |
tree | 67085cf722d107e4fbde772931591935f5505f03 /include/identity.php | |
parent | 578f1b8ece49c6b8aa8eb34e33f37f456d5a4d90 (diff) | |
download | volse-hubzilla-732c6134ddfc6bb1df191c7967069e008d85acfb.tar.gz volse-hubzilla-732c6134ddfc6bb1df191c7967069e008d85acfb.tar.bz2 volse-hubzilla-732c6134ddfc6bb1df191c7967069e008d85acfb.zip |
support for mail sync
Diffstat (limited to 'include/identity.php')
-rw-r--r-- | include/identity.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php index d84c22693..edf91f5bf 100644 --- a/include/identity.php +++ b/include/identity.php @@ -622,6 +622,31 @@ function identity_basic_export($channel_id, $items = false) { if($r) $ret['likes'] = $r; + + $r = q("select * from conv where uid = %d", + intval($channel_id) + ); + if($r) + $ret['conv'] = $r; + + + $r = q("select mail.*, conv.guid as conv_guid from mail left join conv on mail.convid = conv.id where mail.uid = %d", + intval($channel_id) + ); + if($r) { + $m = array(); + foreach($r as $rr) { + + + + + } + $ret['mail'] = $m; + } + + + + $r = q("select item_id.*, item.mid from item_id left join item on item_id.iid = item.id where item_id.uid = %d", intval($channel_id) ); |