Using qpsmtpd latest:
r...@hive1:# git-describe
v0.84-36-g0b0e4e9
In lib/Qpsmtpd/Transaction.pm I see...
$self->body_spool if ( $self->{_body_size} >= $self->size_threshold() );
I have config/size_threshold set to 10000.
Starting qpsmtpd, the log shows:
14886 in config(size_threshold)
14886 config(size_threshold): hook returned (0, )
14886 trying to get config for size_threshold
14886 setting _config_cache for size_threshold to [10000] from
get_qmail_config and returning it
14886 size_threshold set to 10000
Dumping the transaction hash for a small message I see...
"_body_array" => undef,
"_body_current_pos" => 9,
"_body_file" => bless( \*Symbol::GEN6, 'IO::File' ),
"_body_size" => 213,
"_body_start" => 188,
"_filename" => "/root/tmp/1287166697:13580:0",
_body_size is 213 which is smaller than 10000.
_body_array should be set and _body_file/_filename should be
unset, with the message held in memory.
The body_filename() is never called in any plugins I'm using.
Someone let me know how to turn off spooling for small messages.
Thanks.
--
Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com for the easy way!