summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorDamien Riegel <damien.riegel@gmail.com>2016-06-18 13:36:22 -0700
committerDamien Riegel <damien.riegel@gmail.com>2016-06-18 13:36:22 -0700
commitcde08c74fdcda74927aa42b1a4cfba1b7f69e6a4 (patch)
tree5dfce5d0c5e73f17becaecded08e511e91174c8c /mbox.c
parent984eeab5718810e976b23f5b9c52c7fc9d8e023c (diff)
add mbox_commit_message function
Move mbox operations that were done in mx_commit_message to a dedicated mbox_commit_message function.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mbox.c b/mbox.c
index e0b79a1a..748249d6 100644
--- a/mbox.c
+++ b/mbox.c
@@ -461,6 +461,16 @@ static int mbox_close_message (CONTEXT *ctx, MESSAGE *msg)
return 0;
}
+int mbox_commit_message (CONTEXT *ctx, MESSAGE *msg)
+{
+ int r = fputc ('\n', msg->fp);
+
+ if (r == EOF)
+ return -1;
+
+ return 0;
+}
+
static int mbox_open_new_message (MESSAGE *msg, CONTEXT *dest, HEADER *hdr)
{
msg->fp = dest->fp;