Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Size of mailbox Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
JRM
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 01 December 2003 at 12:09pm | IP Logged Quote JRM

I am testing using the webamil.  Is there a way to put at the top of list.asp the amount of memory that the mailbox is using.  For example:

You are using 2 megs out of 10 megs.

Thanks for your help.

Back to Top View JRM's Profile Search for other posts by JRM
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 02 December 2003 at 4:30am | IP Logged Quote Alex

The size of of the mailbox cannot be determined through POP3 protocol. However, the amount of memory the mailbox is using (total size of all messages in bytes) is available through TotalSize property of POP3 object.

in list.asp:

mails_per_page = MailHeadersCount
Call PrintList(page)

REPLACE WITH:

mails_per_page = MailHeadersCount %>
<table border="0" width="90%">
<tr><td align="right" class="wm_list_content">
<%=(Mailer.TotalSize*10\1048576)/10%> Mb of MailBox space used
</td></tr>
</table>
<% Call PrintList(page)

 



Edited by Alex on 02 December 2003 at 5:15am
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 14 December 2003 at 8:25am | IP Logged Quote Alex

Now WebMail supports displaying mailbox size via admin preferences. This size is still not a real POP3 mailbox size (because it's unavailable). Displayable mailbox size is just a some value specified by WebMail admin.
Back to Top View Alex's Profile Search for other posts by Alex
 
germ
Newbie
Newbie
Avatar

Joined: 26 December 2003
Location: United States
Online Status: Offline
Posts: 6
Posted: 07 January 2004 at 9:35am | IP Logged Quote germ

I like the change. However, it now says
You are using 0% of your 20 Mb Email Space    

Is there a way to add back the amount of space that is used:

Example:
You are using 10 Mb of your 20 Mb Email Space which is 50%.

    

Back to Top View germ's Profile Search for other posts by germ
 
germ
Newbie
Newbie
Avatar

Joined: 26 December 2003
Location: United States
Online Status: Offline
Posts: 6
Posted: 07 January 2004 at 10:44am | IP Logged Quote germ

I will answer my own question:
    <td width="1" <% If pb_intFirstProcent = 100 Then %>class="wm_error"<% Else %> class="wm_regular"<% End If %>>You are using <%=(Mailer.TotalSiz e*10\1048576)/10%> of your <%=CInt(Mail BoxSizeLimit*10/1048576)/10%> Mb Email Spa ce which is <%=pb_intFirstProcent%>%&nb sp;</td>
    <td>

from functions_list.asp
Back to Top View germ's Profile Search for other posts by germ
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 January 2004 at 2:34pm | IP Logged Quote Alex

I hope customization of webmail scripts was not difficult. The only issue I noticed that filename should be functions_list.inc.asp


Edited by Alex on 09 January 2004 at 7:36am
Back to Top View Alex's Profile Search for other posts by Alex
 
Rodrigo
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 16 February 2006 at 1:36pm | IP Logged Quote Rodrigo

Hi. how is the code for the php version? thanks a lot
Back to Top View Rodrigo's Profile Search for other posts by Rodrigo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 16 February 2006 at 2:13pm | IP Logged Quote Alex

PHP version is currently very limited in features, but we're working on the next version which will provide mailbox usage indicator along with other enhancements.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide