diff --git a/app/Console/Commands/FetchEmails.php b/app/Console/Commands/FetchEmails.php index a5c7f832..bddcb1cc 100644 --- a/app/Console/Commands/FetchEmails.php +++ b/app/Console/Commands/FetchEmails.php @@ -279,11 +279,12 @@ class FetchEmails extends Command $original_from = $this->formatEmailList($message->getFrom()); $original_from = $original_from[0]; $is_bounce = preg_match('/^mailer\-daemon@/i', $original_from); + $this->line('['.date('Y-m-d H:i:s').'] Bounce detected by From header: '.$original_from); } } // Check Return-Path header if (!$is_bounce && preg_match("/^Return\-Path: <>/i", $headers)) { - $this->line('['.date('Y-m-d H:i:s').'] bounce detected from return-path'); + $this->line('['.date('Y-m-d H:i:s').'] Bounce detected by Return-Path header.'); $is_bounce = true; }