Lines Matching refs:IMAPG
619 if (IMAPG(imap_user)) {
620 efree(IMAPG(imap_user));
621 IMAPG(imap_user) = 0;
623 if (IMAPG(imap_password)) {
624 efree(IMAPG(imap_password));
625 IMAPG(imap_password) = 0;
773 return_value = *IMAPG(quota_return); in mail_getquota()
802 add_assoc_stringl(IMAPG(imap_acl_list), alist->identifier, alist->rights, strlen(alist->rights)); in mail_getacl()
1063 if (!IMAPG(enable_rsh)) { in PHP_MINIT_FUNCTION()
1078 IMAPG(imap_errorstack) = NIL; in PHP_RINIT_FUNCTION()
1079 IMAPG(imap_alertstack) = NIL; in PHP_RINIT_FUNCTION()
1080 IMAPG(gets_stream) = NIL; in PHP_RINIT_FUNCTION()
1092 if (IMAPG(imap_errorstack) != NIL) { in PHP_RSHUTDOWN_FUNCTION()
1095 ecur = IMAPG(imap_errorstack); in PHP_RSHUTDOWN_FUNCTION()
1101 mail_free_errorlist(&IMAPG(imap_errorstack)); in PHP_RSHUTDOWN_FUNCTION()
1102 IMAPG(imap_errorstack) = NIL; in PHP_RSHUTDOWN_FUNCTION()
1105 if (IMAPG(imap_alertstack) != NIL) { in PHP_RSHUTDOWN_FUNCTION()
1108 acur = IMAPG(imap_alertstack); in PHP_RSHUTDOWN_FUNCTION()
1114 mail_free_stringlist(&IMAPG(imap_alertstack)); in PHP_RSHUTDOWN_FUNCTION()
1115 IMAPG(imap_alertstack) = NIL; in PHP_RSHUTDOWN_FUNCTION()
1227 if (IMAPG(imap_user)) { in php_imap_do_open()
1228 efree(IMAPG(imap_user)); in php_imap_do_open()
1229 IMAPG(imap_user) = 0; in php_imap_do_open()
1232 if (IMAPG(imap_password)) { in php_imap_do_open()
1233 efree(IMAPG(imap_password)); in php_imap_do_open()
1234 IMAPG(imap_password) = 0; in php_imap_do_open()
1242 IMAPG(imap_user) = estrndup(ZSTR_VAL(user), ZSTR_LEN(user)); in php_imap_do_open()
1243 IMAPG(imap_password) = estrndup(ZSTR_VAL(passwd), ZSTR_LEN(passwd)); in php_imap_do_open()
1259 efree(IMAPG(imap_user)); IMAPG(imap_user) = 0; in php_imap_do_open()
1260 efree(IMAPG(imap_password)); IMAPG(imap_password) = 0; in php_imap_do_open()
1452 IMAPG(quota_return) = &return_value; in PHP_FUNCTION()
1481 IMAPG(quota_return) = &return_value; in PHP_FUNCTION()
1558 IMAPG(imap_acl_list) = return_value; in PHP_FUNCTION()
1568 IMAPG(imap_acl_list) = NIL; in PHP_FUNCTION()
1901 IMAPG(folderlist_style) = FLIST_ARRAY; in PHP_FUNCTION()
1903 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1905 if (IMAPG(imap_folders) == NIL) { in PHP_FUNCTION()
1910 cur=IMAPG(imap_folders); in PHP_FUNCTION()
1915 mail_free_stringlist (&IMAPG(imap_folders)); in PHP_FUNCTION()
1916 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
1941 IMAPG(folderlist_style) = FLIST_OBJECT; in PHP_FUNCTION()
1943 IMAPG(imap_folder_objects) = IMAPG(imap_folder_objects_tail) = NIL; in PHP_FUNCTION()
1945 if (IMAPG(imap_folder_objects) == NIL) { in PHP_FUNCTION()
1951 cur=IMAPG(imap_folder_objects); in PHP_FUNCTION()
1966 mail_free_foblist(&IMAPG(imap_folder_objects), &IMAPG(imap_folder_objects_tail)); in PHP_FUNCTION()
1968 IMAPG(folderlist_style) = FLIST_ARRAY; /* reset to default */ in PHP_FUNCTION()
1989 IMAPG(imap_folders) = NIL; in PHP_FUNCTION()
1991 if (IMAPG(imap_folders) == NIL) { in PHP_FUNCTION()
1996 cur=IMAPG(imap_folders); in PHP_FUNCTION()
2001 mail_free_stringlist (&IMAPG(imap_folders)); in PHP_FUNCTION()
2002 IMAPG(imap_folders) = IMAPG(imap_folders_tail) = NIL; in PHP_FUNCTION()
2218 IMAPG(folderlist_style) = FLIST_ARRAY; in PHP_FUNCTION()
2220 IMAPG(imap_sfolders) = NIL; in PHP_FUNCTION()
2222 if (IMAPG(imap_sfolders) == NIL) { in PHP_FUNCTION()
2227 cur=IMAPG(imap_sfolders); in PHP_FUNCTION()
2232 mail_free_stringlist (&IMAPG(imap_sfolders)); in PHP_FUNCTION()
2233 IMAPG(imap_sfolders) = IMAPG(imap_sfolders_tail) = NIL; in PHP_FUNCTION()
2257 IMAPG(folderlist_style) = FLIST_OBJECT; in PHP_FUNCTION()
2259 IMAPG(imap_sfolder_objects) = IMAPG(imap_sfolder_objects_tail) = NIL; in PHP_FUNCTION()
2261 if (IMAPG(imap_sfolder_objects) == NIL) { in PHP_FUNCTION()
2267 cur=IMAPG(imap_sfolder_objects); in PHP_FUNCTION()
2282 mail_free_foblist (&IMAPG(imap_sfolder_objects), &IMAPG(imap_sfolder_objects_tail)); in PHP_FUNCTION()
2284 IMAPG(folderlist_style) = FLIST_ARRAY; /* reset to default */ in PHP_FUNCTION()
2510 IMAPG(gets_stream) = writer; in PHP_FUNCTION()
2514 IMAPG(gets_stream) = NULL; in PHP_FUNCTION()
3313 add_property_long(return_value, "flags", IMAPG(status_flags)); in PHP_FUNCTION()
3314 if (IMAPG(status_flags) & SA_MESSAGES) { in PHP_FUNCTION()
3315 add_property_long(return_value, "messages", IMAPG(status_messages)); in PHP_FUNCTION()
3317 if (IMAPG(status_flags) & SA_RECENT) { in PHP_FUNCTION()
3318 add_property_long(return_value, "recent", IMAPG(status_recent)); in PHP_FUNCTION()
3320 if (IMAPG(status_flags) & SA_UNSEEN) { in PHP_FUNCTION()
3321 add_property_long(return_value, "unseen", IMAPG(status_unseen)); in PHP_FUNCTION()
3323 if (IMAPG(status_flags) & SA_UIDNEXT) { in PHP_FUNCTION()
3324 add_property_long(return_value, "uidnext", IMAPG(status_uidnext)); in PHP_FUNCTION()
3326 if (IMAPG(status_flags) & SA_UIDVALIDITY) { in PHP_FUNCTION()
3327 add_property_long(return_value, "uidvalidity", IMAPG(status_uidvalidity)); in PHP_FUNCTION()
4165 IMAPG(imap_messages) = IMAPG(imap_messages_tail) = NIL; in PHP_FUNCTION()
4174 if (IMAPG(imap_messages) == NIL) { in PHP_FUNCTION()
4181 cur = IMAPG(imap_messages); in PHP_FUNCTION()
4186 mail_free_messagelist(&IMAPG(imap_messages), &IMAPG(imap_messages_tail)); in PHP_FUNCTION()
4202 if (IMAPG(imap_alertstack) == NIL) { in PHP_FUNCTION()
4208 cur = IMAPG(imap_alertstack); in PHP_FUNCTION()
4213 mail_free_stringlist(&IMAPG(imap_alertstack)); in PHP_FUNCTION()
4214 IMAPG(imap_alertstack) = NIL; in PHP_FUNCTION()
4229 if (IMAPG(imap_errorstack) == NIL) { in PHP_FUNCTION()
4235 cur = IMAPG(imap_errorstack); in PHP_FUNCTION()
4240 mail_free_errorlist(&IMAPG(imap_errorstack)); in PHP_FUNCTION()
4241 IMAPG(imap_errorstack) = NIL; in PHP_FUNCTION()
4256 if (IMAPG(imap_errorstack) == NIL) { in PHP_FUNCTION()
4260 cur = IMAPG(imap_errorstack); in PHP_FUNCTION()
4851 if (IMAPG(gets_stream)) { in php_mail_gets()
4868 } else if (read != php_stream_write(IMAPG(gets_stream), buf, read)) { in php_mail_gets()
4895 if (IMAPG(imap_messages) == NIL) { in mm_searched()
4896 IMAPG(imap_messages) = mail_newmessagelist(); in mm_searched()
4897 IMAPG(imap_messages)->msgid = number; in mm_searched()
4898 IMAPG(imap_messages)->next = NIL; in mm_searched()
4899 IMAPG(imap_messages_tail) = IMAPG(imap_messages); in mm_searched()
4901 cur = IMAPG(imap_messages_tail); in mm_searched()
4906 IMAPG(imap_messages_tail) = cur; in mm_searched()
4928 if (IMAPG(imap_alertstack) == NIL) { in mm_notify()
4929 IMAPG(imap_alertstack) = mail_newstringlist(); in mm_notify()
4930 …IMAPG(imap_alertstack)->LSIZE = strlen((char*)(IMAPG(imap_alertstack)->LTEXT = (unsigned char*)cpy… in mm_notify()
4931 IMAPG(imap_alertstack)->next = NIL; in mm_notify()
4933 cur = IMAPG(imap_alertstack); in mm_notify()
4950 if (IMAPG(folderlist_style) == FLIST_OBJECT) { in mm_list()
4953 if (IMAPG(imap_folder_objects) == NIL) { in mm_list()
4954 IMAPG(imap_folder_objects) = mail_newfolderobjectlist(); in mm_list()
4955 …IMAPG(imap_folder_objects)->LSIZE=strlen((char*)(IMAPG(imap_folder_objects)->LTEXT = (unsigned cha… in mm_list()
4956 IMAPG(imap_folder_objects)->delimiter = delimiter; in mm_list()
4957 IMAPG(imap_folder_objects)->attributes = attributes; in mm_list()
4958 IMAPG(imap_folder_objects)->next = NIL; in mm_list()
4959 IMAPG(imap_folder_objects_tail) = IMAPG(imap_folder_objects); in mm_list()
4961 ocur=IMAPG(imap_folder_objects_tail); in mm_list()
4968 IMAPG(imap_folder_objects_tail) = ocur; in mm_list()
4974 if (IMAPG(imap_folders) == NIL) { in mm_list()
4975 IMAPG(imap_folders)=mail_newstringlist(); in mm_list()
4976 …IMAPG(imap_folders)->LSIZE=strlen((char*)(IMAPG(imap_folders)->LTEXT = (unsigned char*)cpystr(mail… in mm_list()
4977 IMAPG(imap_folders)->next=NIL; in mm_list()
4978 IMAPG(imap_folders_tail) = IMAPG(imap_folders); in mm_list()
4980 cur=IMAPG(imap_folders_tail); in mm_list()
4985 IMAPG(imap_folders_tail) = cur; in mm_list()
4996 if (IMAPG(folderlist_style) == FLIST_OBJECT) { in mm_lsub()
4999 if (IMAPG(imap_sfolder_objects) == NIL) { in mm_lsub()
5000 IMAPG(imap_sfolder_objects) = mail_newfolderobjectlist(); in mm_lsub()
5001 …IMAPG(imap_sfolder_objects)->LSIZE = strlen((char*)(IMAPG(imap_sfolder_objects)->LTEXT = (unsigned… in mm_lsub()
5002 IMAPG(imap_sfolder_objects)->delimiter = delimiter; in mm_lsub()
5003 IMAPG(imap_sfolder_objects)->attributes = attributes; in mm_lsub()
5004 IMAPG(imap_sfolder_objects)->next = NIL; in mm_lsub()
5005 IMAPG(imap_sfolder_objects_tail) = IMAPG(imap_sfolder_objects); in mm_lsub()
5007 ocur=IMAPG(imap_sfolder_objects_tail); in mm_lsub()
5014 IMAPG(imap_sfolder_objects_tail) = ocur; in mm_lsub()
5018 if (IMAPG(imap_sfolders) == NIL) { in mm_lsub()
5019 IMAPG(imap_sfolders)=mail_newstringlist(); in mm_lsub()
5020 …IMAPG(imap_sfolders)->LSIZE=strlen((char*)(IMAPG(imap_sfolders)->LTEXT = (unsigned char*)cpystr(ma… in mm_lsub()
5021 IMAPG(imap_sfolders)->next=NIL; in mm_lsub()
5022 IMAPG(imap_sfolders_tail) = IMAPG(imap_sfolders); in mm_lsub()
5024 cur=IMAPG(imap_sfolders_tail); in mm_lsub()
5029 IMAPG(imap_sfolders_tail) = cur; in mm_lsub()
5037 IMAPG(status_flags)=status->flags; in mm_status()
5038 if (IMAPG(status_flags) & SA_MESSAGES) { in mm_status()
5039 IMAPG(status_messages)=status->messages; in mm_status()
5041 if (IMAPG(status_flags) & SA_RECENT) { in mm_status()
5042 IMAPG(status_recent)=status->recent; in mm_status()
5044 if (IMAPG(status_flags) & SA_UNSEEN) { in mm_status()
5045 IMAPG(status_unseen)=status->unseen; in mm_status()
5047 if (IMAPG(status_flags) & SA_UIDNEXT) { in mm_status()
5048 IMAPG(status_uidnext)=status->uidnext; in mm_status()
5050 if (IMAPG(status_flags) & SA_UIDVALIDITY) { in mm_status()
5051 IMAPG(status_uidvalidity)=status->uidvalidity; in mm_status()
5061 if (IMAPG(imap_errorstack) == NIL) { in mm_log()
5062 IMAPG(imap_errorstack) = mail_newerrorlist(); in mm_log()
5063 …IMAPG(imap_errorstack)->LSIZE = strlen((char*)(IMAPG(imap_errorstack)->LTEXT = (unsigned char*)cpy… in mm_log()
5064 IMAPG(imap_errorstack)->errflg = errflg; in mm_log()
5065 IMAPG(imap_errorstack)->next = NIL; in mm_log()
5067 cur = IMAPG(imap_errorstack); in mm_log()
5093 strlcpy (user, IMAPG(imap_user), MAILTMPLEN); in mm_login()
5095 strlcpy (pwd, IMAPG(imap_password), MAILTMPLEN); in mm_login()