mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
Do not attempt to output part raw if part is not GMimePart.
This was a minor oversite in checking of part type when outputing content raw. This was causing gmime was to throw an exception to stderr. Unfortunately the gmime exception was not being caught by notmuch, or the test suite. I'm not sure if notmuch should have done anything in this case, but certainly the test suite should be capable of detecting that something unexpected was output to stderr.
This commit is contained in:
parent
6979b6533a
commit
a6b93ef32b
1 changed files with 3 additions and 0 deletions
|
@ -708,6 +708,9 @@ format_part_end_json (GMimeObject *part)
|
|||
static void
|
||||
format_part_content_raw (GMimeObject *part)
|
||||
{
|
||||
if (! GMIME_IS_PART (part))
|
||||
return;
|
||||
|
||||
GMimeStream *stream_stdout;
|
||||
GMimeStream *stream_filter = NULL;
|
||||
GMimeDataWrapper *wrapper;
|
||||
|
|
Loading…
Reference in a new issue