char *query_string;
const char *headers[] = {
- "From", "To", "Cc", "Bcc", "Date"
+ "Subject", "From", "To", "Cc", "Bcc", "Date"
};
const char *name, *value;
unsigned int i;
return 1;
}
- for (messages = notmuch_query_search_messages (query);
+ for (messages = notmuch_query_search_messages (query, 0, -1);
notmuch_messages_has_more (messages);
notmuch_messages_advance (messages))
{
printf ("%s\n", _get_one_line_summary (ctx, message));
- printf ("%s\n", notmuch_message_get_header (message, "subject"));
-
for (i = 0; i < ARRAY_SIZE (headers); i++) {
name = headers[i];
value = notmuch_message_get_header (message, name);