[imp] wu-imap quotas on Redhat 8 or 9 with imp 3.2.2

Gary Smith gary at primeexalia.com
Wed Sep 10 15:35:22 PDT 2003


#!/bin/sh
LOG="log/`date +%F`.log"
echo "**********************************************************************">>$LOG 2>&1
echo "pxt_editquota called on `date`">>$LOG 2>&1
echo "  * edquota \"$1\" with s/\( *[^ ]* *[^ ]* *\)[^ ]* *[^ ]*\( *[^ ]* *\)[^ ]* *[^ ]*/\1 $2 $3\2 0 0 " >> $LOG 2>&1
#  s/\( *[^ ]* *[^ ]* *\)[^ ]* *[^ ]*\( *[^ ]* *\)[^ ]* *[^ ]*/\1 $2 $3\2 $4 $5
export EDITOR=ed 
edquota "$1" >> $LOG 2>&1 <<EOF
s/\( *[^ ]* *[^ ]* *\)[^ ]* *[^ ]*\( *[^ ]* *\)[^ ]* *[^ ]*/\1 $2 $3\2 0 0 
w
EOF
 
where $1 is the username, $2 is the soft quota, $2 is the hard quota. (and note the $4 and $5 would be the inode quotas)
 
I assume you are looking for something like this because the script you sent never got through so I have no idead what the real question is but this is probably the answer. Edit it to suite your needs.
 
Gary Smith

	-----Original Message----- 
	From: Alan Barnes [mailto:abarnes at bulletmail.net] 
	Sent: Wed 9/10/2003 3:29 PM 
	To: imp at lists.horde.org 
	Cc: 
	Subject: [imp] wu-imap quotas on Redhat 8 or 9 with imp 3.2.2
	
	

	Has anyone gotten wu-imap quotas to work on Redhat 8 or 9 with imp 3.2.2
	
	I found this on the net and cannot seem to get it going? Any help would be
	appreciated.
	
	 The script was for RH 6.x and 7.x.  It doesn't work as is on RH 8/9 because
	 the quota system was changed.  The fix is somewhat trivial, but I've not
	 got around to it yet as it doesn't affect me (I use NFS, so it works fine
	 for me).
	
	
	--------------------------------------------
	Virus Scanned by http://mail.bulletmail.net
	
	
	--
	IMP mailing list
	Frequently Asked Questions: http://horde.org/faq/
	To unsubscribe, mail: imp-unsubscribe at lists.horde.org
	



More information about the imp mailing list