Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: eMarcus on November 01, 2013, 05:40:25 AM

Title: way to store contacts without an email address
Post by: eMarcus 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.
Title: Re: way to store contacts without an email address
Post by: Foxeronie 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
Title: Re: way to store contacts without an email address
Post by: ABerglund 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.
Title: Re: way to store contacts without an email address
Post by: rosali 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.
Title: Re: way to store contacts without an email address
Post by: Foxeronie on April 07, 2014, 02:29:18 PM
Quote from: rosali 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.

Perfect. Thank you very much. :)

Best regards,
Foxeronie
Title: Re: way to store contacts without an email address
Post by: ABerglund on April 07, 2014, 02:33:52 PM
Quote from: rosali 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.
Shows what I know.  ::)

Good info, Rosali!
Title: Re: way to store contacts without an email address
Post by: rosali 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.