projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the new filter type in configuration example.
[apps/pfixtools.git]
/
postlicyd
/
filter_tokens.sh
diff --git
a/postlicyd/filter_tokens.sh
b/postlicyd/filter_tokens.sh
index
1cbb090
..
bc6119e
100755
(executable)
--- a/
postlicyd/filter_tokens.sh
+++ b/
postlicyd/filter_tokens.sh
@@
-59,7
+59,7
@@
extern const char *ftokens[FTK_count];
__attribute__((pure))
filter_token filter_tokenize(const char *s, ssize_t len);
__attribute__((pure))
filter_token filter_tokenize(const char *s, ssize_t len);
-#endif /*
MUTT_LIB_LUA_LUA_TOKEN
_H */
+#endif /*
PFIXTOOLS_FILTERS_TOKENS
_H */
EOF
}
EOF
}
@@
-108,7
+108,7
@@
EOF
}
grep_self() {
}
grep_self() {
- grep '
^## ' "$1" | cut -d' ' -f2
+ grep '
filter_register( *"' *.c | sed 's/.*filter_register( *"\(.*\)" *,.*/\1/'
}
trap "rm -f $1" 1 2 3 15
}
trap "rm -f $1" 1 2 3 15
@@
-121,8
+121,3
@@
esac
chmod -w $1
exit 0
chmod -w $1
exit 0
-
-############ Put tokens here ############
-## rbl
-## greylist
-## poisonous