[Libpst-devel] readpst.c bugs in halding VCards

Nigel Horne njh at bandsman.co.uk
Tue May 2 09:03:05 UTC 2006


Fixes to readpst.c, use of \\n instead of \n

-Nigel Horne


*** Oreadpst.c	Tue May  2 10:00:17 2006
--- readpst.c	Tue May  2 10:00:27 2006
***************
*** 558,569 ****
  	    if (item->contact->profession != NULL)
  	      fprintf(f->output, "ROLE:%s\n", rfc2426_escape(item->contact->profession));
  	    if (item->contact->assistant_name != NULL || item->contact->assistant_phone != NULL) {
! 	      fprintf(f->output, "AGENT:BEGIN:VCARD\\n");
  	      if (item->contact->assistant_name != NULL)
! 		fprintf(f->output, "FN:%s\\n", rfc2426_escape(item->contact->assistant_name));
  	      if (item->contact->assistant_phone != NULL)
! 		fprintf(f->output, "TEL:%s\\n", rfc2426_escape(item->contact->assistant_phone));
! 	      fprintf(f->output, "END:VCARD\\n\n");
  	    }
  	    if (item->contact->company_name != NULL)
  	      fprintf(f->output, "ORG:%s\n", rfc2426_escape(item->contact->company_name));
--- 558,569 ----
  	    if (item->contact->profession != NULL)
  	      fprintf(f->output, "ROLE:%s\n", rfc2426_escape(item->contact->profession));
  	    if (item->contact->assistant_name != NULL || item->contact->assistant_phone != NULL) {
! 	      fprintf(f->output, "AGENT:BEGIN:VCARD\n");
  	      if (item->contact->assistant_name != NULL)
! 		fprintf(f->output, "FN:%s\n", rfc2426_escape(item->contact->assistant_name));
  	      if (item->contact->assistant_phone != NULL)
! 		fprintf(f->output, "TEL:%s\n", rfc2426_escape(item->contact->assistant_phone));
! 	      fprintf(f->output, "END:VCARD\n\n");
  	    }
  	    if (item->contact->company_name != NULL)
  	      fprintf(f->output, "ORG:%s\n", rfc2426_escape(item->contact->company_name));



More information about the Libpst-devel mailing list