NeoMutt  2025-12-11-177-g48e272
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
private.h File Reference

Shared constants/structs that are private to libpattern. More...

#include <stdbool.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "lib.h"
+ Include dependency graph for private.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PatternFlags
 Mapping between user character and internal constant. More...
 
struct  RangeRegex
 Regular expression representing a range. More...
 

Macros

#define RANGE_NUM_RX   "([[:digit:]]+|0x[[:xdigit:]]+)[MmKk]?"
 
#define RANGE_REL_SLOT_RX   "[[:blank:]]*([.^$]|-?" RANGE_NUM_RX ")?[[:blank:]]*"
 
#define RANGE_REL_RX   "^" RANGE_REL_SLOT_RX "," RANGE_REL_SLOT_RX
 
#define RANGE_ABS_SLOT_RX   "[[:blank:]]*([.^$]|" RANGE_NUM_RX ")?[[:blank:]]*"
 
#define RANGE_ABS_RX   "^" RANGE_ABS_SLOT_RX "-" RANGE_ABS_SLOT_RX
 
#define RANGE_LT_RX   "^()[[:blank:]]*(<[[:blank:]]*" RANGE_NUM_RX ")[[:blank:]]*"
 
#define RANGE_GT_RX   "^()[[:blank:]]*(>[[:blank:]]*" RANGE_NUM_RX ")[[:blank:]]*"
 
#define RANGE_BARE_RX   "^[[:blank:]]*([.^$]|" RANGE_NUM_RX ")[[:blank:]]*"
 
#define RANGE_RX_GROUPS   5
 
#define RANGE_DOT   '.'
 
#define RANGE_CIRCUM   '^'
 
#define RANGE_DOLLAR   '$'
 
#define RANGE_LT   '<'
 
#define RANGE_GT   '>'
 
#define MUTT_MAXRANGE   -1
 

Enumerations

enum  ExpandoDataPattern { ED_PAT_DESCRIPTION = 1 , ED_PAT_EXPRESSION , ED_PAT_NUMBER }
 Expando UIDs for Patterns. More...
 
enum  PatternEat {
  EAT_NONE , EAT_REGEX , EAT_DATE , EAT_RANGE ,
  EAT_MESSAGE_RANGE , EAT_QUERY
}
 Function to process pattern arguments. More...
 
enum  RangeType {
  RANGE_K_REL , RANGE_K_ABS , RANGE_K_LT , RANGE_K_GT ,
  RANGE_K_BARE , RANGE_K_INVALID
}
 Type of range. More...
 
enum  RangeSide { RANGE_S_LEFT , RANGE_S_RIGHT }
 Which side of the range. More...
 

Functions

static int email_msgno (struct Email *e)
 Helper to get the Email's message number.
 
const struct PatternFlagslookup_op (int op)
 Lookup the Pattern Flags for an op.
 
const struct PatternFlagslookup_tag (char tag)
 Lookup a pattern modifier.
 
bool eval_date_minmax (struct Pattern *pat, const char *s, struct Buffer *err)
 Evaluate a date-range pattern against 'now'.
 
bool eat_message_range (struct Pattern *pat, PatternCompFlags flags, struct Buffer *s, struct Buffer *err, struct MailboxView *mv)
 Parse a range of message numbers - Implements eat_arg_t -.
 

Variables

struct RangeRegex RangeRegexes []
 Set of Regexes for various range types.
 
const struct PatternFlags Flags []
 Lookup table for all patterns.
 

Detailed Description

Shared constants/structs that are private to libpattern.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file private.h.

Macro Definition Documentation

◆ RANGE_NUM_RX

#define RANGE_NUM_RX   "([[:digit:]]+|0x[[:xdigit:]]+)[MmKk]?"

Definition at line 100 of file private.h.

◆ RANGE_REL_SLOT_RX

#define RANGE_REL_SLOT_RX   "[[:blank:]]*([.^$]|-?" RANGE_NUM_RX ")?[[:blank:]]*"

Definition at line 101 of file private.h.

◆ RANGE_REL_RX

#define RANGE_REL_RX   "^" RANGE_REL_SLOT_RX "," RANGE_REL_SLOT_RX

Definition at line 102 of file private.h.

◆ RANGE_ABS_SLOT_RX

