tempemail-sdk 1.3.2__tar.gz → 1.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/PKG-INFO +1 -1
  2. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/pyproject.toml +1 -1
  3. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempemail_sdk.egg-info/PKG-INFO +1 -1
  4. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/haribu.py +31 -5
  5. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail_sunls.py +56 -2
  6. tempemail_sdk-1.3.4/tempmail_sdk/providers/maildrop.py +204 -0
  7. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailinator.py +7 -2
  8. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/moakt.py +28 -5
  9. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mohmal.py +29 -13
  10. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/vip_215.py +101 -4
  11. tempemail_sdk-1.3.2/tempmail_sdk/providers/maildrop.py +0 -114
  12. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/README.md +0 -0
  13. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/setup.cfg +0 -0
  14. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempemail_sdk.egg-info/SOURCES.txt +0 -0
  15. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempemail_sdk.egg-info/dependency_links.txt +0 -0
  16. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempemail_sdk.egg-info/requires.txt +0 -0
  17. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempemail_sdk.egg-info/top_level.txt +0 -0
  18. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/__init__.py +0 -0
  19. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/backend_groups.py +0 -0
  20. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/channel_domains.py +0 -0
  21. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/client.py +0 -0
  22. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/config.py +0 -0
  23. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/html_utils.py +0 -0
  24. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/http.py +0 -0
  25. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/logger.py +0 -0
  26. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/normalize.py +0 -0
  27. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/__init__.py +0 -0
  28. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/altmails.py +0 -0
  29. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/anonbox.py +0 -0
  30. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/anonymmail.py +0 -0
  31. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/apihz.py +0 -0
  32. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/awamail.py +0 -0
  33. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/b_smelly_cc.py +0 -0
  34. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/best_temp_mail.py +0 -0
  35. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/binkmail_com.py +0 -0
  36. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/blackhole_djurby_se.py +0 -0
  37. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/block_bdea_cc.py +0 -0
  38. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/bobmail_info.py +0 -0
  39. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/bsdu32_buzz.py +0 -0
  40. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/byom.py +0 -0
  41. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/carlton183_changeip_net.py +0 -0
  42. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/catchmail.py +0 -0
  43. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/chacuo_24mail.py +0 -0
  44. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/chammy_info.py +0 -0
  45. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/chatgpt_org_uk.py +0 -0
  46. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/cleantempmail.py +0 -0
  47. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/crap_kakadua_net.py +0 -0
  48. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/dea_soon_it.py +0 -0
  49. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/devmail_uk.py +0 -0
  50. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/disposable_al_sudani_com.py +0 -0
  51. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/disposable_nogonad_nl.py +0 -0
  52. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/disposablemail_app.py +0 -0
  53. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/disposablemail_com.py +0 -0
  54. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/doxu243_buzz.py +0 -0
  55. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/dropmail.py +0 -0
  56. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/dropmail_click.py +0 -0
  57. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/dropmail_me.py +0 -0
  58. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/duckmail.py +0 -0
  59. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/easyme_pro.py +0 -0
  60. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/ebs_com_ar.py +0 -0
  61. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/email10min.py +0 -0
  62. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/emailnator.py +0 -0
  63. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/emailtemp_org.py +0 -0
  64. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/etgdev_de.py +0 -0
  65. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/evergreenco_shop.py +0 -0
  66. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/expressinboxhub.py +0 -0
  67. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/eyepaste.py +0 -0
  68. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/fake_email_site.py +0 -0
  69. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/fake_legal.py +0 -0
  70. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/fakemail.py +0 -0
  71. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/fish_skytale_net.py +0 -0
  72. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/fmail.py +0 -0
  73. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/freecustom.py +0 -0
  74. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/fwd2m_eszett_es.py +0 -0
  75. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/getnada.py +0 -0
  76. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/gonebox_email.py +0 -0
  77. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/guerrillamail.py +0 -0
  78. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/guerrillamail_mirrors.py +0 -0
  79. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/guerrillamailblock.py +0 -0
  80. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/harakirimail.py +0 -0
  81. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/inboxes.py +0 -0
  82. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/inboxkitten.py +0 -0
  83. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/j_fairuse_org.py +0 -0
  84. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/jama_trenet_eu.py +0 -0
  85. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/junk_beats_org.py +0 -0
  86. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/junk_ihmehl_com.py +0 -0
  87. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/junk_noplay_org.py +0 -0
  88. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/junk_vanillasystem_com.py +0 -0
  89. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/layueming_pics.py +0 -0
  90. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/linshi_co.py +0 -0
  91. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/linshiyou.py +0 -0
  92. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/linshiyouxiang_net.py +0 -0
  93. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/lroid.py +0 -0
  94. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/m2u.py +0 -0
  95. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/m8r_davidfuhr_de.py +0 -0
  96. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/m8r_mcasal_com.py +0 -0
  97. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/m_887_at.py +0 -0
  98. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/m_nik_me.py +0 -0
  99. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail10s.py +0 -0
  100. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail123.py +0 -0
  101. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail_bentrask_com.py +0 -0
  102. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail_cx.py +0 -0
  103. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail_fsmash_org.py +0 -0
  104. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail_td.py +0 -0
  105. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mail_tm.py +0 -0
  106. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailcat_ai.py +0 -0
  107. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailcatch.py +0 -0
  108. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/maildrop_cc.py +0 -0
  109. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailforspam.py +0 -0
  110. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailgolem.py +0 -0
  111. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailhole_de.py +0 -0
  112. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailinatorzz_mooo_com.py +0 -0
  113. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailmomy.py +0 -0
  114. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailnesia.py +0 -0
  115. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mailtemp_cc.py +0 -0
  116. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mffac.py +0 -0
  117. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mi_meon_be.py +0 -0
  118. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/min_burningfish_net.py +0 -0
  119. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mingyuekeji_online.py +0 -0
  120. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mingyueming_click.py +0 -0
  121. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mingyueming_shop.py +0 -0
  122. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mingyukeji_lol.py +0 -0
  123. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/minuteinbox.py +0 -0
  124. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mjj_cm.py +0 -0
  125. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mn_curppa_com.py +0 -0
  126. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mtmdev_com.py +0 -0
  127. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/mytempmail_cc.py +0 -0
  128. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/n10minutemail_net.py +0 -0
  129. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/n16888888_cyou.py +0 -0
  130. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/n17666688_shop.py +0 -0
  131. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/n282mail_com.py +0 -0
  132. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/neighbours.py +0 -0
  133. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/neighbours_sh.py +0 -0
  134. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/nimail.py +0 -0
  135. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/nospam_thurstons_us.py +0 -0
  136. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/notfond_404_mn.py +0 -0
  137. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/notmailinator_com.py +0 -0
  138. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/null_k3vin_net.py +0 -0
  139. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/nuxh62_space.py +0 -0
  140. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/ockito.py +0 -0
  141. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/one_sec_mail.py +0 -0
  142. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/openinbox.py +0 -0
  143. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/papuabaratdaya_net.py +0 -0
  144. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/proid_cloud_ip_cc.py +0 -0
  145. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/ramjane_mooo_com.py +0 -0
  146. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/rauxa_seny_cat.py +0 -0
  147. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/really_istrash_com.py +0 -0
  148. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/restmail_net.py +0 -0
  149. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/rootsh.py +0 -0
  150. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/sbook_pics.py +0 -0
  151. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/sendfree_org.py +0 -0
  152. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/sendspamhere_com.py +0 -0
  153. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/shitty_email.py +0 -0
  154. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/sink_fblay_com.py +0 -0
  155. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/smail_pw.py +0 -0
  156. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/smailpro.py +0 -0
  157. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/socketio_mail.py +0 -0
  158. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/sogetthis_com.py +0 -0
  159. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/sp_woot_at.py +0 -0
  160. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam4me.py +0 -0
  161. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_coroiu_com.py +0 -0
  162. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_deluser_net.py +0 -0
  163. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_dhsf_net.py +0 -0
  164. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_hortuk_ovh.py +0 -0
  165. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_janlugt_nl.py +0 -0
  166. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_jasonpearce_com.py +0 -0
  167. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_lucatnt_com.py +0 -0
  168. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_lyceum_life_com_ru.py +0 -0
  169. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_mccrew_com.py +0 -0
  170. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_netpirates_net.py +0 -0
  171. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_no_ip_net.py +0 -0
  172. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_ozh_org.py +0 -0
  173. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_pyphus_org.py +0 -0
  174. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_shep_pw.py +0 -0
  175. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_wtf_at.py +0 -0
  176. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spam_wulczer_org.py +0 -0
  177. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/spamhereplease_com.py +0 -0
  178. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/suremail_info.py +0 -0
  179. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/t_zibet_net.py +0 -0
  180. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/ta_easy.py +0 -0
  181. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/temp_mail_io.py +0 -0
  182. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/temp_mail_now.py +0 -0
  183. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/temp_mail_org.py +0 -0
  184. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempemail_co.py +0 -0
  185. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempemail_info.py +0 -0
  186. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempemails_net.py +0 -0
  187. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempfastmail.py +0 -0
  188. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempgbox.py +0 -0
  189. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempgmailer.py +0 -0
  190. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempgo_email.py +0 -0
  191. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempinbox.py +0 -0
  192. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail.py +0 -0
  193. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail365.py +0 -0
  194. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail_cn.py +0 -0
  195. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail_fish.py +0 -0
  196. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail_fyi.py +0 -0
  197. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail_lol.py +0 -0
  198. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail_lol_v2.py +0 -0
  199. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmail_plus.py +0 -0
  200. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmailc.py +0 -0
  201. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmailpro.py +0 -0
  202. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempmailten.py +0 -0
  203. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/temporam.py +0 -0
  204. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempp_mails.py +0 -0
  205. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tempy_email.py +0 -0
  206. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/ten_minute_mail_net.py +0 -0
  207. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tenminute_one.py +0 -0
  208. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tenminutemail_net.py +0 -0
  209. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/test_unergie_com.py +0 -0
  210. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/thisisnotmyrealemail_com.py +0 -0
  211. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/throwawaymail.py +0 -0
  212. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tmail_link.py +0 -0
  213. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/tmails_net.py +0 -0
  214. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/torch_yi_org.py +0 -0
  215. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/twentyfourmail_chacuo.py +0 -0
  216. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/uncorreotemporal.py +0 -0
  217. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/veryrealemail_com.py +0 -0
  218. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/webmailtemp.py +0 -0
  219. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/xkx_me.py +0 -0
  220. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/xue32_buzz.py +0 -0
  221. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/providers/zhujump.py +0 -0
  222. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/registry.py +0 -0
  223. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/retry.py +0 -0
  224. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/telemetry.py +0 -0
  225. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/types.py +0 -0
  226. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tempmail_sdk/webui.py +0 -0
  227. {tempemail_sdk-1.3.2 → tempemail_sdk-1.3.4}/tests/test_channel_baseline.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tempemail-sdk
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: 临时邮箱 SDK,所有渠道返回统一标准化格式
5
5
  License: GPL-3.0
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tempemail-sdk"
7
- version = "1.3.2"
7
+ version = "1.3.4"
8
8
  description = "临时邮箱 SDK,所有渠道返回统一标准化格式"
