[PATCH] fixed spelling error, added spf code to notes

[email protected] (Matt Simerson)
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
---
plugins/sender_permitted_from |    3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/sender_permitted_from b/plugins/sender_permitted_from
index 4204b93..1ba1254 100644
--- a/plugins/sender_permitted_from
+++ b/plugins/sender_permitted_from
@@ -56,7 +56,7 @@ sub hook_mail {
    my $from      = $sender->user . '@' . lc($sender->host);
    my $helo      = $self->qp->connection->hello_host;

-    # If we are receving from a relay permitted host, then we are probably
+    # If we are receiving from a relay permitted host, then we are probably
    # not the delivery system, and so we shouldn't check
    return (DECLINED, "SPF - relaying permitted")
      if $self->qp->connection->relay_client();
@@ -94,6 +94,7 @@ sub hook_mail {
    my $result     = $spf_server->process($request);

    $transaction->notes('spfquery', $result);
+    $transaction->notes('spfcode', $result->code);

    return (OK) if $result->code eq 'pass';    # this test passed
    return (DECLINED, "SPF - $result->code");
-- 
1.7.9.6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.