Delivery of undelivered messages