From a9f3ad4fcbaf1415ec40a82125dbf4064dbdc819 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 11 Nov 2009 10:54:12 -0800 Subject: notmuch reply: Use GMime to construct the header for the reply. The advantage here is that we actually get the necessary folding of long headers, (particularly the References header, but also things like Subject). This also gives us parsed recipient addresses so that we can easily elide the sender's address(es) from the recipient list (just as soon as we have a configured value for the recipient's address(es)). --- show-message.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'show-message.c') diff --git a/show-message.c b/show-message.c index 2d3189e3..79b02e2f 100644 --- a/show-message.c +++ b/show-message.c @@ -74,15 +74,9 @@ show_message_body (const char *filename, GMimeParser *parser = NULL; GMimeMessage *mime_message = NULL; notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS; - static int initialized = 0; FILE *file = NULL; int part_count = 0; - if (! initialized) { - g_mime_init (0); - initialized = 1; - } - file = fopen (filename, "r"); if (! file) { fprintf (stderr, "Error opening %s: %s\n", filename, strerror (errno)); -- cgit v1.2.3