From ec100ee63e55ba60369363c72d6d2e1fbc3663a2 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 12 Apr 2013 09:20:47 +0300 Subject: Implement MH show utility. * mh/show.c: New file. * NEWS: Document changes. * libmailutils/stream/message_stream.c (copy_trimmed_value): Fix string length calculation to allow for empty lines. * mh/.gitignore: Update. * mh/Makefile.am: Build show. * mh/TODO: Document show. * mh/mh_getopt.h: Add new option codes. * mh/mh_init.c (mh_expand_name): Change handling of the last argument. All callers updated. (mh_draft_name): Remove. --- mh/repl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mh/repl.c') diff --git a/mh/repl.c b/mh/repl.c index 8500966a1..00128951e 100644 --- a/mh/repl.c +++ b/mh/repl.c @@ -418,14 +418,14 @@ main (int argc, char **argv) } if (build_only) - wh_env.file = mh_expand_name (draftfolder, "reply", 0); + wh_env.file = mh_expand_name (draftfolder, "reply", NAME_ANY); else if (draftfolder) { if (mh_draft_message (draftfolder, draftmessage, &wh_env.file)) return 1; } else - wh_env.file = mh_expand_name (draftfolder, "draft", 0); + wh_env.file = mh_expand_name (draftfolder, "draft", NAME_ANY); wh_env.draftfile = wh_env.file; make_draft (mbox, DISP_REPLACE, &wh_env); -- cgit v1.2.1