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) ...@@ -662,7 +662,7 @@ _env_msg_date (envelope_t envelope, char *buf, size_t len, size_t *pnwrite)
662 662
663 static int 663 static int
664 _env_msg_sender (envelope_t envelope, char *buf, size_t len, size_t *pnwrite) 664 _env_msg_sender (envelope_t envelope, char *buf, size_t len, size_t *pnwrite)
665 { 665 {
666 message_t msg = envelope_get_owner (envelope); 666 message_t msg = envelope_get_owner (envelope);
667 struct msg_envelope *env = message_get_owner (msg); 667 struct msg_envelope *env = message_get_owner (msg);
668 668
...@@ -671,7 +671,7 @@ _env_msg_sender (envelope_t envelope, char *buf, size_t len, size_t *pnwrite) ...@@ -671,7 +671,7 @@ _env_msg_sender (envelope_t envelope, char *buf, size_t len, size_t *pnwrite)
671 strncpy (buf, env->from, len); 671 strncpy (buf, env->from, len);
672 buf[len-1] = 0; 672 buf[len-1] = 0;
673 return 0; 673 return 0;
674 } 674 }
675 675
676 message_t 676 message_t
677 mh_stream_to_message (stream_t instream) 677 mh_stream_to_message (stream_t instream)
...@@ -811,8 +811,11 @@ mh_real_install (char *name, int automode) ...@@ -811,8 +811,11 @@ mh_real_install (char *name, int automode)
811 fclose (fp); 811 fclose (fp);
812 } 812 }
813 free (ctx); 813 free (ctx);
814 asprintf (&ctx, "%s/inbox", mhdir);
815 if (mh_check_folder (ctx, !automode))
816 exit (1);
817 free (ctx);
814 free (mhdir); 818 free (mhdir);
815 /* FIXME: create inbox? */
816 } 819 }
817 820
818 void 821 void
......