On Tue, 20 May 2008 14:19:57 +0200 Jose Luis Martinez <[EMAIL PROTECTED]> wrote: > Just wanted to know what the qp gurus think about applying the > following patch to queue/qmail-queue [...] > Will doing this affect neagtively the other Transaction.pm body_xxx > methods? [...] No, but see below (body_filename)
> Also: I chose 4KB chunks because that seems the buffer size of lots of > devices. Any pointers on the recommended way of retrieving a better > buffer size from body_fh, for example? Matt told me to try with 1MB blocks, the perl-io layer does the rest :) [...] > + my $input = $transaction->body_fh; This may be undef, depending on your "size_threshold" config file... (default seems to be zero, but the sample sets this to 10_000). To force spooling to disk and get an fh, call $transaction->body_filename before $transaction->body_fh. If you to patch it, take a look in docs/plugins.pod and see how it's done in the QMQP queueing plugin. Hanno