From f7699c0ad3c8048ac6a47ca9033626c4378b60e8 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 23 May 2012 23:34:28 +0300 Subject: [PATCH] * mu-msg-sexp.c: add contact info later in the sexp so that we can access file data (in the !header_only case), i.e.. Reply-To --- lib/mu-msg-sexp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/mu-msg-sexp.c b/lib/mu-msg-sexp.c index a7fb39e3..58a4a166 100644 --- a/lib/mu-msg-sexp.c +++ b/lib/mu-msg-sexp.c @@ -344,8 +344,6 @@ mu_msg_to_sexp (MuMsg *msg, unsigned docid, const MuMsgIterThreadInfo *ti, if (docid != 0) g_string_append_printf (gstr, "\t:docid %u\n", docid); - append_sexp_contacts (gstr, msg); - if (ti) append_sexp_thread_info (gstr, ti); @@ -374,6 +372,10 @@ mu_msg_to_sexp (MuMsg *msg, unsigned docid, const MuMsgIterThreadInfo *ti, append_sexp_parts (gstr, msg, extract_images); } + /* note, some of the contacts info comes from the file, soe + * this has to be after the previous */ + append_sexp_contacts (gstr, msg); + g_string_append (gstr, ")\n"); return g_string_free (gstr, FALSE); }