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 called List-Id which
may look like this:

List-Id: <php-general.lists.php.net>

And grab the value - <php-general.lists.php.net> - into a variable to
use later on in my script.

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. 

Tia,
Nicklas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to