Absenderpruefung bei PayPal-Mails entfernen

This commit is contained in:
2026-08-22 00:03:48 +02:00
parent 43d0fc5578
commit a0d8c62082
6 changed files with 78 additions and 52 deletions
+4 -3
View File
@@ -26,7 +26,8 @@ if (PHP_SAPI !== 'cli') {
}
require_once __DIR__ . '/../app/bootstrap.php';
// paypal_from_is_paypal() fuer die Absenderpruefung in der Auflistung.
// paypal_from_is_paypal() - in der Auflistung nur als Information; die
// Verarbeitung selbst prueft den Absender nicht.
require_once __DIR__ . '/../app/paypal-inbox.php';
function imap_check_line(string $label, string $value): void
@@ -192,13 +193,13 @@ if (function_exists('imap_open')) {
}
$from = (string) ($overview->from ?? '');
printf(
"#%-3d %s Von: %s\n An: %s\n Betreff: %s\n Absender gilt als PayPal: %s\n",
"#%-3d %s Von: %s\n An: %s\n Betreff: %s\n Absender sieht nach PayPal aus: %s\n",
$msgno,
(int) ($overview->seen ?? 0) === 1 ? 'gelesen ' : 'UNGELESEN',
$from,
implode(' | ', $empfaenger) !== '' ? implode(' | ', $empfaenger) : '(keine Empfaengerzeile gefunden)',
(string) ($overview->subject ?? ''),
paypal_from_is_paypal($from) ? 'ja' : 'NEIN - deshalb not_from_paypal'
paypal_from_is_paypal($from) ? 'ja' : 'nein (wird trotzdem verarbeitet)'
);
}
imap_close($mbox);