[dev] IMP Patch to display folder size.
Michael Cochrane
mike@graftonhall.co.nz
Sun, 9 Jun 2002 23:48:17 +0100
This message is in MIME format.
---------------------- multipart/mixed attachment
This patch shows the size of a folder in the Horde summary page. Don't use this
if there are a lot of messages in your users mailboxs as it has to fetch every
message from the mailbox to get the mailboxsize.
Don't commit this to the CVS tree, it was only an experiment that ended up with
a serious workout for my mail server. The code works fine though if anyone
want's to try it on their systems.
- Mike :-)
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
---------------------- multipart/mixed attachment
SW5kZXg6IGltcC9saWIvYXBpLnBocA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZpbGU6IC9odHRwZC9ob3Jk
ZS9pbXAvbGliL2FwaS5waHAsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjI0DQpkaWZmIC1JJEhv
cmRlIC1JJFJldmlzaW9uIC1JJERhdGUgLXIxLjI0IGFwaS5waHANCjgxYzgxLDgzDQo8ICAgICAg
ICAgICAgICAgICAkc3RzID0gaW1hcF9zdGF0dXMoJEdMT0JBTFNbJ2ltcCddWydzdHJlYW0nXSwg
JHNlcnZlcnN0cmluZyAuICRmb2xkZXIsIFNBX1VOU0VFTiB8IFNBX1JFQ0VOVCk7DQotLS0NCj4g
DQo+ICAgICAgICAgICAgICAgICAkbWJveCA9IGltYXBfcmVvcGVuKCRHTE9CQUxTWydpbXAnXVsn
c3RyZWFtJ10sJHNlcnZlcnN0cmluZyAuICRmb2xkZXIpOw0KPiAgICAgICAgICAgICAgICAgJHN0
cyA9IGltYXBfbWFpbGJveG1zZ2luZm8oJEdMT0JBTFNbJ2ltcCddWydzdHJlYW0nXSk7DQo4Myw4
NGM4NSw4Ng0KPCAgICAgICAgICAgICAgICAgICAgIGlmICghZW1wdHkoJHN0cy0+cmVjZW50KSkg
ew0KPCAgICAgICAgICAgICAgICAgICAgICAgICAkbmV3bXNnc1skZm9sZGVyXSA9ICRzdHMtPnJl
Y2VudDsNCi0tLQ0KPiAgICAgICAgICAgICAgICAgICAgIGlmICghZW1wdHkoJHN0cy0+UmVjZW50
KSkgew0KPiAgICAgICAgICAgICAgICAgICAgICAgICAkbmV3bXNnc1skZm9sZGVyXSA9ICRzdHMt
PlJlY2VudDsNCjg3Yzg5DQo8ICAgICAgICAgICAgICAgICAgICAgaWYgKCFlbXB0eSgkc3RzLT51
bnNlZW4pKSB7DQotLS0NCj4gICAgICAgICAgICAgICAgICAgICBpZiAoIWVtcHR5KCRzdHMtPlVu
cmVhZCkpIHsNCjkxYzkzLDk1DQo8ICAgICAgICAgICAgICAgICAgICAgaWYgKCFlbXB0eSgkc3Rz
LT51bnNlZW4pKSB7DQotLS0NCj4gICAgICAgICAgICAgICAgICAgICAkaHRtbCAuPSAoJHN0cy0+
U2l6ZSA+IDEwNDg1NzYpID8gIiAoIiAuIHNwcmludGYoIiUwMS4yZiIsJHN0cy0+U2l6ZS8xMDQ4
NTc2KSAuICJNQikgIiA6ICAiICgiIC4gc3ByaW50ZigiJTAxLjJmIiwgJHN0cy0+U2l6ZS8xMDI0
KSAuICJrQikgIjsNCj4gDQo+ICAgICAgICAgICAgICAgICAgICAgaWYgKCFlbXB0eSgkc3RzLT5V
bnJlYWQpKSB7DQo5NWM5OQ0KPCAgICAgICAgICAgICAgICAgICAgICRodG1sIC49ICFlbXB0eSgk
c3RzLT51bnNlZW4pID8gJzxiPicgLiAkc3RzLT51bnNlZW4gLiAnPC9iPicgOiAnMCc7DQotLS0N
Cj4gICAgICAgICAgICAgICAgICAgICAkaHRtbCAuPSAhZW1wdHkoJHN0cy0+VW5yZWFkKSA/ICc8
Yj4nIC4gJHN0cy0+VW5yZWFkIC4gJzwvYj4nIDogJzAnOw0K
---------------------- multipart/mixed attachment--