From d4edf3acc634dd737707a4b1f414b6965c5a310e Mon Sep 17 00:00:00 2001 From: jaredj Date: Fri, 27 Feb 2009 16:44:59 -0600 Subject: [PATCH] Whitespace cleanups Remove some trailing spaces and replace some tabs with spaces --- lib/Qpsmtpd/Address.pm | 2 +- lib/Qpsmtpd/Postfix.pm | 4 ++-- lib/Qpsmtpd/SMTP.pm | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Qpsmtpd/Address.pm b/lib/Qpsmtpd/Address.pm index 1db3e06..444817a 100644 --- a/lib/Qpsmtpd/Address.pm +++ b/lib/Qpsmtpd/Address.pm @@ -182,7 +182,7 @@ address). It returns a list of (local-part, domain). # be overriden (in hook_pre_connection, for example) if people have # different needs. our $atom_expr = '[a-zA-Z0-9!#%&*+=?^_`{|}~\$\x27\x2D\/]+'; -our $address_literal_expr = +our $address_literal_expr = '(?:\[(?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|IPv6:[0-9A-Fa-f:.]+)\])'; our $subdomain_expr = '(?:[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?)'; our $domain_expr; diff --git a/lib/Qpsmtpd/Postfix.pm b/lib/Qpsmtpd/Postfix.pm index f3f5d11..4e69157 100644 --- a/lib/Qpsmtpd/Postfix.pm +++ b/lib/Qpsmtpd/Postfix.pm @@ -176,7 +176,7 @@ sub inject_mail { } # add an empty message length record. # cleanup is supposed to understand that. - # see src/pickup/pickup.c + # see src/pickup/pickup.c $strm->print_rec('REC_TYPE_MESG', ""); # a received header has already been added in SMTP.pm @@ -203,6 +203,6 @@ sub inject_mail { $strm->close(); return wantarray ? ($status, $qid, $reason || "") : $status; } - + 1; # vim:sw=2 diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm index d78bfe9..f669055 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -666,8 +666,8 @@ sub data_respond { $self->transaction->header($header); - # NOTE: This will not work properly under async. A - # data_headers_end_respond needs to be created. + # NOTE: This will not work properly under async. A + # data_headers_end_respond needs to be created. my ($rc, $msg) = $self->run_hooks('data_headers_end'); if ($rc == DENY_DISCONNECT) { $self->respond(554, $msg || "Message denied"); @@ -679,7 +679,7 @@ sub data_respond { return 1; } - # Save the start of just the body itself + # Save the start of just the body itself $self->transaction->set_body_start(); }