static int set_ct_type (CT, int type, int subtype, int encoding);
static int decode_text_parts (CT, int, int *);
static int content_encoding (CT);
-static int strip_crs (CT);
+static int strip_crs (CT, int *);
static int convert_codesets (CT, char *, int *);
static int convert_codeset (CT, char *, int *);
static char *content_codeset (CT);
report (ct->c_partno, ct->c_file, "decode%s",
ct->c_ctline ? ct->c_ctline : "");
}
- strip_crs (ct);
+ strip_crs (ct, message_mods);
} else {
status = NOTOK;
}
}
case CE_8BIT:
case CE_7BIT:
- strip_crs (ct);
+ strip_crs (ct, message_mods);
break;
default:
break;
int encoding = CE_7BIT;
if (ce->ce_file) {
+ size_t line_len = 0;
char buffer[BUFSIZ];
size_t inbytes;
(inbytes = fread (buffer, 1, sizeof buffer, ce->ce_fp)) > 0) {
char *cp;
size_t i;
- size_t line_len = 0;
int last_char_was_cr = 0;
for (i = 0, cp = buffer; i < inbytes; ++i, ++cp) {
static int
-strip_crs (CT ct) {
+strip_crs (CT ct, int *message_mods) {
/* norm_charmap() is case sensitive. */
char *codeset = upcase (content_codeset (ct));
int status = OK;
}
ct->c_cefile.ce_file = stripped_content_file;
ct->c_cefile.ce_unlink = 1;
+
+ ++*message_mods;
+ if (verbosw) {
+ report (NULL, *file, "stripped CRs");
+ }
}
}