Restoring attachments metadata