diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2010-05-20 11:22:15 -0300 |
---|---|---|
committer | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2010-05-21 13:52:00 -0300 |
commit | 7c97a48854402a32906ca2aaf2b66438f8ed432a (patch) | |
tree | 872b70588ba8bd20919c3ad0a5fac71fd7e4e578 | |
parent | a5e5ba163ed1f62ccf50e0ecbc815b67ab95b6da (diff) | |
download | obexd-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.c | 19 |
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" \ "} " \ "}" |