NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
Pattern Struct Reference

A simple (non-regex) pattern. More...

#include "lib.h"

+ Collaboration diagram for Pattern:

Public Member Functions

 SLIST_ENTRY (Pattern) entries
 Linked list. More...
 

Data Fields

short op
 Operation, e.g. MUTT_PAT_SCORE. More...
 
bool pat_not: 1
 Pattern should be inverted (not) More...
 
bool all_addr: 1
 All Addresses in the list must match. More...
 
bool string_match: 1
 Check a string for a match. More...
 
bool group_match: 1
 Check a group of Addresses. More...
 
bool ign_case: 1
 Ignore case for local string_match searches. More...
 
bool is_alias: 1
 Is there an alias for this Address? More...
 
bool dynamic: 1
 Evaluate date ranges at run time. More...
 
bool sendmode: 1
 Evaluate searches in send-mode. More...
 
bool is_multi: 1
 Multiple case (only for ~I pattern now) More...
 
int min
 Minimum for range checks. More...
 
int max
 Maximum for range checks. More...
 
struct PatternList * child
 Arguments to logical operation. More...
 
union {
   regex_t *   regex
 Compiled regex, for non-pattern matching. More...
 
   struct Group *   group
 Address group if group_match is set. More...
 
   char *   str
 String, if string_match is set. More...
 
   struct ListHead   multi_cases
 Multiple strings for ~I pattern. More...
 
p
 

Detailed Description

A simple (non-regex) pattern.

Definition at line 71 of file lib.h.

Member Function Documentation

◆ SLIST_ENTRY()

Pattern::SLIST_ENTRY ( Pattern  )

Linked list.

Field Documentation

◆ op

short Pattern::op

Operation, e.g. MUTT_PAT_SCORE.

Definition at line 73 of file lib.h.

◆ pat_not

bool Pattern::pat_not

Pattern should be inverted (not)

Definition at line 74 of file lib.h.

◆ all_addr

bool Pattern::all_addr

All Addresses in the list must match.

Definition at line 75 of file lib.h.

◆ string_match

bool Pattern::string_match

Check a string for a match.

Definition at line 76 of file lib.h.

◆ group_match

bool Pattern::group_match

Check a group of Addresses.

Definition at line 77 of file lib.h.

◆ ign_case

bool Pattern::ign_case

Ignore case for local string_match searches.

Definition at line 78 of file lib.h.

◆ is_alias

bool Pattern::is_alias

Is there an alias for this Address?

Definition at line 79 of file lib.h.

◆ dynamic

bool Pattern::dynamic

Evaluate date ranges at run time.

Definition at line 80 of file lib.h.

◆ sendmode

bool Pattern::sendmode

Evaluate searches in send-mode.

Definition at line 81 of file lib.h.

◆ is_multi

bool Pattern::is_multi

Multiple case (only for ~I pattern now)

Definition at line 82 of file lib.h.

◆ min

int Pattern::min

Minimum for range checks.

Definition at line 83 of file lib.h.

◆ max

int Pattern::max

Maximum for range checks.

Definition at line 84 of file lib.h.

◆ child

struct PatternList* Pattern::child

Arguments to logical operation.

Definition at line 85 of file lib.h.

◆ regex

regex_t* Pattern::regex

Compiled regex, for non-pattern matching.

Definition at line 87 of file lib.h.

◆ group

struct Group* Pattern::group

Address group if group_match is set.

Definition at line 88 of file lib.h.

◆ str

char* Pattern::str

String, if string_match is set.

Definition at line 89 of file lib.h.

◆ multi_cases

struct ListHead Pattern::multi_cases

Multiple strings for ~I pattern.

Definition at line 90 of file lib.h.

◆ p

union { ... } Pattern::p

The documentation for this struct was generated from the following file: