do not store a recalled mail if we can not find the original mid

This commit is contained in:
Mario Vavti 2015-09-29 11:48:41 +02:00
parent b3525b8657
commit 0b1cd826b0

View File

@ -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')) {