You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
386 B
29 lines
386 B
#include <stdio.h> |
|
#include <sys/stat.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include "parse.h" |
|
|
|
int main(int argc, char *argv[]) |
|
{ |
|
char *maildir; |
|
|
|
if (argc != 2) { |
|
printf("Usage: %s maildir\n", argv[0]); |
|
return 1; |
|
} |
|
|
|
maildir = argv[1]; |
|
|
|
mkdir(maildir, 0755); |
|
chdir(maildir); |
|
mkdir("tmp", 0755); |
|
mkdir("cur", 0755); |
|
mkdir("new", 0755); |
|
|
|
if (parse_item() != 0) |
|
return 1; |
|
|
|
return 0; |
|
}
|
|
|