Author: msergeant
Date: Thu Mar 10 10:18:28 2005
New Revision: 394

Modified:
   trunk/lib/Qpsmtpd/SMTP.pm
   trunk/lib/Qpsmtpd/Transaction.pm
Log:
body_write patches from Brian Grossman


Modified: trunk/lib/Qpsmtpd/SMTP.pm
==============================================================================
--- trunk/lib/Qpsmtpd/SMTP.pm   (original)
+++ trunk/lib/Qpsmtpd/SMTP.pm   Thu Mar 10 10:18:28 2005
@@ -472,7 +472,7 @@
         # save us buffering the mail content.
 
        # Save the start of just the body itself        
-       $self->transaction->body_start($size);
+       $self->transaction->set_body_start();
 
       }
 

Modified: trunk/lib/Qpsmtpd/Transaction.pm
==============================================================================
--- trunk/lib/Qpsmtpd/Transaction.pm    (original)
+++ trunk/lib/Qpsmtpd/Transaction.pm    Thu Mar 10 10:18:28 2005
@@ -107,10 +107,12 @@
     while ($$ref =~ m/\G(.*?\n)/gc) {
       push @{ $self->{_body_array} }, $1;
       $self->{_body_size} += length($1);
+      ++$self->{_body_current_pos};
     }
     if ($$ref =~ m/\G(.+)\z/gc) {
       push @{ $self->{_body_array} }, $1;
       $self->{_body_size} += length($1);
+      ++$self->{_body_current_pos};
     }
     if ($self->{_body_size} >= $self->{_size_threshold}) {
       #warn("spooling to disk\n");

Reply via email to