Simple Email Counter

Hi,

I have been trying to create a simple email counter which will count the number of emails received into a mailbox each day and to store this data in a document/documents.

I have tried writing an agent using the trigger ‘After new mail has arrived’ but this seems unreliable and doesn’t always give accurate figures - for example if 2 new mails come in at nearly the same time only one is recorded.

Is using the type of agent I mentioned the best way to go (if so how can I get it to record number of mails accurately?) or would some other method be better?

Any advice welcome

Thanks

Simon

Subject: Simple Email Counter

I would modify the agent to leave an indication that the new messages were counted, using the StampAll method.

Each time the agent is invoked get a collection of all documents in the Inbox without the stamped value.

Subject: RE: Simple Email Counter

Counting documents in the inbox doesn’t really sound like a way to get trustworthy statistics. Consider mail that is moved to folders by mail rules, and other variations. There are other ways.

  1. Run the agent “Before new mail arrives” and make sure that it finishes very quickly. If this is for one mailbox, it should be acceptable. For several (or all) mailboxes, it is probably not very good.

  2. Run the agent against log.nsf. Go through each log document and count how many deliveries has been made to the users you want to count. Depending on the mail load, you might want to run the agent more or less often. High mail load, more often and vice versa.

/Peter