datesubjectmessage_idtofromreply-tosender - will generate using 'from' field if not in headerreferencesin-reply-tocc

doesn't handle rfc882 fields:return-path receivedresent- I think this field may be obsoletekeywords

If there are other rfc822 fields or behavoirs for the function, then I can't speak of them as they weren't in my test.As it is relevent to what I'm currently doing I may add more about this function from time to time.

This function is marked as internal function by the c-client library and should not be used by php directly.

Please be aware that the result will always contain fields that have not been set in the message. For example reply_to and sender will always be set even if there is no Reply-To and Sender header fields are defined in the message.

But what you /will/ get is a complete To field, i.e. unfolded as specified for long header fields in RFC 822. So if you want to replace imap_headerinfo() by this function, you can run it on imap_fetchheader().

The object you get from imap_rfc822_parse_headers differs from the object you get from imap_headerinfo/imap_header in the following points. You won't get the:* flags* msgno* size* Maildate* udate* fetchfrom* fetchsubject

udate can be simulated with$headerobj=imap_rfc822_parse_headers ($header);$udate=strtotime($headerobj->date);