]> err.no Git - eweouz/commitdiff
Print out BEGIN:VCARD and END:VCARD, needed by vcard.el
authorTollef Fog Heen <tfheen@err.no>
Sun, 29 Jun 2008 08:04:56 +0000 (10:04 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 29 Jun 2008 08:04:56 +0000 (10:04 +0200)
src/dump-addressbook.c

index 10c7c4bd3ba881ad8e510111e4072290639fa630..ca07d2170b540f045508807801ce48c4bd16d0d3 100644 (file)
@@ -8,6 +8,7 @@ void dump_as_vcard(EContact *contact, int dump_all)
        GList *attrs;
        int i;
 
+       printf("BEGIN:VCARD\n");
        attrs = e_vcard_get_attributes(&contact->parent);
        for (i = 0; i < g_list_length(attrs); i++) {
                EVCardAttribute *attr = (EVCardAttribute *) 
@@ -43,6 +44,7 @@ void dump_as_vcard(EContact *contact, int dump_all)
                        }
                }
        }
+       printf("END:VCARD\n");
 }
 
 static gchar **search_filter = NULL;