X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=ab4ea1c2bdc1c6b1ec0f58e49d1e13af788b859a;hp=22fa655ad20d8deea55297af4616c2cec7e292d0;hb=14c60cf168ac3b0f277188c16e6012b7ebdadde7;hpb=524372de10abafc79ccb4d71eae361cb0da0e6b9 diff --git a/notmuch-show.c b/notmuch-show.c index 22fa655a..ab4ea1c2 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -133,7 +133,20 @@ format_message_sprinter (sprinter_t *sp, notmuch_message_t *message) sp->boolean (sp, notmuch_message_get_flag (message, NOTMUCH_MESSAGE_FLAG_EXCLUDED)); sp->map_key (sp, "filename"); - sp->string (sp, notmuch_message_get_filename (message)); + if (notmuch_format_version >= 3) { + notmuch_filenames_t *filenames; + + sp->begin_list (sp); + for (filenames = notmuch_message_get_filenames (message); + notmuch_filenames_valid (filenames); + notmuch_filenames_move_to_next (filenames)) { + sp->string (sp, notmuch_filenames_get (filenames)); + } + notmuch_filenames_destroy (filenames); + sp->end (sp); + } else { + sp->string (sp, notmuch_message_get_filename (message)); + } sp->map_key (sp, "timestamp"); date = notmuch_message_get_date (message);