X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fforw.c;h=a04ebd6f9b9a4713f1c46aa81035f976541361f7;hb=015e83362f21a061bf268b878693d72309c21e55;hp=2d56e6b2ff0d74cc2e378984f3d052fccbd9c449;hpb=56f140c6607d7a390639bd8535175a841a0fba62;p=mmh diff --git a/uip/forw.c b/uip/forw.c index 2d56e6b..a04ebd6 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -130,7 +130,7 @@ main (int argc, char **argv) int msgp = 0, anot = 0, inplace = 1, mime = 0; int issue = 0, volume = 0, dashstuff = 0; int nedit = 0, nwhat = 0, i, in; - int out, isdf = 0, msgnum; + int out, isdf = 0, msgnum = 0; int outputlinelen = OUTPUTLINELEN; int dat[5]; char *cp, *cwd, *maildir, *dfolder = NULL; @@ -167,10 +167,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case ANNOSW: anot++; @@ -438,10 +438,11 @@ try_it_again: if (!form) form = digestcomps; } else { - form = forwcomps; + if (!form) + form = forwcomps; } - dat[0] = issue; + dat[0] = digest ? issue : msgnum; dat[1] = volume; dat[2] = 0; dat[3] = outputlinelen; @@ -498,7 +499,7 @@ try_it_again: if (nwhat) done (0); what_now (ed, nedit, NOUSE, drft, NULL, 0, mp, - anot ? "Forwarded" : NULL, inplace, cwd); + anot ? "Forwarded" : NULL, inplace, cwd, 0); done (1); return 1; }