Re: [Dovecot] force to recalculate quotadict
Hello,
- remove the quota in the DB,
- make same changes.
hmm, i see. but unfortunately this is not a way i can do. it would be acceptable in private scope but not for bussinesscustomers. to make a change i would manipulate customers maildata which is not allowed this way. a simple command to update complete quota for the single user would be the best way. now i tried to connect per telnet and use command Getquotaroot, seems also to work. this should be scriptable...
ok thanks, i will try something... Andre
On 03/08/2010 11:45 AM Andre Hübner wrote:
Hello,
- remove the quota in the DB,
- make same changes.
hmm, i see. but unfortunately this is not a way i can do. it would be acceptable in private scope but not for bussinesscustomers. to make a change i would manipulate customers maildata which is not allowed this way. a simple command to update complete quota for the single user would be the best way. now i tried to connect per telnet and use command Getquotaroot, seems also to work. this should be scriptable...
ok thanks, i will try something...
You found 'something'? If not, have a look at: http://wiki.dovecot.org/Quota/Dict#Insert_used_quotas_to_the_new_table_after...
Regards, Pascal
The trapper recommends today: beeffeed.1006701@localdomain.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 8 Mar 2010, Pascal Volk wrote:
You found 'something'? If not, have a look at: http://wiki.dovecot.org/Quota/Dict#Insert_used_quotas_to_the_new_table_after...
Oh, cool, so Dovecot does calculate the quota, if there is none in the database:
- delete the quota of user $M
- call
echo "x GETQUOTAROOT Inbox" |
USER=$M /usr/sbin/dovecot --exec-mail imap
should do it.
Maybe, one needs to add
HOME= MAIL= sudo -u mail_user
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS5Tbtr+Vh58GPL/cAQLFNAf/esUR5u0Fxe0+pZz2+jyyOME6RU3FuZu2 R7w+8SbgpDUimLUu6/z4RXhhO8058/RA+LsPHJvkyEs7pmpGY9JfVJ9Q/pGpTOrW SzJRcVOUDGwIqUwd9H/mVWW5Nlsp1/hCogwiBhtD/US1GLTka2DRk3G+J2FU7V0b trvoZgPfCSwOYHGAWMMC3J98QCborDrkz55LdcRf8LkTZd4PzlSIRNft0Gqh8AN5 9TRN6urInKd6Ik/Cj9fvoh5mdoug/usalSn0b4VtSYFJocBwp3leD9GBIMFfHg8U BwOoWFHoNXlappOqRkhNYWDixWDbjpLn4m5QwDIeSC0byFA3edzpRw== =qx4c -----END PGP SIGNATURE-----
participants (3)
-
Andre Hübner
-
Pascal Volk
-
Steffen Kaiser