*/
(void)strncpy(body_file_name,
- m_mktemp(m_maildir(invo_name), NULL, NULL),
+ m_mktemp(toabsdir(invo_name), NULL, NULL),
sizeof (body_file_name));
(void)strncpy(composition_file_name,
- m_mktemp(m_maildir(invo_name), NULL, NULL),
+ m_mktemp(toabsdir(invo_name), NULL, NULL),
sizeof (composition_file_name));
if (has_body)
break;
case 1:
- if (stringdex(m_maildir(invo_name), file_name) == 0) {
+ if (stringdex(toabsdir(invo_name), file_name) == 0) {
/*
** Content had been placed by send into a temp file.
** Don't generate Content-Disposition header, because
break;
case 2:
- if (stringdex(m_maildir(invo_name), file_name) == 0) {
+ if (stringdex(toabsdir(invo_name), file_name) == 0) {
/*
** Content had been placed by send into a temp file.
** Don't generate Content-Disposition header, because
snprintf(buf, sizeof(buf), "send failed on %s",
forwsw ? "enclosed draft" : file);
- execlp(mailproc, r1bindex(mailproc, '/'),
+ execlp(mailproc, mhbasename(mailproc),
getusername(), "-subject", buf, NULL);
fprintf(stderr, "unable to exec ");
perror(mailproc);
admonish(NULL, "$mhfolder not set");
return;
}
- maildir = m_maildir(folder);
+ maildir = toabsdir(folder);
if (chdir(maildir) == NOTOK) {
if (debugsw)
admonish(maildir, "unable to change directory to");