{ NULL, 0 }
};
+char *version=VERSION;
/* mhparse.c */
extern char *tmp; /* directory to place temp files */
for (msgnum = 0; msgnum < msgs.size; msgnum++)
if (!m_convert(mp, msgs.msgs[msgnum]))
exit(EX_USAGE);
- seq_setprev(mp); /* set the previous-sequence */
cts = mh_xcalloc(mp->numsel + 1, sizeof(*cts));
ctp = cts;
if (autosw && ct->c_type != CT_MESSAGE) {
/* First check for "filename" in Content-Disposition header */
filename = extract_name_value("filename", ct->c_dispo);
- if (strcmp(filename, ct->c_dispo)!=0) {
+ if (filename && strcmp(filename, ct->c_dispo)!=0) {
/* We found "filename" */
cp = mhbasename(filename);
if (*cp && *cp!='.' && *cp!='|' && *cp!='!' &&