diff options
author | Mario <mario@mariovavti.com> | 2021-08-17 18:18:52 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-08-17 18:18:52 +0000 |
commit | dd296e1aaa3c7b992d7ec71a50ce92f74f78ca06 (patch) | |
tree | 24e77d206f0f719264fb8d0b66f5710c90db912a /Zotlabs | |
parent | c3bbc35e84bc8517064a55e362aeefb905d910b4 (diff) | |
download | volse-hubzilla-dd296e1aaa3c7b992d7ec71a50ce92f74f78ca06.tar.gz volse-hubzilla-dd296e1aaa3c7b992d7ec71a50ce92f74f78ca06.tar.bz2 volse-hubzilla-dd296e1aaa3c7b992d7ec71a50ce92f74f78ca06.zip |
more legacy mail cleanup - issue #1595
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Daemon/Cron.php | 7 | ||||
-rw-r--r-- | Zotlabs/Module/Dreport.php | 24 |
2 files changed, 0 insertions, 31 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php index 29a8902b0..c0a190c8e 100644 --- a/Zotlabs/Daemon/Cron.php +++ b/Zotlabs/Daemon/Cron.php @@ -48,13 +48,6 @@ class Cron { db_quoteinterval('3 MINUTE') ); - // expire any expired mail - - q("delete from mail where expires > '%s' and expires < %s ", - dbesc(NULL_DATE), - db_utcnow() - ); - require_once('include/account.php'); remove_expired_registrations(); diff --git a/Zotlabs/Module/Dreport.php b/Zotlabs/Module/Dreport.php index 50d1647c8..8906a4f81 100644 --- a/Zotlabs/Module/Dreport.php +++ b/Zotlabs/Module/Dreport.php @@ -46,15 +46,6 @@ class Dreport extends \Zotlabs\Web\Controller { goaway(z_root() . '/dreport/' . (($encoded_mid) ? $encoded_mid : $mid)); } - if($mid === 'mail') { - $table = 'mail'; - $mid = ((argc() > 2) ? argv(2) : ''); - if(strpos($mid,'b64.') === 0) - $mid = @base64url_decode(substr($mid,4)); - - } - - if(! $mid) { notice( t('Invalid message') . EOL); return; @@ -68,12 +59,6 @@ class Dreport extends \Zotlabs\Web\Controller { dbesc($channel['channel_hash']) ); break; - case 'mail': - $i = q("select id from mail where mid = '%s' and from_xchan = '%s'", - dbesc($mid), - dbesc($channel['channel_hash']) - ); - break; default: break; } @@ -131,15 +116,6 @@ class Dreport extends \Zotlabs\Web\Controller { case 'recipient not found': $r[$x]['dreport_result'] = t('recipient not found'); break; - case 'mail recalled': - $r[$x]['dreport_result'] = t('mail recalled'); - break; - case 'duplicate mail received': - $r[$x]['dreport_result'] = t('duplicate mail received'); - break; - case 'mail delivered': - $r[$x]['dreport_result'] = t('mail delivered'); - break; default: $r[$x]['gravity'] = 1; break; |