Re: PATCH - improvements for imap_headerinfo()
| From: | Jani Taskinen | Date: | Tue, 23 Apr 2002 22:23:12 +0000 |
| Subject: | Re: PATCH - improvements for imap_headerinfo() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83234@lists.php.net to get a copy of this message | ||
Please make a unified diff against the CVS HEAD (cvs diff -u).
--Jani
On Tue, 23 Apr 2002 adam.kauffman@mindspring.com wrote:
>I posted the wrong file to the last email... must find coffee or sleep :-)
>
>1573c1573
>< char dummy[2000], fulladdress[MAILTMPLEN];
>---
>> char *mystring, dummy[2000], fulladdress[MAILTMPLEN];
>1608c1608,1617
>< en = mail_fetchenvelope(imap_le_struct->imap_stream, Z_LVAL_PP(msgno));
>---
>> mystring = mail_fetchheader_full(imap_le_struct->imap_stream, Z_LVAL_PP(msgno),
>> NIL, &length, NIL);
>> if (myargc == 5) {
>> rfc822_parse_msg(&en, NULL, mystring, length, NULL,
>> Z_STRVAL_PP(defaulthost), NIL);
>> } else {
>> rfc822_parse_msg(&en, NULL, mystring, length, NULL, "UNKNOWN",
>> NIL);
>> }
>>
>> /* call a function to parse all the text, so that we can use the
>> same function to parse text from other sources */
>> _php_make_header_object(return_value, en TSRMLS_CC);
>1639a1649
>> mail_free_envelope(&en);
>
>
--