I also reached out to them on Twitter but they directed me to this form. I followed up with them on Twitter with what happened in this screenshot but they are now ignoring me.

  • @xantoxis@lemmy.world
    link
    fedilink
    English
    26
    edit-2
    7 months ago

    Sorry, this is not a correct regex for an email address.

    Sending using mail on a local unix system? You only need the local part.

    STOP VALIDATING NAMES AND EMAIL ADDRESSES. Send a verification email. Full stop. Don’t do anything else. You really want to do this anyway, because it’s a defense against bots.

    • StarDreamer
      link
      fedilink
      English
      10
      edit-2
      7 months ago

      *Gasp* the registration is coming from inside the colo!

    • Turun
      link
      fedilink
      English
      67 months ago

      I think it’s fair to prevent users from causing mail sent to your internal systems. It probably won’t cause any issues getting mail to the machine inbox for (no domain name), but it reasonably makes security uneasy.

      • @xantoxis@lemmy.world
        link
        fedilink
        English
        77 months ago

        The statement I was responding to was “This is the correct email regex”. There is no correct email regex. Don’t parse emails with a regex. You probably don’t need to parse emails at all.

    • @elrik@lemmy.world
      link
      fedilink
      English
      57 months ago

      Yes, but no. Pretty much every application that accepts an email address on a form is going to turn around and make an API call to send that email. Guess what that API is going to do when you send it a string for a recipient address without an @ sign? It’s going to refuse it with an error.

      Therefore the correct amount of validation is that which satisfies whatever format the underlying API requires.

      For example, AWS SES requires addresses in the form UserName@[SubDomain.]Domain.TopLevelDomain along with other caveats. If the application is using SES to send emails, I’m not going to allow an input that doesn’t meet those requirements.