[svn:qpsmtpd] r549 - in branches/0.31: config.sample lib
[email protected] 22 Sep 2005 17:29:14 -0000
| Newsgroups | perl.cvs.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
Author: jpeacock
Date: Thu Sep 22 10:29:13 2005
New Revision: 549
Added:
branches/0.31/config.sample/size_threshold
Modified:
branches/0.31/lib/Qpsmtpd.pm
Log:
* lib/Qpsmtpd.pm
By default, spool all messages to disk.
* config.sample/size_threshold
Provide minimal explanation for how to avoid spooling small messages.
Added: branches/0.31/config.sample/size_threshold
==============================================================================
--- (empty file)
+++ branches/0.31/config.sample/size_threshold Thu Sep 22 10:29:13 2005
@@ -0,0 +1,3 @@
+# Messages below the size below will be stored in memory and not spooled.
+# Without this file, the default is 0 bytes, i.e. all messages will be spooled.
+10000
Modified: branches/0.31/lib/Qpsmtpd.pm
==============================================================================
--- branches/0.31/lib/Qpsmtpd.pm (original)
+++ branches/0.31/lib/Qpsmtpd.pm Thu Sep 22 10:29:13 2005
@@ -418,7 +418,7 @@ sub temp_dir {
sub size_threshold {
my $self = shift;
unless ( defined $Size_threshold ) {
- $Size_threshold = $self->config('size_threshold') || 10_000;
+ $Size_threshold = $self->config('size_threshold') || 0;
$self->log(LOGNOTICE, "size_threshold set to $Size_threshold");
}
return $Size_threshold;