Lōʻihi Wae Leka Uila

Depositphotos 1948865 s

Ua pono wau e hana i kahi ʻeli ʻana i kēia lā e ʻike, akā ua ʻike anei ʻoe i ke ʻano o ka lōʻihi o kahi leka uila? Ua haki maoli ʻia i mau ʻāpana ... Inoa@Domain.com. Kēia mea e like me RFC2822.

  1. Hiki i ka inoa ke 1 a 64 mau huapalapala.
  2. Hiki i ka Domain ke 1 a 255 mau huapalapala.

Wow ... ʻo ia hoʻi he pane leka uila kūpono kēia:


loremaipsumadolorasitaametbaconsectetueraadipiscin
gaelitanullamc @ loremaipsumadolorasitaametbaconsect
etueraadipiscingaelitcaSedaidametusautanisiavehicu
LaaluctuscaPeresesqueatinciduntbadiamaidacondimn
tumarutrumbaturpisamassaaconsectetueraarcubaeuatin
ciduntaliberoaaugueavestibulumaeratcaPhasellusatin
ciduntaturpisaduis.com

E hoʻāʻo e hoʻopili i kēlā ma kahi kāleka ʻoihana! ʻO ka mea mahalo, ʻo ka hapa nui o nā kahua helu leka uila i 100 mau huapalapala ma ka pūnaewele. ʻAʻole kūpono kēlā. Inā makemake ʻoe e hōʻoia i kahi leka uila no ke kūkulu kūpono ʻana me ka hoʻohana ʻana iā PHP, ua loaʻa iaʻu kēia mahele ma ka ʻupena.

http://derrick.pallas.us/email-validator/ # Laikini: Laikini Manuahi Kālaiʻike 2.1 # Mana: 2006-12-01a inā (! ereg (''. '^'. '[-! # $% & \ '* + / 0-9 =? AZ ^ _a-z {|} ~]'. '(\\.? [-! # $% & \' * + / 0-9 =? AZ ^ _a-z { |} ~]) * '.' @ '.' [a-zA-Z] (-? [a-zA-Z0-9]) * '.' (\\. [a-zA-Z] (- ? [a-zA-Z0-9]) *) + '.' $ ', $ leka uila)) hoʻihoʻi wahaheʻe; papa inoa ($ kūloko, $ domain) = hoʻokaʻawale ("@", $ leka uila, 2); inā (strlen ($ kūloko)> 64 || strlen ($ domain)> 255) hoʻi hewa ʻole; inā ($ hōʻoia &&! gethostbynamel ($ domain)) hoʻihoʻi i ka wahaheʻe; e hoʻi ʻoiaʻiʻo; # HOPE ### ####}

9 Comments

  1. 1
  2. 2

    ʻAe, ua ʻike wau i ka hoʻokō ʻole ʻia o nā hāʻina ʻē aʻe me ka RFC pū kekahi. Ua ʻike naʻe wau i ke ʻano atypical o kēia regex ʻaʻole ka hae. Hoʻomaopopo wau i ka heluhelu ʻana i ka regex maoli (ʻae ʻia <,>,, a me nā mea nui) ikaika loa no ka hapa nui o nā kaʻina hana.

    Eia nō naʻe, kākau ʻia me ke ʻano pōkole a he hopena hoʻi e ʻae ʻia i kēlā me kēia noi leka uila ʻoihana.

    Mahalo, Hou!
    Doug

  3. 3

    Minamina, ua hoʻopili wau i kēlā ʻaoʻao i ka RFC hewa (2821 ma kahi o 2822) akā ua hoʻoponopono ʻia kēlā. ʻAʻole hiki i nā paʻa huina ke lilo i ʻāpana o nā wahi kūloko a i ʻole nā ​​ʻāpana o kahi leka uila; akā, pani lākou i nā kiko kiko, ʻo ia hoʻi hiki iā lākou ke hoʻohana e hoʻopuni i kahi leka uila (e like me kāu mea heluhelu leka) ʻoiaʻiʻo no ka mea ʻaʻole hiki iā lākou ke lilo i ʻāpana o ka helu wahi.

    ʻO kahi mea a kaʻu hana e hana ʻole ai hopohopo e pili ana i ka ʻōlelo i helu ʻia o nā helu leka uila - kahi i ʻike ʻia ka ʻāpana kūloko i nā ʻōlelo pālua - no ka mea RFC2821 i ʻōlelo maoli ʻaʻole pono e kākau kekahi i kā lākou kamaʻilio pēlā. (Manaʻo wau ʻo ka palapala no ka hoʻohālikelike i hope a maikaʻi ʻole i kēia manawa.)

  4. 4

    ʻO RFC2821 IS ka kuhikuhi kūpono no ka lōʻihi o ka leka uila. Ua loaʻa iaʻu ma laila, akā ʻaʻole ma RFC 2822.

  5. 5

    Aia ka palena ma RFC 2821 ma ka lōʻihi o kahi kamaʻilio ma MAIL a me nā kauoha RCPT o 256 huapalapala. Pono e noʻonoʻo ʻia ka palena kiʻekiʻe o nā lōʻihi helu e 256.

    - Puna: RFC 3696 Errata

    Eia nō naʻe, no ka mea ua ʻōlelo ʻo RFC 2181 "Ua kaupalena ʻia kahi inoa piha i 255 mau octets", ua unuhi hewa pinepine ʻia e ka poʻe (me nā mea kākau o nā RFC ʻē aʻe) ma ke ʻano he 255 mau chars ka lōʻihi. Akā ke kamaʻilio nei ʻo RFC2181 e pili ana i ka hōʻike DNS-pae pae DNS ma ka uea, ʻaʻole nā ​​huapalapala paʻi.

    ʻO ka lōʻihi o ka inoa o ka inoa 253 chars (254 me ke kiko kiʻi, 255 octets ma ka uea me ka hoʻopau null). A ʻo ia ka mea a BIND a me DiG e hoʻokō ai.

  6. 6
  7. 7
  8. 8

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.