cli/show: abstract get content disposition
authorJani Nikula <jani@nikula.org>
Sun, 26 Feb 2017 18:33:47 +0000 (20:33 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 28 Feb 2017 11:59:00 +0000 (07:59 -0400)
commit85caaaf861e976aa10d610db0b84ec34126816da
treeddd02d67936d6adf5c627e206117b9fa25cd4706
parentbd29098e47feab7886132689e4094fe6f2593311
cli/show: abstract get content disposition

Reduce duplication in follow-up work. As a side effect, handle error
returns from g_mime_content_disposition_get_disposition() without
segfaulting.
notmuch-show.c