X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=cbce757d8b9f03ce725a8499acefc0ba7c0c181e;hp=295c05c3faf3dfaf1c8c97d02c2e834b9a634cb8;hb=b70142c2915d0b7bcbba1fcb8d24d8d05c9c1fca;hpb=19806c1ee3019ddf9facf23eb19a13c128abfba9 diff --git a/init.c b/init.c index 295c05c..cbce757 100644 --- a/init.c +++ b/init.c @@ -319,28 +319,6 @@ static int rx_from_string (struct option_t* dst, const char* val, 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);