vCard CR+LF+Space sequence isn't treated when reading contacts
Issue generated from Tuleap's migration script. Originally submitted by: Adonay Felipe Nogueira (adfeno)
# Steps to reproduce
## Variation 1
- Use a contact manager which stores information using the vCard standard and is know for doing vCard line delimiting and folding (as defined possible by RFC 6350, section 3.2[1]. I know that GNOME Evolution does this), and relate a RingID to a contact.
- Open Ring and look for the contact.
* Notice that the contact address which corresponds to the RingID occupies two "lines" in the drop-down menu to the right of the contact name.
* Or, try to copy the RingID, then paste it in the chat input area (if it doesn't work, paste it in text editor). You'll see a special character or line feed/break.
## Variation 2
- Open Ring and browse the existing conversations, or wait for someone to start chatting with you.
- Add the contact to your contact book.
- Close Ring.
- Use a contact manager which stores information using the vCard standard and is know for doing vCard line delimiting and folding, and find the associated RingID.
- Edit the contact somehow (at least when using GNOME Evolution, you can just change the full name to trigger this bug).
- Open Ring and look for the contact.
* Notice that the contact address which corresponds to the RingID occupies two "lines" in the drop-down menu to the right of the contact name.
* Or, try to copy the RingID, then paste it in the chat input area (if it doesn't work, paste it in text editor). You'll see a special character or line feed/break.
* Notice that the RingID that was once associated with a contact is now shown in full in the existing conversations, not by the contact name.
# Behavior
Although Ring recognizes contacts with the "ring:" preffix, the contact doesn't receive any messages.
The untreated line feed/break seems to be interfering in the way contacts from the contact book are read by Ring. The only exception being the RingIDs added directly using Ring and whose contact wasn't changed ever since.
# Expected behavior
Contacts' RingIDs which are read from vCards and which have the CR+LF+Space sequence are treated before being accepted as contacts to be used in operations/events in Ring.
# References
[1]: https://tools.ietf.org/html/rfc6350#section-3.2
# Personal notes
* I really like the hard work being done in this project. It's by far the most structured community and the best software I have used for purposes of communication in real-time. Keep up the good work! :D
* If I have time to, I'll try to help out in this issue.