#define LEADING_FROM_LINE_REGEXP_STRING "^From .*\\(Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\|Sun\\) \\(Jan\\|Feb\\|Mar\\|Apr\\|May\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\) [ 0123][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]\n$"
+/********************************************************************/
+
+struct alias_node {
+ char *alias, *value;
+ struct alias_node *next;
+};
+
/* Global variables! */
int global_quiet;
int global_use_leading_time;
-
regex_t global_leading_from_line_regexp;
+struct alias_node *global_alias_list;
/********************************************************************/
/********************************************************************/
-struct alias_node {
- char *alias, *value;
- struct alias_node *next;
-};
-
-struct alias_node *global_alias_list;
-
-/********************************************************************/
-
struct parsable_field {
int id;
int cflags;
const char *string;
struct alias_node *a;
+ for(a = global_alias_list; a; a = a->next) {
+ if(strcmp(full_string, a->alias) == 0) {
+ full_string = a->value;
+ break;
+ }
+ }
+
string = parse_token(full_search_field, TOKEN_BUFFER_SIZE, ' ', full_string);
search_field = full_search_field;
condition->negation = 0;
}
- for(a = global_alias_list; a; a = a->next) {
- if(strcmp(search_field, a->alias) == 0) {
- search_field = a->value;
- break;
- }
- }
-
condition->db_key = -1;
/* Time condition */
if(*s && *s != '#') {
s = parse_token(command, TOKEN_BUFFER_SIZE, ' ', s);
+
if(strcmp(command, "alias") == 0) {
struct alias_node *a = safe_malloc(sizeof(struct alias_node));
a->next = global_alias_list;