Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Can MIME::Lite send PGP-encrypted attachments?

by clscott (Friar)
on Aug 12, 2004 at 17:54 UTC ( [id://382401]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Can MIME::Lite send PGP-encrypted attachments?
in thread Can MIME::Lite send PGP-encrypted attachments?

In your second example you are sending the filename as 'test.pgp' vs 'test.fdf' are you not?

--
Clayton
  • Comment on Re^3: Can MIME::Lite send PGP-encrypted attachments?

Replies are listed 'Best First'.
Re^4: Can MIME::Lite send PGP-encrypted attachments?
by Carstonio (Initiate) on Aug 13, 2004 at 13:21 UTC
    Yes. Sending the encrypted file as "test.fdf" just confuses Acrobat.

    On the Outlook end, I developed a VBA macro to automatically save the attachment as an FDF file. This seems to work OK.

    I'm using Network Associates' PGP Desktop Security 7.0. When I open the test e-mail in Outlook, when I select the Save Attachment command or run the macro, I'm prompted for the pass phrase for the key I'm using.

    The only flaw with the PDF::FDF::Simple module is that it doesn't seem to have a method for adding the /F key, which associates the FDF file with a PDF form.
Re^4: Can MIME::Lite send PGP-encrypted attachments?
by Carstonio (Initiate) on Aug 17, 2004 at 18:29 UTC
    I found a solution for associating the FDF with a PDF file:
    package PDF::FDF::Simplemod; use PDF::FDF::Simple; our @ISA = qw(PDF::FDF::Simple); sub _fdf_header { my $self = shift; return <<__EOT__; %FDF-1.2 1 0 obj << /FDF << /Fields [ __EOT__ } sub _fdf_footer { my $self = shift; return <<__EOT__; ] /F (test.pdf)/ID [ <id string 1><id sring 2> ] >> >> endobj trailer << /Root 1 0 R >> %%EOF __EOT__ } 1;
    Part of the problem seemed to be that the FDF Simple module was generating FDF headers that weren't compatible with my verison of Acrobat (5.0.5). So I generated an FDF from the PDF form so I could determine the format for the headers.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://382401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found