** Take a message as the "form" for the new message.
*/
if (!msg)
- msg = "cur";
+ msg = seq_cur;
if (!folder)
folder = getcurfol();
maildir = toabsdir(folder);
in = open_form(&form, components);
try_it_again:
- strncpy(drft, m_draft(use ? (msg?msg:"cur") : "new"), sizeof(drft));
+ strncpy(drft, m_draft(use ? (msg?msg:seq_cur) : seq_beyond),
+ sizeof(drft));
/*
** Check if we have an existing draft
if (!(argp = getans("\nDisposition? ", aqrunl)))
done(1);
switch (i = smatch(*argp, aqrunl)) {
- case NOSW:
- done(0);
- case NEWSW:
- use = NOUSE;
- goto try_it_again;
- case YESW:
- break;
- case USELSW:
- use++;
- goto edit_it;
- case LISTDSW:
- showfile(++argp, drft);
- break;
- case REFILSW:
- if (refile(++argp, drft) == 0)
- i = YESW;
- break;
- default:
- advise(NULL, "say what?");
- break;
+ case NOSW:
+ done(0);
+ case NEWSW:
+ use = NOUSE;
+ goto try_it_again;
+ case YESW:
+ break;
+ case USELSW:
+ use++;
+ goto edit_it;
+ case LISTDSW:
+ showfile(++argp, drft);
+ break;
+ case REFILSW:
+ if (refile(++argp, drft) == 0)
+ i = YESW;
+ break;
+ default:
+ advise(NULL, "say what?");
+ break;
}
}
} else if (use) {