Lines Matching refs:IMAPG
187 if (IMAPG(imap_user)) { in mail_close_it()
188 efree(IMAPG(imap_user)); in mail_close_it()
189 IMAPG(imap_user) = 0; in mail_close_it()
191 if (IMAPG(imap_password)) { in mail_close_it()
192 efree(IMAPG(imap_password)); in mail_close_it()
193 IMAPG(imap_password) = 0; in mail_close_it()
339 return_value = *IMAPG(quota_return); in mail_getquota()
368 add_assoc_stringl(IMAPG(imap_acl_list), alist->identifier, alist->rights, strlen(alist->rights)); in mail_getacl()
630 if (!IMAPG(enable_rsh)) { in PHP_MINIT_FUNCTION()
644 IMAPG(imap_errorstack) = NIL; in PHP_RINIT_FUNCTION()
645 IMAPG(imap_alertstack) = NIL; in PHP_RINIT_FUNCTION()
646 IMAPG(gets_stream) = NIL; in PHP_RINIT_FUNCTION()
657 if (IMAPG(imap_errorstack) != NIL) { in PHP_RSHUTDOWN_FUNCTION()
661 ecur = IMAPG(imap_errorstack); in PHP_RSHUTDOWN_FUNCTION()
668 mail_free_errorlist(&IMAPG(imap_errorstack)); in PHP_RSHUTDOWN_FUNCTION()
669 IMAPG(imap_errorstack) = NIL; in PHP_RSHUTDOWN_FUNCTION()
672 if (IMAPG(imap_alertstack) != NIL) { in PHP_RSHUTDOWN_FUNCTION()
676 acur = IMAPG(imap_alertstack); in PHP_RSHUTDOWN_FUNCTION()
683 mail_free_stringlist(&IMAPG(imap_alertstack)); in PHP_RSHUTDOWN_FUNCTION()
684 IMAPG(imap_alertstack) = NIL; in PHP_RSHUTDOWN_FUNCTION()
807 if (IMAPG(imap_user)) { in PHP_FUNCTION()
808 efree(IMAPG(imap_user)); in PHP_FUNCTION()
809 IMAPG(imap_user) = 0; in PHP_FUNCTION()
812 if (IMAPG(imap_password)) { in PHP_FUNCTION()
813 efree(IMAPG(imap_password)); in PHP_FUNCTION()
814 IMAPG(imap_password) = 0; in PHP_FUNCTION()
822 IMAPG(imap_user) = estrndup(ZSTR_VAL(user), ZSTR_LEN(user)); in PHP_FUNCTION()
823 IMAPG(imap_password) = estrndup(ZSTR_VAL(passwd), ZSTR_LEN(passwd)); in PHP_FUNCTION()
837 efree(IMAPG(imap_user)); IMAPG(imap_user) = 0; in PHP_FUNCTION()
838 efree(IMAPG(imap_password)); IMAPG(imap_password) = 0; in PHP_FUNCTION()
1035 IMAPG(quota_return) = &return_value; in PHP_FUNCTION()
1063 IMAPG(quota_return) = &return_value; in PHP_FUNCTION()
1137 IMAPG(imap_acl_list) = return_value; in PHP_FUNCTION()
1147 IMAPG(imap_acl_list) = NIL; in PHP_FUNCTION()
1473 IMAPG(folderlist_style) = FLIST_ARRAY; in PHP_FUNCTION()
1475 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1477 if (IMAPG(imap_folders) == NIL) { in PHP_FUNCTION()
1482 cur=IMAPG(imap_folders); in PHP_FUNCTION()
1487 mail_free_stringlist (&IMAPG(imap_folders)); in PHP_FUNCTION()
1488 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1512 IMAPG(folderlist_style) = FLIST_OBJECT; in PHP_FUNCTION()
1514 IMAPG(imap_folder_objects) = IMAPG(imap_folder_objects_tail) = NIL; in PHP_FUNCTION()
1516 if (IMAPG(imap_folder_objects) == NIL) { in PHP_FUNCTION()
1522 cur=IMAPG(imap_folder_objects); in PHP_FUNCTION()
1537 mail_free_foblist(&IMAPG(imap_folder_objects), &IMAPG(imap_folder_objects_tail)); in PHP_FUNCTION()
1539 IMAPG(folderlist_style) = FLIST_ARRAY; /* reset to default */ in PHP_FUNCTION()
1559 IMAPG(imap_folders) = NIL; in PHP_FUNCTION()
1561 if (IMAPG(imap_folders) == NIL) { in PHP_FUNCTION()
1566 cur=IMAPG(imap_folders); in PHP_FUNCTION()
1571 mail_free_stringlist (&IMAPG(imap_folders)); in PHP_FUNCTION()
1572 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1779 IMAPG(folderlist_style) = FLIST_ARRAY; in PHP_FUNCTION()
1781 IMAPG(imap_sfolders) = NIL; in PHP_FUNCTION()
1785 if (IMAPG(imap_sfolders) == NIL) { in PHP_FUNCTION()
1790 cur=IMAPG(imap_sfolders); in PHP_FUNCTION()
1795 mail_free_stringlist (&IMAPG(imap_sfolders)); in PHP_FUNCTION()
1796 IMAPG(imap_sfolders) = IMAPG(imap_sfolders_tail) = NIL; in PHP_FUNCTION()
1819 IMAPG(folderlist_style) = FLIST_OBJECT; in PHP_FUNCTION()
1821 IMAPG(imap_sfolder_objects) = IMAPG(imap_sfolder_objects_tail) = NIL; in PHP_FUNCTION()
1825 if (IMAPG(imap_sfolder_objects) == NIL) { in PHP_FUNCTION()
1831 cur=IMAPG(imap_sfolder_objects); in PHP_FUNCTION()
1846 mail_free_foblist (&IMAPG(imap_sfolder_objects), &IMAPG(imap_sfolder_objects_tail)); in PHP_FUNCTION()
1848 IMAPG(folderlist_style) = FLIST_ARRAY; /* reset to default */ in PHP_FUNCTION()
2061 IMAPG(gets_stream) = writer; in PHP_FUNCTION()
2065 IMAPG(gets_stream) = NULL; in PHP_FUNCTION()
2856 add_property_long(return_value, "flags", IMAPG(status_flags)); in PHP_FUNCTION()
2857 if (IMAPG(status_flags) & SA_MESSAGES) { in PHP_FUNCTION()
2858 add_property_long(return_value, "messages", IMAPG(status_messages)); in PHP_FUNCTION()
2860 if (IMAPG(status_flags) & SA_RECENT) { in PHP_FUNCTION()
2861 add_property_long(return_value, "recent", IMAPG(status_recent)); in PHP_FUNCTION()
2863 if (IMAPG(status_flags) & SA_UNSEEN) { in PHP_FUNCTION()
2864 add_property_long(return_value, "unseen", IMAPG(status_unseen)); in PHP_FUNCTION()
2866 if (IMAPG(status_flags) & SA_UIDNEXT) { in PHP_FUNCTION()
2867 add_property_long(return_value, "uidnext", IMAPG(status_uidnext)); in PHP_FUNCTION()
2869 if (IMAPG(status_flags) & SA_UIDVALIDITY) { in PHP_FUNCTION()
2870 add_property_long(return_value, "uidvalidity", IMAPG(status_uidvalidity)); in PHP_FUNCTION()
3793 IMAPG(imap_messages) = IMAPG(imap_messages_tail) = NIL; in PHP_FUNCTION()
3802 if (IMAPG(imap_messages) == NIL) { in PHP_FUNCTION()
3809 cur = IMAPG(imap_messages); in PHP_FUNCTION()
3814 mail_free_messagelist(&IMAPG(imap_messages), &IMAPG(imap_messages_tail)); in PHP_FUNCTION()
3829 if (IMAPG(imap_alertstack) == NIL) { in PHP_FUNCTION()
3835 cur = IMAPG(imap_alertstack); in PHP_FUNCTION()
3840 mail_free_stringlist(&IMAPG(imap_alertstack)); in PHP_FUNCTION()
3841 IMAPG(imap_alertstack) = NIL; in PHP_FUNCTION()
3855 if (IMAPG(imap_errorstack) == NIL) { in PHP_FUNCTION()
3861 cur = IMAPG(imap_errorstack); in PHP_FUNCTION()
3866 mail_free_errorlist(&IMAPG(imap_errorstack)); in PHP_FUNCTION()
3867 IMAPG(imap_errorstack) = NIL; in PHP_FUNCTION()
3881 if (IMAPG(imap_errorstack) == NIL) { in PHP_FUNCTION()
3885 cur = IMAPG(imap_errorstack); in PHP_FUNCTION()
4465 if (IMAPG(gets_stream)) { in php_mail_gets()
4482 } else if (read != php_stream_write(IMAPG(gets_stream), buf, read)) { in php_mail_gets()
4508 if (IMAPG(imap_messages) == NIL) { in mm_searched()
4509 IMAPG(imap_messages) = mail_newmessagelist(); in mm_searched()
4510 IMAPG(imap_messages)->msgid = number; in mm_searched()
4511 IMAPG(imap_messages)->next = NIL; in mm_searched()
4512 IMAPG(imap_messages_tail) = IMAPG(imap_messages); in mm_searched()
4514 cur = IMAPG(imap_messages_tail); in mm_searched()
4519 IMAPG(imap_messages_tail) = cur; in mm_searched()
4541 if (IMAPG(imap_alertstack) == NIL) { in mm_notify()
4542 IMAPG(imap_alertstack) = mail_newstringlist(); in mm_notify()
4543 …IMAPG(imap_alertstack)->LSIZE = strlen((char*)(IMAPG(imap_alertstack)->LTEXT = (unsigned char*)cpy… in mm_notify()
4544 IMAPG(imap_alertstack)->next = NIL; in mm_notify()
4546 cur = IMAPG(imap_alertstack); in mm_notify()
4563 if (IMAPG(folderlist_style) == FLIST_OBJECT) { in mm_list()
4566 if (IMAPG(imap_folder_objects) == NIL) { in mm_list()
4567 IMAPG(imap_folder_objects) = mail_newfolderobjectlist(); in mm_list()
4568 …IMAPG(imap_folder_objects)->LSIZE=strlen((char*)(IMAPG(imap_folder_objects)->LTEXT = (unsigned cha… in mm_list()
4569 IMAPG(imap_folder_objects)->delimiter = delimiter; in mm_list()
4570 IMAPG(imap_folder_objects)->attributes = attributes; in mm_list()
4571 IMAPG(imap_folder_objects)->next = NIL; in mm_list()
4572 IMAPG(imap_folder_objects_tail) = IMAPG(imap_folder_objects); in mm_list()
4574 ocur=IMAPG(imap_folder_objects_tail); in mm_list()
4581 IMAPG(imap_folder_objects_tail) = ocur; in mm_list()
4587 if (IMAPG(imap_folders) == NIL) { in mm_list()
4588 IMAPG(imap_folders)=mail_newstringlist(); in mm_list()
4589 …IMAPG(imap_folders)->LSIZE=strlen((char*)(IMAPG(imap_folders)->LTEXT = (unsigned char*)cpystr(mail… in mm_list()
4590 IMAPG(imap_folders)->next=NIL; in mm_list()
4591 IMAPG(imap_folders_tail) = IMAPG(imap_folders); in mm_list()
4593 cur=IMAPG(imap_folders_tail); in mm_list()
4598 IMAPG(imap_folders_tail) = cur; in mm_list()
4609 if (IMAPG(folderlist_style) == FLIST_OBJECT) { in mm_lsub()
4612 if (IMAPG(imap_sfolder_objects) == NIL) { in mm_lsub()
4613 IMAPG(imap_sfolder_objects) = mail_newfolderobjectlist(); in mm_lsub()
4614 …IMAPG(imap_sfolder_objects)->LSIZE = strlen((char*)(IMAPG(imap_sfolder_objects)->LTEXT = (unsigned… in mm_lsub()
4615 IMAPG(imap_sfolder_objects)->delimiter = delimiter; in mm_lsub()
4616 IMAPG(imap_sfolder_objects)->attributes = attributes; in mm_lsub()
4617 IMAPG(imap_sfolder_objects)->next = NIL; in mm_lsub()
4618 IMAPG(imap_sfolder_objects_tail) = IMAPG(imap_sfolder_objects); in mm_lsub()
4620 ocur=IMAPG(imap_sfolder_objects_tail); in mm_lsub()
4627 IMAPG(imap_sfolder_objects_tail) = ocur; in mm_lsub()
4631 if (IMAPG(imap_sfolders) == NIL) { in mm_lsub()
4632 IMAPG(imap_sfolders)=mail_newstringlist(); in mm_lsub()
4633 …IMAPG(imap_sfolders)->LSIZE=strlen((char*)(IMAPG(imap_sfolders)->LTEXT = (unsigned char*)cpystr(ma… in mm_lsub()
4634 IMAPG(imap_sfolders)->next=NIL; in mm_lsub()
4635 IMAPG(imap_sfolders_tail) = IMAPG(imap_sfolders); in mm_lsub()
4637 cur=IMAPG(imap_sfolders_tail); in mm_lsub()
4642 IMAPG(imap_sfolders_tail) = cur; in mm_lsub()
4650 IMAPG(status_flags)=status->flags; in mm_status()
4651 if (IMAPG(status_flags) & SA_MESSAGES) { in mm_status()
4652 IMAPG(status_messages)=status->messages; in mm_status()
4654 if (IMAPG(status_flags) & SA_RECENT) { in mm_status()
4655 IMAPG(status_recent)=status->recent; in mm_status()
4657 if (IMAPG(status_flags) & SA_UNSEEN) { in mm_status()
4658 IMAPG(status_unseen)=status->unseen; in mm_status()
4660 if (IMAPG(status_flags) & SA_UIDNEXT) { in mm_status()
4661 IMAPG(status_uidnext)=status->uidnext; in mm_status()
4663 if (IMAPG(status_flags) & SA_UIDVALIDITY) { in mm_status()
4664 IMAPG(status_uidvalidity)=status->uidvalidity; in mm_status()
4674 if (IMAPG(imap_errorstack) == NIL) { in mm_log()
4675 IMAPG(imap_errorstack) = mail_newerrorlist(); in mm_log()
4676 …IMAPG(imap_errorstack)->LSIZE = strlen((char*)(IMAPG(imap_errorstack)->LTEXT = (unsigned char*)cpy… in mm_log()
4677 IMAPG(imap_errorstack)->errflg = errflg; in mm_log()
4678 IMAPG(imap_errorstack)->next = NIL; in mm_log()
4680 cur = IMAPG(imap_errorstack); in mm_log()
4706 strlcpy (user, IMAPG(imap_user), MAILTMPLEN); in mm_login()
4708 strlcpy (pwd, IMAPG(imap_password), MAILTMPLEN); in mm_login()