do not store a recalled mail if we can not find the original mid
This commit is contained in:
parent
b3525b8657
commit
0b1cd826b0
@ -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')) {
|
||||
|
Reference in New Issue
Block a user