Get POP3 User Account Statistics
Previous Topic  Next Topic 

Purpose

 

This example demonstrates how to get statistics for a POP3 user account. The two statistics provided are:

 

 

Additional Prerequisites

 

In order for this example to provide any interesting information, the user account you specify should have at least one email message on the POP server. An email can be sent to the account you specify with a different example, click here.

 

Prepared Example Files

 

 

The archive contains one file:

 

 

Batch File Contents

 

This is the content of the batch file:

 

NetMailBot.exe -receive -popstatistics -popserver localhost -popuser email@domain.com -poppassword secret

 

pause

 

Steps

 

  1. Unzip the GetStatistics.zip file. This will produce a directory called "GetStatistics". Open this directory.
  2. Open Notepad and edit the batch file "GetStatistics.bat". Change the values of the following parameters:

 

NOTE: The parameter -receive is required whenever using the POP3 parameters; this parameter puts NetMailBot into what might be called "POP3 mode" as opposed to "SMTP mode" which is for sending mails.

 

  1. Invoke the batch file by double-clicking the icon or straight from the command line.
  2. The statistics for the specified user account will be displayed as exemplified below:

 

-------***[ NetMailBot 4.0 Build 0 Started: 10/02/2003 21:19:01 ]***----

The log file, \log_pop.txt, has been created

 

Connecting to mail.domain.com...

Connected

Getting Statistics...

Total Messages: 3

Total Bytes:    46670

Disconnected

 

Total operation time: 297 ms

 

-------***[ NetMailBot Ended: 10/02/2003 21:19:02]***-------