Extract content from attachments. Closes #2