mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
show: Remove support for old-style formatters in show_message
show_message used to have a compatibility path for old-style formatters. This removes that.
This commit is contained in:
parent
98cad5a207
commit
b92f15d014
1 changed files with 13 additions and 39 deletions
|
@ -815,7 +815,6 @@ show_message (void *ctx,
|
|||
int indent,
|
||||
notmuch_show_params_t *params)
|
||||
{
|
||||
if (format->part) {
|
||||
void *local = talloc_new (ctx);
|
||||
mime_node_t *root, *part;
|
||||
notmuch_status_t status;
|
||||
|
@ -832,31 +831,6 @@ show_message (void *ctx,
|
|||
return status;
|
||||
}
|
||||
|
||||
if (params->part <= 0) {
|
||||
fputs (format->message_start, stdout);
|
||||
if (format->message)
|
||||
format->message(ctx, message, indent);
|
||||
|
||||
fputs (format->header_start, stdout);
|
||||
if (format->header)
|
||||
format->header(ctx, message);
|
||||
fputs (format->header_end, stdout);
|
||||
|
||||
fputs (format->body_start, stdout);
|
||||
}
|
||||
|
||||
if (format->part_content)
|
||||
show_message_body (message, format, params);
|
||||
|
||||
if (params->part <= 0) {
|
||||
fputs (format->body_end, stdout);
|
||||
|
||||
fputs (format->message_end, stdout);
|
||||
}
|
||||
|
||||
return NOTMUCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static notmuch_status_t
|
||||
show_messages (void *ctx,
|
||||
const notmuch_show_format_t *format,
|
||||
|
|
Loading…
Reference in a new issue