php_imap.stub.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php
  2. /** @generate-class-entries */
  3. namespace IMAP {
  4. /**
  5. * @strict-properties
  6. * @not-serializable
  7. */
  8. final class Connection {
  9. }
  10. }
  11. namespace {
  12. function imap_open(string $mailbox, string $user, string $password, int $flags = 0, int $retries = 0, array $options = []): IMAP\Connection|false {}
  13. function imap_reopen(IMAP\Connection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}
  14. function imap_close(IMAP\Connection $imap, int $flags = 0): bool {}
  15. function imap_num_msg(IMAP\Connection $imap): int|false {}
  16. function imap_num_recent(IMAP\Connection $imap): int {}
  17. function imap_headers(IMAP\Connection $imap): array|false {}
  18. function imap_headerinfo(IMAP\Connection $imap, int $message_num, int $from_length = 0, int $subject_length = 0): \stdClass|false {}
  19. function imap_rfc822_parse_headers(string $headers, string $default_hostname = "UNKNOWN"): \stdClass {}
  20. function imap_rfc822_write_address(string $mailbox, string $hostname, string $personal): string|false {}
  21. function imap_rfc822_parse_adrlist(string $string, string $default_hostname): array {}
  22. function imap_body(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
  23. /** @alias imap_body */
  24. function imap_fetchtext(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
  25. function imap_bodystruct(IMAP\Connection $imap, int $message_num, string $section): \stdClass|false {}
  26. function imap_fetchbody(IMAP\Connection $imap, int $message_num, string $section, int $flags = 0): string|false {}
  27. function imap_fetchmime(IMAP\Connection $imap, int $message_num, string $section, int $flags = 0): string|false {}
  28. /** @param resource|string|int $file */
  29. function imap_savebody(IMAP\Connection $imap, $file, int $message_num, string $section = "", int $flags = 0): bool {}
  30. function imap_fetchheader(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
  31. function imap_fetchstructure(IMAP\Connection $imap, int $message_num, int $flags = 0): \stdClass|false {}
  32. function imap_gc(IMAP\Connection $imap, int $flags): bool {}
  33. function imap_expunge(IMAP\Connection $imap): bool {}
  34. function imap_delete(IMAP\Connection $imap, string $message_nums, int $flags = 0): bool {}
  35. function imap_undelete(IMAP\Connection $imap, string $message_nums, int $flags = 0): bool {}
  36. function imap_check(IMAP\Connection $imap): \stdClass|false {}
  37. function imap_listscan(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
  38. /** @alias imap_listscan */
  39. function imap_scan(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
  40. /** @alias imap_listscan */
  41. function imap_scanmailbox(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
  42. function imap_mail_copy(IMAP\Connection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}
  43. function imap_mail_move(IMAP\Connection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}
  44. function imap_mail_compose(array $envelope, array $bodies): string|false {}
  45. function imap_createmailbox(IMAP\Connection $imap, string $mailbox): bool {}
  46. /** @alias imap_createmailbox */
  47. function imap_create(IMAP\Connection $imap, string $mailbox): bool {}
  48. function imap_renamemailbox(IMAP\Connection $imap, string $from, string $to): bool {}
  49. /** @alias imap_renamemailbox */
  50. function imap_rename(IMAP\Connection $imap, string $from, string $to): bool {}
  51. function imap_deletemailbox(IMAP\Connection $imap, string $mailbox): bool {}
  52. function imap_subscribe(IMAP\Connection $imap, string $mailbox): bool {}
  53. function imap_unsubscribe(IMAP\Connection $imap, string $mailbox): bool {}
  54. function imap_append(IMAP\Connection $imap, string $folder, string $message, ?string $options = null, ?string $internal_date = null): bool {}
  55. function imap_ping(IMAP\Connection $imap): bool {}
  56. function imap_base64(string $string): string|false {}
  57. function imap_qprint(string $string): string|false {}
  58. function imap_8bit(string $string): string|false {}
  59. function imap_binary(string $string): string|false {}
  60. function imap_utf8(string $mime_encoded_text): string {}
  61. function imap_status(IMAP\Connection $imap, string $mailbox, int $flags): \stdClass|false {}
  62. function imap_mailboxmsginfo(IMAP\Connection $imap): \stdClass {}
  63. function imap_setflag_full(IMAP\Connection $imap, string $sequence, string $flag, int $options = 0): bool {}
  64. function imap_clearflag_full(IMAP\Connection $imap, string $sequence, string $flag, int $options = 0): bool {}
  65. function imap_sort(IMAP\Connection $imap, int $criteria, bool $reverse, int $flags = 0, ?string $search_criteria = null, ?string $charset = null): array|false {}
  66. function imap_uid(IMAP\Connection $imap, int $message_num): int|false {}
  67. function imap_msgno(IMAP\Connection $imap, int $message_uid): int {}
  68. function imap_list(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
  69. /** @alias imap_list */
  70. function imap_listmailbox(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
  71. function imap_lsub(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
  72. /** @alias imap_lsub */
  73. function imap_listsubscribed(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
  74. function imap_getsubscribed(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
  75. function imap_getmailboxes(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
  76. function imap_fetch_overview(IMAP\Connection $imap, string $sequence, int $flags = 0): array|false {}
  77. function imap_alerts(): array|false {}
  78. function imap_errors(): array|false {}
  79. function imap_last_error(): string|false {}
  80. function imap_search(IMAP\Connection $imap, string $criteria, int $flags = SE_FREE, string $charset = ""): array|false {}
  81. function imap_utf7_decode(string $string): string|false {}
  82. function imap_utf7_encode(string $string): string {}
  83. #ifdef HAVE_IMAP_MUTF7
  84. function imap_utf8_to_mutf7(string $string): string|false {}
  85. function imap_mutf7_to_utf8(string $string): string|false {}
  86. #endif
  87. function imap_mime_header_decode(string $string): array|false {}
  88. function imap_thread(IMAP\Connection $imap, int $flags = SE_FREE): array|false {}
  89. function imap_timeout(int $timeout_type, int $timeout = -1): int|bool {}
  90. #if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
  91. function imap_get_quota(IMAP\Connection $imap, string $quota_root): array|false {}
  92. function imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false {}
  93. function imap_set_quota(IMAP\Connection $imap, string $quota_root, int $mailbox_size): bool {}
  94. function imap_setacl(IMAP\Connection $imap, string $mailbox, string $user_id, string $rights): bool {}
  95. function imap_getacl(IMAP\Connection $imap, string $mailbox): array|false {}
  96. #endif
  97. function imap_mail(string $to, string $subject, string $message, ?string $additional_headers = null, ?string $cc = null, ?string $bcc = null, ?string $return_path = null): bool {}
  98. }