- /* Check if draft already exists */
- if (stat (drft, &st) != NOTOK) {
- printf ("Draft \"%s\" exists (%ld bytes).", drft, (long) st.st_size);
- for (i = LISTDSW; i != YESW;) {
- if (!(argp = getans ("\nDisposition? ", isdf ? aqrnl : aqrl)))
- done (1);
- switch (i = smatch (*argp, isdf ? aqrnl : aqrl)) {
- case NOSW:
- done (0);
- case NEWSW:
- dmsg = NULL;
- goto try_it_again;
- case YESW:
- break;
- case LISTDSW:
- showfile (++argp, drft);
- break;
- case REFILSW:
- if (refile (++argp, drft) == 0)
- i = YESW;
- break;
- default:
- advise (NULL, "say what?");
- break;
- }
- }
- }
- if ((out = creat (drft, m_gmprot ())) == NOTOK)
- adios (drft, "unable to create");
+ if ((out = creat(drft, m_gmprot())) == NOTOK)
+ adios(drft, "unable to create");