Lines Matching refs:IMAPG
196 if (IMAPG(imap_user)) { in imap_object_destroy()
197 efree(IMAPG(imap_user)); in imap_object_destroy()
198 IMAPG(imap_user) = 0; in imap_object_destroy()
200 if (IMAPG(imap_password)) { in imap_object_destroy()
201 efree(IMAPG(imap_password)); in imap_object_destroy()
202 IMAPG(imap_password) = 0; in imap_object_destroy()
387 return_value = *IMAPG(quota_return); in mail_getquota()
416 add_assoc_stringl(IMAPG(imap_acl_list), alist->identifier, alist->rights, strlen(alist->rights)); in mail_getacl()
508 if (!IMAPG(enable_rsh)) { in PHP_MINIT_FUNCTION()
521 IMAPG(imap_errorstack) = NIL; in PHP_RINIT_FUNCTION()
522 IMAPG(imap_alertstack) = NIL; in PHP_RINIT_FUNCTION()
523 IMAPG(gets_stream) = NIL; in PHP_RINIT_FUNCTION()
534 if (IMAPG(imap_errorstack) != NIL) { in PHP_RSHUTDOWN_FUNCTION()
538 ecur = IMAPG(imap_errorstack); in PHP_RSHUTDOWN_FUNCTION()
545 mail_free_errorlist(&IMAPG(imap_errorstack)); in PHP_RSHUTDOWN_FUNCTION()
546 IMAPG(imap_errorstack) = NIL; in PHP_RSHUTDOWN_FUNCTION()
549 if (IMAPG(imap_alertstack) != NIL) { in PHP_RSHUTDOWN_FUNCTION()
553 acur = IMAPG(imap_alertstack); in PHP_RSHUTDOWN_FUNCTION()
560 mail_free_stringlist(&IMAPG(imap_alertstack)); in PHP_RSHUTDOWN_FUNCTION()
561 IMAPG(imap_alertstack) = NIL; in PHP_RSHUTDOWN_FUNCTION()
683 if (IMAPG(imap_user)) { in PHP_FUNCTION()
684 efree(IMAPG(imap_user)); in PHP_FUNCTION()
685 IMAPG(imap_user) = 0; in PHP_FUNCTION()
688 if (IMAPG(imap_password)) { in PHP_FUNCTION()
689 efree(IMAPG(imap_password)); in PHP_FUNCTION()
690 IMAPG(imap_password) = 0; in PHP_FUNCTION()
698 IMAPG(imap_user) = estrndup(ZSTR_VAL(user), ZSTR_LEN(user)); in PHP_FUNCTION()
699 IMAPG(imap_password) = estrndup(ZSTR_VAL(passwd), ZSTR_LEN(passwd)); in PHP_FUNCTION()
713 efree(IMAPG(imap_user)); IMAPG(imap_user) = 0; in PHP_FUNCTION()
714 efree(IMAPG(imap_password)); IMAPG(imap_password) = 0; in PHP_FUNCTION()
914 IMAPG(quota_return) = &return_value; in PHP_FUNCTION()
940 IMAPG(quota_return) = &return_value; in PHP_FUNCTION()
1008 IMAPG(imap_acl_list) = return_value; in PHP_FUNCTION()
1018 IMAPG(imap_acl_list) = NIL; in PHP_FUNCTION()
1324 IMAPG(folderlist_style) = FLIST_ARRAY; in PHP_FUNCTION()
1326 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1328 if (IMAPG(imap_folders) == NIL) { in PHP_FUNCTION()
1333 cur=IMAPG(imap_folders); in PHP_FUNCTION()
1338 mail_free_stringlist (&IMAPG(imap_folders)); in PHP_FUNCTION()
1339 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1361 IMAPG(folderlist_style) = FLIST_OBJECT; in PHP_FUNCTION()
1363 IMAPG(imap_folder_objects) = IMAPG(imap_folder_objects_tail) = NIL; in PHP_FUNCTION()
1365 if (IMAPG(imap_folder_objects) == NIL) { in PHP_FUNCTION()
1371 cur=IMAPG(imap_folder_objects); in PHP_FUNCTION()
1386 mail_free_foblist(&IMAPG(imap_folder_objects), &IMAPG(imap_folder_objects_tail)); in PHP_FUNCTION()
1388 IMAPG(folderlist_style) = FLIST_ARRAY; /* reset to default */ in PHP_FUNCTION()
1406 IMAPG(imap_folders) = NIL; in PHP_FUNCTION()
1408 if (IMAPG(imap_folders) == NIL) { in PHP_FUNCTION()
1413 cur=IMAPG(imap_folders); in PHP_FUNCTION()
1418 mail_free_stringlist (&IMAPG(imap_folders)); in PHP_FUNCTION()
1419 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1618 IMAPG(folderlist_style) = FLIST_ARRAY; in PHP_FUNCTION()
1620 IMAPG(imap_sfolders) = NIL; in PHP_FUNCTION()
1624 if (IMAPG(imap_sfolders) == NIL) { in PHP_FUNCTION()
1629 cur=IMAPG(imap_sfolders); in PHP_FUNCTION()
1634 mail_free_stringlist (&IMAPG(imap_sfolders)); in PHP_FUNCTION()
1635 IMAPG(imap_sfolders) = IMAPG(imap_sfolders_tail) = NIL; in PHP_FUNCTION()
1656 IMAPG(folderlist_style) = FLIST_OBJECT; in PHP_FUNCTION()
1658 IMAPG(imap_sfolder_objects) = IMAPG(imap_sfolder_objects_tail) = NIL; in PHP_FUNCTION()
1662 if (IMAPG(imap_sfolder_objects) == NIL) { in PHP_FUNCTION()
1668 cur=IMAPG(imap_sfolder_objects); in PHP_FUNCTION()
1683 mail_free_foblist (&IMAPG(imap_sfolder_objects), &IMAPG(imap_sfolder_objects_tail)); in PHP_FUNCTION()
1685 IMAPG(folderlist_style) = FLIST_ARRAY; /* reset to default */ in PHP_FUNCTION()
1887 IMAPG(gets_stream) = writer; in PHP_FUNCTION()
1891 IMAPG(gets_stream) = NULL; in PHP_FUNCTION()
2667 add_property_long(return_value, "flags", IMAPG(status_flags)); in PHP_FUNCTION()
2668 if (IMAPG(status_flags) & SA_MESSAGES) { in PHP_FUNCTION()
2669 add_property_long(return_value, "messages", IMAPG(status_messages)); in PHP_FUNCTION()
2671 if (IMAPG(status_flags) & SA_RECENT) { in PHP_FUNCTION()
2672 add_property_long(return_value, "recent", IMAPG(status_recent)); in PHP_FUNCTION()
2674 if (IMAPG(status_flags) & SA_UNSEEN) { in PHP_FUNCTION()
2675 add_property_long(return_value, "unseen", IMAPG(status_unseen)); in PHP_FUNCTION()
2677 if (IMAPG(status_flags) & SA_UIDNEXT) { in PHP_FUNCTION()
2678 add_property_long(return_value, "uidnext", IMAPG(status_uidnext)); in PHP_FUNCTION()
2680 if (IMAPG(status_flags) & SA_UIDVALIDITY) { in PHP_FUNCTION()
2681 add_property_long(return_value, "uidvalidity", IMAPG(status_uidvalidity)); in PHP_FUNCTION()
3598 IMAPG(imap_messages) = IMAPG(imap_messages_tail) = NIL; in PHP_FUNCTION()
3607 if (IMAPG(imap_messages) == NIL) { in PHP_FUNCTION()
3614 cur = IMAPG(imap_messages); in PHP_FUNCTION()
3619 mail_free_messagelist(&IMAPG(imap_messages), &IMAPG(imap_messages_tail)); in PHP_FUNCTION()
3634 if (IMAPG(imap_alertstack) == NIL) { in PHP_FUNCTION()
3640 cur = IMAPG(imap_alertstack); in PHP_FUNCTION()
3645 mail_free_stringlist(&IMAPG(imap_alertstack)); in PHP_FUNCTION()
3646 IMAPG(imap_alertstack) = NIL; in PHP_FUNCTION()
3660 if (IMAPG(imap_errorstack) == NIL) { in PHP_FUNCTION()
3666 cur = IMAPG(imap_errorstack); in PHP_FUNCTION()
3671 mail_free_errorlist(&IMAPG(imap_errorstack)); in PHP_FUNCTION()
3672 IMAPG(imap_errorstack) = NIL; in PHP_FUNCTION()
3686 if (IMAPG(imap_errorstack) == NIL) { in PHP_FUNCTION()
3690 cur = IMAPG(imap_errorstack); in PHP_FUNCTION()
4270 if (IMAPG(gets_stream)) { in php_mail_gets()
4287 } else if (read != php_stream_write(IMAPG(gets_stream), buf, read)) { in php_mail_gets()
4313 if (IMAPG(imap_messages) == NIL) { in mm_searched()
4314 IMAPG(imap_messages) = mail_newmessagelist(); in mm_searched()
4315 IMAPG(imap_messages)->msgid = number; in mm_searched()
4316 IMAPG(imap_messages)->next = NIL; in mm_searched()
4317 IMAPG(imap_messages_tail) = IMAPG(imap_messages); in mm_searched()
4319 cur = IMAPG(imap_messages_tail); in mm_searched()
4324 IMAPG(imap_messages_tail) = cur; in mm_searched()
4346 if (IMAPG(imap_alertstack) == NIL) { in mm_notify()
4347 IMAPG(imap_alertstack) = mail_newstringlist(); in mm_notify()
4348 …IMAPG(imap_alertstack)->LSIZE = strlen((char*)(IMAPG(imap_alertstack)->LTEXT = (unsigned char*)cpy… in mm_notify()
4349 IMAPG(imap_alertstack)->next = NIL; in mm_notify()
4351 cur = IMAPG(imap_alertstack); in mm_notify()
4368 if (IMAPG(folderlist_style) == FLIST_OBJECT) { in mm_list()
4371 if (IMAPG(imap_folder_objects) == NIL) { in mm_list()
4372 IMAPG(imap_folder_objects) = mail_newfolderobjectlist(); in mm_list()
4373 …IMAPG(imap_folder_objects)->LSIZE=strlen((char*)(IMAPG(imap_folder_objects)->LTEXT = (unsigned cha… in mm_list()
4374 IMAPG(imap_folder_objects)->delimiter = delimiter; in mm_list()
4375 IMAPG(imap_folder_objects)->attributes = attributes; in mm_list()
4376 IMAPG(imap_folder_objects)->next = NIL; in mm_list()
4377 IMAPG(imap_folder_objects_tail) = IMAPG(imap_folder_objects); in mm_list()
4379 ocur=IMAPG(imap_folder_objects_tail); in mm_list()
4386 IMAPG(imap_folder_objects_tail) = ocur; in mm_list()
4392 if (IMAPG(imap_folders) == NIL) { in mm_list()
4393 IMAPG(imap_folders)=mail_newstringlist(); in mm_list()
4394 …IMAPG(imap_folders)->LSIZE=strlen((char*)(IMAPG(imap_folders)->LTEXT = (unsigned char*)cpystr(mail… in mm_list()
4395 IMAPG(imap_folders)->next=NIL; in mm_list()
4396 IMAPG(imap_folders_tail) = IMAPG(imap_folders); in mm_list()
4398 cur=IMAPG(imap_folders_tail); in mm_list()
4403 IMAPG(imap_folders_tail) = cur; in mm_list()
4414 if (IMAPG(folderlist_style) == FLIST_OBJECT) { in mm_lsub()
4417 if (IMAPG(imap_sfolder_objects) == NIL) { in mm_lsub()
4418 IMAPG(imap_sfolder_objects) = mail_newfolderobjectlist(); in mm_lsub()
4419 …IMAPG(imap_sfolder_objects)->LSIZE = strlen((char*)(IMAPG(imap_sfolder_objects)->LTEXT = (unsigned… in mm_lsub()
4420 IMAPG(imap_sfolder_objects)->delimiter = delimiter; in mm_lsub()
4421 IMAPG(imap_sfolder_objects)->attributes = attributes; in mm_lsub()
4422 IMAPG(imap_sfolder_objects)->next = NIL; in mm_lsub()
4423 IMAPG(imap_sfolder_objects_tail) = IMAPG(imap_sfolder_objects); in mm_lsub()
4425 ocur=IMAPG(imap_sfolder_objects_tail); in mm_lsub()
4432 IMAPG(imap_sfolder_objects_tail) = ocur; in mm_lsub()
4436 if (IMAPG(imap_sfolders) == NIL) { in mm_lsub()
4437 IMAPG(imap_sfolders)=mail_newstringlist(); in mm_lsub()
4438 …IMAPG(imap_sfolders)->LSIZE=strlen((char*)(IMAPG(imap_sfolders)->LTEXT = (unsigned char*)cpystr(ma… in mm_lsub()
4439 IMAPG(imap_sfolders)->next=NIL; in mm_lsub()
4440 IMAPG(imap_sfolders_tail) = IMAPG(imap_sfolders); in mm_lsub()
4442 cur=IMAPG(imap_sfolders_tail); in mm_lsub()
4447 IMAPG(imap_sfolders_tail) = cur; in mm_lsub()
4455 IMAPG(status_flags)=status->flags; in mm_status()
4456 if (IMAPG(status_flags) & SA_MESSAGES) { in mm_status()
4457 IMAPG(status_messages)=status->messages; in mm_status()
4459 if (IMAPG(status_flags) & SA_RECENT) { in mm_status()
4460 IMAPG(status_recent)=status->recent; in mm_status()
4462 if (IMAPG(status_flags) & SA_UNSEEN) { in mm_status()
4463 IMAPG(status_unseen)=status->unseen; in mm_status()
4465 if (IMAPG(status_flags) & SA_UIDNEXT) { in mm_status()
4466 IMAPG(status_uidnext)=status->uidnext; in mm_status()
4468 if (IMAPG(status_flags) & SA_UIDVALIDITY) { in mm_status()
4469 IMAPG(status_uidvalidity)=status->uidvalidity; in mm_status()
4479 if (IMAPG(imap_errorstack) == NIL) { in mm_log()
4480 IMAPG(imap_errorstack) = mail_newerrorlist(); in mm_log()
4481 …IMAPG(imap_errorstack)->LSIZE = strlen((char*)(IMAPG(imap_errorstack)->LTEXT = (unsigned char*)cpy… in mm_log()
4482 IMAPG(imap_errorstack)->errflg = errflg; in mm_log()
4483 IMAPG(imap_errorstack)->next = NIL; in mm_log()
4485 cur = IMAPG(imap_errorstack); in mm_log()
4511 strlcpy (user, IMAPG(imap_user), MAILTMPLEN); in mm_login()
4513 strlcpy (pwd, IMAPG(imap_password), MAILTMPLEN); in mm_login()