Commit 87946819 8794681987c10004c28c5b005869238c2ef1bcb8 by Sergey Poznyakoff

(mh_real_install): Create inbox

1 parent 8fc4da4e
......@@ -662,7 +662,7 @@ _env_msg_date (envelope_t envelope, char *buf, size_t len, size_t *pnwrite)
static int
_env_msg_sender (envelope_t envelope, char *buf, size_t len, size_t *pnwrite)
{
{
message_t msg = envelope_get_owner (envelope);
struct msg_envelope *env = message_get_owner (msg);
......@@ -671,7 +671,7 @@ _env_msg_sender (envelope_t envelope, char *buf, size_t len, size_t *pnwrite)
strncpy (buf, env->from, len);
buf[len-1] = 0;
return 0;
}
}
message_t
mh_stream_to_message (stream_t instream)
......@@ -811,8 +811,11 @@ mh_real_install (char *name, int automode)
fclose (fp);
}
free (ctx);
asprintf (&ctx, "%s/inbox", mhdir);
if (mh_check_folder (ctx, !automode))
exit (1);
free (ctx);
free (mhdir);
/* FIXME: create inbox? */
}
void
......