diff options
author | friendica <info@friendica.com> | 2013-02-27 20:38:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-27 20:38:33 -0800 |
commit | 8275f14cea622b4c5d82fba43859a1ca729c10a7 (patch) | |
tree | cc434e62a2379ddd94470daaa0ebe27c0e0eae3b /include/zot.php | |
parent | 5612716cff11039c64e1dba46bde5795f6b65c5c (diff) | |
download | volse-hubzilla-8275f14cea622b4c5d82fba43859a1ca729c10a7.tar.gz volse-hubzilla-8275f14cea622b4c5d82fba43859a1ca729c10a7.tar.bz2 volse-hubzilla-8275f14cea622b4c5d82fba43859a1ca729c10a7.zip |
mail recall - just set mail_flags = mail_flags & MAIL_RECALLED and tell the notifier. We'll need a special button for this. Also should probably report whether it was seen or not. Will do that another day.
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index 60fec9316..b72e966bf 100644 --- a/include/zot.php +++ b/include/zot.php @@ -999,7 +999,16 @@ function process_mail_delivery($sender,$arr,$deliveries) { intval($channel['channel_id']) ); if($r) { - logger('duplicate mail received'); + if($arr['mail_flags'] & MAIL_RECALLED) { + $x = q("delete from mail where id = %d and channel_id = %d limit 1", + intval($r[0]['id']), + intval($channel['channel_id']) + ); + logger('mail_recalled'); + } + else { + logger('duplicate mail received'); + } continue; } else { |