X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_draft.c;h=e97dd1e851a3af0062292d3685e38639aa2d48c7;hb=3113d18bf20013be27c9aabc8aafcab9a6a8643e;hp=8492dd914e0dd5a46271ea34cde377e6f9efadb6;hpb=3cc8ed080f6e741b8df04a3ebe764c659e75cb38;p=mmh diff --git a/sbr/m_draft.c b/sbr/m_draft.c index 8492dd9..e97dd1e 100644 --- a/sbr/m_draft.c +++ b/sbr/m_draft.c @@ -23,10 +23,11 @@ m_draft(char *which) char *folder; folder = getcpy(toabsdir(draftfolder)); - create_folder(folder, 0, done); + create_folder(folder, 0, exit); if (!(mp = folder_read(folder))) { adios(NULL, "unable to read folder %s", folder); } + free(folder); /* ** Make sure we have enough message status space for all @@ -42,7 +43,7 @@ m_draft(char *which) adios(NULL, "unable to allocate folder storage"); } - mp->msgflags |= ALLOW_NEW; /* allow the "new" sequence */ + mp->msgflags |= ALLOW_BEYOND; /* allow the beyond sequence */ /* ** The draft message name to return is defined by `which'. @@ -50,7 +51,7 @@ m_draft(char *which) ** (to start a new draft). */ if (!m_convert(mp, which)) - done(1); + exit(1); seq_setprev(mp); snprintf(buffer, sizeof(buffer), "%s/%s", mp->foldpath,