]> git.deb.at Git - pkg/abook.git/blobdiff - abook.c
mutt-query (2/3): moved mutt full database querying to mutt_query_export_database...
[pkg/abook.git] / abook.c
diff --git a/abook.c b/abook.c
index 866d71db4f38f9367c6ecc56cd115c4ea9654775..4ef136c1f44082359a7516fd1f24ae5444de2aa5 100644 (file)
--- a/abook.c
+++ b/abook.c
@@ -452,10 +452,7 @@ mutt_query(char *str)
        init_mutt_query();
 
        if( str == NULL || !strcasecmp(str, "all") ) {
-               struct db_enumerator e = init_db_enumerator(ENUM_ALL);
-               printf("All items\n");
-               db_enumerate_items(e)
-                       muttq_print_item(stdout, e.item);
+               export_file("muttq", "-");
        } else {
                int search_fields[] = {NAME, EMAIL, NICK, -1};
                int i;