develooper Front page | perl.qpsmtpd | Postings from June 2012

[PATCH] basicheaders: adding missing semicolon, fixed POD error

From:
Matt Simerson
Date:
June 3, 2012 15:55
Subject:
[PATCH] basicheaders: adding missing semicolon, fixed POD error
Message ID:
1338764118-36198-1-git-send-email-matt@tnpi.net
---
 plugins/check_basicheaders |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/check_basicheaders b/plugins/check_basicheaders
index 684b9a4..c72f229 100644
--- a/plugins/check_basicheaders
+++ b/plugins/check_basicheaders
@@ -35,7 +35,7 @@ I would be surprised if a valid message ever had a date header older than a week
 
 Determine if the connection is denied. Use the I<reject 0> option when first enabling the plugin, and then watch your logs to see what would have been rejected. When you are no longer concerned that valid messages will be rejected, enable with I<reject 1>.
 
-  check_basicheaders [ reject 0 | 1 ]
+  check_basicheaders reject [ 0 | 1 ]
 
 Default policy is to reject.
 
@@ -116,7 +116,7 @@ sub hook_data_post {
 
     if ( ! $header->get('From') ) {
         $self->log(LOGINFO, "fail: no from");
-        return ($deny, "We require a valid From header")
+        return ($deny, "We require a valid From header");
     };
 
     my $date = $header->get('Date') or do {
-- 
1.7.9.6




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About