aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-09-29 11:48:41 +0200
committerMario Vavti <mario@mariovavti.com>2015-09-29 11:48:41 +0200
commit0b1cd826b05b6ec9637e373735967a2555eeb1d4 (patch)
treeba5bdbec97156d008c0bfa767f33e30b450faabd /include
parentb3525b865784ff5d2d5a76b913b8c86d139cc0f3 (diff)
downloadvolse-hubzilla-0b1cd826b05b6ec9637e373735967a2555eeb1d4.tar.gz
volse-hubzilla-0b1cd826b05b6ec9637e373735967a2555eeb1d4.tar.bz2
volse-hubzilla-0b1cd826b05b6ec9637e373735967a2555eeb1d4.zip
do not store a recalled mail if we can not find the original mid
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 7793d1fb2..ccc327409 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3522,11 +3522,17 @@ function mail_store($arr) {
dbesc($arr['mid']),
intval($arr['channel_id'])
);
+
if($r) {
logger('mail_store: duplicate item ignored. ' . print_r($arr,true));
return 0;
}
+ if(! $r && $arr['mail_recalled'] = 1) {
+ logger('mail_store: recalled item not found. ' . print_r($arr,true));
+ return 0;
+ }
+
call_hooks('post_mail',$arr);
if(x($arr,'cancel')) {