This commit adds a maildir_commit_message with a prototype consistent
with other kind of mailboxes, to simplify upcoming refactoring.
*
*/
-int _maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr)
+static int _maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr)
{
char subdir[4];
char suffix[16];
}
}
+int maildir_commit_message (CONTEXT * ctx, MESSAGE * msg)
+{
+ return _maildir_commit_message (ctx, msg, NULL);
+}
+
/*
* commit a message to an MH folder.
*
case MUTT_MAILDIR:
{
- r = _maildir_commit_message (ctx, msg, NULL);
+ r = maildir_commit_message (ctx, msg);
break;
}
int maildir_check_empty (const char *);
-int _maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
+int maildir_commit_message (CONTEXT *, MESSAGE *);
int mh_commit_message (CONTEXT *, MESSAGE *);
FILE *maildir_open_find_message (const char *, const char *);