Re: Email Attachments attached to Wrong Post..
Reply #16 – December 12, 2020, 09:28:01 am
Back to the issue of this topic ... There are two things here ... One is what was identified, that the post id should be set to zero such that they are processed but not yet owned by an existing message. Then on successful new message/reply creation, we need to also ``bindMessageAttachments `` to have the new message own the new attachments. I have it fixed on my local.
Re: Email Attachments attached to Wrong Post..
Reply #20 – December 12, 2020, 03:19:09 pm
Here are the changes .... for the attachment problem you need to save and replace (2) files first in /sources/subs Emailpost.subs.php and then in /sources/controllers Emailpost.controller.php Just to note this will not inline any attachments no matter how the email arrives, all attachments are done as below the post style. I also made some changes to the email parser that separate to the attachment issue. This version should be a little lighter on the memory in some cases, it also does a better job at selecting the best representation of the email should it be a multipart style which most are. See: EmailParse.class.php And last up are some changes to the html2md class which is used during outbound emails. This should improve the link length problem that was discussed in another thread, but while addressing that issue is when I noticed that some changes were needed to the above email parser. So again in sources/subs Html2Md.class.php Remember to save your old files, just do a rename to .sav and then place these new files in the right directories.