kopia lustrzana https://github.com/newroco/mail2deck
remove attachments from directory if card was not created.
rodzic
8d42b8c6d3
commit
27e908f2c3
|
@ -80,6 +80,11 @@ if ($emails)
|
||||||
$response = $newcard->addCard($data, $mailSender, $board);
|
$response = $newcard->addCard($data, $mailSender, $board);
|
||||||
$mailSender->userId .= "@{$overview->from[0]->host}";
|
$mailSender->userId .= "@{$overview->from[0]->host}";
|
||||||
|
|
||||||
($response) ? $inbox->reply($mailSender->userId, $response) : $inbox->reply($mailSender->userId);
|
if($response) {
|
||||||
|
$inbox->reply($mailSender->userId, $response);
|
||||||
|
} else {
|
||||||
|
$inbox->reply($mailSender->userId);
|
||||||
|
foreach($attNames as $attachment) unlink(getcwd() . "/attachments/" . $attachment);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Ładowanie…
Reference in New Issue