Mercurial > noffle
comparison src/configfile.c @ 194:a4e9a20e50e5 noffle
[svn] * docs/noffle.conf.5,src/configfile.c,src/filter.h,src/filter.c:
Contrary to the documentation, the action of a filter if not specified
was 'full'. Add a new 'default' action which makes the action that of the
group's subscription mode. Make this the default action, and allow
'default' to be specified explicitly as the action in the filter
definition. Adapted from patch submitted by Mirko Liss. Thanks, Mirko.
* docs/noffle.conf.5: Correct small typo.
author | bears |
---|---|
date | Tue, 30 Oct 2001 12:42:13 +0000 |
parents | 47569cf4ad4a |
children | 76460d98b2fb |
comparison
equal
deleted
inserted
replaced
193:021d145e34e9 | 194:a4e9a20e50e5 |
---|---|
4 The following macros must be set, when compiling this file: | 4 The following macros must be set, when compiling this file: |
5 CONFIGFILE | 5 CONFIGFILE |
6 SPOOLDIR | 6 SPOOLDIR |
7 VERSION | 7 VERSION |
8 | 8 |
9 $Id: configfile.c 309 2001-10-05 15:44:22Z enz $ | 9 $Id: configfile.c 313 2001-10-30 12:42:13Z bears $ |
10 */ | 10 */ |
11 | 11 |
12 #if HAVE_CONFIG_H | 12 #if HAVE_CONFIG_H |
13 #include <config.h> | 13 #include <config.h> |
14 #endif | 14 #endif |
778 f->action = FILTER_XOVER; | 778 f->action = FILTER_XOVER; |
779 else if ( strcmp( value, "thread" ) == 0 ) | 779 else if ( strcmp( value, "thread" ) == 0 ) |
780 f->action = FILTER_THREAD; | 780 f->action = FILTER_THREAD; |
781 else if ( strcmp( value, "discard" ) == 0 ) | 781 else if ( strcmp( value, "discard" ) == 0 ) |
782 f->action = FILTER_DISCARD; | 782 f->action = FILTER_DISCARD; |
783 else if ( strcmp( value, "default" ) == 0 ) | |
784 f->action = FILTER_DEFAULT; | |
783 seenAction = TRUE; | 785 seenAction = TRUE; |
784 } | 786 } |
785 else if ( rule.type == RULE_NEWSGROUP ) | 787 else if ( rule.type == RULE_NEWSGROUP ) |
786 Utl_allocAndCpy( &rule.data.grp, value ); | 788 Utl_allocAndCpy( &rule.data.grp, value ); |
787 else if ( rule.type >= RULE_SUBJECT && rule.type <= RULE_MSGID ) | 789 else if ( rule.type >= RULE_SUBJECT && rule.type <= RULE_MSGID ) |