Asterisk
2005-Feb-07 11:36 UTC
[Asterisk-Users] *HOWTO* : using mime-construct with outlook - send fax to email recipient
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.
Brian Dingman
2005-Feb-07 18:37 UTC
[Asterisk-Users] *HOWTO* : using mime-construct with outlook - send fax to email recipient
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@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@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 >
Brian Dingman
2005-Apr-26 08:50 UTC
[Asterisk-Users] *HOWTO* : using mime-construct with outlook - send fax to email recipient
Can anybody maybe help me a little here. I made the changes below... but I don't think I did them exactly correct. When I get a fax now, it is named: _var_spool_asterisk_fax_1114530379.5.tif.pdf I think the problem is with the second line. $p .= cont "Content-Type: $type;\n name=" . token_quote($arg) . "\n" Thanks On 2/7/05, Asterisk <asterisk@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@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 >