save_readwrite(int fdin, int fdout)
{
int ret, written;
- char buf[4096], p;
+ char buf[4096], *p;
for (;;) {
ret = read(fdin, buf, 4096);
}
g_free(conf_path);
+ if ((argc - 1) > 1) {
+ g_critical("Won't deliver to %d folders", argc - 1);
+ return EX_USAGE;
+ }
+
if (argc > 1) {
folder = g_strdup_printf("%s%s", opt_folder ? "." : "", argv[1]);
maildir = g_build_filename(db_path, folder, NULL);