aboutsummaryrefslogtreecommitdiffhomepage
path: root/show-message.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-11 10:54:12 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-11 10:54:12 -0800
commita9f3ad4fcbaf1415ec40a82125dbf4064dbdc819 (patch)
tree93f5f65dd02ce1ac82de484cbc4c4b4284772f86 /show-message.c
parent26bb521f52960af10775864b822d6e84c507ead3 (diff)
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)).
Diffstat (limited to 'show-message.c')
-rw-r--r--show-message.c6
1 files changed, 0 insertions, 6 deletions
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));