>Putting the linecount in there makes more sense. Some MUAs might be happy
>about that, and it still allows easy calculation of wiresize (add
>number of lines to physical size). More info, less bytes :)
>
>> Optimally the wire-size is calculated when the mail is written to
>> Maildir/tmp/ and then applied as an "info" flag when the file is moved
>> to Maildir/new/.
>
>Yes. Mind the performance penalty tho.

Not a bad idea.  The performance penalty would be tiny, reading buffers
that are about to be written out won't cause an extra page fault.

>> A possible complication with this approach is that my reading of
>> Maildir infers that "info" can only be set when the file moves from
>> Maildir/new/ to Maildir/cur/.
>
>That's what the spec says, indeed. A delivery process is not supposed
>to know anything, so :info is not needed in new/.

Gee, we find that even Dan isn't infallible.  In retrospect, there's all
sorts of hints that the delivery process could leave.

-- 
John R. Levine, IECC, POB 727, Trumansburg NY 14886 +1 607 387 6869
[EMAIL PROTECTED], Village Trustee and Sewer Commissioner, http://iecc.com/johnl, 
Member, Provisional board, Coalition Against Unsolicited Commercial E-mail

Reply via email to