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 2 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.
  • T [email protected]
    This post did not contain any content.
    T This user is from outside of this forum
    T This user is from outside of this forum
    [email protected]
    wrote last edited by
    #61

    If qoutes are removed and internal spaces are invalid, how could ":(){␣:|:&␣};:"@example.com be valid?

    chairmanmeow@programming.devC B 2 Replies Last reply
    3
    • F [email protected]

      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 This user is from outside of this forum
      C This user is from outside of this forum
      [email protected]
      wrote last edited by
      #62

      Hey! IPv6 is valid in the inter-network context and needs no dots!

      F 1 Reply Last reply
      3
      • C [email protected]

        Hey! IPv6 is valid in the inter-network context and needs no dots!

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

        You gonna fill an IPv6 address for your email server into the DoorDash signin page?

        Z 1 Reply Last reply
        4
        • C [email protected]

          What kind of "light validation"? I'm guessing a .*@.* regex match.

          tomasekeli@programming.devT This user is from outside of this forum
          tomasekeli@programming.devT This user is from outside of this forum
          [email protected]
          wrote last edited by [email protected]
          #64

          Almost correct. ^.+@.+$

          Too hard to validate properly to be worth it. Even if it is technically valid that's insufficient. It must also work, and the easiest way to test that is to use it and verify that the user got what we sent.

          G 1 Reply Last reply
          10
          • T [email protected]

            You shouldn’t be validating emails yourself anyway. Use a library or check for only the @ and then send an email confirmation.

            tomasekeli@programming.devT This user is from outside of this forum
            tomasekeli@programming.devT This user is from outside of this forum
            [email protected]
            wrote last edited by
            #65

            This is the way.

            1 Reply Last reply
            2
            • 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

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

              I didn't understand this one. How do you have a no dot domain? Like you need to distinguish from example.com or example.wtf

              Edit: do you mean if you own .google you can have your email@google address?

              D mobotsar@sh.itjust.worksM A 3 Replies Last reply
              0
              • F [email protected]

                You gonna fill an IPv6 address for your email server into the DoorDash signin page?

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

                Don't be ridiculous, I'm going to use an open source password manager to fill an IPv6 address for my email server into the DoorDash signin page.

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

                  I did not like this and quit after ten questions 😅

                  But I respect that it exists.

                  1 Reply Last reply
                  1
                  • T [email protected]

                    You shouldn’t be validating emails yourself anyway. Use a library or check for only the @ and then send an email confirmation.

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

                    Even if it's a completely valid address and the domain exists, they still might've fat fingered the username part. Going to extreme lengths to validate email addresses is pointless, you still have to send an email to it anyway.

                    P 1 Reply Last reply
                    8
                    • Z [email protected]

                      Don't be ridiculous, I'm going to use an open source password manager to fill an IPv6 address for my email server into the DoorDash signin page.

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

                      I know you're being facetious, but I'm thinking through the implications of someone actually doing this. ISPs aren't always handing out static IPv6 prefixes for some damn reason, so you can't count on that address staying the same when self-hosting. Even if you can, you don't know what will happen when you change ISPs.

                      So yeah, really bad idea regardless.

                      1 Reply Last reply
                      0
                      • T [email protected]
                        This post did not contain any content.
                        sexy_peach@feddit.orgS This user is from outside of this forum
                        sexy_peach@feddit.orgS This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #71

                        Average 😕

                        D 1 Reply Last reply
                        7
                        • tomasekeli@programming.devT [email protected]

                          Almost correct. ^.+@.+$

                          Too hard to validate properly to be worth it. Even if it is technically valid that's insufficient. It must also work, and the easiest way to test that is to use it and verify that the user got what we sent.

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

                          I see you accept lemmy handles.

                          tomasekeli@programming.devT 1 Reply Last reply
                          4
                          • 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
                            #73

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

                            Damn, and here I thought I had this locked down because I was salty that so many places struggle with + in the email addy. But my god, there's comments?

                            1 Reply Last reply
                            21
                            • G [email protected]

                              I see you accept lemmy handles.

                              tomasekeli@programming.devT This user is from outside of this forum
                              tomasekeli@programming.devT This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #74

                              if i can email them and the user gets it - fine by me

                              1 Reply Last reply
                              6
                              • T [email protected]

                                If qoutes are removed and internal spaces are invalid, how could ":(){␣:|:&␣};:"@example.com be valid?

                                chairmanmeow@programming.devC This user is from outside of this forum
                                chairmanmeow@programming.devC This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #75

                                Presumably the space between quotes is "escaped", meaning it's supposed to act like any other character.

                                R 1 Reply Last reply
                                2
                                • T [email protected]

                                  If qoutes are removed and internal spaces are invalid, how could ":(){␣:|:&␣};:"@example.com be valid?

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

                                  Not too sure, but a previous one says spaces are allowed in comments. I would assume the {} is similar?

                                  1 Reply Last reply
                                  0
                                  • 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
                                    #77

                                    17/21. Would have been 18 but the first example of spaces screwed me.

                                    1 Reply Last reply
                                    2
                                    • 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
                                      #78

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

                                      1 Reply Last reply
                                      2
                                      • 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
                                        #79

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

                                        1 Reply Last reply
                                        2
                                        • T [email protected]
                                          This post did not contain any content.
                                          ikidd@lemmy.worldI This user is from outside of this forum
                                          ikidd@lemmy.worldI This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #80

                                          I gave up when I got like 5 wrong. I've ran mail servers for decades, most of the invalid "valids" would get rejected by any mailservers I've administered.

                                          P xatolos@reddthat.comX 2 Replies Last reply
                                          21
                                          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