On Tue, 2009-03-10 at 10:34 -0500, Matt Brookings wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Rick Romero wrote:
> > I may be a little out of date, but since I assume altering quota support
> > would mean altering vdelivermail as well - can we 'add dovecot support'
> > into vdelivermail?
> 
> Actually, no.  Altering quota support is done in maildirquota.c.  None of
> the binary sources associated with vpopmail are expected to change, just the
> vpopmail library they link in.

Gotcha.  I'll have to look at the latest version.  My 5.4.17 has a
read_quota_from_maildir() function that does a little with that file.

> > I have slow large POP mailboxes - due to Dovecot's indexes/uid
> > gathering.  I can't replace vdelivermail with dovecot's deliver to fix
> > that because of how I've done some things.  As I understand it, another
> > possible way to speed POP up is to add the ,W=<vsize> to Maildir
> > filenames which I don't currently have done.
> 
> I'm not familiar with the W part since it's not part of the Maildir++ 
> specification.
> What is the W setting and what is vsize?
> 
> I don't see why adding it would be a huge deal.

According to the Dovecot wiki, W= size including CR/LFs(?).  From my old
vdelivermail source, it looks like:

snprintf(local_file_tmp, sizeof(local_file_tmp), "%stmp/%lu.%lu.%.32s,S=
%lu", maildir, tm, pid, hostname, (long unsigned) msgsize);
snprintf(local_file_new, sizeof(local_file_new), "%snew/%lu.%lu.%.32s,S=
%lu", maildir, tm, pid, hostname, (long unsigned) msgsize);

Could be changed to:

snprintf(local_file_tmp, sizeof(local_file_tmp), "%stmp/%lu.%lu.%.32s,S=
%lu,W=%lu", maildir, tm, pid, hostname, (long unsigned) msgsize,(long
unsigned) msgsize);
snprintf(local_file_new, sizeof(local_file_new), "%snew/%lu.%lu.%.32s,S=
%lu,W=%lu", maildir, tm, pid, hostname, (long unsigned) msgsize, (long
unsigned) msgsize);

Right?

I don't know if any real performace would be had from that, but it seems like a 
harmless change on the surface :)

Rick


!DSPAM:49b68d0e32681885610133!

Reply via email to