FreeCalypso > hg > falcon-mail-tools
comparison f-demime/finish.c @ 4:612c4d0df768
f-demime: rework for unboundedly long lines
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 06 May 2023 09:02:12 +0000 |
parents | 7e0d08176f32 |
children |
comparison
equal
deleted
inserted
replaced
3:7a6cd16689f5 | 4:612c4d0df768 |
---|---|
30 void | 30 void |
31 finish_msg_body() | 31 finish_msg_body() |
32 { | 32 { |
33 switch (msg_state) { | 33 switch (msg_state) { |
34 case MSG_STATE_HEADER: | 34 case MSG_STATE_HEADER: |
35 if (got_cont_type) | 35 if (got_cont_type) { |
36 fputs(cont_type_buf, stdout); | 36 fputs(cont_type_buf, stdout); |
37 if (got_cont_te) | 37 if (cont_type_buf[strlen(cont_type_buf)-1] != '\n') |
38 putchar('\n'); | |
39 } | |
40 if (got_cont_te) { | |
38 fputs(cont_te_buf, stdout); | 41 fputs(cont_te_buf, stdout); |
42 if (cont_te_buf[strlen(cont_te_buf)-1] != '\n') | |
43 putchar('\n'); | |
44 } | |
39 return; | 45 return; |
40 case MSG_STATE_PTEXT_B64: | 46 case MSG_STATE_PTEXT_B64: |
41 base64_dec_finish(); | 47 base64_dec_finish(); |
42 check_b64_err(); | 48 check_b64_err(); |
43 ptext_conv_finish(); | 49 ptext_conv_finish(); |