return 1;
}
-static int magic_from_string (struct option_t* dst, const char* val,
- char *errbuf, ssize_t errlen)
-{
- int flag = -1;
-
- if (!dst || m_strisempty(val))
- return 0;
- if (ascii_strncasecmp (val, "mbox", 4) == 0)
- flag = M_MBOX;
- else if (ascii_strncasecmp (val, "mh", 2) == 0)
- flag = M_MH;
- else if (ascii_strncasecmp (val, "maildir", 7) == 0)
- flag = M_MAILDIR;
-
- if (flag < 0)
- return 0;
-
- *((short*) dst->data) = flag;
- return 1;
-
-}
-
static struct {
unsigned short type;
void (*opt_tostr) (char* dst, ssize_t dstlen, struct option_t* option);