[Asterisk-Users] *HOWTO* : using mime-construct with outlook - send fax to email recipient

Brian Dingman bdingman at gmail.com
Mon Feb 7 18:37:41 MST 2005


Thanks.

I noticed this today also. And was curious what was causing this.
Might want to add it to the wiki.

On Mon, 07 Feb 2005 18:36:21 +0000, Asterisk <asterisk at dotr.com> wrote:
> We've managed to setup spandsp to receive faxes and email them to the
> appropriate person.
> 
> 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
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list