Added method to extract attachments per message