1
Vote

Certificated mail problem

description

Goog morning,
I'm having problems with the attachments of certified emails (PEC) they are not seen as attachments, I've got two embedded resources, an xml and an eml, but the eml file that I need to download and extract has zero size.
If you need the email to debug it I can forward it

Thanks
Flavio

comments

BorisK82 wrote Aug 23, 2016 at 12:59 PM

Can you download the mail / attachement if it is not certified or does that fail too?

briasoft wrote Aug 23, 2016 at 2:38 PM

I've tryed to use another IMAP account with the same kind of attachments, pdf inside an eml and it works perfectly, so I think is a problem with this kind of account o attachments.
Thanks
Flavio

briasoft wrote Aug 23, 2016 at 5:48 PM

More information, I've debugged the library and found that the size of the eml attachment is 0, so I suppose that the download function (attach.download) doesn't make what I need. The content type is multipart/signed, maybe I need to handle this kind of content type, but I need some help on where the problem could be...

Thanks again
Flavio

BorisK82 wrote Aug 24, 2016 at 12:10 PM

Maybe you have seen that i have a similar issue. Download fails because "nothing can be converted to base64", maybe the attachement is always recognized as empty so that fails. Did i understand right, that your issue seems same?
Best regards
Boris

briasoft wrote Aug 24, 2016 at 4:33 PM

Hi, the problems seems similar but my attachments are recognised as inline and in the class message.cs I can see that the body part has a size, while when it is dowloaded it loses the data, maybe you are right, the attachment's encoding is not recognized right.
Thanks
Flavio