From: "Geoff Ellis" <[EMAIL PROTECTED]> > I have a small problem which maybe a little OT to the unix list... > I've got a small app which runs on debian linux, which polls a mail box and > foreach message that arrives I grab the subject line and the body data. > These emails are usually replies from people. > When I send the email out, I put in the body, something like this > ==ems== > some text here > ==ems== > > now, from the body I try and grab what's between the ==ems==(.*?)==ems== . > > for most this works fine, but for someone who replies it looks like the > encoding of the body is screwed up becuase the return body looks something > like > > =3D=3Dems=3D=3D > some text here > =3D=3Dems=3D=3D
Have a look at MIME::QuotedPrint and MIME::Base64 modules. You'll have to process the headers of the message (or the parts of the message) to see the encoding : Content-Transfer-Encoding: 7bit or Content-Transfer-Encoding: quoted-printable or Content-Transfer-Encoding: base64 and then decode the body accordingly. I believe MIME-tools contain some module that could help you. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users