Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
bot-test
packages
abook
Commits
897ef5a9
Commit
897ef5a9
authored
Nov 11, 2013
by
Gaetan Bisson
Browse files
improve vcard patch as suggested by upstream
parent
3730a678
Changes
2
Show whitespace changes
Inline
Side-by-side
PKGBUILD
View file @
897ef5a9
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Contributor: damir <damir@archlinux.org>
# Contributor: damir <damir@archlinux.org>
pkgname
=
abook
pkgname
=
abook
pkgver
=
0.6.0pre2.2013
0928
pkgver
=
0.6.0pre2.2013
1110
pkgrel
=
1
pkgrel
=
1
pkgdesc
=
'Text-based addressbook designed for use with Mutt'
pkgdesc
=
'Text-based addressbook designed for use with Mutt'
url
=
'http://abook.sourceforge.net/'
url
=
'http://abook.sourceforge.net/'
...
@@ -15,7 +15,7 @@ depends=('readline')
...
@@ -15,7 +15,7 @@ depends=('readline')
source
=(
"abook::git://abook.git.sourceforge.net/gitroot/abook/abook#commit=2e3d4f7341e154bf09907aabcdfe73345cc72e68"
source
=(
"abook::git://abook.git.sourceforge.net/gitroot/abook/abook#commit=2e3d4f7341e154bf09907aabcdfe73345cc72e68"
'vcard.patch'
)
'vcard.patch'
)
sha1sums
=(
'SKIP'
sha1sums
=(
'SKIP'
'
ac71e84812c5d57cb8ddaf5b03b7c25cbdf4c3db
'
)
'
7f58e32814510ae491fadaa9f06d787ccd2ecfcd
'
)
prepare
()
{
prepare
()
{
cd
"
${
srcdir
}
/
${
pkgname
}
"
cd
"
${
srcdir
}
/
${
pkgname
}
"
...
...
vcard.patch
View file @
897ef5a9
diff -Naur old/filter.c new/filter.c
diff -aur old/filter.c new/filter.c
--- old/filter.c 2013-08-22 20:49:06.229337260 -1000
--- old/filter.c 2013-10-10 16:04:46.230433845 -1000
+++ new/filter.c 2013-08-22 20:49:13.552700987 -1000
+++ new/filter.c 2013-10-10 16:40:07.014569795 -1000
@@ -1673,7 +1673,7 @@
@@ -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)
// vCard(the country name)
item_fput(item, COUNTRY, xstrdup(strsep(&value, ";")));
item_fput(item, COUNTRY, xstrdup(strsep(&value, ";")));
...
@@ -10,7 +21,7 @@ diff -Naur old/filter.c new/filter.c
...
@@ -10,7 +21,7 @@ diff -Naur old/filter.c new/filter.c
}
}
static void
static void
@@ -2052,6 +205
2
,13 @@
@@ -2052,6 +205
3
,13 @@
free(name);
free(name);
...
@@ -18,7 +29,7 @@ diff -Naur old/filter.c new/filter.c
...
@@ -18,7 +29,7 @@ diff -Naur old/filter.c new/filter.c
+ fprintf(out, "NICKNAME:%s\r\n",
+ fprintf(out, "NICKNAME:%s\r\n",
+ safe_str(db_fget(item, NICK)));
+ safe_str(db_fget(item, NICK)));
+ if(db_fget(item, ANNIVERSARY))
+ if(db_fget(item, ANNIVERSARY))
+ fprintf(out, "B
IRTH
DAY:%s\r\n",
+ fprintf(out, "BDAY:%s\r\n",
+ safe_str(db_fget(item, ANNIVERSARY)));
+ safe_str(db_fget(item, ANNIVERSARY)));
+
+
// see rfc6350 section 6.3.1
// see rfc6350 section 6.3.1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment