Mail file size in Opening Frameset

Is there any script class that can be used to show a user the size of his mail file in Mail Frameset. This will facilitate end user to know what is the size of his / her database is when he / she opens his / her mail file. Thanks to everyone.

Ashok Nawani

nawanis@iname.com

Subject: Mail file size in Opening Frameset

Put the following lotusscript on the postopen event of the form you are going to use display the mail db size.

Dim session As New notessession

Dim db As NotesDatabase



Set db = session.CurrentDatabase



size = (Cdbl(db.Size) / 1024) / 1024



Messagebox Cstr(size)+"MB",0,"Current Size of your Mail Database"

Instead of the messagebox you can write the size value to a field on the form you are displaying.

Subject: Mail file size in Opening Frameset

Mike,

I was successful in getting messagebox when I used the code in POstOpen event of Form (Switch Form For Mail ) in my mail db but unable to get it in FIELD in frameset. Any idea why ? Reason of getting in FIELD in frameset is it will always display the size of db to user. Hope you understand what I intend to do?

Thanks

Ashok Nawani

nawanis@iname.com

Subject: RE: Mail file size in Opening Frameset

What form in the mail datbase do you want to display the size on? Are you going to customize the MailFS (relevant framesets) to include a custom for to display the size?

Subject: RE: Mail file size in Opening Frameset

Thanks for followup. I got it working. Yes you’re right I’m modifying MailFS. Monday I’ll post the whole routine I did to mail size appear in Frameset. Your code was the base to make it work.

Thanks once again.

Ashok