X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsendsbr.c;h=a8e09641ca9170b5e60aa0133bf4e5c23ea20734;hp=4670345c7bb95d28bb7e283350032afa356fc49f;hb=d39e2c447b0d163a5a63f480b23d06edb7a73aa0;hpb=6e8aba3714fe8ffc21dbb75ea9efdc41ab87b07f diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 4670345..a8e0964 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -258,10 +258,10 @@ attach(char *attachment_header_field_name, char *draft_file_name, */ (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) @@ -512,7 +512,7 @@ make_mime_composition_file_entry(char *file_name, int attachformat) 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 @@ -534,7 +534,7 @@ make_mime_composition_file_entry(char *file_name, int attachformat) 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 @@ -806,7 +806,7 @@ annoaux(int fd) 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");