Commit 7c130846 authored by Thomas Roessler's avatar Thomas Roessler

Rename M_NEW to M_NEWFOLDER.

parent e9e8be53
......@@ -65,7 +65,7 @@ static int edit_one_message (CONTEXT *ctx, HEADER *cur)
omagic = DefaultMagic;
DefaultMagic = M_MBOX;
rc = (mx_open_mailbox (tmp, M_NEW, &tmpctx) == NULL) ? -1 : 0;
rc = (mx_open_mailbox (tmp, M_NEWFOLDER, &tmpctx) == NULL) ? -1 : 0;
DefaultMagic = omagic;
......
......@@ -24,7 +24,7 @@
#define M_APPEND (1<<1) /* open mailbox for appending messages */
#define M_READONLY (1<<2) /* open in read-only mode */
#define M_QUIET (1<<3) /* do not print any messages */
#define M_NEW (1<<4) /* create a new folder - same as M_APPEND, but uses
#define M_NEWFOLDER (1<<4) /* create a new folder - same as M_APPEND, but uses
* safe_fopen() for mbox-style folders.
*/
......
......@@ -581,7 +581,7 @@ static int mx_open_mailbox_append (CONTEXT *ctx, int flags)
{
case M_MBOX:
case M_MMDF:
if ((ctx->fp = safe_fopen (ctx->path, flags & M_NEW ? "w" : "a")) == NULL ||
if ((ctx->fp = safe_fopen (ctx->path, flags & M_NEWFOLDER ? "w" : "a")) == NULL ||
mbox_lock_mailbox (ctx, 1, 1) != 0)
{
if (!ctx->fp)
......@@ -636,7 +636,7 @@ CONTEXT *mx_open_mailbox (const char *path, int flags, CONTEXT *pctx)
if (flags & M_READONLY)
ctx->readonly = 1;
if (flags & (M_APPEND|M_NEW))
if (flags & (M_APPEND|M_NEWFOLDER))
{
if (mx_open_mailbox_append (ctx, flags) != 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment