[Thread Prev][Thread Next][Thread Index]

Re: vCard problem in SyncAB?



Hi all-

The patch I sent out previously for SyncAB turned out to NOT fix the
problem.  Thanks to Philippe Chevalier who has figured it out:
Solaris 7 Address Manager chokes on a vCard if there is a line with
NO value, which currently happens for every non-private record!

Here is the new patch:

***************
*** 936,943 ****
  
      print $FD "X-pilot-id:$rec->{rolo_id}\n",
              "X-pilot-category:$rec->{category}\n",
!             "X-pilot-show-phone:$rec->{showPhone}\n",
!             "X-pilot-private:$rec->{secret}\n";
  
      print $FD "END:VCARD\n";
  }
--- 936,944 ----
  
      print $FD "X-pilot-id:$rec->{rolo_id}\n",
              "X-pilot-category:$rec->{category}\n",
!             "X-pilot-show-phone:$rec->{showPhone}\n";
!     print $FD "X-pilot-private:$rec->{secret}\n"
!       if (exists $rec->{'secret'} and length $rec->{'secret'});
  
      print $FD "END:VCARD\n";
  }

If you already have vCard files created you must completely reset SyncAB
by deleting all vCard files, and deleting the contents of the
~/.pilotmgr/SyncAB
directory (this is VERY important or SyncAB will delete all your pilot
records!).  Then do a new sync with the patched version.

Let me know if this works..

Thanks,

	- Alan
------------------------------------------------------------------------
***********************************************************
*             This is a public mailing list!              *
* Please do not publish Sun proprietary information here! *
*        -  -  -  -  -  -  -  -  -  -  -  -  -  -         *
*             http://www.moshpit.org/pilotmgr             *
***********************************************************


SourceForge.net Logo