Page MenuHomePhorge

D2851.1775150930.diff
No OneTemporary

Authored By
Unknown
Size
925 B
Referenced Files
None
Subscribers
None

D2851.1775150930.diff

diff --git a/src/app/Policy/Greylist/Request.php b/src/app/Policy/Greylist/Request.php
--- a/src/app/Policy/Greylist/Request.php
+++ b/src/app/Policy/Greylist/Request.php
@@ -83,8 +83,10 @@
}
// Purge all old information if we have no recent entries
+ $noEntry = false;
if (!$this->findConnectsCollectionRecent()->exists()) {
$this->findConnectsCollection()->delete();
+ $noEntry = true;
}
// See if the recipient opted-out of the feature
@@ -185,7 +187,7 @@
$defer = true;
// Retrieve the entry for the sender/recipient/net combination
- if ($connect = $this->findConnectsCollection()->first()) {
+ if (!$noEntry && $connect = $this->findConnectsCollection()->first()) {
$connect->connect_count += 1;
// TODO: The period of time for which the greylisting persists is configurable.

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 2, 5:28 PM (2 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18820008
Default Alt Text
D2851.1775150930.diff (925 B)

Event Timeline