free (default_path);
}
- /* Coerce th directory into an absolute directory name. */
+ /* Coerce the directory into an absolute directory name. */
if (*mail_directory != '/') {
char *cwd, *absolute_mail_directory;
free (cwd);
free (mail_directory);
mail_directory = absolute_mail_directory;
-
- printf ("Abs: %s\n", mail_directory);
}
notmuch = notmuch_database_create (mail_directory);
const char *from;
time_t date;
const char *relative_date;
- const char *subject;
const char *tags;
from = notmuch_message_get_header (message, "from");
date = notmuch_message_get_date (message);
relative_date = _format_relative_date (ctx, date);
- subject = notmuch_message_get_header (message, "subject");
-
tags = _get_tags_as_string (ctx, message);
- return talloc_asprintf (ctx, "%s (%s) %s (%s)",
- from, relative_date, subject, tags);
+ return talloc_asprintf (ctx, "%s (%s) (%s)",
+ from, relative_date, tags);
}
static void
int ret = 0;
const char *headers[] = {
- "Subject", "From", "To", "Cc", "Bcc", "Date"
+ "From", "To", "Cc", "Bcc", "Date"
};
const char *name, *value;
unsigned int i;
printf ("%s\n", _get_one_line_summary (local, 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);