Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Everyone knows what an email address is, right? (Quiz)

Everyone knows what an email address is, right? (Quiz)

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
140 Posts 105 Posters 3 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C [email protected]

    Question 5 is incorrect, name@example is a fully valid email address, even after RFC 2822

    The spec of RFC 2822 defines an address (3.4.1) as:

    local-part "@" domain
    

    domain is defined (3.4.1) as:

    domain = dot-atom / domain-literal / obs-domain
    

    dot-atom is defined (3.2.4) as:

    dot-atom = [CFWS] dot-atom-text [CFWS]
    dot-atom-text = 1*atext *("." 1*atext)
    

    1*atext meaning at least 1 alphanumeric character, followed by *("." 1*atext) meaning at least 0 "." 1*atext


    If tomorrow, google decided to use its google top-level domain as an email domain, it would be perfectly valid, as could any other company owning top-level domains

    Google even owns a gmail TLD so I wouldn't even be surprised if they decided to use it

    H This user is from outside of this forum
    H This user is from outside of this forum
    [email protected]
    wrote last edited by
    #34

    I don't know if they changes the answer to the question, but it now says name@example is valid.

    spankmonkey@lemmy.worldS C 2 Replies Last reply
    18
    • H [email protected]

      I don't know if they changes the answer to the question, but it now says name@example is valid.

      spankmonkey@lemmy.worldS This user is from outside of this forum
      spankmonkey@lemmy.worldS This user is from outside of this forum
      [email protected]
      wrote last edited by
      #35

      It says valid but obsolete, which sounds like a contradiction to me.

      This is technically valid but considered obsolete. RFC 822 allowed domains without dots, but RFC 2822 made this obsolete.

      Do email suffix not indicate a different domain like .org and .com for websites?

      1 Reply Last reply
      4
      • hellfire103@lemmy.caH [email protected]

        I scored 13/21 on https://e-mail.wtf/ and all I got was this lousy text to share on social media.

        B This user is from outside of this forum
        B This user is from outside of this forum
        [email protected]
        wrote last edited by
        #36

        5/21 for me LoL 😂

        1 Reply Last reply
        1
        • blackmist@feddit.ukB [email protected]

          I didn't do that but got 14 anyway.

          A This user is from outside of this forum
          A This user is from outside of this forum
          [email protected]
          wrote last edited by
          #37

          Same. I answered what i thought was correct and got 14!

          dabster291@lemmy.zipD 1 Reply Last reply
          4
          • H [email protected]

            I don't know if they changes the answer to the question, but it now says name@example is valid.

            C This user is from outside of this forum
            C This user is from outside of this forum
            [email protected]
            wrote last edited by
            #38

            It does say it's valid, but also that it's obsolete, and while the RFC does define valid but obsolete specs, there is nothing defining domains without a dot as obsolete, and it is in fact defined in the regular spec, not the obsolete section

            H 1 Reply Last reply
            25
            • dumnezero@piefed.socialD [email protected]

              Thanks to RFC 6532, Zalgo text is a-okay.

              hmmm...

              Yay! You're average! Time to start making plans for what you'll do when an LLM takes your job.

              I already have plans.

              T This user is from outside of this forum
              T This user is from outside of this forum
              [email protected]
              wrote last edited by
              #39

              And they are ...

              1 Reply Last reply
              0
              • M [email protected]

                ::: spoiler My top five from this (all valid):

                • ":(){␣:|:&␣};:"@example.com # fork bomb
                • 👉@👈 and poop@[💩]
                • "@"@[@]
                • c̷̨̈́i̵̮̅l̶̠̐͊͝ȁ̷̠̗̆̍̍n̷͖̘̯̍̈͒̅t̶͍͂͋ř̵̞͈̓ȯ̷̯̠-̸͚̖̟͋s̴͉̦̭̔̆̃͒û̵̥̪͆̒̕c̸̨̨̧̺̎k̵̼͗̀s̸̖̜͍̲̈́͋̂͠@example.com
                • fed-up-yet@␣example.com␣ # ␣ = whitespace
                  :::
                T This user is from outside of this forum
                T This user is from outside of this forum
                [email protected]
                wrote last edited by
                #40

                TIL that emoji transcend spoilers.

                Emoji showing through spoilers

                1 Reply Last reply
                15
                • T [email protected]
                  This post did not contain any content.
                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #41

                  Pretty much everything I've seen in e-mail is needlessly complicated and weird. So of course addresses are as well.

                  1 Reply Last reply
                  12
                  • C [email protected]

                    It does say it's valid, but also that it's obsolete, and while the RFC does define valid but obsolete specs, there is nothing defining domains without a dot as obsolete, and it is in fact defined in the regular spec, not the obsolete section

                    H This user is from outside of this forum
                    H This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #42

                    I see what you mean, I'm with you now.

                    1 Reply Last reply
                    8
                    • F [email protected]

                      Two of my "favorite" features it didn't even touch on. You can have nested comments:

                      foo(one(two(three(four(five(six(seven)))))))@example.com
                      

                      This will actually fail on that big email regex that gets copied around (originally from Mastering Regular Expressions in 1997), because it can only handle comment nesting to a depth of six. It is actually possible to do indefinite nesting now with recursive regex, but it was developed before that feature existed.

                      RFC822 also allows routing addresses through multiple servers:

                      <@[email protected]:[email protected]>
                      

                      But this is almost always denied on modern email servers because it was abused by spammers.

                      T This user is from outside of this forum
                      T This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #43

                      The routing feature is so cursed XD

                      E 1 Reply Last reply
                      2
                      • T [email protected]
                        This post did not contain any content.
                        blackmist@feddit.ukB This user is from outside of this forum
                        blackmist@feddit.ukB This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #44

                        I don't think it really matters what the standard is, because you'll be completely limited by some 25 year old bit of Regex from Stack Overflow that every web developer ever has implemented into their form sanity checks.

                        F 1 Reply Last reply
                        58
                        • blackmist@feddit.ukB [email protected]

                          I don't think it really matters what the standard is, because you'll be completely limited by some 25 year old bit of Regex from Stack Overflow that every web developer ever has implemented into their form sanity checks.

                          F This user is from outside of this forum
                          F This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #45

                          The main one that gets passed around will match the weirdness fine. In fact, it probably matches things you don't want, anyway.

                          A signin/registration form really only needs to do sanity checks to get rid of obviously bad addresses. You'll have to send a round-trip email confirmation message to make sure the email is real, anyway, so why bother going into great detail? Just check that there's an '@' symbol and a dot in the domain. Most of the rest is wanking off.

                          dremor@lemmy.worldD 1 Reply Last reply
                          18
                          • B [email protected]

                            ::: spoiler Tap for spoiler
                            Email addresses can have comments?!
                            :::

                            F This user is from outside of this forum
                            F This user is from outside of this forum
                            [email protected]
                            wrote last edited by [email protected]
                            #46

                            Nested comments. RFC822 had a whole bunch of bad ideas in it, but nobody thought much of it at the time. Most programming languages don't even do nested comments, because they want to filter them out with a simple lexer before the grammar ever sees it.

                            1 Reply Last reply
                            6
                            • F [email protected]

                              The main one that gets passed around will match the weirdness fine. In fact, it probably matches things you don't want, anyway.

                              A signin/registration form really only needs to do sanity checks to get rid of obviously bad addresses. You'll have to send a round-trip email confirmation message to make sure the email is real, anyway, so why bother going into great detail? Just check that there's an '@' symbol and a dot in the domain. Most of the rest is wanking off.

                              dremor@lemmy.worldD This user is from outside of this forum
                              dremor@lemmy.worldD This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #47

                              A domaine without tld (me@home) is a valide address.
                              I saw an email server being used as a mqtt-like server this way (it is very old and predate those software).

                              F 1 Reply Last reply
                              8
                              • dremor@lemmy.worldD [email protected]

                                A domaine without tld (me@home) is a valide address.
                                I saw an email server being used as a mqtt-like server this way (it is very old and predate those software).

                                F This user is from outside of this forum
                                F This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #48

                                An address without a domain is irrelevant for a signin/registration form. Which is like 90% of the code being written in the wild to validate addresses.

                                If you're writing an email server, then you need to care about all these details. Most of us never will.

                                C 1 Reply Last reply
                                3
                                • T [email protected]
                                  This post did not contain any content.
                                  M This user is from outside of this forum
                                  M This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #49

                                  I don't care who the IRS sends, I am not validating emails with spaces on them.

                                  T 1 Reply Last reply
                                  47
                                  • T [email protected]
                                    This post did not contain any content.
                                    D This user is from outside of this forum
                                    D This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #50

                                    I got 13/21. I mean thats not bad 😄

                                    1 Reply Last reply
                                    4
                                    • T [email protected]
                                      This post did not contain any content.
                                      C This user is from outside of this forum
                                      C This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #51

                                      What if we 👉@👈 ..? 🤭

                                      R 1 Reply Last reply
                                      39
                                      • scoopta@programming.devS [email protected]

                                        I can't even view it...I get a TLS error

                                        L This user is from outside of this forum
                                        L This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #52

                                        I get "not found". You got farther than me.

                                        1 Reply Last reply
                                        2
                                        • T [email protected]
                                          This post did not contain any content.
                                          endymion_mallorn@kbin.melroy.orgE This user is from outside of this forum
                                          endymion_mallorn@kbin.melroy.orgE This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #53

                                          Wow. if I ever have the madness required to self-host, I'll have my email at an IP address.

                                          1 Reply Last reply
                                          10
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups