Ken, all:

By the time I finished the last patch to get vdelivermail to call 
deliverquota, I learned enough that it didn't seem so difficult to patch 
the deliverquota source directly into vpopmail.  So here's take #2 for 
anyone interested/curious:

http://shupp.org/patches/maildirquota-patch-1.gz

I took the source code of deliverquota (written by Sam Varshavchik), and 
modified it to work as a set of functions within vdelivermail.  This 
way, no child process is spawned, and all functionality of vdelivermail 
remains, including custom over quota messages.

To use, apply the patch above and simply configure with 
--enable-maildirquota=y (yes, It's different than the last patch).  
After the patch is applied, you'll find README.maildirquota.  Read it 
for more specifics.

Hopefully the only 2 differences you'll see when using this option is 
that maildirsize is used instead of .current_size, and that 
maildirfolders are now accounted for when recalculating the current 
usage.

For the impatient:

cd vpopmail-5.0
lynx --source http://shupp.org/patches/maildirquota-patch-1.gz | patch 
-p0
./configure --enable-maildirquota=y
make ; make install-strip

Please post any feedback.

Cheers,

Bill Shupp

Reply via email to