9
9
  readme = "README.md"
10
10
  license = {text = "GPL-3.0"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tempemail-sdk
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: 临时邮箱 SDK,所有渠道返回统一标准化格式
5
5
  License: GPL-3.0
6
6
  Requires-Python: >=3.10
@@ -64,11 +64,37 @@ _MAIL_LINK_RE = re.compile(
64
64
  r'(?i)href\s*=\s*["\']([^"\']*(?:mail|read|view)[^"\']*)["\']'
65
65
  )
66
66
  # 匹配邮件正文容器
67
- _BODY_RE = re.compile(
68
- r'(?is)<div\s+(?:id|class)\s*=\s*["\'](?:mail_icerik|icerik|mail-content|message-body)["\'][^>]*>([\s\S]*?)</div>'
67
+ _BODY_OPEN_RE = re.compile(
68
+ r'(?is)<div\s+(?:id|class)\s*=\s*["\'](?:mail_icerik|icerik|mail-content|message-body)["\'][^>]*>'
69
69
  )
70
70
 
71
71
 
72
+ def _extract_body_html(page: str) -> str:
73
+ """使用栈式深度匹配提取正文 div 的完整内部 HTML,
74
+ 避免非贪婪正则在嵌套 div 时截断正文。
75
+ """
76
+ m = _BODY_OPEN_RE.search(page)
77
+ if not m:
78
+ return ""
79
+ start = m.end()
80
+ pos = start
81
+ depth = 1
82
+ while pos < len(page) and depth > 0:
83
+ next_open = page.find("<div", pos)
84
+ next_close = page.find("</div>", pos)
85
+ if next_close == -1:
86
+ break
87
+ if next_open != -1 and next_open < next_close:
88
+ depth += 1
89
+ pos = next_open + 4
90
+ else:
91
+ depth -= 1
92
+ if depth == 0:
93
+ return page[start:next_close].strip()
94
+ pos = next_close + 6
95
+ return ""
96
+
97
+
72
98
  def _strip_tags(html_str: str) -> str:
73
99
  """移除 HTML 标签,返回纯文本"""
74
100
  return re.sub(r"<[^>]+>", " ", html_str).strip()
@@ -176,9 +202,9 @@ def _fetch_detail(detail_url: str, cookie_hdr: str) -> str:
176
202
  if resp.status_code < 200 or resp.status_code >= 300:
177
203
  return ""
178
204
  html_str = resp.text or ""
179
- m = _BODY_RE.search(html_str)
180
- if m:
181
- return m.group(1).strip()
205
+ body = _extract_body_html(html_str)
206
+ if body:
207
+ return body
182
208
  except Exception:
183
209
  pass
184
210
  return ""
@@ -67,8 +67,53 @@ def generate_email() -> EmailInfo:
67
67
  return EmailInfo(channel=CHANNEL, email=email)
68
68
 
69
69
 
70
+ def _fetch_detail(mail_id: str) -> dict | None:
71
+ """
72
+ 通过详情接口获取单封邮件完整正文
73
+ GET /api/fetch/{id}
74
+ 失败时返回 None,调用方回退到列表数据
75
+ """
76
+ mid = (mail_id or "").strip()
77
+ if not mid:
78
+ return None
79
+ try:
80
+ resp = tm_http.get(
81
+ f"{BASE}/api/fetch/{quote(mid, safe='')}",
82
+ headers=HEADERS,
83
+ timeout=15,
84
+ )
85
+ if resp.status_code < 200 or resp.status_code >= 300:
86
+ return None
87
+ data = resp.json()
88
+ if isinstance(data, dict):
89
+ return data
90
+ except Exception: # noqa: BLE001
91
+ return None
92
+ return None
93
+
94
+
95
+ def _extract_id(row: dict) -> str:
96
+ """从列表条目提取邮件 ID(支持多种字段和类型)"""
97
+ for key in ("id", "_id", "mail_id", "messageId", "message_id"):
98
+ v = row.get(key)
99
+ if v is None:
100
+ continue
101
+ if isinstance(v, str):
102
+ s = v.strip()
103
+ if s:
104
+ return s
105
+ elif isinstance(v, (int, float)) and not isinstance(v, bool):
106
+ return str(int(v))
107
+ return ""
108
+
109
+
70
110
  def get_emails(email: str) -> List[Email]:
71
- """获取指定邮箱的邮件列表"""
111
+ """
112
+ 获取邮件列表
113
+ 1. GET /api/fetch?to={email} 拉取列表元数据
114
+ 2. 对每封邮件 GET /api/fetch/{id} 拉取详情(含完整 text/html)
115
+ 3. 详情失败时保留列表字段作为回退
116
+ """
72
117
  if not (email or "").strip():
73
118
  raise ValueError("mail-sunls: 邮箱地址不能为空")
74
119
  addr = email.strip()
@@ -85,5 +130,14 @@ def get_emails(email: str) -> List[Email]:
85
130
  for raw in data:
86
131
  if not isinstance(raw, dict):
87
132
  continue
88
- out.append(normalize_email(raw, addr))
133
+ mail_id = _extract_id(raw)
134
+ merged = dict(raw)
135
+ # 无条件调用详情接口,用详情字段覆盖列表字段
136
+ if mail_id:
137
+ detail = _fetch_detail(mail_id)
138
+ if detail:
139
+ for k, v in detail.items():
140
+ if v is not None:
141
+ merged[k] = v
142
+ out.append(normalize_email(merged, addr))
89
143
  return out
@@ -0,0 +1,204 @@
1
+ """
2
+ Maildrop — https://maildrop.cx
3
+ GET /api/suffixes.php、GET /api/emails.php
4
+ """
5
+
6
+ import random
7
+ import string
8
+ from urllib.parse import urlencode
9
+
10
+ from .. import http as tm_http
11
+ from ..types import EmailInfo, Email
12
+
13
+ CHANNEL = "maildrop"
14
+ BASE = "https://maildrop.cx"
15
+ EXCLUDED_SUFFIX = "transformer.edu.kg"
16
+
17
+ _HEADERS = {
18
+ "Accept": "application/json, text/plain, */*",
19
+ "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
20
+ "Cache-Control": "no-cache",
21
+ "DNT": "1",
22
+ "Pragma": "no-cache",
23
+ "Referer": "https://maildrop.cx/zh-cn/app",
24
+ "sec-ch-ua": '"Chromium";v="146", "Not-A.Brand";v="24", "Microsoft Edge";v="146"',
25
+ "sec-ch-ua-mobile": "?0",
26
+ "sec-ch-ua-platform": '"Windows"',
27
+ "sec-fetch-dest": "empty",
28
+ "sec-fetch-mode": "cors",
29
+ "sec-fetch-site": "same-origin",
30
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0",
31
+ "x-requested-with": "XMLHttpRequest",
32
+ }
33
+
34
+
35
+ def _random_local(length: int = 10) -> str:
36
+ return "".join(random.choices(string.ascii_lowercase + string.digits, k=length))
37
+
38
+
39
+ def _fetch_suffixes() -> list:
40
+ r = tm_http.get(f"{BASE}/api/suffixes.php", headers=_HEADERS)
41
+ r.raise_for_status()
42
+ data = r.json()
43
+ if not isinstance(data, list):
44
+ raise ValueError("maildrop: invalid suffixes response")
45
+ ex = EXCLUDED_SUFFIX.lower()
46
+ out = []
47
+ for x in data:
48
+ if isinstance(x, str):
49
+ t = x.strip()
50
+ if t and t.lower() != ex:
51
+ out.append(t)
52
+ if not out:
53
+ raise ValueError("maildrop: no domains available")
54
+ return out
55
+
56
+
57
+ def _pick_suffix(suffixes: list, preferred: str | None) -> str:
58
+ if preferred and str(preferred).strip():
59
+ p = str(preferred).strip().lower()
60
+ for d in suffixes:
61
+ if d.lower() == p:
62
+ return d
63
+ raise ValueError(f"maildrop: domain not available: {p}")
64
+ return random.choice(suffixes)
65
+
66
+
67
+ def _cx_date_to_iso(s: str) -> str:
68
+ s = (s or "").strip()
69
+ if len(s) == 19 and s[10] == " ":
70
+ return s[:10] + "T" + s[11:] + "Z"
71
+ return s
72
+
73
+
74
+ def generate_email(domain: str | None = None, **kwargs) -> EmailInfo:
75
+ """随机本地部分;域名来自 suffixes,排除 transformer.edu.kg。"""
76
+ suffixes = _fetch_suffixes()
77
+ dom = _pick_suffix(suffixes, domain)
78
+ local = _random_local()
79
+ email = f"{local}@{dom}"
80
+ return EmailInfo(channel=CHANNEL, email=email, _token=email)
81
+
82
+
83
+ import json as _json
84
+
85
+
86
+ def _fetch_detail(mail_id: str) -> dict | None:
87
+ """
88
+ 通过详情接口获取单封邮件完整内容
89
+ GET /api/email_content.php?id={id}
90
+ 详情响应字段(从前端代码确认):
91
+ - content: 完整 HTML 正文
92
+ - subject / from_addr / date: 邮件元数据
93
+ - attachment: JSON 字符串数组 [{filename, path, size}](可能为空)
94
+ 失败时返回 None,调用方回退到列表 description
95
+ """
96
+ mid = (mail_id or "").strip()
97
+ if not mid:
98
+ return None
99
+ try:
100
+ r = tm_http.get(
101
+ f"{BASE}/api/email_content.php",
102
+ headers=_HEADERS,
103
+ params={"id": mid},
104
+ timeout=15,
105
+ )
106
+ if r.status_code < 200 or r.status_code >= 300:
107
+ return None
108
+ data = r.json() if r.content else None
109
+ if isinstance(data, dict):
110
+ return data
111
+ except Exception: # noqa: BLE001
112
+ return None
113
+ return None
114
+
115
+
116
+ def _parse_attachments(raw) -> list:
117
+ """解析详情接口的 attachment 字段(JSON 字符串)为附件字典列表"""
118
+ if not raw or not isinstance(raw, str) or not raw.strip():
119
+ return []
120
+ try:
121
+ items = _json.loads(raw)
122
+ except (ValueError, TypeError):
123
+ return []
124
+ if not isinstance(items, list):
125
+ return []
126
+ out = []
127
+ for it in items:
128
+ if not isinstance(it, dict):
129
+ continue
130
+ filename = it.get("filename")
131
+ if not isinstance(filename, str) or not filename.strip():
132
+ continue
133
+ entry = {"filename": filename.strip()}
134
+ sz = it.get("size")
135
+ if isinstance(sz, (int, float)) and not isinstance(sz, bool):
136
+ entry["size"] = int(sz)
137
+ out.append(entry)
138
+ return out
139
+
140
+
141
+ def get_emails(token: str, email: str = "", **kwargs) -> list:
142
+ """
143
+ 获取邮件列表并对每封邮件补拉详情
144
+ 1. GET /api/emails.php?addr={email} 拉取列表(仅含 description 摘要)
145
+ 2. 对每封邮件 GET /api/email_content.php?id={id} 拉取详情(含 content 完整 HTML)
146
+ 3. 详情失败时保留列表 description 作为回退
147
+ """
148
+ addr = (email or "").strip() or (token or "").strip()
149
+ if not addr:
150
+ raise ValueError("maildrop: empty address")
151
+ qs = urlencode({"addr": addr, "page": "1", "limit": "20"})
152
+ r = tm_http.get(f"{BASE}/api/emails.php?{qs}", headers=_HEADERS)
153
+ r.raise_for_status()
154
+ data = r.json() if r.content else {}
155
+ rows = data.get("emails") or []
156
+ if not isinstance(rows, list):
157
+ return []
158
+ out = []
159
+ for row in rows:
160
+ if not isinstance(row, dict):
161
+ continue
162
+ mail_id = str(row.get("id", ""))
163
+ desc = (row.get("description") or "").strip()
164
+ ir = row.get("isRead")
165
+ is_read = ir is True or ir == 1
166
+
167
+ from_addr = (row.get("from_addr") or "").strip()
168
+ subject = (row.get("subject") or "").strip()
169
+ date = _cx_date_to_iso(row.get("date") or "")
170
+ html_body = ""
171
+ attachments: list = []
172
+
173
+ # 拉取详情覆盖 html/from/subject/date/attachments
174
+ if mail_id:
175
+ detail = _fetch_detail(mail_id)
176
+ if detail:
177
+ content = detail.get("content")
178
+ if isinstance(content, str) and content.strip():
179
+ html_body = content
180
+ d_from = detail.get("from_addr")
181
+ if isinstance(d_from, str) and d_from.strip():
182
+ from_addr = d_from.strip()
183
+ d_subj = detail.get("subject")
184
+ if isinstance(d_subj, str) and d_subj.strip():
185
+ subject = d_subj.strip()
186
+ d_date = detail.get("date")
187
+ if isinstance(d_date, str) and d_date.strip():
188
+ date = _cx_date_to_iso(d_date)
189
+ attachments = _parse_attachments(detail.get("attachment"))
190
+
191
+ out.append(
192
+ Email(
193
+ id=mail_id,
194
+ from_addr=from_addr,
195
+ to=addr,
196
+ subject=subject,
197
+ text=desc,
198
+ html=html_body,
199
+ date=date,
200
+ is_read=is_read,
201
+ attachments=attachments,
202
+ )
203
+ )
204
+ return out
@@ -110,13 +110,18 @@ def _flatten_message(
110
110
  }
111
111
  )
112
112
 
113
+ # 优先读 "text" 键(/text 端点实际返回键),回退兜底 "text/plain"(防御性编程)
114
+ text_content = _text_from_payload(text_payload, "text") or _text_from_payload(text_payload, "text/plain")
115
+ # 优先读 "html" 键,回退兜底 "text/html"
116
+ html_content = _text_from_payload(html_payload, "html") or _text_from_payload(html_payload, "text/html")
117
+
113
118
  return {
114
119
  "id": summary.get("id") or summary.get("messageId") or "",
115
120
  "from": summary.get("from") or summary.get("origfrom") or "",
116
121
  "to": summary.get("to") or recipient_email,
117
122
  "subject": summary.get("subject") or "",
118
- "text": _text_from_payload(text_payload, "text/plain"),
119
- "html": _text_from_payload(html_payload, "text/html"),
123
+ "text": text_content,
124
+ "html": html_content,
120
125
  "date": _to_iso_time(summary.get("time") or summary.get("date")),
121
126
  "seen": False,
122
127
  "attachments": attachments,
@@ -34,7 +34,33 @@ _DATE_RE = re.compile(r'(?is)<li\s+class="date"[^>]*>[\s\S]*?<span[^>]*>([^<]+)<
34
34
  _SENDER_RE = re.compile(
35
35
  r'(?is)<li\s+class="sender"[^>]*>[\s\S]*?<span[^>]*>([\s\S]*?)</span>\s*</li>'
36
36
  )
37
- _BODY_RE = re.compile(r'(?is)<div\s+class="email-body"\s*>([\s\S]*?)</div>')
37
+ _BODY_OPEN_RE = re.compile(r'(?is)<div\s+class="email-body"\s*>')
38
+
39
+
40
+ def _extract_body_html(page: str) -> str:
41
+ """使用栈式深度匹配提取 email-body div 的完整内部 HTML,
42
+ 避免非贪婪正则在嵌套 div 时截断正文。
43
+ """
44
+ m = _BODY_OPEN_RE.search(page)
45
+ if not m:
46
+ return ""
47
+ start = m.end()
48
+ pos = start
49
+ depth = 1
50
+ while pos < len(page) and depth > 0:
51
+ next_open = page.find("<div", pos)
52
+ next_close = page.find("</div>", pos)
53
+ if next_close == -1:
54
+ break
55
+ if next_open != -1 and next_open < next_close:
56
+ depth += 1
57
+ pos = next_open + 4
58
+ else:
59
+ depth -= 1
60
+ if depth == 0:
61
+ return page[start:next_close].strip()
62
+ pos = next_close + 6
63
+ return ""
38
64
  _FROM_ADDR_RE = re.compile(r"<([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>")
39
65
  _TAG_RE = re.compile(r"<[^>]+>")
40
66
 
@@ -179,10 +205,7 @@ def _parse_detail(page: str, mid: str, recipient: str) -> dict:
179
205
  dm = _DATE_RE.search(page)
180
206
  if dm:
181
207
  date_s = html.unescape(dm.group(1).strip())
182
- body = ""
183
- bm = _BODY_RE.search(page)
184
- if bm:
185
- body = bm.group(1).strip()
208
+ body = _extract_body_html(page)
186
209
  return {
187
210
  "id": mid,
188
211
  "to": recipient,
@@ -35,14 +35,35 @@ _INBOX_ROW_RE = re.compile(
35
35
  _MESSAGE_LINK_RE = re.compile(r"/en/message/(\d+)")
36
36
 
37
37
  # 提取邮件正文区域
38
- _MESSAGE_BODY_RE = re.compile(
39
- r'(?is)<div[^>]*class="[^"]*mail-content[^"]*"[^>]*>([\s\S]*?)</div>'
38
+ _MESSAGE_BODY_OPEN_RE = re.compile(
39
+ r'(?is)<div[^>]*class="[^"]*(?:mail-content|message-body)[^"]*"[^>]*>'
40
40
  )
41
41
 
42
- # 备选正文提取(如果 mail-content 找不到,尝试 message-body)
43
- _MESSAGE_BODY_ALT_RE = re.compile(
44
- r'(?is)<div[^>]*class="[^"]*message-body[^"]*"[^>]*>([\s\S]*?)</div>'
45
- )
42
+
43
+ def _extract_body_html(page: str) -> str:
44
+ """使用栈式深度匹配提取 mail-content/message-body div 的完整内部 HTML,
45
+ 避免非贪婪正则在嵌套 div 时截断正文。
46
+ """
47
+ m = _MESSAGE_BODY_OPEN_RE.search(page)
48
+ if not m:
49
+ return ""
50
+ start = m.end()
51
+ pos = start
52
+ depth = 1
53
+ while pos < len(page) and depth > 0:
54
+ next_open = page.find("<div", pos)
55
+ next_close = page.find("</div>", pos)
56
+ if next_close == -1:
57
+ break
58
+ if next_open != -1 and next_open < next_close:
59
+ depth += 1
60
+ pos = next_open + 4
61
+ else:
62
+ depth -= 1
63
+ if depth == 0:
64
+ return page[start:next_close].strip()
65
+ pos = next_close + 6
66
+ return ""
46
67
 
47
68
  # 提取邮件详情页中的发件人
48
69
  _DETAIL_FROM_RE = re.compile(
@@ -277,13 +298,8 @@ def _parse_message_detail(page: str, mid: str, recipient: str) -> dict:
277
298
  if dm:
278
299
  date = _strip_tags(dm.group(1))
279
300
 
280
- # 提取正文 HTML
281
- body_html = ""
282
- bm = _MESSAGE_BODY_RE.search(page)
283
- if not bm:
284
- bm = _MESSAGE_BODY_ALT_RE.search(page)
285
- if bm:
286
- body_html = bm.group(1).strip()
301
+ # 提取正文 HTML(使用栈式深度匹配避免嵌套 div 截断)
302
+ body_html = _extract_body_html(page)
287
303
 
288
304
  return {
289
305
  "id": mid,
@@ -261,8 +261,105 @@ def generate_email() -> EmailInfo:
261
261
  )
262
262
 
263
263
 
264
+ def _fetch_messages_via_http(jwt: str) -> list:
265
+ """
266
+ 通过 HTTP 接口获取邮件列表
267
+ GET https://vip.215.im/v1/messages
268
+ 返回完整邮件(含真实正文),相比 WebSocket 推送的合成卡片更完整
269
+ """
270
+ resp = tm_http.get(
271
+ f"{BASE}/v1/messages",
272
+ headers={**HEADERS, "Authorization": f"Bearer {jwt}"},
273
+ timeout=15,
274
+ )
275
+ resp.raise_for_status()
276
+ body = resp.json()
277
+ if not body.get("success"):
278
+ raise RuntimeError("vip-215 messages: success=false")
279
+ data = body.get("data") or {}
280
+ messages = data.get("messages") or []
281
+ return messages if isinstance(messages, list) else []
282
+
283
+
284
+ def _fetch_message_detail(jwt: str, mail_id: str) -> dict | None:
285
+ """
286
+ 通过 HTTP 详情接口获取单封邮件完整内容
287
+ GET https://vip.215.im/v1/messages/{id}
288
+ 用于列表条目缺正文时补拉,失败返回 None
289
+ """
290
+ mid = (mail_id or "").strip()
291
+ if not mid:
292
+ return None
293
+ try:
294
+ resp = tm_http.get(
295
+ f"{BASE}/v1/messages/{quote(mid, safe='')}",
296
+ headers={**HEADERS, "Authorization": f"Bearer {jwt}"},
297
+ timeout=15,
298
+ )
299
+ if resp.status_code < 200 or resp.status_code >= 300:
300
+ return None
301
+ body = resp.json()
302
+ if not body.get("success"):
303
+ return None
304
+ d = body.get("data")
305
+ return d if isinstance(d, dict) else None
306
+ except Exception: # noqa: BLE001
307
+ return None
308
+
309
+
310
+ def _has_real_body(row: dict) -> bool:
311
+ """判断邮件条目是否包含真实正文"""
312
+ for key in ("text", "body_text", "html", "body_html", "content", "body"):
313
+ v = row.get(key)
314
+ if isinstance(v, str) and v.strip():
315
+ return True
316
+ return False
317
+
318
+
319
+ def _extract_message_id(row: dict) -> str:
320
+ """提取邮件 ID"""
321
+ for key in ("id", "messageId", "message_id"):
322
+ v = row.get(key)
323
+ if isinstance(v, str) and v.strip():
324
+ return v.strip()
325
+ if isinstance(v, (int, float)) and not isinstance(v, bool):
326
+ return str(int(v))
327
+ return ""
328
+
329
+
264
330
  def get_emails(token: str, email: str) -> List[Email]:
265
- _ensure_ws(token, email)
266
- box = _get_box(token, email)
267
- with _lock:
268
- return list(box.emails)
331
+ """
332
+ 获取邮件列表(HTTP 优先,WebSocket 缓存回退)
333
+ 1. HTTP GET /v1/messages 拉取完整邮件(含真实正文)
334
+ 2. 缺正文的条目通过 GET /v1/messages/{id} 补拉详情
335
+ 3. HTTP 失败时回退到 WebSocket 已缓存的合成卡片
336
+ """
337
+ # 确保 WebSocket 保持订阅(供实时通知)
338
+ try:
339
+ _ensure_ws(token, email)
340
+ except Exception: # noqa: BLE001
341
+ pass
342
+
343
+ try:
344
+ messages = _fetch_messages_via_http(token)
345
+ out: List[Email] = []
346
+ for row in messages:
347
+ if not isinstance(row, dict):
348
+ continue
349
+ mid = _extract_message_id(row)
350
+ # 若列表条目无真实正文,补拉详情
351
+ if not _has_real_body(row) and mid:
352
+ detail = _fetch_message_detail(token, mid)
353
+ if detail:
354
+ for k, v in detail.items():
355
+ if v is not None:
356
+ row[k] = v
357
+ if "to" not in row:
358
+ row["to"] = email
359
+ out.append(normalize_email(row, email))
360
+ return out
361
+ except Exception: # noqa: BLE001
362
+ # HTTP 失败时回退到 WebSocket 缓存
363
+ box = _get_box(token, email)
364
+ with _lock:
365
+ return list(box.emails)