aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-28 08:11:40 +0000
committerMario <mario@mariovavti.com>2021-05-28 08:11:40 +0000
commit0718ac514d2421a96ab191f874a0cd8b120a5a78 (patch)
tree61640e142ee1412b2fa2856d1ec09807cf4be0bc /include/channel.php
parentd289994da4b7717199abf8bf8d43b1a021f250fe (diff)
downloadvolse-hubzilla-0718ac514d2421a96ab191f874a0cd8b120a5a78.tar.gz
volse-hubzilla-0718ac514d2421a96ab191f874a0cd8b120a5a78.tar.bz2
volse-hubzilla-0718ac514d2421a96ab191f874a0cd8b120a5a78.zip
remove deprecated mail code
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/channel.php b/include/channel.php
index e44fa01f2..91e2c37bd 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -770,7 +770,6 @@ function get_default_export_sections() {
'chatrooms',
'events',
'webpages',
- 'mail',
'wikis'
];
@@ -1091,30 +1090,6 @@ function identity_basic_export($channel_id, $sections = null, $zap_compat = fals
}
}
- if(in_array('mail',$sections)) {
- $r = q("select * from conv where uid = %d",
- intval($channel_id)
- );
- if($r) {
- for($x = 0; $x < count($r); $x ++) {
- $r[$x]['subject'] = base64url_decode(str_rot47($r[$x]['subject']));
- }
- $ret['conv'] = $r;
- }
-
- $r = q("select * from mail where channel_id = %d",
- intval($channel_id)
- );
- if($r) {
- $m = array();
- foreach($r as $rr) {
- xchan_mail_query($rr);
- $m[] = encode_mail($rr,true);
- }
- $ret['mail'] = $m;
- }
- }
-
if(in_array('wikis',$sections)) {
$r = q("select * from item where resource_type like 'nwiki%%' and uid = %d order by created",
intval($channel_id)