#define RANGE_ABS_SLOT_RX   "[[:blank:]]*([.^$]|" RANGE_NUM_RX ")?[[:blank:]]*"

Definition at line 105 of file private.h.

◆ RANGE_ABS_RX

#define RANGE_ABS_RX   "^" RANGE_ABS_SLOT_RX "-" RANGE_ABS_SLOT_RX

Definition at line 106 of file private.h.

◆ RANGE_LT_RX

#define RANGE_LT_RX   "^()[[:blank:]]*(<[[:blank:]]*" RANGE_NUM_RX ")[[:blank:]]*"

Definition at line 109 of file private.h.

◆ RANGE_GT_RX

#define RANGE_GT_RX   "^()[[:blank:]]*(>[[:blank:]]*" RANGE_NUM_RX ")[[:blank:]]*"

Definition at line 110 of file private.h.

◆ RANGE_BARE_RX

#define RANGE_BARE_RX   "^[[:blank:]]*([.^$]|" RANGE_NUM_RX ")[[:blank:]]*"

Definition at line 113 of file private.h.

◆ RANGE_RX_GROUPS

#define RANGE_RX_GROUPS   5

Definition at line 114 of file private.h.

◆ RANGE_DOT

#define RANGE_DOT   '.'

Definition at line 116 of file private.h.

◆ RANGE_CIRCUM

#define RANGE_CIRCUM   '^'

Definition at line 117 of file private.h.

◆ RANGE_DOLLAR

#define RANGE_DOLLAR   '$'

Definition at line 118 of file private.h.

◆ RANGE_LT

#define RANGE_LT   '<'

Definition at line 119 of file private.h.

◆ RANGE_GT

#define RANGE_GT   '>'

Definition at line 120 of file private.h.

◆ MUTT_MAXRANGE

#define MUTT_MAXRANGE   -1

Definition at line 141 of file private.h.

Enumeration Type Documentation

◆ ExpandoDataPattern

Expando UIDs for Patterns.

See also
ED_PATTERN, ExpandoDomain
Enumerator
ED_PAT_DESCRIPTION 

PatternEntry.desc.

ED_PAT_EXPRESSION 

PatternEntry.expr.

ED_PAT_NUMBER 

PatternEntry.num.

Definition at line 38 of file private.h.

39{
43};
@ ED_PAT_DESCRIPTION
PatternEntry.desc.
Definition private.h:40
@ ED_PAT_EXPRESSION
PatternEntry.expr.
Definition private.h:41
@ ED_PAT_NUMBER
PatternEntry.num.
Definition private.h:42

◆ PatternEat

enum PatternEat

Function to process pattern arguments.

Values for PatternFlags.eat_arg

Enumerator
EAT_NONE 

No arguments required.

EAT_REGEX 

Process a regex.

EAT_DATE 

Process a date (range)

EAT_RANGE 

Process a number (range)

EAT_MESSAGE_RANGE 

Process a message number (range)

EAT_QUERY 

Process a query string.

Definition at line 50 of file private.h.

51{
52 EAT_NONE,
53 EAT_REGEX,
54 EAT_DATE,
55 EAT_RANGE,
57 EAT_QUERY,
58};
@ EAT_NONE
No arguments required.
Definition private.h:52
@ EAT_RANGE
Process a number (range)
Definition private.h:55
@ EAT_MESSAGE_RANGE
Process a message number (range)
Definition private.h:56
@ EAT_DATE
Process a date (range)
Definition private.h:54
@ EAT_QUERY
Process a query string.
Definition private.h:57
@ EAT_REGEX
Process a regex.
Definition private.h:53

◆ RangeType

enum RangeType

Type of range.

Enumerator
RANGE_K_REL 

Relative range.

RANGE_K_ABS 

Absolute range.

RANGE_K_LT 

Less-than range.

RANGE_K_GT 

Greater-than range.

RANGE_K_BARE 

Single symbol.

RANGE_K_INVALID 

Range is invalid.

Definition at line 88 of file private.h.

89{
95 /* add new ones HERE */
97};
@ RANGE_K_REL
Relative range.
Definition private.h:90
@ RANGE_K_ABS
Absolute range.
Definition private.h:91
@ RANGE_K_LT
Less-than range.
Definition private.h:92
@ RANGE_K_INVALID
Range is invalid.
Definition private.h:96
@ RANGE_K_BARE
Single symbol.
Definition private.h:94
@ RANGE_K_GT
Greater-than range.
Definition private.h:93

