summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
91baa2e)
only modification to the message. Also, fixed the test
so that it succeeds even if there is no lynx, w3m, etc.
-#### lynx inserts multiple blank lines, so use uniq to squeeze them.
-mhfixmsg last -outfile - | uniq >"$actual"
-check "$expected" "$actual" 'ignore space'
+if [ $can_reformat_texthtml -eq 1 ]; then
+ #### lynx inserts multiple blank lines, so use uniq to squeeze them.
+ mhfixmsg last -outfile - | uniq >"$actual"
+ check "$expected" "$actual" 'ignore space'
+else
+ cp -p "$MH_TEST_DIR/Mail/inbox/15" "$MH_TEST_DIR/Mail/inbox/15.backup"
+ rm -f "$expected"
+fi
# check handling of rfc822 message type
cat >"$expected" <<EOF
From: Test <test@example.com>
# check handling of rfc822 message type
cat >"$expected" <<EOF
From: Test <test@example.com>
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 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);
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 : "");
}
report (ct->c_partno, ct->c_file, "decode%s",
ct->c_ctline ? ct->c_ctline : "");
}
+ strip_crs (ct, message_mods);
} else {
status = NOTOK;
}
} else {
status = NOTOK;
}
}
case CE_8BIT:
case CE_7BIT:
}
case CE_8BIT:
case CE_7BIT:
+ strip_crs (ct, message_mods);
+strip_crs (CT ct, int *message_mods) {
/* norm_charmap() is case sensitive. */
char *codeset = upcase (content_codeset (ct));
int status = OK;
/* 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;
}
ct->c_cefile.ce_file = stripped_content_file;
ct->c_cefile.ce_unlink = 1;
+
+ ++*message_mods;
+ if (verbosw) {
+ report (NULL, *file, "stripped CRs");
+ }