We did all of our testing using Thunderbird, and the attached pdf files worked very well. However, when we went "live", some people complained that the attachments in outlook were named <<subject>>.dat instead (for example) of 123456.pdf
Having looked into the mime-construct script, we noticed a subtle difference between working Outlook attachments and Thunderbird. The differences are shown below in case anyone is interested.
left is the original mime-construct, right is our modified version
332c332
< $part_header .= "Content-Disposition: attachment; filename="
---
> $part_header .= "Content-Disposition: inline; filename="
405c405
< $p .= cont "Content-Type: $type\n"
---
> $p .= cont "Content-Type: $type;\n name=" . token_quote($arg) . "\n"
Outlook now names the attachment correctly, and Thunderbird also seems to work just as well with the changes.
Hope someone finds this useful.
Julian.
_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