◆ RangeSide

enum RangeSide

Which side of the range.

Enumerator
RANGE_S_LEFT 

Left side of range.

RANGE_S_RIGHT 

Right side of range.

Definition at line 125 of file private.h.

126{
129};
@ RANGE_S_LEFT
Left side of range.
Definition private.h:127
@ RANGE_S_RIGHT
Right side of range.
Definition private.h:128

Function Documentation

◆ email_msgno()

static int email_msgno ( struct Email * e)
inlinestatic

Helper to get the Email's message number.

Parameters
eEmail
Return values
numMessage number

Definition at line 136 of file private.h.

137{
138 return e->msgno + 1;
139}
int msgno
Number displayed to the user.
Definition email.h:111
+ Here is the caller graph for this function:

◆ lookup_op()

const struct PatternFlags * lookup_op ( int op)

Lookup the Pattern Flags for an op.

Parameters
opOperation, e.g. MUTT_PAT_SENDER
Return values
ptrPatternFlags

Definition at line 220 of file flags.c.

221{
222 for (int i = 0; Flags[i].tag; i++)
223 if (Flags[i].op == op)
224 return (&Flags[i]);
225 return NULL;
226}
const struct PatternFlags Flags[]
Lookup table for all patterns.
Definition flags.c:49
+ Here is the caller graph for this function:

◆ lookup_tag()

const struct PatternFlags * lookup_tag ( char tag)

Lookup a pattern modifier.

Parameters
tagLetter, e.g. 'b' for pattern '~b'
Return values
ptrPattern data

Definition at line 207 of file flags.c.

208{
209 for (int i = 0; Flags[i].tag; i++)
210 if (Flags[i].tag == tag)
211 return &Flags[i];
212 return NULL;
213}
+ Here is the caller graph for this function:

◆ eval_date_minmax()

bool eval_date_minmax ( struct Pattern * pat,
const char * s,
struct Buffer * err )

Evaluate a date-range pattern against 'now'.

Parameters
patPattern to modify
sPattern string to use
errBuffer for error messages
Return values
truePattern valid and updated
falsePattern invalid

Definition at line 493 of file compile.c.

