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) »
  • conversion of local-part email to lowercase prevents communication
Pages: [1]

Author Topic: conversion of local-part email to lowercase prevents communication  (Read 720 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
conversion of local-part email to lowercase prevents communication
November 10, 2010, 11:46:38 pm
Hi,

civiCRM converts all local-parts of email addresses (the part before the @) to lowercase.

This means that we can't use the CRM to send mails to people who have servers that are case sensitive and local-part emails that contain capitals

This means half the schools in our area. We are an education-business partnership charity. More and more businesses are doing it as well.

This is particularly difficult as we use Organic Groups linked with civiCRM to manage much of our interaction between volunteers and schools.

In the past I have been able to get the one or two e-mails changed but that really isn't an option now that it numbers hundreds and so on.

Lobo has stated elsewhere that the reason is to enable searching on e-mail fields.

How can I change this without breaking things?


PS - this behaviour of civiCRM contravenes the standard:

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

 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.


Does anyone have any ideas?
« Last Edit: November 11, 2010, 02:17:47 am by myles »

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: conversion of local-part email to lowercase prevents communication
November 11, 2010, 02:47:44 am
I can of course directly manipulate the database - but of course how am I to know to do it and how am I to know to do it everytime there is an edit.

What is the code that changes things on edit and what is the implication of commenting it out?

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: conversion of local-part email to lowercase prevents communication
November 11, 2010, 06:41:41 am

we did this change a few years ago based on the recommendation from someone in the community. We also interpreted the RFC wrongly, and assumed that it is case insensitive

At this point, i dont think there is an easy solution. We'll basically need to revert the fix made a few years back and also go back and fix search. If we had to redo it, we'd probably make it a config option and allow users to specify they want to retain case

If you are interested in working on this patch, please contact us on IRC

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

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: conversion of local-part email to lowercase prevents communication
November 12, 2010, 03:06:51 am
Thanks Lobo,

I'll be contacting on IRC as soon as I've worked out how...

The implication of that last comment is that I may not be the right person, but since this is a stopper for me I need to step up to it.

Small steps...

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: conversion of local-part email to lowercase prevents communication
November 12, 2010, 03:49:55 am
I do hope I didn't piss anyone off on the IRC channel just now! I have meetings to get to now, but over the weekend I shall:
  • read up more on IRC
  • have another go at sorting out the upgrade from 3.1.1
  • get a development / debug environment up and running
  • start looking at the code to begin understanding

Please direct as appropriate!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • conversion of local-part email to lowercase prevents communication

This forum was archived on 2017-11-26.