Getting the count of nondelivered message for a user

Hello

I want to get the number of nondelivered(offline stored) messages for a particular user through a web interface .Is something like that possible in openfire already?

Or if it’s not implemented yet is there anyway to implement it .I mean can I write a plugin for that?

Can you point me to a right direction

Thanks

Tolga

isnt there any opinion?