Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a project where I send an encoded web based form as an e-mail and want to retrieve it via a web based client on the other end.
The encryption is working just fine on both encoding and decoding - that is if I look at the message in my e-mail client. However when I try getting the message using Mail::POP3Client, it appears to be losing some line breaks along the way as shown by the PGP snippets below.
What I'm getting -----BEGIN PGP MESSAGE----- Version: Crypt::OpenPGP 1.03 hQIOA3d7Jqbzm +ZZ1EAgAggmlYb1TnK+xTIw4jmxEfIn78S+6tNccDK3576FRJxKZ --clipped-- KoaBzlX71FsQUXLNPPjy9OyG/ikB6U4SZJ0LrRetb+KlAhKdvo8ygZKajilHsEm8 Z9lEE +16m =3D1k9I -----END PGP MESSAGE----- What it should be: -----BEGIN PGP MESSAGE----- Version: Crypt::OpenPGP 1.03 hQIOA3d7JqbzmZZ1EAgAsGxJsR3nzBWKi9JDUpMGhRoCnPTPPHp/61nMKnsL8EWI --clipped-- BeX+Hm9fh/UAeeHPClTq2JuDY1EEqg== =YcK/ -----END PGP MESSAGE-----
As you can see, the -----BEGIN and the Version should be on seperate lines ( as they show up in my e-mail client ) but they aren't.
I keep getting error messages of a bad checksum, which I am thinking is directly related to the message formatting being messed up. Can someone either reccomend how to solve the problem at hand or is there a different module I should be looking at for retrieving e-mail?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::Pop3Client messing up PGP email messages
by izut (Chaplain) on May 29, 2006 at 18:58 UTC | |
by Popcorn Dave (Abbot) on May 29, 2006 at 21:37 UTC | |
by sgifford (Prior) on May 29, 2006 at 23:10 UTC | |
by Popcorn Dave (Abbot) on May 30, 2006 at 03:12 UTC | |
by sgifford (Prior) on May 30, 2006 at 06:36 UTC | |
|
Re: Mail::Pop3Client messing up PGP email messages
by traveler (Parson) on May 29, 2006 at 23:02 UTC | |
by Popcorn Dave (Abbot) on May 30, 2006 at 02:05 UTC |