Skip to content

Commit af7430f

Browse files
committed
removed $email->isValid(), because it always returns false
1 parent ed796b5 commit af7430f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Routing/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function createRoute(string $subject, string $pattern, $action): Route
8383

8484
public function callMailboxes(InboundEmail $email)
8585
{
86-
if ($email->isValid()) {
86+
// if ($email->isValid()) {
8787
$matchedRoutes = $this->routes->match($email)->map(function (Route $route) use ($email) {
8888
$route->run($email);
8989
});
@@ -101,7 +101,7 @@ public function callMailboxes(InboundEmail $email)
101101
if ($this->shouldStoreInboundEmails() && $this->shouldStoreAllInboundEmails($matchedRoutes)) {
102102
$this->storeEmail($email);
103103
}
104-
}
104+
// }
105105
}
106106

107107
protected function shouldStoreInboundEmails(): bool

0 commit comments

Comments
 (0)