summaryrefslogtreecommitdiff
path: root/extra/abook/vcard.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/abook/vcard.patch')
-rw-r--r--extra/abook/vcard.patch23
1 files changed, 17 insertions, 6 deletions
diff --git a/extra/abook/vcard.patch b/extra/abook/vcard.patch
index 55630c1e5..f2e93a940 100644
--- a/extra/abook/vcard.patch
+++ b/extra/abook/vcard.patch
@@ -1,7 +1,18 @@
-diff -Naur old/filter.c new/filter.c
---- old/filter.c 2013-08-22 20:49:06.229337260 -1000
-+++ new/filter.c 2013-08-22 20:49:13.552700987 -1000
-@@ -1673,7 +1673,7 @@
+diff -aur old/filter.c new/filter.c
+--- old/filter.c 2013-10-10 16:04:46.230433845 -1000
++++ new/filter.c 2013-10-10 16:40:07.014569795 -1000
+@@ -1557,8 +1557,9 @@
+ "NICKNAME", /* NICK */
+ "URL", /* URL */
+ "NOTE", /* NOTES */
++ "BDAY", /* ANNIVERSARY */
+ "N", /* NAME: special case/mapping in vcard_parse_line() */
+- NULL /* not implemented: ANNIVERSARY, ITEM_FIELDS */
++ NULL /* not implemented: ITEM_FIELDS */
+ };
+
+ enum {
+@@ -1673,7 +1674,7 @@
// vCard(the country name)
item_fput(item, COUNTRY, xstrdup(strsep(&value, ";")));
@@ -10,7 +21,7 @@ diff -Naur old/filter.c new/filter.c
}
static void
-@@ -2052,6 +2052,13 @@
+@@ -2052,6 +2053,13 @@
free(name);
@@ -18,7 +29,7 @@ diff -Naur old/filter.c new/filter.c
+ fprintf(out, "NICKNAME:%s\r\n",
+ safe_str(db_fget(item, NICK)));
+ if(db_fget(item, ANNIVERSARY))
-+ fprintf(out, "BIRTHDAY:%s\r\n",
++ fprintf(out, "BDAY:%s\r\n",
+ safe_str(db_fget(item, ANNIVERSARY)));
+
// see rfc6350 section 6.3.1