Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Getting Total Mail Box Size
letkemanp

From: city, ON Canada
Posts: 4
Member Since: 02/18/06
posted February 18, 2006 11:57 PM

I've just downloaded PowerTCP Mail Tool Version 2.9.1 and your ASP example listed here http://www.dart.com/samples/pop.asp. I've been trying out a few things and I would like to know how to display the full POP3 mail box size?

I've changed your code to allow for paging and each page downloads five messages at a time. To get the next five messages you need to click on a link. I would like to display a status line at the top of the page saying something like "14 message in total, Displaying 1-5. Total Account size is 3 Megs". The part that I can't seem to get the is total account size.

Thanks for your help,
Pete
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 19, 2006 12:20 AM

If you search for the words "total size", I think you will find several threads that discuss this.

Also a search of "total size" in the PowerTCP Help file should yield similar results.
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted January 29, 2008 5:33 AM

Hello,

To get the total size, you may loop through the messages and get the total size as shown below:

Me.Pop1.Timeout = 50000
Me.Pop1.Login "server", "username", "password"
Dim i As Integer
Dim s
s = 0
Pop1.Get msgSize
For i = 1 To Pop1.Messages.Count
s = s + Pop1.Messages.Item(i).Size
Next
MsgBox s

I hope this helps.
Have a great day.

Regards,
Arjun
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX