private boolean underQuota(Message message) {
        return quota > messageStore.getSize(message.getTo().getNode()) + message.toXML().length();
    }
Unregisters a listener to receive events.

@param listener the listener.
xmppserver/src/main/java/org/jivesoftware/openfire/OfflineMessageStrategy.java