X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pattern.c;h=cd3ba3b680c570f05c4501f78ed6210f65320a47;hp=6e213a26a2ce404994f1977242999b14377dc8f4;hb=00f34116b32751764d42f81159c292d850c74bac;hpb=f435868132e200bfa71ac155f037cf64bf5414ba diff --git a/pattern.c b/pattern.c index 6e213a2..cd3ba3b 100644 --- a/pattern.c +++ b/pattern.c @@ -70,9 +70,6 @@ static struct pattern_flags { {'u', M_SUBSCRIBED_LIST, 0, NULL}, {'v', M_COLLAPSED, 0, NULL}, {'V', M_CRYPT_VERIFIED, 0, NULL}, -#ifdef USE_NNTP - {'w', M_NEWSGROUPS, 0, eat_regexp}, -#endif {'x', M_REFERENCE, 0, eat_regexp}, {'X', M_MIMEATTACH, 0, eat_range}, {'y', M_XLABEL, 0, eat_regexp}, @@ -384,8 +381,8 @@ static const char *get_offset (struct tm *tm, const char *s, int sign) default: return s; } - mutt_normalize_time (tm); - return (ps + 1); + mktime(tm); + return ps + 1; } static void adjust_date_range (struct tm *min, struct tm *max) @@ -602,8 +599,8 @@ static int eat_date (pattern_t * pat, BUFFER * s, BUFFER * err) /* Since we allow two dates to be specified we'll have to adjust that. */ adjust_date_range (&min, &max); - pat->min = mutt_mktime (&min, 1); - pat->max = mutt_mktime (&max, 1); + pat->min = mktime(&min); + pat->max = mktime(&max); p_delete(&buffer.data); @@ -1053,12 +1050,6 @@ mutt_pattern_exec (struct pattern_t *pat, pattern_exec_flag flags, && valid_realname(h->env-> from->personal) && h->env->from->mailbox) )) ^ pat->not; -#ifdef USE_NNTP - case M_NEWSGROUPS: - return (pat-> - not ^ (h->env->newsgroups - && patmatch (pat, h->env->newsgroups) == 0)); -#endif } mutt_error (_("error: unknown op %d (report this error)."), pat->op); return (-1);