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
commitcd6f922006dc9e05b2227c981a001cd2edddcad7 (patch)
tree1baee84b6c43eeb3a889acb6398265eadeab1e99 /mbox.c
parentcde08c74fdcda74927aa42b1a4cfba1b7f69e6a4 (diff)
add mmdf_commit_message function
Move MMDF operations that were done in mx_commit_message to a dedicated mmdf_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 748249d6..8f43b109 100644
--- a/mbox.c
+++ b/mbox.c
@@ -471,6 +471,16 @@ int mbox_commit_message (CONTEXT *ctx, MESSAGE *msg)
return 0;
}
+int mmdf_commit_message (CONTEXT *ctx, MESSAGE *msg)
+{
+ int r = fputs (MMDF_SEP, 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;