The MU forums have moved to WordPress.org

Apostrophe in email addresses don't work (16 posts)

  1. johndeery
    Member
    Posted 17 years ago #

    I've been looking through the forums and I haven't seen a topic related to this, so please forgive me if it's been brought up before and I missed it.

    I have a few users who have an apostrophe (') in their name and thus their email address, but I'm noticing that wordpress doesn't seem to like that. I have gone into my database and corrected the problem, but if the user then tries to update their personal info, the page responds back that the "email address isn't correct." Is there a way, without hacking into the code, to make wordpress accept an apostrophe in a name/email address?

  2. SteveAtty
    Member
    Posted 17 years ago #

    Hmm - are apostrophe's valid in email addresses?

    Edited to add: Yes they are, as long as the "local part" is encapsulated in quotes.... so steve_o'rouke@my.domain.com would not be valid but "steve_o'rouke"@my.domain.com would be.

    I think that's what the RFC means

  3. lunabyte
    Member
    Posted 17 years ago #

    Not that I'm aware of.

    Period's are, like fred.jones, but AFAIK, apostrophe's are not valid email characters.

  4. andrea_r
    Moderator
    Posted 17 years ago #

    GAH> And there you are, using them willy-nilly everywhere!

    *apostrophe: used to show possesion or contractions. NOT for plurals, as in more than one. *

    / end grammar nazi

    :D ;P

  5. SteveAtty
    Member
    Posted 17 years ago #

    Sorry - it has been a long day! ;-)

  6. lunabyte
    Member
    Posted 17 years ago #

    Just give her an answer like this:

    "Yes, Mom."

    And she'll go away. ;)

    he he he

  7. SteveAtty
    Member
    Posted 17 years ago #

    I should know better - my Godfather was a teacher, my parents in law were both teachers (in Maine), my sister in law is a teacher (in Maine), my step daughter is also a teacher (also in Maine) and my dad (in England) was also a teacher during his rather broad range of jobs.

  8. lunabyte
    Member
    Posted 17 years ago #

    This is crazy, but check this out.

    RFC 2822:

    ...the local-part of the e-mail may use any of these ASCII characters:

    * Uppercase and lowercase letters
    * The digits 0 through 9
    * The characters,! # $ % & ' * + - / =? ^ _ ` { ¦ } ~
    * The character "." provided that it is not the first or last character in the local-part.

    You can read the full specification at http://tools.ietf.org/html/2822

    It's nuts, but "technically" it's valid. I'm not sure about widely accepted, which is a completely different topic.

  9. SteveAtty
    Member
    Posted 17 years ago #

    It is nuts - and I bet 99% of applications wont accept quoted "local" parts of an email.

    So as I said in an earlier post steve_o'rouke@my.domain.com would not be valid but "steve_o'rouke"@my.domain.com would be.

    The question is - has anyone ever checked if WPMU accepts quoted local parts in email addresses

  10. andrea_r
    Moderator
    Posted 17 years ago #

    (Steve - I teach my kids at home and I'm next door to Maine. ;) )

  11. johndeery
    Member
    Posted 17 years ago #

    Quick answer to that, SteveAtty, no. I tried to put in "Joanne.D'Angelo"@domain.com, but no luck. I guess if MU doesn't support it I'll have to adjust the code.

    Thanks!

  12. SteveAtty
    Member
    Posted 17 years ago #

    John - you could try raising a Trac for it. Not sure it if will get picked up but as its theoretically a "bug" they should. Does anyone know if WordPress itself can handle quoted local parts.

    BTW have you tried escaping the ' using \ ?

    so "Joanne.D\'Angelo"@domain.com

  13. johndeery
    Member
    Posted 17 years ago #

    Steve, yeah, I tried to escape it and it still told me "Invalid Email Address". I'll open up a report for it.

  14. moorezilla
    Member
    Posted 17 years ago #

    *apostrophe: used to show possesion or contractions. NOT for plurals, as in more than one. *

    / end grammar nazi

    Whoa! Now what do we have here, Madam Kettle? What, pray tell, does "possesion" mean? Grammar Nazis have to be careful lest misspellings sink their uboat fleet. Also, if you're lopping punctuation in with grammar, you simply can't neglect capitalization in your criticism; it's poor form.

  15. andrea_r
    Moderator
    Posted 17 years ago #

    Well played. :D I concede.

  16. moorezilla
    Member
    Posted 17 years ago #

    lol... say you'll still help me with languages like php!

About this Topic

  • Started 17 years ago by johndeery
  • Latest reply from moorezilla