54 N_(
"messages whose body matches REGEX") },
57 N_(
"IMAP: messages whose body contains STRING") },
60 N_(
"messages whose body or headers match REGEX") },
63 N_(
"IMAP: messages whose body or headers contain STRING") },
66 N_(
"messages whose Cc: header matches REGEX") },
69 N_(
"messages whose Cc: is a member of GROUP") },
72 N_(
"messages whose To:, Cc: or Bcc: header matches REGEX") },
75 N_(
"messages whose To:, Cc: or Bcc: is a member of GROUP") },
78 N_(
"messages sent in DATERANGE") },
81 N_(
"deleted messages") },
84 N_(
"messages whose Sender: header matches REGEX") },
87 N_(
"messages whose Sender: is a member of GROUP") },
90 N_(
"expired messages") },
93 N_(
"messages whose From: header matches REGEX") },
96 N_(
"messages whose From: is a member of GROUP") },
99 N_(
"flagged messages") },
102 N_(
"cryptographically signed messages") },
105 N_(
"cryptographically encrypted messages") },
108 N_(
"messages whose header matches REGEX") },
111 N_(
"IMAP: messages whose header contains STRING") },
114 N_(
"messages whose spam header matches REGEX") },
117 N_(
"messages whose Message-Id: header matches REGEX") },
120 N_(
"messages whose Message-Id: is included in results from $external_search_command") },
123 N_(
"messages which contain a PGP key") },
126 N_(
"messages whose Bcc: header matches REGEX") },
129 N_(
"messages addressed to known mailing lists") },
132 N_(
"messages whose From:, Sender:, To: or Cc: header matches REGEX") },
135 N_(
"messages whose From:, Sender:, To: or Cc: is a member of GROUP") },
138 N_(
"messages whose number is in RANGE") },
141 N_(
"messages with a Content-Type matching REGEX") },
144 N_(
"messages whose score is in RANGE") },
147 N_(
"new messages") },
150 N_(
"old messages") },
153 N_(
"messages addressed to you") },
156 N_(
"messages from you") },
159 N_(
"messages which have been replied to") },
162 N_(
"messages received in DATERANGE") },
165 N_(
"read messages") },
168 N_(
"messages whose Subject: header matches REGEX") },
171 N_(
"superseded messages") },
174 N_(
"messages whose To: header matches REGEX") },
177 N_(
"tagged messages") },
180 N_(
"messages addressed to subscribed mailing lists") },
183 N_(
"unread messages") },
186 N_(
"messages in collapsed threads") },
189 N_(
"cryptographically verified messages") },
192 N_(
"newsgroups matching REGEX") },
195 N_(
"messages whose References: or In-Reply-To: header matches REGEX") },
198 N_(
"messages with RANGE attachments") },
201 N_(
"messages whose X-Label: header matches REGEX") },
204 N_(
"messages whose tags match REGEX") },
207 N_(
"messages whose size is in RANGE") },
210 N_(
"broken threads") },
213 N_(
"unreferenced messages") },
216 N_(
"GMail: custom server-side search for STRING") },
219 N_(
"duplicated messages") },
238 for (
int i = 0;
Flags[i].tag; i++)
245 for (
int i = 0;
Flags[i].tag; i++)
260 for (
int i = 0;
Flags[i].tag; i++)
Convenience wrapper for the library headers.
Many unsorted constants and some structs.
@ MUTT_SUPERSEDED
Superseded messages.
@ MUTT_EXPIRED
Expired messages.
@ MUTT_READ
Messages that have been read.
@ MUTT_TAG
Tagged messages.
@ MUTT_FLAG
Flagged messages.
@ MUTT_DELETED
Deleted messages.
@ MUTT_UNREAD
Unread messages.
@ MUTT_REPLIED
Messages that have been replied to.
const struct PatternFlags Flags[]
Lookup table for all patterns.
const struct PatternFlags * lookup_tag(char prefix, char tag)
Lookup a pattern modifier.
const struct PatternFlags * lookup_op(int op)
Lookup the Pattern Flags for an op.
Match patterns to emails.
#define MUTT_PC_SEND_MODE_SEARCH
Allow send-mode body searching.
#define MUTT_PC_FULL_MSG
Enable body and header matching.
@ MUTT_PAT_HEADER
Pattern matches email's header.
@ MUTT_PAT_WHOLE_MSG
Pattern matches raw email text.
@ MUTT_PAT_BROKEN
Message is part of a broken thread.
@ MUTT_PAT_ID_EXTERNAL
Message-Id is among results from an external query.
@ MUTT_PAT_REFERENCE
Pattern matches 'References:' or 'In-Reply-To:' field.
@ MUTT_PAT_FROM
Pattern matches 'From:' field.
@ MUTT_PAT_DRIVER_TAGS
Pattern matches message tags.
@ MUTT_PAT_COLLAPSED
Thread is collapsed.
@ MUTT_PAT_CRYPT_VERIFIED
Message is crypographically verified.
@ MUTT_PAT_HORMEL
Pattern matches email's spam score.
@ MUTT_PAT_SUBJECT
Pattern matches 'Subject:' field.
@ MUTT_PAT_LIST
Email is on mailing list.
@ MUTT_PAT_NEWSGROUPS
Pattern matches newsgroup.
@ MUTT_PAT_PERSONAL_RECIP
Email is addressed to the user.
@ MUTT_PAT_CC
Pattern matches 'Cc:' field.
@ MUTT_PAT_SUBSCRIBED_LIST
Email is on subscribed mailing list.
@ MUTT_PAT_SERVERSEARCH
Server-side pattern matches.
@ MUTT_PAT_RECIPIENT
User is a recipient of the email.
@ MUTT_PAT_CRYPT_ENCRYPT
Message is encrypted.
@ MUTT_PAT_UNREFERENCED
Message is unreferenced in the thread.
@ MUTT_PAT_CRYPT_SIGN
Message is signed.
@ MUTT_PAT_MESSAGE
Pattern matches message number.
@ MUTT_PAT_DATE
Pattern matches 'Date:' field.
@ MUTT_PAT_XLABEL
Pattern matches keyword/label.
@ MUTT_PAT_SCORE
Pattern matches email's score.
@ MUTT_PAT_MIMEATTACH
Pattern matches number of attachments.
@ MUTT_PAT_DUPLICATED
Duplicate message.
@ MUTT_PAT_PERSONAL_FROM
Email is from the user.
@ MUTT_PAT_TO
Pattern matches 'To:' field.
@ MUTT_PAT_BCC
Pattern matches 'Bcc:' field.
@ MUTT_PAT_SENDER
Pattern matches sender.
@ MUTT_PAT_DATE_RECEIVED
Pattern matches date received.
@ MUTT_PAT_ADDRESS
Pattern matches any address field.
@ MUTT_PAT_MIMETYPE
Pattern matches MIME type.
@ MUTT_PAT_PGP_KEY
Message has PGP key.
@ MUTT_PAT_ID
Pattern matches email's Message-Id.
@ MUTT_PAT_SIZE
Pattern matches email's size.
@ MUTT_PAT_BODY
Pattern matches email's body.
Shared constants/structs that are private to libpattern.
@ EAT_STRING
Process a plain string.
@ EAT_NONE
No arguments required.
@ EAT_RANGE
Process a number (range)
@ EAT_GROUP
Process a group name.
@ EAT_MESSAGE_RANGE
Process a message number (range)
@ EAT_DATE
Process a date (range)
@ EAT_QUERY
Process a query string.
@ EAT_REGEX
Process a regex.
Mapping between user character and internal constant.
char tag
Character used to represent this operation, e.g. 'A' for '~A'.
int op
Operation to perform, e.g. MUTT_PAT_SCORE.
char prefix
Prefix for this pattern, e.g. '~', '', or '='.