]> the.earth.li Git - onak.git/blobdiff - add.c
Move mailsync functionality to the database backends.
[onak.git] / add.c
diff --git a/add.c b/add.c
index 189444e294fb2d83af8869b3c943504c30fba810..46f5ecf1e926a1553e06320b15acc4b9e40ab65e 100644 (file)
--- a/add.c
+++ b/add.c
@@ -78,14 +78,15 @@ int main(int argc, char *argv[])
                        logthing(LOGTHING_INFO, "%d keys cleaned.",
                                        count);
 
-                       count = update_keys(&keys);
+                       count = update_keys(&keys, true);
                        logthing(LOGTHING_NOTICE, "Got %d new keys.",
                                count);
+
                        if (keys != NULL) {
-                               sendkeysync(keys);
                                free_publickey(keys);
                                keys = NULL;
                        }
+                       
                        cleanupdb();
                } else {
                        puts("No OpenPGP packets found in input.");