X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=061f35e55feac644e9c9520a1483b671911de3fa;hp=549ba2440e06e1ddc22b096749e08d760af8f6b6;hb=5f299ed8b67fa06f3c96777d437c0285ff71d9ac;hpb=923e295d2cd179be0ab05890c9788bb822b1b340 diff --git a/init.c b/init.c index 549ba24..061f35e 100644 --- a/init.c +++ b/init.c @@ -519,70 +519,6 @@ int query_quadoption (int opt, const char *prompt) /* not reached */ } -static int parse_unignore (BUFFER * buf, BUFFER * s, - unsigned long data __attribute__ ((unused)), - BUFFER * err __attribute__ ((unused))) -{ - do { - mutt_extract_token (buf, s, 0); - - /* don't add "*" to the unignore list */ - if (m_strcmp(buf->data, "*")) { - string_list_add(&UnIgnore, buf->data); - string_list_remove(&Ignore, buf->data); - } else { - string_list_wipe(&Ignore); - } - } while (MoreArgs (s)); - - return 0; -} - -static int parse_ignore (BUFFER * buf, BUFFER * s, - unsigned long data __attribute__ ((unused)), - BUFFER * err __attribute__ ((unused))) -{ - do { - mutt_extract_token (buf, s, 0); - if (m_strcmp(buf->data, "*")) { - string_list_remove(&UnIgnore, buf->data); - } else { - string_list_wipe(&UnIgnore); - } - string_list_add(&Ignore, buf->data); - } while (MoreArgs(s)); - return 0; -} - -static int parse_list(BUFFER * buf, BUFFER * s, unsigned long data, - BUFFER * err __attribute__ ((unused))) -{ - do { - mutt_extract_token (buf, s, 0); - string_list_add ((string_list_t **) data, buf->data); - } while (MoreArgs(s)); - return 0; -} - -static int parse_unlist (BUFFER * buf, BUFFER * s, unsigned long data, - BUFFER * err __attribute__ ((unused))) -{ - do { - mutt_extract_token (buf, s, 0); - /* - * Check for deletion of entire list - */ - if (!m_strcmp(buf->data, "*")) { - string_list_wipe((string_list_t **) data); - break; - } - string_list_remove((string_list_t **) data, buf->data); - } - while (MoreArgs (s)); - - return 0; -} - /* always wise to do what someone else did before */ static void _attachments_clean (void) { int i;