CVS update: php3/functions

From: Date: Fri, 21 Aug 1998 05:26:04 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-401@lists.php.net to get a copy of this message
Date: Friday August 21, 1998 @ 1:26 Author: musone Update of /repository/php3/functions In directory asf:/tmp/cvs-serv21522 Modified Files: imap.c Log Message: took out pulling up only certain mail headers, now pulling them all up Index: php3/functions/imap.c diff -c php3/functions/imap.c:1.19 php3/functions/imap.c:1.20 *** php3/functions/imap.c:1.19 Fri Aug 21 00:30:00 1998 --- php3/functions/imap.c Fri Aug 21 01:25:57 1998 *************** *** 31,37 **** | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: imap.c,v 1.19 1998/08/21 04:30:00 rasmus Exp $ */ #define IMAP41 --- 31,37 ---- | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: imap.c,v 1.20 1998/08/21 05:25:57 musone Exp $ */ #define IMAP41 *************** *** 1033,1040 **** ENVELOPE *en; ADDRESS *addresstmp; int myargc; - STRINGLIST *lines=mail_newstringlist (); - STRINGLIST *cur=lines; myargc=ARG_COUNT(ht); if (myargc<2 || myargc>5 || getParameters(ht,myargc,&streamind,&msgno,&fromlength,&subjectlength,&defaulthost)==FAILURE) { WRONG_PARAM_COUNT; --- 1033,1038 ---- *************** *** 1058,1076 **** RETURN_FALSE; object_init(return_value); ! cur->LSIZE = strlen (cur->LTEXT = (char *)cpystr ("From")); ! cur = cur->next = mail_newstringlist (); ! cur->LSIZE = strlen (cur->LTEXT = (char *)cpystr ("Date")); ! cur = cur->next = mail_newstringlist (); ! cur->LSIZE = strlen (cur->LTEXT = (char *)cpystr ("Subject")); ! cur = cur->next = mail_newstringlist (); ! cur->LSIZE = strlen (cur->LTEXT = (char *)cpystr ("To")); ! cur = cur->next = mail_newstringlist (); ! cur->LSIZE = strlen (cur->LTEXT = (char *)cpystr ("cc")); ! cur = cur->next = mail_newstringlist (); ! cur->LSIZE = strlen (cur->LTEXT = (char *)cpystr ("Reply-To")); ! mystring=mail_fetchheader_full(imap_le_struct->imap_stream,msgno->value.lval,lines,&length,NIL); ! mail_free_stringlist (&lines); if(myargc ==5) rfc822_parse_msg (&en,NULL,mystring,length,NULL,defaulthost->value.str.val,NIL); else --- 1056,1063 ---- RETURN_FALSE; object_init(return_value); ! ! mystring=mail_fetchheader_full(imap_le_struct->imap_stream,msgno->value.lval,NIL,&length,NIL); if(myargc ==5) rfc822_parse_msg (&en,NULL,mystring,length,NULL,defaulthost->value.str.val,NIL); else -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#401) next »