494{
495 /* the '0' time is Jan 1, 1970 UTC, so in order to prevent a negative time
496 * when doing timezone conversion, we use Jan 2, 1970 UTC as the base here */
497 struct tm min = { 0 };
498 min.tm_mday = 2;
499 min.tm_year = 70;
500
501 /* Arbitrary year in the future. Don't set this too high or
502 * mutt_date_make_time() returns something larger than will fit in a time_t
503 * on some systems */
504 struct tm max = { 0 };
505 max.tm_year = 130;
506 max.tm_mon = 11;
507 max.tm_mday = 31;
508 max.tm_hour = 23;
509 max.tm_min = 59;
510 max.tm_sec = 59;
511
512 if (strchr("<>=", s[0]))
513 {
514 /* offset from current time
515 * <3d less than three days ago
516 * >3d more than three days ago
517 * =3d exactly three days ago */
518 struct tm *tm = NULL;
519 bool exact = false;
520
521 if (s[0] == '<')
522 {
524 tm = &min;
525 }
526 else
527 {
529 tm = &max;
530
531 if (s[0] == '=')
532 exact = true;
533 }
534
535 /* Reset the HMS unless we are relative matching using one of those
536 * offsets. */
537 char *offset_type = NULL;
538 strtol(s + 1, &offset_type, 0);
539 if (!(*offset_type && strchr("HMS", *offset_type)))
540 {
541 tm->tm_hour = 23;
542 tm->tm_min = 59;
543 tm->tm_sec = 59;
544 }
545
546 /* force negative offset */
547 get_offset(tm, s + 1, -1);
548
549 if (exact)
550 {
551 /* start at the beginning of the day in question */
552 memcpy(&min, &max, sizeof(max));
553 min.tm_hour = 0;
554 min.tm_sec = 0;
555 min.tm_min = 0;
556 }
557 }
558 else
559 {
560 const char *pc = s;
561
562 bool have_min = false;
563 bool until_now = false;
564 if (mutt_isdigit(*pc))
565 {
566 /* minimum date specified */
567 pc = get_date(pc, &min, err);
568 if (!pc)
569 {
570 return false;
571 }
572 have_min = true;
573 SKIPWS(pc);
574 if (*pc == '-')
575 {
576 const char *pt = pc + 1;
577 SKIPWS(pt);
578 until_now = (*pt == '\0');
579 }
580 }
581
582 if (!until_now)
583 { /* max date or relative range/window */
584
585 struct tm base_min = { 0 };
586
587 if (!have_min)
588 { /* save base minimum and set current date, e.g. for "-3d+1d" */
589 memcpy(&base_min, &min, sizeof(base_min));
591 min.tm_hour = 0;
592 min.tm_sec = 0;
593 min.tm_min = 0;
594 }
595
596 /* preset max date for relative offsets,
597 * if nothing follows we search for messages on a specific day */
598 max.tm_year = min.tm_year;
599 max.tm_mon = min.tm_mon;
600 max.tm_mday = min.tm_mday;
601
602 if (!parse_date_range(pc, &min, &max, have_min, &base_min, err))
603 { /* bail out on any parsing error */
604 return false;
605 }
606 }
607 }
608
609 /* Since we allow two dates to be specified we'll have to adjust that. */
610 adjust_date_range(&min, &max);
611
612 pat->min = mutt_date_make_time(&min, true);
613 pat->max = mutt_date_make_time(&max, true);
614
615 return true;
616}
static const char * parse_date_range(const char *pc, struct tm *min, struct tm *max, bool have_min, struct tm *base_min, struct Buffer *err)
Parse a date range.
Definition compile.c:361
static void adjust_date_range(struct tm *min, struct tm *max)
Put a date range in the correct order.
Definition compile.c:455
static const char * get_offset(struct tm *tm, const char *s, int sign)
Calculate a symbolic offset.
Definition compile.c:221
static const char * get_date(const char *s, struct tm *t, struct Buffer *err)
Parse a (partial) date in dd/mm/yyyy format.
Definition compile.c:275
bool mutt_isdigit(int arg)
Wrapper for isdigit(3)
Definition ctype.c:66
struct tm mutt_date_localtime(time_t t)
Converts calendar time to a broken-down time structure expressed in user timezone.
Definition date.c:907
time_t mutt_date_make_time(struct tm *t, bool local)
Convert struct tm to time_t
Definition date.c:243
time_t mutt_date_now(void)
Return the number of seconds since the Unix epoch.
Definition date.c:457
#define SKIPWS(ch)
Definition string2.h:52
long min
Minimum for range checks.
Definition lib.h:89
long max
Maximum for range checks.
Definition lib.h:90
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ RangeRegexes

struct RangeRegex RangeRegexes[]
extern

Set of Regexes for various range types.

This array, will also contain the compiled regexes.

Definition at line 60 of file pattern.c.

60 {
61 // clang-format off
62 [RANGE_K_REL] = { RANGE_REL_RX, 1, 3, 0, { 0 } },
63 [RANGE_K_ABS] = { RANGE_ABS_RX, 1, 3, 0, { 0 } },
64 [RANGE_K_LT] = { RANGE_LT_RX, 1, 2, 0, { 0 } },
65 [RANGE_K_GT] = { RANGE_GT_RX, 2, 1, 0, { 0 } },
66 [RANGE_K_BARE] = { RANGE_BARE_RX, 1, 1, 0, { 0 } },
67 // clang-format on
68};
#define RANGE_GT_RX
Definition private.h:110
#define RANGE_ABS_RX
Definition private.h:106
#define RANGE_LT_RX
Definition private.h:109
#define RANGE_BARE_RX
Definition private.h:113
#define RANGE_REL_RX
Definition private.h:102

◆ Flags

const struct PatternFlags Flags[]
extern

Lookup table for all patterns.

Patterns in use:

  • ~ .bcdefghi.klmn.p.rstuvwxyz
  • ~ ABCDEFGHI..LMNOPQRSTUV.XY.
  • ~# ~$ ~() ~<() ~= ~>()

