Process attachments in app IMAP/POP3 incoming email

1
I'm using the app IMAP/POP3 incoming email from the app-store to process incoming email. When a mail with attachments is processed I can see that the number of attachments is registered with the email; but I don't see the attachment in the page 'Emailmessage_Overview'. I'm working on a local database and when I inspect the database I can see: Table EmailMessage is filled Table Attachment is filled Table Attachment_EmailMessage is empty The version of the app is 1.1. Question: Is this a bug or can there be another reason for this behaviour?
asked
1 answers
3

After consulting a collegue the problem is detected. There is a bug in de source 'EmailHandler.Java'

After inserting an extra line the attachments are really attachted to the message:

            {
                log.trace("Process body part as ATTACHMENT");
                // The content is an attachment
                Attachment attach = new Attachment(this.context);
                attach.setName(bodyPart.getFileName());

// START OF EXTRA CODE

                attach.setAttachment_EmailMessage(mxMessage);

//END OF EXTRA CODE

                Core.storeFileDocumentContent(this.context, attach.getMendixObject(), bodyPart.getInputStream());
                attachmentList.add(attach);
            }
answered