From 91250b0d71dc0f54fa2c9a3f1b2671151d27be6c Mon Sep 17 00:00:00 2001 From: "Foivos S. Zakkak" Date: Fri, 10 Oct 2014 08:37:34 +0300 Subject: [PATCH] Fix #186 part 2 This patch fixes the attachment listing when using `mu`. For some reason the '--decrypt' option among others where totally ignored when listing the attachments. --- mu/mu-cmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mu/mu-cmd.c b/mu/mu-cmd.c index 615052bc..2a882d48 100644 --- a/mu/mu-cmd.c +++ b/mu/mu-cmd.c @@ -48,7 +48,7 @@ view_msg_sexp (MuMsg *msg, MuConfig *opts) { char *sexp; - sexp = mu_msg_to_sexp (msg, 0, NULL, MU_MSG_OPTION_NONE); + sexp = mu_msg_to_sexp (msg, 0, NULL, mu_config_get_msg_options(opts)); fputs (sexp, stdout); g_free (sexp); @@ -78,12 +78,12 @@ each_part (MuMsg *msg, MuMsgPart *part, gchar **attach) /* return comma-sep'd list of attachments */ static gchar * -get_attach_str (MuMsg *msg) +get_attach_str (MuMsg *msg, MuConfig *opts) { gchar *attach; attach = NULL; - mu_msg_part_foreach (msg, MU_MSG_OPTION_NONE, + mu_msg_part_foreach (msg, mu_config_get_msg_options(opts), (MuMsgPartForeachFunc)each_part, &attach); return attach; } @@ -177,7 +177,7 @@ view_msg_plain (MuMsg *msg, MuConfig *opts) g_free (tags); } - if ((attachs = get_attach_str (msg))) { + if ((attachs = get_attach_str (msg, opts))) { print_field ("Attachments", attachs, color); g_free (attachs); }