summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-05-20 11:22:15 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-05-21 13:52:00 -0300
commit7c97a48854402a32906ca2aaf2b66438f8ed432a (patch)
tree872b70588ba8bd20919c3ad0a5fac71fd7e4e578
parenta5e5ba163ed1f62ccf50e0ecbc815b67ab95b6da (diff)
downloadobexd-7c97a48854402a32906ca2aaf2b66438f8ed432a.tar.gz
Fix the email attribute was badly formatted
It was using the nco:EmailAddress uri instead of the proper email address.
-rw-r--r--plugins/phonebook-tracker.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index 971f903..f28b234 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -46,7 +46,7 @@
"SELECT nco:phoneNumber(?h) nco:fullname(?c) " \
"nco:nameFamily(?c) nco:nameGiven(?c) " \
"nco:nameAdditional(?c) nco:nameHonorificPrefix(?c) " \
- "nco:nameHonorificSuffix(?c) nco:hasEmailAddress(?c) " \
+ "nco:nameHonorificSuffix(?c) nco:emailAddress(?e) " \
"nco:phoneNumber(?w) " \
"WHERE { " \
"?c a nco:PersonContact ; " \
@@ -54,6 +54,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"}"
@@ -71,7 +72,7 @@
"SELECT nco:phoneNumber(?h) nco:fullname(?c) " \
"nco:nameFamily(?c) nco:nameGiven(?c) " \
"nco:nameAdditional(?c) nco:nameHonorificPrefix(?c) " \
- "nco:nameHonorificSuffix(?c) nco:hasEmailAddress(?c) " \
+ "nco:nameHonorificSuffix(?c) nco:emailAddress(?e) " \
"nco:phoneNumber(?w) " \
"WHERE { " \
"?call a nmo:Call ; " \
@@ -83,6 +84,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"} ORDER BY DESC(nmo:receivedDate(?call))"
@@ -104,7 +106,7 @@
"SELECT nco:phoneNumber(?h) nco:fullname(?c) " \
"nco:nameFamily(?c) nco:nameGiven(?c) " \
"nco:nameAdditional(?c) nco:nameHonorificPrefix(?c) " \
- "nco:nameHonorificSuffix(?c) nco:hasEmailAddress(?c) " \
+ "nco:nameHonorificSuffix(?c) nco:emailAddress(?e) " \
"nco:phoneNumber(?w) " \
"WHERE { " \
"?call a nmo:Call ; " \
@@ -115,6 +117,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"} ORDER BY DESC(nmo:receivedDate(?call))"
@@ -135,7 +138,7 @@
"SELECT nco:phoneNumber(?h) nco:fullname(?c) " \
"nco:nameFamily(?c) nco:nameGiven(?c) " \
"nco:nameAdditional(?c) nco:nameHonorificPrefix(?c) " \
- "nco:nameHonorificSuffix(?c) nco:hasEmailAddress(?c) " \
+ "nco:nameHonorificSuffix(?c) nco:emailAddress(?e) " \
"nco:phoneNumber(?w) " \
"WHERE { " \
"?call a nmo:Call ; " \
@@ -146,6 +149,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"} ORDER BY DESC(nmo:sentDate(?call))"
@@ -166,7 +170,7 @@
"SELECT nco:phoneNumber(?h) nco:fullname(?c) " \
"nco:nameFamily(?c) nco:nameGiven(?c) " \
"nco:nameAdditional(?c) nco:nameHonorificPrefix(?c) " \
- "nco:nameHonorificSuffix(?c) nco:hasEmailAddress(?c) " \
+ "nco:nameHonorificSuffix(?c) nco:emailAddress(?e) " \
"nco:phoneNumber(?w) " \
"WHERE { " \
"{ " \
@@ -178,6 +182,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"} UNION { " \
"?call a nmo:Call ; " \
@@ -188,6 +193,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"} } "
@@ -216,7 +222,7 @@
"SELECT nco:phoneNumber(?h) nco:fullname(?c) " \
"nco:nameFamily(?c) nco:nameGiven(?c) nco:nameAdditional(?c) " \
"nco:nameHonorificPrefix(?c) nco:nameHonorificSuffix(?c) " \
- "nco:hasEmailAddress(?c) " \
+ "nco:emailAddress(?e) " \
"nco:phoneNumber(?w) " \
"WHERE { " \
"?c a nco:PersonContact ; " \
@@ -225,6 +231,7 @@
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
+ "?c nco:hasEmailAddress ?e" \
"} " \
"}"