diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c
index 997e1b2..647aee7 100644
--- a/obexd/plugins/phonebook-ebook.c
+++ b/obexd/plugins/phonebook-ebook.c
GString *string = g_string_new("");
GList *l = g_list_nth(contacts, data->params->liststartoffset);
guint count = 0, maxcount = data->params->maxlistcount;
+ guint format = (data->params->format ?
+ EVC_FORMAT_VCARD_30 : EVC_FORMAT_VCARD_21);
/* FIXME: Missing 0.vcf */
contact = E_CONTACT(contacts->data);
evcard = E_VCARD(contact);
- vcard = e_vcard_to_string(evcard, EVC_FORMAT_VCARD_30);
+ vcard = e_vcard_to_string(evcard, format);
string = g_string_append(string, vcard);
g_free(vcard);
}