On Thu, Sep 18, 2003 at 05:10:29PM -0700, Tim Hasson wrote: > BTW, > > I had a problem before where if I changed a user quota using vpop's > vsetuserquota, the maildirsize file in the user's maildir will automagically > get deleted, but never recreated by maildrop (for the domain I was doing > filtering for) So that's why i put the check in mailfilter script to see if > maildirsize needs to be recreated. > > Shouldn't maildrop create the maildirsize file if it doesn't exist? > > I think when I used vdelivermail, it created maildirsize when a new message > was received in the mailbox that didn't have maildirsize in place, but with > quota limit on it. > > Now, as far as I recall, Bill Shupp made the maildir++ patch based on the code > from maildrop, so I am not surprised it doesn't recreate the maildirsize > file ;-) > > Respectfully, > Tim Hasson
Hm.. maildrop creates maildirsize for me. Are you sure you're setting the MAILDIRQUOTA environment variable when you run maildrop? When I create a user, it creates all the maildrop recipes for that user, including one that sets MAILDIRQUOTA (in addition to setting the quota with vsetuserquota, which only seems to set it in the database). I've tested multiple times, and the maildirsize file behavior is what you'd expect; the file gets created on first delivery, and it gets recreated when it gets big. Naturally I don't expect maildrop to directly use vpopmail quota settings, which is why I set the variable. --Doug