mirror of https://github.com/djcb/mu.git
mu-find: don't pre/post none-message
This gives a runtime-error. Since some tools (like mu4e-alert) merge stderr & stdout, they get confused. Fixes: #1914.
This commit is contained in:
parent
7db2e527a8
commit
c8ab816b37
|
@ -442,7 +442,7 @@ output_plain (MuMsg *msg, const OutputInfo& info, const MuConfig *opts, GError *
|
|||
}
|
||||
|
||||
|
||||
static std::string
|
||||
G_GNUC_UNUSED static std::string
|
||||
to_string (const Mu::Sexp& sexp, bool color, size_t level = 0)
|
||||
{
|
||||
Mu::MaybeAnsi col{color};
|
||||
|
@ -493,9 +493,13 @@ to_string (const Mu::Sexp& sexp, bool color, size_t level = 0)
|
|||
static bool
|
||||
output_sexp (MuMsg *msg, const OutputInfo& info, const MuConfig *opts, GError **err)
|
||||
{
|
||||
if (!msg)
|
||||
return true;
|
||||
|
||||
fputs(msg_to_sexp(msg, 0, {}, MU_MSG_OPTION_HEADERS_ONLY)
|
||||
.to_sexp_string().c_str(), stdout);
|
||||
fputs ("\n", stdout);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue