cvs commit: qpsmtpd/plugins sender_permitted_from

[email protected] (Ask Bjoern Hansen)
Newsgroups perl.cvs.qpsmtpd
Message-ID <[email protected]>
cvsuser     03/07/07 20:12:04

  Modified:    plugins  sender_permitted_from
  Log:
  default the  header to "unknown"
  
  Revision  Changes    Path
  1.4       +4 -2      qpsmtpd/plugins/sender_permitted_from
  
  Index: sender_permitted_from
  ===================================================================
  RCS file: /cvs/public/qpsmtpd/plugins/sender_permitted_from,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -r1.3 -r1.4
  --- sender_permitted_from	27 Jun 2003 23:00:52 -0000	1.3
  +++ sender_permitted_from	8 Jul 2003 03:12:04 -0000	1.4
  @@ -76,7 +76,9 @@
   sub data_handler {
       my ($self, $transaction) = @_;
       
  -    $transaction->header->add('Received-SPF' => $self->qp->connection->notes('spf_header'), 0);
  +    my $header = $self->qp->connection->notes('spf_header') || 'unknown';
  +
  +    $transaction->header->add('Received-SPF' => $header, 0);
   
       return DECLINED;
   }
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.