NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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.
 

Data Fields

short op
 Operation, e.g. MUTT_PAT_SCORE.
 
bool pat_not: 1
 Pattern should be inverted (not)
 
bool all_addr: 1
 All Addresses in the list must match.
 
bool string_match: 1
 Check a string for a match.
 
bool group_match: 1
 Check a group of Addresses.
 
bool ign_case: 1
 Ignore case for local string_match searches.
 
bool is_alias: 1
 Is there an alias for this Address?
 
bool dynamic: 1
 Evaluate date ranges at run time.
 
bool sendmode: 1
 Evaluate searches in send-mode.
 
bool is_multi: 1
 Multiple case (only for ~I pattern now)
 
long min
 Minimum for range checks.
 
long max
 Maximum for range checks.
 
struct PatternList * child
 Arguments to logical operation.
 
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 75 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 77 of file lib.h.

◆ pat_not

bool Pattern::pat_not

Pattern should be inverted (not)

Definition at line 78 of file lib.h.

◆ all_addr

bool Pattern::all_addr

All Addresses in the list must match.

Definition at line 79 of file lib.h.

◆ string_match

bool Pattern::string_match

Check a string for a match.

Definition at line 80 of file lib.h.

◆ group_match

bool Pattern::group_match

Check a group of Addresses.

Definition at line 81 of file lib.h.

◆ ign_case

bool Pattern::ign_case

Ignore case for local string_match searches.

Definition at line 82 of file lib.h.

◆ is_alias

bool Pattern::is_alias

Is there an alias for this Address?

Definition at line 83 of file lib.h.

◆ dynamic

bool Pattern::dynamic

Evaluate date ranges at run time.

Definition at line 84 of file lib.h.

◆ sendmode

bool Pattern::sendmode

Evaluate searches in send-mode.

Definition at line 85 of file lib.h.

◆ is_multi

bool Pattern::is_multi

Multiple case (only for ~I pattern now)

Definition at line 86 of file lib.h.

◆ min

long Pattern::min

Minimum for range checks.

Definition at line 87 of file lib.h.

◆ max

long Pattern::max

Maximum for range checks.

Definition at line 88 of file lib.h.

◆ child

struct PatternList* Pattern::child

Arguments to logical operation.

Definition at line 89 of file lib.h.

◆ regex

regex_t* Pattern::regex

Compiled regex, for non-pattern matching.

Definition at line 91 of file lib.h.

◆ group

struct Group* Pattern::group

Address group if group_match is set.

Definition at line 92 of file lib.h.

◆ str

char* Pattern::str

String, if string_match is set.

Definition at line 93 of file lib.h.

◆ multi_cases

struct ListHead Pattern::multi_cases

Multiple strings for ~I pattern.

Definition at line 94 of file lib.h.

◆ 

union { ... } Pattern::p

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