Re: Help with collecting data from an e-mail
| From: | David Perry | Date: | Sat, 19 Aug 2000 21:25:14 +0000 |
| Subject: | Re: Help with collecting data from an e-mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12606@lists.php.net to get a copy of this message | ||
Jack,
This does not anser your e-mail question but may be of interest to you. It
was posted to the php list a while back.
--David Perry
On Sat, 19 Aug 2000, Jack Lauman wrote:
> I'm trying to read an e-mail, ignore the headers, and extract 6 pieces
> of information. If I manually delete all the header and trailer info
> the code below works fine. However there is a new email on a daily
> basis and I can't figure out how to tell php to scan the file ignore
> to junk and grab what I want.
>
> <---e-mail snip--->
>
> <I need to ignore all the header info and extract the date and time
> from the line below>
>
> Rates as of 1999.06.18 13:10:06 UTC (GMT). Base currency is USD.
>
> <I need to ignore the next tow lines and begin extracting the four
> fields beginning on the third line and continue to the message trailer
> which also needs to be ignored>
>
> Currency Unit USD/Unit Units/USD
> ================================ ===================
> ===================
> USD United States Dollars 1.00000
> 1.00000
> EUR Euro 1.04049