CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Won't let me capitalise email address?
Pages: [1]

Author Topic: Won't let me capitalise email address?  (Read 849 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Won't let me capitalise email address?
July 07, 2009, 06:19:17 am
I have a contact whose email is capitalised: FirstnameSecondname@domain.watsit

Emails don't get through if they are in lowercase.

I try to change the email on the contact record, but it always reverts to lower case on save....

Is it me?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Won't let me capitalise email address?
July 07, 2009, 07:41:40 am

i think the email RFC specifies that case does not matter. dont have a handy link right now

we lower case email addresses so that we dont have to do the same during search and hence could speed search up a bit

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Won't let me capitalise email address?
July 07, 2009, 11:54:13 am
Hi,

http://tools.ietf.org/html/rfc5321#section-2.4

I'm afraid the part before the domain name can be case sensitive.
Quote
The local-part of a mailbox MUST BE treated as case sensitive.
   Therefore, SMTP implementations MUST take care to preserve the case
   of mailbox local-parts.  In particular, for some hosts, the user
   "smith" is different from the user "Smith".  However, exploiting the
   case sensitivity of mailbox local-parts impedes interoperability and
   is discouraged.  Mailbox domains follow normal DNS rules and are
   hence not case sensitive.

This being said, your contacts having case sensitive mails are probably having miseries with nearly every single form on the web, isn't it ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Won't let me capitalise email address?
July 08, 2009, 03:41:17 pm
In this instance I have approached the contact's IT people to suggest that they don't use capitalisation for the local part of the email and that where they have already done so they set up a duplicate mail box that forwards to the capitalised one.

It is a contact in a school and they don't usually receive external email except as replies to ones they send out - but since that is changing this isn't just for me.

It does beg the question though - should we really convert all emails to lowercase. We can't send emails to this contact through civicrm as it stands.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Won't let me capitalise email address?

This forum was archived on 2017-11-26.