Re: Separate headers from body in emails
| From: | Robin Vickery | Date: | Tue, 12 Sep 2000 09:21:34 +0000 |
| Subject: | Re: Separate headers from body in emails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16301@lists.php.net to get a copy of this message | ||
cesarini@cline.it (Daniele) writes:
> Hi,
>
> what is a good way to separate headers and body in emails in order to
> store them ina database separately?
Headers are everything before the first empty line, body's everything after.
If you want to extract individual header fields, have a look at the man page
for formail - it's designed for that kind of thing.
-robin
--
Robin Vickery...............................................
Planet-Three, 3A West Point, Warple Way, London, W3 0RG, UK
Email: robin@planet-three.net Phone: +44 (0)870 729 5444