[ic] pgp attachments have .dat extenstion

Daniel Davenport ddavenport at newagedigital.com
Wed Jun 30 21:08:45 EDT 2004



> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org
> [mailto:interchange-users-bounces at icdevgroup.org]On Behalf Of John1
> Sent: Saturday, June 26, 2004 7:05 PM
> To: interchange-users at icdevgroup.org
> Subject: [ic] pgp attachments have .dat extenstion
>
>
> I am using the following from the Foundation demo to send the credit card
> number as an attachment:
>
> [tag op=mime interpolate=1  type=application/pgp-encrypted
> description="CreditCard_[value mv_order_number].pgp"]
> [value mv_credit_card_info]
> [/tag]
>
> However, this attaches the file with a .dat extension tacked on
> the end e.g.
> CreditCard_TEST123.pgp.dat
>
>
> If I look at the e-mail source, the MIME header is:
>
> Content-Type: application/pgp-encrypted
> Content-ID: <some_id_text>
> Content-Disposition: inline
> Content-Description: CreditCard_TEST123.pgp
>
> This results in an attachment with the name CreditCard_TEST123.pgp.dat (at
> least this is the case when read in Outlook Express 6).
>
>
> Wheras if I just send the attachment from my mail reader, the MIME header
> is:
>
> Content-Type: application/octet-stream; name="CreditCard_TEST123.pgp"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment; filename="CreditCard_TEST123.pgp"
>
> This time the attachment arrives with the correct name
> CreditCard_TEST123.pgp
>
> How do I use the [tag op=mime] to attach the correct headers so
> that I get a
> .pgp ending and not .dat?

try
[tag op=mime interpolate=1 type=application/pgp-encrypted
     disposition='attachment; filename="CreditCard_[value
mv_order_number].pgp"']
[value mv_credit_card_info]
[/tag]

from what i see in Interpolate.pm, it looks like what you want.

>
> Any help would be greatly appreciated.  Thanks.
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users



More information about the interchange-users mailing list