On Sun, Mar 11, 2001 at 07:37:06PM +0000, Mark Delany wrote:
[snip]
> > I use courier-imap, and its POP daemon does get the sizes right,
> > presumably by reading the files and adding the number of \n characters.
>
> A more sensible strategy might be to introduce a new "info" flag (say
> '3' equals POP wire size) on the filename, eg, a 10,000 byte email has
> a name something like this:
>
> Maildir/new/980195114.16740.geex:2,RS3,10000
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.
> 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/.
Greetz, Peter.