X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frepl.c;h=97178b1f42427cc56733a72d827874e7e56942ce;hb=46d843745041d6e852be2ae57de9261ae4e5f399;hp=ab8042fe5bf96b39150ad7d20be80fe89dd9e398;hpb=2b1cd09eae8aa7516f8d47a6ee80e92cba714224;p=mmh diff --git a/uip/repl.c b/uip/repl.c index ab8042f..97178b1 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -70,6 +70,10 @@ static struct swit switches[] = { { "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 } }; @@ -134,6 +138,7 @@ main (int argc, char **argv) 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]; @@ -304,6 +309,13 @@ main (int argc, char **argv) dfolder = NULL; isdf = NOTOK; continue; + + case ATFILESW: + atfile++; + continue; + case NOATFILESW: + atfile = 0; + continue; } } if (*cp == '+' || *cp == '@') { @@ -424,7 +436,7 @@ try_it_again: 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;