On Thu, 1 Nov 2001, Aaron Johnson wrote: > Davide Libenzi wrote: > > > On Wed, 31 Oct 2001, Aaron Johnson wrote: > > > > > I can do it if some one else provides the requirements. > > > > Loop through domains and accounts, read user.tab for MaxMBSize, scan the > > mbox directory. > > In case quota is exceeded verify the last "stat' report that could be > > stored in a file inside user mdir. > > If the stat stored inside the file is the same of the current one do > > nothing. > > Otherwise use the LMAIL delivery to send the message and record the > > directory stat to the stat-file. > > The base-text for the message should be kept "somewhere". > > > > - Davide > > I got some base code down, but several questions come up: > > - How is mail stored in a mailbox vs. Maildir scenario? (what is the > directory structure)
You should handle it based on the presence of mailbox or Maildir. > - Are we counting all the email under Maildir? (that is does XMail use new, > cur, and tmp or is only new used) XMail _now_ uses new but IMAP will use even cur so the right this to do should be dir recursion. > > - The "stat" file that is mentioned is something that this utility should > create and modify correct? Yep, just pickup a name that does not collide with other names. > - What is LMAIL? I see it in the does, would it be a simple matter of > writing a properly formated email in to the spool/local directory? Those > emails are delivered regardless of size limits on user accounts? See local mail delivery inside the doc. It's the one you can drop a formatted file inside the spool/local and see it delivered. > - Are there other options desired besides the notification? One solution > that has worked well for our company is a 6 month force delete, every file > older then 6 months gets deleted on a nightly basis, this is good for when > someone "forgets" they have an account. You should ask to guys that are going to use it. > - Is something being added to XMail itself to help with this process? ( > this is in reference to the brief exchange between Davide and Shawn ) You should be able to do it with perl w/out any special help. > Any other items people would like while I am recursing the directories > looking for abnormailities? Same as above. > I was thinking maybe a useage report by user would be handy so you can see > who is eating up all your space :^) Yep. - Davide
