diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-08 18:11:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-08 18:11:08 +0200 |
commit | 80d641dc9714f18eafd3ca4614e3e55464a313eb (patch) | |
tree | 450c9423190e9ed7eb63705342efc123dbf18431 | |
parent | Add README (diff) | |
download | contacts-80d641dc9714f18eafd3ca4614e3e55464a313eb.tar.gz contacts-80d641dc9714f18eafd3ca4614e3e55464a313eb.tar.bz2 contacts-80d641dc9714f18eafd3ca4614e3e55464a313eb.tar.xz |
Include .me in find-* utils but exclude .me in list-* utils
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | find-contact-by-address.c | 2 | ||||
-rw-r--r-- | find-contact-by-chat.c | 2 | ||||
-rw-r--r-- | find-contact-by-email.c | 2 | ||||
-rw-r--r-- | find-contact-by-name.c | 2 | ||||
-rw-r--r-- | find-contact-by-number.c | 2 | ||||
-rw-r--r-- | find-contact-by-organisation.c | 2 | ||||
-rw-r--r-- | find-contact-by-pgpkey.c | 2 | ||||
-rw-r--r-- | find-contact-by-photo.c | 2 | ||||
-rw-r--r-- | find-contact-by-site.c | 2 | ||||
-rw-r--r-- | list-birthdays.c | 2 | ||||
-rw-r--r-- | list-chat-contacts.c | 2 | ||||
-rw-r--r-- | list-contact-groups.c | 2 | ||||
-rw-r--r-- | list-contact-organisations.c | 2 | ||||
-rw-r--r-- | list-contacts.c | 4 | ||||
-rw-r--r-- | list-group-contacts.c | 2 | ||||
-rw-r--r-- | list-organisation-contacts.c | 2 |
16 files changed, 17 insertions, 17 deletions
diff --git a/find-contact-by-address.c b/find-contact-by-address.c index b556e0f..514eb25 100644 --- a/find-contact-by-address.c +++ b/find-contact-by-address.c @@ -66,7 +66,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((addresses = contacts[i]->addresses)) { diff --git a/find-contact-by-chat.c b/find-contact-by-chat.c index 529b32c..1a060aa 100644 --- a/find-contact-by-chat.c +++ b/find-contact-by-chat.c @@ -40,7 +40,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((chats = contacts[i]->chats)) { diff --git a/find-contact-by-email.c b/find-contact-by-email.c index 3880bb0..accdf3b 100644 --- a/find-contact-by-email.c +++ b/find-contact-by-email.c @@ -35,7 +35,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((emails = contacts[i]->emails)) { diff --git a/find-contact-by-name.c b/find-contact-by-name.c index 4b4b8c1..6d2447b 100644 --- a/find-contact-by-name.c +++ b/find-contact-by-name.c @@ -52,7 +52,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { name = *(char **)&offset[(char *)contacts[i]]; diff --git a/find-contact-by-number.c b/find-contact-by-number.c index 54827f4..8437822 100644 --- a/find-contact-by-number.c +++ b/find-contact-by-number.c @@ -68,7 +68,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((numbers = contacts[i]->numbers)) { diff --git a/find-contact-by-organisation.c b/find-contact-by-organisation.c index 8287225..16d3f79 100644 --- a/find-contact-by-organisation.c +++ b/find-contact-by-organisation.c @@ -46,7 +46,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((orgs = contacts[i]->organisations)) { diff --git a/find-contact-by-pgpkey.c b/find-contact-by-pgpkey.c index 94c312f..e8fbe8e 100644 --- a/find-contact-by-pgpkey.c +++ b/find-contact-by-pgpkey.c @@ -35,7 +35,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((pgpkeys = contacts[i]->pgpkeys)) { diff --git a/find-contact-by-photo.c b/find-contact-by-photo.c index 46c14ed..4e2097e 100644 --- a/find-contact-by-photo.c +++ b/find-contact-by-photo.c @@ -29,7 +29,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((photos = contacts[i]->photos)) { diff --git a/find-contact-by-site.c b/find-contact-by-site.c index 7c21777..616a828 100644 --- a/find-contact-by-site.c +++ b/find-contact-by-site.c @@ -35,7 +35,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 1)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((sites = contacts[i]->sites)) { diff --git a/list-birthdays.c b/list-birthdays.c index 13d75ed..5a4d0f6 100644 --- a/list-birthdays.c +++ b/list-birthdays.c @@ -96,7 +96,7 @@ main(int argc, char *argv[]) eprintf("localtime:"); if (list) { - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++); } else { diff --git a/list-chat-contacts.c b/list-chat-contacts.c index eb262a9..0f8a9e4 100644 --- a/list-chat-contacts.c +++ b/list-chat-contacts.c @@ -35,7 +35,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((chats = contacts[i]->chats)) { diff --git a/list-contact-groups.c b/list-contact-groups.c index f0c1dd1..0b0881a 100644 --- a/list-contact-groups.c +++ b/list-contact-groups.c @@ -72,7 +72,7 @@ main(int argc, char *argv[]) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); if (list) { - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { list_groups(contacts[i]); diff --git a/list-contact-organisations.c b/list-contact-organisations.c index 3a67e42..8c72b8b 100644 --- a/list-contact-organisations.c +++ b/list-contact-organisations.c @@ -83,7 +83,7 @@ main(int argc, char *argv[]) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); if (list) { - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { list_orgs(contacts[i], title); diff --git a/list-contacts.c b/list-contacts.c index ebb948a..6c2e1d3 100644 --- a/list-contacts.c +++ b/list-contacts.c @@ -60,7 +60,7 @@ main(int argc, char *argv[]) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); if (!names && !emergency && !include_men && !include_women && !include_orgs && !include_unspec && !service) { - if (libcontacts_list_contacts(&ids, user)) + if (libcontacts_list_contacts(&ids, user, 0)) eprintf("libcontacts_list_contacts:"); for (i = 0; ids[i]; i++) { printf("%s\n", ids[i]); @@ -70,7 +70,7 @@ main(int argc, char *argv[]) } else { if (!include_men && !include_women && !include_orgs && !include_unspec) include_men = include_women = include_orgs = include_unspec = 1; - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; (contact = contacts[i]); i++) { if (emergency && !contact->in_case_of_emergency) diff --git a/list-group-contacts.c b/list-group-contacts.c index 45299fd..2ec6c4c 100644 --- a/list-group-contacts.c +++ b/list-group-contacts.c @@ -20,7 +20,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((groups = contacts[i]->groups)) { diff --git a/list-organisation-contacts.c b/list-organisation-contacts.c index 2e6ddae..3a7c039 100644 --- a/list-organisation-contacts.c +++ b/list-organisation-contacts.c @@ -31,7 +31,7 @@ main(int argc, char *argv[]) if (!user) eprintf("getpwuid: %s\n", errno ? strerror(errno) : "user does not exist"); - if (libcontacts_load_contacts(&contacts, user)) + if (libcontacts_load_contacts(&contacts, user, 0)) eprintf("libcontacts_load_contacts:"); for (i = 0; contacts[i]; i++) { if ((orgs = contacts[i]->organisations)) { |