X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fburst.c;h=725abec39bca86be769cdfa8d04236f1ad3fa220;hb=67411b1f95d6ec987b4c732459e1ba8a8ac192c6;hp=0e7c53a3fc1da80f54c25ca58193d8a20ccc36a1;hpb=7e3bc577e84e13a47005a706718bd6ec0e6a0e0a;p=mmh diff --git a/uip/burst.c b/uip/burst.c index 0e7c53a..725abec 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -114,7 +114,7 @@ main(int argc, char **argv) } if (!msgp) - msgs[msgp++] = "cur"; + msgs[msgp++] = seq_cur; if (!folder) folder = getcurfol(); maildir = toabsdir(folder); @@ -229,13 +229,6 @@ find_delim(int msgnum, struct smsg *smsgs) smsgs[msgp++].s_stop = (c == '\n' && wasdlm) ? pos - 1 : pos; if (feof(in)) { -#if 0 - if (wasdlm) { - smsgs[msgp - 1].s_stop -= - ((long) strlen(buffer) + 1); - msgp++; /* fake "End of XXX Digest" */ - } -#endif break; } pos += (long) strlen(buffer); @@ -398,43 +391,43 @@ cpybrst(FILE *in, FILE *out, char *ifile, char *ofile, int len) if (c == 0) continue; switch (state) { - case S1: - switch (c) { - case '-': - state = S3; - break; - - default: - state = S2; - case '\n': - fputc(c, out); - break; - } + case S1: + switch (c) { + case '-': + state = S3; + break; + + default: + state = S2; + case '\n': + fputc(c, out); + break; + } + break; + + case S2: + switch (c) { + case '\n': + state = S1; + default: + fputc(c, out); break; + } + break; - case S2: - switch (c) { - case '\n': - state = S1; - default: - fputc(c, out); - break; - } + case S3: + switch (c) { + case ' ': + state = S2; break; - case S3: - switch (c) { - case ' ': - state = S2; - break; - - default: - state = (c == '\n') ? S1 : S2; - fputc('-', out); - fputc(c, out); - break; - } + default: + state = (c == '\n') ? S1 : S2; + fputc('-', out); + fputc(c, out); break; + } + break; } }