On Tue, 5 Dec 2006 13:43:03 -0800 Ask Bjørn Hansen <[EMAIL PROTECTED]>
wrote:
> On Dec 5, 2006, at 9:29, Hanno Hecker wrote:
> > - body_length() - returns the current length of the body of the
> > email
> >     (including the empty line between header and body), no matter if
> >     it's spooled to disk or not. This is not the same as
> >     body_size(), which returns the size of the full message, as
> >     received by the client.
> 
> Maybe we should rename body_size to message_(length|size)?    (Of  
> course keep body_size working, but deprecating it...)
>From me you get a go.

For message_(length|size) the docs must state that this is not the size
of the message, that will be queued, which is 
  $transaction->body_length + length($transaction->headers->as_string)
    (+ at least our Received header if we're not in hook_queue())

[ I needed a while to figure out why a netstring constructed from
body_size() + headers->as_string or just body_size() was invalid :) ]

        Hanno

Reply via email to