CVS update: php3/functions

From: Date: Fri, 21 Aug 1998 04:30:00 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-400@lists.php.net to get a copy of this message
Date: Friday August 21, 1998 @ 0:30 Author: rasmus Update of /repository/php3/functions In directory asf:/export/home/rasmus/php3/functions Modified Files: imap.c Log Message: Add CL_EXPUNGE support to imap_reopen() as well Index: php3/functions/imap.c diff -c php3/functions/imap.c:1.18 php3/functions/imap.c:1.19 *** php3/functions/imap.c:1.18 Thu Aug 20 23:07:49 1998 --- php3/functions/imap.c Fri Aug 21 00:30:00 1998 *************** *** 31,37 **** | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: imap.c,v 1.18 1998/08/21 03:07:49 rasmus Exp $ */ #define IMAP41 --- 31,37 ---- | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: imap.c,v 1.19 1998/08/21 04:30:00 rasmus Exp $ */ #define IMAP41 *************** *** 419,425 **** --- 419,428 ---- MAILSTREAM *imap_stream; pils *imap_le_struct; int ind, ind_type; + long flags=NIL; + long cl_flags=NIL; int myargc=ARG_COUNT(ht); + if (myargc<2 || myargc>3 || getParameters(ht,myargc,&streamind, &mailbox, &options) == FAILURE) { WRONG_PARAM_COUNT; } *************** *** 433,441 **** } convert_to_string(mailbox); ! if(myargc == 3) convert_to_long(options); ! ! imap_stream = mail_open(imap_le_struct->imap_stream,mailbox->value.str.val,myargc == 3 ? options->value.lval : NIL ); if (imap_stream == NIL) { php3_error(E_WARNING,"Couldn't re-open stream\n"); RETURN_FALSE; --- 436,451 ---- } convert_to_string(mailbox); ! if(myargc == 3) { ! convert_to_long(options); ! flags = options->value.lval; ! if(flags & PHP_EXPUNGE) { ! cl_flags = CL_EXPUNGE; ! flags ^= PHP_EXPUNGE; ! } ! imap_le_struct->flags = cl_flags; ! } ! imap_stream = mail_open(imap_le_struct->imap_stream, mailbox->value.str.val, flags); if (imap_stream == NIL) { php3_error(E_WARNING,"Couldn't re-open stream\n"); RETURN_FALSE; -- 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 (#400) next »