file when repl'ing or dist'ing a message.
.RB [ \-whatnowproc
.IR program ]
.RB [ \-nowhatnowproc ]
+.RB [ \-atfile ]
+.RB [ \-noatfile ]
.RB [ \-version ]
.RB [ \-help ]
.ad
and the pathname of
the folder containing the message is stored in the environment variable
.BR $mhfolder .
+The creation of the \*(lq@\*(rq file and associated environment variables
+can be controlled via the
+.B \-atfile
+and
+.B \-noatfile
+options.
.PP
The
.B \-draftfolder
.RB ` \-noannotate '
.RB ` \-nodraftfolder '
.RB ` \-inplace '
+.RB ` \-atfile '
.fi
.SH CONTEXT
.RB [ \-whatnowproc
.IR program ]
.RB [ \-nowhatnowproc ]
+.RB [ \-atfile ]
+.RB [ \-noatfile ]
.RB [ \-build ]
.RB [ \-file
.IR msgfile ]
and the pathname of
the folder containing the message is stored in the environment variable
.BR $mhfolder .
+The creation of the \*(lq@\*(rq file and associated environment variables
+can be controlled via the
+.B \-atfile
+and
+.B \-noatfile
+options.
.PP
Although
.B repl
.RB ` \-inplace '
.RB ` \-nomime '
.RB ` \-noquery '
+.RB ` \-atfile '
.RB ` "\-width\ 72" '
.fi
{ "fcc mailbox", 0 },
#define WIDTHSW 19
{ "width columns", 0 },
+#define ATFILESW 20
+ { "atfile", 0 },
+#define NOATFILESW 21
+ { "noatfile", 0 },
{ NULL, 0 }
};
int anot = 0, inplace = 1, nedit = 0;
int nwhat = 0, i, in, isdf = 0, out;
int outputlinelen = OUTPUTLINELEN;
- int dat[5];
+ int dat[5], atfile = 1;
char *cp, *cwd, *maildir, *msgnam, *dfolder = NULL;
char *dmsg = NULL, *ed = NULL, *file = NULL, *folder = NULL;
char *form = NULL, *msg = NULL, buf[BUFSIZ], drft[BUFSIZ];
if ((outputlinelen = atoi(cp)) < 10)
adios (NULL, "impossible width %d", outputlinelen);
continue;
+
+ case ATFILESW:
+ atfile++;
+ continue;
+ case NOATFILESW:
+ atfile = 0;
+ continue;
}
}
if (*cp == '+' || *cp == '@') {
if (nwhat)
done (0);
- what_now (ed, nedit, NOUSE, drft, msgnam, 1, mp,
+ what_now (ed, nedit, NOUSE, drft, atfile ? msgnam : NULL, 1, mp,
anot ? "Resent" : NULL, inplace, cwd);
done (1);
return 1;
{ "file file", 4 }, /* interface from msh */
#define BILDSW 28
{ "build", 5 }, /* interface from mhe */
+#define ATFILESW 29
+ { "atfile", 0 },
+#define NOATFILESW 30
+ { "noatfile", 0 },
{ NULL, 0 }
};
int i, isdf = 0;
int anot = 0, inplace = 1;
int nedit = 0, nwhat = 0;
+ int atfile = 1;
char *cp, *cwd, *dp, *maildir, *file = NULL;
char *folder = NULL, *msg = NULL, *dfolder = NULL;
char *dmsg = NULL, *ed = NULL, drft[BUFSIZ], buf[BUFSIZ];
dfolder = NULL;
isdf = NOTOK;
continue;
+
+ case ATFILESW:
+ atfile++;
+ continue;
+ case NOATFILESW:
+ atfile = 0;
+ continue;
}
}
if (*cp == '+' || *cp == '@') {
if (nwhat)
done (0);
- what_now (ed, nedit, NOUSE, drft, msg, 0, mp,
+ what_now (ed, nedit, NOUSE, drft, atfile ? msg : NULL, 0, mp,
anot ? "Replied" : NULL, inplace, cwd);
done (1);
return 1;