aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php11
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 {