Re: [PHP] Grab value of mail headers

2002-07-24 Thread Jason Wong
On Thursday 25 July 2002 11:47, Nicklas af Ekenstam wrote: Hi Could someone please enlighten me on a good way to grab the value for a given mail header once I've fetched the entire headers to a string using php:s imap_fetchheader() function? For an example I would like to look for a header

Re: [PHP] Grab value of mail headers

2002-07-24 Thread Michael Sims
On Thu, 25 Jul 2002 05:47:57 +0200, you wrote: Bonus points if you could tell me a way to parse the entire headers into something useful like a set of key, value pairs using the header name as key and the value as value. $lines = split(\r?\n,$headerstring); foreach($lines as $line) {