Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689966000/3f84e44b-1fea-490c-96df-f8f91e8312b9.png?itok=POznSZa8)
Incessant Technologies PVT Ltd
GB
Last activity: 13 Dec 2018 11:56 EST
Email Channels and Interfaces: extraction model for email attachment
Hi,
I created Email interface from Channels and Interfaces wizard and configured text analyzer to create the cases and extract the data(value to field mapping) based on the content received from the Email. when I send an email(with attachment) to configured mail box, data is being extracted from Email body and attachment successfully. I want same to be extracted from password protected attachments, how can I achieve this?
I tried below steps which is not working,
I updated java step in pyExtractText activity with PasswordProvider interface implementation,
parseContext.set(org.apache.tika.parser.PasswordProvider.class, new org.apache.tika.parser.PasswordProvider() {
public String getPassword(org.apache.tika.metadata.Metadata metadata){
return "password";
}
});
parser.parse(source, contentHandler, metadata, parseContext);
I am currently using Pega7.4 instance.
Appreciate any help/suggestion on this. Thanks.