X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fforw.c;h=cd51fd1925c99c9aeb4047072850d352580c2792;hb=6f9ad17b37a782a142df2f9c40dae64e4407a64c;hp=22ecc004237b0fdde2515094fad0ff85c09a4f08;hpb=efa71a4135a711d8ab79809e635de4091ccf6013;p=mmh diff --git a/uip/forw.c b/uip/forw.c index 22ecc00..cd51fd1 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; @@ -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; } @@ -659,7 +660,7 @@ copy_draft (int out, char *digest, char *file, int volume, int issue, int dashst if (digest) { strncpy (buffer, delim4, sizeof(buffer)); } else { - snprintf (buffer, sizeof(buffer), "\n------- End of Forwarded Message%s\n\n", + snprintf (buffer, sizeof(buffer), "\n------- End of Forwarded Message%s\n", mp->numsel > 1 ? "s" : ""); } write (out, buffer, strlen (buffer));