summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
103abac)
`mhfixmsg foo' where foo was sequence of more than one message would
sucessfully process the lowest numbered message of the sequence, but
fail to open(2) the second one as the folder was missing from the path.
For example, /home/ralph/mail/inbox/1 was used to open the first, but
/home/ralph/mail/2 was attempted for the second. I guess this was
because a static array was being trampled during the first's processing,
though didn't try too hard to find where. Making a copy of it fixed the
problem.
if (! folder) {
folder = getfolder (1);
}
if (! folder) {
folder = getfolder (1);
}
- maildir = m_maildir (folder);
+ maildir = mh_xstrdup(m_maildir (folder));
/* chdir so that error messages, esp. from MIME parser, just
refer to the message and not its path. */
/* chdir so that error messages, esp. from MIME parser, just
refer to the message and not its path. */
free (cts);
if (fx.fixtypes != NULL) { svector_free (fx.fixtypes); }
free (cts);
if (fx.fixtypes != NULL) { svector_free (fx.fixtypes); }