Misc in use:

  • Group matches - C L c e f
  • IMAP matches - =/ =B =b =h

Definition at line 49 of file flags.c.

49 {
50 // clang-format off
51 { 'A', MUTT_ALL, 0, EAT_NONE,
52 // L10N: Pattern Completion Menu description for ~A
53 N_("all messages") },
55 // L10N: Pattern Completion Menu description for ~b
56 N_("messages whose body matches EXPR") },
58 // L10N: Pattern Completion Menu description for ~B
59 N_("messages whose body or headers match EXPR") },
60 { 'c', MUTT_PAT_CC, 0, EAT_REGEX,
61 // L10N: Pattern Completion Menu description for ~c
62 N_("messages whose CC header matches EXPR") },
64 // L10N: Pattern Completion Menu description for ~C
65 N_("messages whose recipient matches EXPR") },
66 { 'd', MUTT_PAT_DATE, 0, EAT_DATE,
67 // L10N: Pattern Completion Menu description for ~d
68 N_("messages sent in DATERANGE") },
69 { 'D', MUTT_DELETED, 0, EAT_NONE,
70 // L10N: Pattern Completion Menu description for ~D
71 N_("deleted messages") },
72 { 'e', MUTT_PAT_SENDER, 0, EAT_REGEX,
73 // L10N: Pattern Completion Menu description for ~e
74 N_("messages whose Sender header matches EXPR") },
75 { 'E', MUTT_EXPIRED, 0, EAT_NONE,
76 // L10N: Pattern Completion Menu description for ~E
77 N_("expired messages") },
78 { 'f', MUTT_PAT_FROM, 0, EAT_REGEX,
79 // L10N: Pattern Completion Menu description for ~f
80 N_("messages whose From header matches EXPR") },
81 { 'F', MUTT_FLAG, 0, EAT_NONE,
82 // L10N: Pattern Completion Menu description for ~F
83 N_("flagged messages") },
85 // L10N: Pattern Completion Menu description for ~g
86 N_("cryptographically signed messages") },
88 // L10N: Pattern Completion Menu description for ~G
89 N_("cryptographically encrypted messages") },
91 // L10N: Pattern Completion Menu description for ~h
92 N_("messages whose header matches EXPR") },
93 { 'H', MUTT_PAT_HORMEL, 0, EAT_REGEX,
94 // L10N: Pattern Completion Menu description for ~H
95 N_("messages whose spam tag matches EXPR") },
96 { 'i', MUTT_PAT_ID, 0, EAT_REGEX,
97 // L10N: Pattern Completion Menu description for ~i
98 N_("messages whose Message-ID matches EXPR") },
100 // L10N: Pattern Completion Menu description for ~I
101 N_("messages whose Message-ID is included in the results returned from an external search program") },
102 { 'k', MUTT_PAT_PGP_KEY, 0, EAT_NONE,
103 // L10N: Pattern Completion Menu description for ~k
104 N_("messages which contain PGP key") },
105 { 'K', MUTT_PAT_BCC, 0, EAT_REGEX,
106 // L10N: Pattern Completion Menu description for ~K
107 N_("messages whose BCC header matches EXPR") },
108 { 'l', MUTT_PAT_LIST, 0, EAT_NONE,
109 // L10N: Pattern Completion Menu description for ~l
110 N_("messages addressed to known mailing lists") },
111 { 'L', MUTT_PAT_ADDRESS, 0, EAT_REGEX,
112 // L10N: Pattern Completion Menu description for ~L
113 N_("messages whose From/Sender/To/CC matches EXPR") },
115 // L10N: Pattern Completion Menu description for ~m
116 N_("messages whose number is in RANGE") },
118 // L10N: Pattern Completion Menu description for ~M
119 N_("messages with a Content-Type matching EXPR") },
120 { 'n', MUTT_PAT_SCORE, 0, EAT_RANGE,
121 // L10N: Pattern Completion Menu description for ~n
122 N_("messages whose score is in RANGE") },
123 { 'N', MUTT_NEW, 0, EAT_NONE,
124 // L10N: Pattern Completion Menu description for ~N
125 N_("new messages") },
126 { 'O', MUTT_OLD, 0, EAT_NONE,
127 // L10N: Pattern Completion Menu description for ~O
128 N_("old messages") },
130 // L10N: Pattern Completion Menu description for ~p
131 N_("messages addressed to you") },
133 // L10N: Pattern Completion Menu description for ~P
134 N_("messages from you") },
135 { 'Q', MUTT_REPLIED, 0, EAT_NONE,
136 // L10N: Pattern Completion Menu description for ~Q
137 N_("messages which have been replied to") },
139 // L10N: Pattern Completion Menu description for ~r
140 N_("messages received in DATERANGE") },
141 { 'R', MUTT_READ, 0, EAT_NONE,
142 // L10N: Pattern Completion Menu description for ~R
143 N_("already read messages") },
144 { 's', MUTT_PAT_SUBJECT, 0, EAT_REGEX,
145 // L10N: Pattern Completion Menu description for ~s
146 N_("messages whose Subject header matches EXPR") },
147 { 'S', MUTT_SUPERSEDED, 0, EAT_NONE,
148 // L10N: Pattern Completion Menu description for ~S
149 N_("superseded messages") },
150 { 't', MUTT_PAT_TO, 0, EAT_REGEX,
151 // L10N: Pattern Completion Menu description for ~t
152 N_("messages whose To header matches EXPR") },
153 { 'T', MUTT_TAG, 0, EAT_NONE,
154 // L10N: Pattern Completion Menu description for ~T
155 N_("tagged messages") },
157 // L10N: Pattern Completion Menu description for ~u
158 N_("messages addressed to subscribed mailing lists") },
159 { 'U', MUTT_UNREAD, 0, EAT_NONE,
160 // L10N: Pattern Completion Menu description for ~U
161 N_("unread messages") },
162 { 'v', MUTT_PAT_COLLAPSED, 0, EAT_NONE,
163 // L10N: Pattern Completion Menu description for ~v
164 N_("messages in collapsed threads") },
166 // L10N: Pattern Completion Menu description for ~V
167 N_("cryptographically verified messages") },
169 // L10N: Pattern Completion Menu description for ~w
170 N_("newsgroups matching EXPR") },
171 { 'x', MUTT_PAT_REFERENCE, 0, EAT_REGEX,
172 // L10N: Pattern Completion Menu description for ~x
173 N_("messages whose References header matches EXPR") },
175 // L10N: Pattern Completion Menu description for ~X
176 N_("messages with RANGE attachments") },
177 { 'y', MUTT_PAT_XLABEL, 0, EAT_REGEX,
178 // L10N: Pattern Completion Menu description for ~y
179 N_("messages whose X-Label header matches EXPR") },
181 // L10N: Pattern Completion Menu description for ~Y
182 N_("messages whose tags match EXPR") },
183 { 'z', MUTT_PAT_SIZE, 0, EAT_RANGE,
184 // L10N: Pattern Completion Menu description for ~z
185 N_("messages whose size is in RANGE") },
186 { '=', MUTT_PAT_DUPLICATED, 0, EAT_NONE,
187 // L10N: Pattern Completion Menu description for ~=
188 N_("duplicated messages") },
190 // L10N: Pattern Completion Menu description for ~$
191 N_("unreferenced messages") },
192 { '#', MUTT_PAT_BROKEN, 0, EAT_NONE,
193 // L10N: Pattern Completion Menu description for ~#
194 N_("broken threads") },
196 // L10N: Pattern Completion Menu description for =/
197 N_("IMAP custom server-side search for STRING") },
198 { 0, 0, 0, EAT_NONE, NULL, },
199 // clang-format on
200};
#define N_(a)
Definition message.h:32
@ MUTT_ALL
All messages.
Definition mutt.h:87
@ MUTT_SUPERSEDED
Superseded messages.
Definition mutt.h:103
@ MUTT_EXPIRED
Expired messages.
Definition mutt.h:102
@ MUTT_READ
Messages that have been read.
Definition mutt.h:92
@ MUTT_OLD
Old messages.
Definition mutt.h:90
@ MUTT_TAG
Tagged messages.
Definition mutt.h:99
@ MUTT_FLAG
Flagged messages.
Definition mutt.h:98
@ MUTT_DELETED
Deleted messages.
Definition mutt.h:97
@ MUTT_NEW
New messages.
Definition mutt.h:89
@ MUTT_UNREAD
Unread messages.
Definition mutt.h:93
@ MUTT_REPLIED
Messages that have been replied to.
Definition mutt.h:91
#define MUTT_PC_SEND_MODE_SEARCH
Allow send-mode body searching.
Definition lib.h:72
#define MUTT_PC_FULL_MSG
Enable body and header matching.
Definition lib.h:70
@ MUTT_PAT_HEADER
Pattern matches email's header.
Definition lib.h:157
@ MUTT_PAT_WHOLE_MSG
Pattern matches raw email text.
Definition lib.h:159
@ MUTT_PAT_BROKEN
Message is part of a broken thread.
Definition lib.h:153
@ MUTT_PAT_ID_EXTERNAL
Message-Id is among results from an external query.
Definition lib.h:155
@ MUTT_PAT_REFERENCE
Pattern matches 'References:' or 'In-Reply-To:' field.
Definition lib.h:164
@ MUTT_PAT_FROM
Pattern matches 'From:' field.
Definition lib.h:148
@ MUTT_PAT_DRIVER_TAGS
Pattern matches message tags.
Definition lib.h:177
@ MUTT_PAT_COLLAPSED
Thread is collapsed.
Definition lib.h:146
@ MUTT_PAT_CRYPT_VERIFIED
Message is crypographically verified.
Definition lib.h:172
@ MUTT_PAT_HORMEL
Pattern matches email's spam score.
Definition lib.h:158
@ MUTT_PAT_SUBJECT
Pattern matches 'Subject:' field.
Definition lib.h:147
@ MUTT_PAT_LIST
Email is on mailing list.
Definition lib.h:166
@ MUTT_PAT_NEWSGROUPS
Pattern matches newsgroup.
Definition lib.h:180
@ MUTT_PAT_PERSONAL_RECIP
Email is addressed to the user.
Definition lib.h:168
@ MUTT_PAT_CC
Pattern matches 'Cc:' field.
Definition lib.h:144
@ MUTT_PAT_SUBSCRIBED_LIST
Email is on subscribed mailing list.
Definition lib.h:167
@ MUTT_PAT_SERVERSEARCH
Server-side pattern matches.
Definition lib.h:176
@ MUTT_PAT_RECIPIENT
User is a recipient of the email.
Definition lib.h:165
@ MUTT_PAT_CRYPT_ENCRYPT
Message is encrypted.
Definition lib.h:173
@ MUTT_PAT_UNREFERENCED
Message is unreferenced in the thread.
Definition lib.h:152
@ MUTT_PAT_CRYPT_SIGN
Message is signed.
Definition lib.h:171
@ MUTT_PAT_MESSAGE
Pattern matches message number.
Definition lib.h:161
@ MUTT_PAT_DATE
Pattern matches 'Date:' field.
Definition lib.h:149
@ MUTT_PAT_XLABEL
Pattern matches keyword/label.
Definition lib.h:175
@ MUTT_PAT_SCORE
Pattern matches email's score.
Definition lib.h:162
@ MUTT_PAT_MIMEATTACH
Pattern matches number of attachments.
Definition lib.h:178
@ MUTT_PAT_DUPLICATED
Duplicate message.
Definition lib.h:151
@ MUTT_PAT_PERSONAL_FROM
Email is from the user.
Definition lib.h:169
@ MUTT_PAT_TO
Pattern matches 'To:' field.
Definition lib.h:143
@ MUTT_PAT_BCC
Pattern matches 'Bcc:' field.
Definition lib.h:145
@ MUTT_PAT_SENDER
Pattern matches sender.
Definition lib.h:160
@ MUTT_PAT_DATE_RECEIVED
Pattern matches date received.
Definition lib.h:150
@ MUTT_PAT_ADDRESS
Pattern matches any address field.
Definition lib.h:170
@ MUTT_PAT_MIMETYPE
Pattern matches MIME type.
Definition lib.h:179
@ MUTT_PAT_PGP_KEY
Message has PGP key.
Definition lib.h:174
@ MUTT_PAT_ID
Pattern matches email's Message-Id.
Definition lib.h:154
@ MUTT_PAT_SIZE
Pattern matches email's size.
Definition lib.h:163
@ MUTT_PAT_BODY
Pattern matches email's body.
Definition lib.h:156