* lib/Qpsmtpd.pm
By default, spool all messages to disk. * config.sample/size_threshold Provide minimal explanation for how to avoid spooling small messages. git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.31@549 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
29ac60322e
commit
4b3fdf50bd
3
config.sample/size_threshold
Normal file
3
config.sample/size_threshold
Normal file
@ -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
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user