FinancialStudent has asked for the wisdom of the Perl Monks concerning the following question:
The e-mail had two text parts, but I can't figure out why it didn't select the first in this case. Message (without headers and HTML)if ($parsed->xpath_exists('//plain')) { @nodes = $parsed->xpath_findnodes('//plain'); $text_part = $nodes[0]; $body=$text_part->body; }
Any ideas would be greatly appreciated. Let me know if you need more code or more of the data.--=_mixed 007E16738825776F_= Content-Type: multipart/alternative; boundary="=_alternative 007E16738 +825776F_=" --=_alternative 007E16738825776F_= Content-Type: text/plain; charset="US-ASCII" This was the body text --=_alternative 007E16738825776F_=-- --=_mixed 007E16738825776F_= Content-Type: text/plain; name="6014969_S02500.txt" Content-Disposition: attachment; filename="6014969_S02500.txt" Content-Transfer-Encoding: quoted-printable This is a text file attachment --=_mixed 007E16738825776F_=--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Email::MIME
by choroba (Cardinal) on Aug 13, 2010 at 21:57 UTC | |
by Anonymous Monk on Aug 28, 2010 at 00:14 UTC |