]> git.deb.at Git - pkg/abook.git/blobdiff - abook.c
mutt-query (1/3): moved muttq_print_item() from abook.c to filter.c
[pkg/abook.git] / abook.c
diff --git a/abook.c b/abook.c
index 42c04c1f37022eceb632739fd38098673867c4a5..866d71db4f38f9367c6ecc56cd115c4ea9654775 100644 (file)
--- a/abook.c
+++ b/abook.c
@@ -446,25 +446,6 @@ quit_mutt_query(int status)
        exit(status);
 }
 
-static void
-muttq_print_item(FILE *file, int item)
-{
-       abook_list *emails, *e;
-       char *tmp = db_email_get(item);
-
-       emails = csv_to_abook_list(tmp);
-       free(tmp);
-
-       for(e = emails; e; e = e->next) {
-               fprintf(file, "%s\t%s\t%s\n", e->data, db_name_get(item),
-                               !db_fget(item, NOTES) ?" " :db_fget(item, NOTES)
-                               );
-               if(!opt_get_bool(BOOL_MUTT_RETURN_ALL_EMAILS))
-                       break;
-       }
-       abook_list_free(&emails);
-}
-
 static void
 mutt_query(char *str)
 {