Author Topic: way to store contacts without an email address  (Read 4973 times)

Offline eMarcus

  • Newbie
  • *
  • Posts: 5
way to store contacts without an email address
« on: November 01, 2013, 05:40:25 AM »
Hi,

Is there a way to store contacts in the addressbook that do not have an email address?

I would like to use Roundcube as my main addressbook including people without an email address. However, when I try to add them, I get an error message to add a valid email address on saving...

thanks
bye
Marcus.

Offline Foxeronie

  • Newbie
  • *
  • Posts: 2
Re: way to store contacts without an email address
« Reply #1 on: April 07, 2014, 05:16:53 AM »
Hi,

is there a solution for this problem?
I have contacts without an email address too.
Is there a way to disable the email as required information?

Best regards,
Foxeronie

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: way to store contacts without an email address
« Reply #2 on: April 07, 2014, 11:20:14 AM »
No, there is not currently any way to do this. Since RC is an email client, its contact book is and needs to be email-centered. As just a single example, having contacts with no email in them would cause many issues with the address autocomplete.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: way to store contacts without an email address
« Reply #3 on: April 07, 2014, 11:34:27 AM »
./lib/Roundcube/rcube_contacts.php

#1- Look for function validate
#2- Enter after opening bracket { ... return true; ... in order to disable all validations.

I have disabled the obligatory email field in my carddav plugin without any issues.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Foxeronie

  • Newbie
  • *
  • Posts: 2
Re: way to store contacts without an email address
« Reply #4 on: April 07, 2014, 02:29:18 PM »
./lib/Roundcube/rcube_contacts.php

#1- Look for function validate
#2- Enter after opening bracket { ... return true; ... in order to disable all validations.

I have disabled the obligatory email field in my carddav plugin without any issues.

Perfect. Thank you very much. :)

Best regards,
Foxeronie

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: way to store contacts without an email address
« Reply #5 on: April 07, 2014, 02:33:52 PM »
./lib/Roundcube/rcube_contacts.php

#1- Look for function validate
#2- Enter after opening bracket { ... return true; ... in order to disable all validations.

I have disabled the obligatory email field in my carddav plugin without any issues.
Shows what I know.  ::)

Good info, Rosali!
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: way to store contacts without an email address
« Reply #6 on: April 07, 2014, 02:47:50 PM »
Please note that this is a hacky patch. AFAIK there is no bad impact for autocomplete or other contacts related tasks.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)