adds possibility to retrieve message attachments by type (embedded/extended)