the same name. Problem noted by Will Yardley's compiler.
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;
#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.
*/
{
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)
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)
{