[RCD] Line endings in vCard format

Thomas Bruederli thomas at roundcube.net
Fri Aug 12 20:35:05 CEST 2011

On Thu, Jul 21, 2011 at 18:27, Eric Mason <eric at equisolve.com> wrote:
> I had a Windows user tell me her exports from vCard were only giving her every other line.  I noticed RoundCube's vcf file had only LFs for line endings, but the vCard standard seems to specify CRLF - http://www.imc.org/pdi/vcard-21.txt .  After adding the CRs to the VCF the file imports fine.
> After a quick search/replace of \n to \r\n in rcube_vcard.php the vCards are importing correctly. I tried to be smart about it but it may not be 100% correct. :)
> diff orig/roundcubemail-0.5.3/program/include/rcube_vcard.php ./roundcubemail-0.5.3/program/include/rcube_vcard.php
> [...]

Line endings fixed in http://trac.roundcube.net/changeset/5012

List info: http://lists.roundcube.net/dev/

More information about the Dev mailing list