Retrieve messages for dir sync.