diff options
author | Carl Worth <cworth@cworth.org> | 2010-11-11 04:17:29 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-11 04:17:29 -0800 |
commit | f6ec7ca78f867c2ae27d0dba154a2395ccf15f52 (patch) | |
tree | b6c368c1de94340c1417c284cac8909e7576252c /test/corpus/cur/01:2, | |
parent | 666e410b60855dd714c2b4f36085aeae1810907c (diff) |
test: Move corpus emails into maildir directory structure
Now that we have maildir synchronization turned on by default, it's
advantageous to make all of the tests exercise it as much as possible.
Diffstat (limited to 'test/corpus/cur/01:2,')
-rw-r--r-- | test/corpus/cur/01:2, | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/corpus/cur/01:2, b/test/corpus/cur/01:2, new file mode 100644 index 00000000..7e9e3490 --- /dev/null +++ b/test/corpus/cur/01:2, @@ -0,0 +1,34 @@ +From: "Mikhail Gusarov" <dottedmag@dottedmag.net> +To: notmuch@notmuchmail.org +Date: Tue, 17 Nov 2009 21:28:37 +0600 +Subject: [notmuch] [PATCH 1/2] Close message file after parsing message + headers +Message-ID: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net> + +Keeping unused files open helps to see "Too many open files" often. + +Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net> +--- + lib/message-file.c | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/lib/message-file.c b/lib/message-file.c +index 8a3f8ee..197ab01 100644 +--- a/lib/message-file.c ++++ b/lib/message-file.c +@@ -325,6 +325,11 @@ notmuch_message_file_get_header (notmuch_message_file_t *message, + return decoded_value; + } + ++ if (message->parsing_finished) { ++ fclose (message->file); ++ message->file = NULL; ++ } ++ + if (message->line) + free (message->line); + message->line = NULL; +-- +1.6.3.3 + + |