cvs: /php3/functions imap.c
| From: | Charles Hagenbuch | Date: | Sat, 26 Feb 2000 06:54:04 +0000 |
| Subject: | cvs: /php3/functions imap.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16039@lists.php.net to get a copy of this message | ||
chagenbu Fri Feb 25 22:54:04 2000 EDT
Modified files:
/php3/functions imap.c
Log:
there are 3 max arguments to imap_delete, not 4, and 2 minimum, not 3.
Index: php3/functions/imap.c
diff -u php3/functions/imap.c:1.83 php3/functions/imap.c:1.84
--- php3/functions/imap.c:1.83 Fri Feb 25 12:48:51 2000
+++ php3/functions/imap.c Fri Feb 25 22:54:04 2000
@@ -33,7 +33,7 @@
| Andrew Skalski <askalski@chek.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: imap.c,v 1.83 2000/02/25 20:48:51 fmk Exp $ */
+/* $Id: imap.c,v 1.84 2000/02/26 06:54:04 chagenbu Exp $ */
#define IMAP41
@@ -1554,7 +1554,7 @@
pils *imap_le_struct;
int myargc=ARG_COUNT(ht);
- if ( myargc < 3 || myargc > 4 ||
getParameters(ht,myargc,&streamind,&sequence,&flags) == FAILURE) {
+ if ( myargc < 2 || myargc > 3 ||
getParameters(ht,myargc,&streamind,&sequence,&flags) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1569,7 +1569,7 @@
RETURN_FALSE;
}
- mail_setflag_full(imap_le_struct->imap_stream,sequence->value.str.val,"\\DELETED",myargc
== 4 ? flags->value.lval : NIL);
+ mail_setflag_full(imap_le_struct->imap_stream,sequence->value.str.val,"\\DELETED",myargc
== 3 ? flags->value.lval : NIL);
RETVAL_TRUE;
}
/* }}} */