[tpop3d-discuss][PATCH]: delete maildirsize file if it exists; be nicer for Maildir++ folders

Chris Lightfoot chris at ex-parrot.com
Sat, 10 Dec 2005 11:09:26 +0000


On Fri, Dec 09, 2005 at 10:03:25AM +0100, Arkadiusz Miskiewicz wrote:
> 
> Hi,
> 
> Currently tpop3d isn't capable of working with Maildir++
> folders.
> 
> Each application accessing Maildir++ folder is supposed to update
> maildir/maildirsize file after changing Maildir++ contents. The problem
> is that tpop3d isn't doing that and we end up with maildirsize containing
> data about already deleted messages (which fools quota calculation
> in maildir++ capable software).
> 
> The attached patch makes tpop3d usefull in such cases by just
> removing maildirsize file when there were some deletions of messages.
> The other Maildir++ capable software accessing maildir will just recreate
> maildirsize file. 
> 
> Please apply, it's agains cvs version from about month ago.

Thanks for this -- I've applied a slightly shorter version
in CVS.

-- 
``[These atrocities] -- they all happened, and they did not happen
  any the less because the Daily Telegraph has suddenly found out
  about them when it is five years too late.''
  (George Orwell, Looking Back on the Spanish War, 1942)