Number of Undelievered mails per domain

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
halfawake
New user
New user
Posts: 11
Joined: 2009-11-12 16:06

Number of Undelievered mails per domain

Post by halfawake » 2009-12-31 09:05

Hi Experts,

Is there any way to identify number of undelivered emails per domain or per account? Basically, I would like to have a script with which i can identify number of undelivered emails for specified account. I wanted to have count of emails sitting on server and not delivered to its client. Is this possible with hMaiLServer scripting?

Regards,

Y

User avatar
mattg
Moderator
Moderator
Posts: 21103
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Number of Undelievered mails per domain

Post by mattg » 2009-12-31 09:22

By undelivered, you mean not downloaded by clients? or do you mean waiting in the delivery queue to be sent to other mail servers?

I suspect that you mean the first - not downloaded by clients?
Really hard to tell.

IMAP clients may actually 'read' a message and leave the flag set as 'unread'.
POP3 clients can elect to leave a copy on server.

What exactly is it that you wish to see... :D
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

halfawake
New user
New user
Posts: 11
Joined: 2009-11-12 16:06

Re: Number of Undelievered mails per domain

Post by halfawake » 2010-01-15 06:55

By undelivered, I mean mails that are not downloaded by clients. Is it possible?

User avatar
mattg
Moderator
Moderator
Posts: 21103
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Number of Undelievered mails per domain

Post by mattg » 2010-01-15 07:18

mattg wrote:Really hard to tell.

IMAP clients may actually 'read' a message and leave the flag set as 'unread'.
POP3 clients can elect to leave a copy on server.
So no, not possible to do accurately...
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
sheffters
Senior user
Senior user
Posts: 453
Joined: 2009-07-01 20:46
Contact:

Re: Number of Undelievered mails per domain

Post by sheffters » 2010-01-15 15:31

I attempted something similar using message flags in the database ... you'll need to do your own testing to see if it's accurate enough for you, but should give a general overview - i.e. the more mails you have then in percentage terms the more accurate I'd expect it to be.

S.

http://hmaillive.ianbradshaw.co.uk/status.cgi
http://hmaillive.ianbradshaw.co.uk/destination.cgi
http://hmaillive.ianbradshaw.co.uk/traffic.cgi

Post Reply