Mail update

This commit is contained in:
Torsten Schulz
2023-07-10 11:59:00 +02:00
parent 3be5858fe2
commit f99fa80a3f

View File

@@ -13,8 +13,11 @@ class Mailhandling extends Renderer {
protected function fetchEmail(): PhpImap\IncomingMail {
$mailsIds = $this->mbox->searchMailbox('ALL');
var_dump($mailsIds);
$mail = $this->mbox->getMail($mailsIds[0]);
if (!in_array($this->uid, $mailsId) {
echo 'nicht auffindbar';
die;
}
$mail = $this->mbox->getMail($this-uid);
var_dump($mail);
return $mail;
}