Hi Wayne,
Thanks! I had a suspicion about that, but it’s beyond my ken.
A group of lines around line 1595 were commented out in the code, so I un-commented and that didn’t help.
I was wondering if the “multipart” could be changed to “calendar” — but I don’t think there is necessarily anyway for the mail program sending the file to know that the .ics is text/calendar, unless the mail server is that clever so as to know about it.
I was thinking that maybe there would be something like the reverse of the “rejected file types” setting, where you could indicate preferred file types. Could there be a pass through the message again, after the first pass where we ignore the text mime parts, and we look for the attachments whose file names have preferred extensions.?
Here’s the lines around 1595 of postie-functions.php:
// if (in_array($mimeDecodedEmail->parts[$i]->ctype_primary, array("text", "multipart"))) {
// if (SearchForMIMEType($mimeDecodedEmail->parts[$i], "text", $preferTextType)) {
// $newParts[] = $mimeDecodedEmail->parts[$i];
// $found = true;
// DebugEcho("found");
// }
// } else {
// $newParts[] = $mimeDecodedEmail->parts[$i];
// }