NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
prex.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_LIB_PREX_H
24 #define MUTT_LIB_PREX_H
25 
26 #include "regex3.h"
27 
31 enum Prex
32 {
43 };
44 
51 {
72 };
73 
80 {
85 };
86 
93 {
99 };
100 
107 {
113 };
114 
121 {
136 };
137 
149 {
174 };
175 
182 {
192 };
193 
200 {
211 };
212 
219 {
236 };
237 
238 regmatch_t *mutt_prex_capture(enum Prex which, const char *str);
239 void mutt_prex_free(void);
240 
241 #endif /* MUTT_LIB_PREX_H */
PrexGnuTlsCertHostnameMatch
Regex Matches for a TLS Certificate Hostname.
Definition: prex.h:106
Tue, 3 Mar [2020] 14:32:55 +0200
Definition: prex.h:127
[Mon], 2 Mar 2020 14:32:55 +0200
Definition: prex.h:153
From god@heaven.af.mil Sat Jan [10] 01:05:34 1996
Definition: prex.h:227
[Mon, 2 Mar 2020 14:32:55 +0200]
Definition: prex.h:150
Tue, 3 Mar 2020 14:32[:55] +0200
Definition: prex.h:166
From god@heaven.af.mil [Sat] Jan 3 01:05:34 1996
Definition: prex.h:223
Tue, [3] Mar 2020 14:32:55 +0200
Definition: prex.h:125
=?[utf-8]?Q?=E8=81...?=
Definition: prex.h:95
From god@heaven.af.mil Sat Jan 10 01:05:34 [96]
Definition: prex.h:234
imaps://...[host.com]...
Definition: prex.h:61
imaps://host.com[:993]/...
Definition: prex.h:64
...Inbox[?foo=bar&baz=value]
Definition: prex.h:69
Definition: prex.h:42
Prex
Predefined list of regular expressions.
Definition: prex.h:31
Tue, 3 Mar 2020 14:32:55[UT]
Definition: prex.h:172
[=?utf-8?Q?=E8=81...?=]
Definition: prex.h:94
[16-MAR-2020 15:09:35 -0700]
Definition: prex.h:39
Tue, 3 Mar 2020 14:32:[55] +0200
Definition: prex.h:168
=?utf-8?[Q]?=E8=81...?=
Definition: prex.h:96
[From god@heaven.af.mil Sat Jan 3 01:05:34 1996]
Definition: prex.h:201
[imaps://user:pass@host.comInbox?foo=bar]
Definition: prex.h:52
imaps:[//...]
Definition: prex.h:54
From [god at heaven.af.mil] Sat Jan 3 01:05:34 1996
Definition: prex.h:221
PrexMboxFrom
Regex matches for an mbox-style From line.
Definition: prex.h:199
Tue, [3] Mar 2020 14:32:55 +0200
Definition: prex.h:156
[Mon, ]2 Mar 2020 14:32:55 +0200
Definition: prex.h:152
15-MAR-2020 15:09:35 [-0700]
Definition: prex.h:190
From god@heaven.af.mil Sat [Jan] 3 01:05:34 1996
Definition: prex.h:204
From god@heaven.af.mil Sat Jan 10 [01:05:34] 1996
Definition: prex.h:208
#H [foo.com] A76D ... 65B1
Definition: prex.h:109
From god@heaven.af.mil Sat Jan [3] 01:05:34 1996
Definition: prex.h:226
15-MAR-2020 [15:09:35] -0700
Definition: prex.h:189
...//user:[pass]@...
Definition: prex.h:60
Tue, 3 Mar 2020 14:[32]:55 +0200
Definition: prex.h:129
regmatch_t * mutt_prex_capture(enum Prex which, const char *str)
match a precompiled regex against a string
Definition: prex.c:306
[16-MAR-2020 15:09:35 -0700]
Definition: prex.h:183
Tue, 3 Mar [2020] 14:32:55 +0200
Definition: prex.h:160
=?utf-8?Q?[=E8=81...]?=
Definition: prex.h:97
From god@heaven.af.mil Sat Jan 10 01:05:34 [MET DST] 1996
Definition: prex.h:231
Tue, 3 Mar 2020 14:32:55 [+0200]
Definition: prex.h:133
15-MAR-[2020] 15:09:35 -0700
Definition: prex.h:188
imaps:[somepath]|[//me@example.com/Inbox]?foo=bar
Definition: prex.h:55
From god@heaven.af.mil Sat Jan 10 01:05:34 [1996]
Definition: prex.h:209
...:993/[Inbox]
Definition: prex.h:67
From god@heaven.af.mil Sat Jan 10 01:05:34 [1996]
Definition: prex.h:232
PrexImapDate
Regex matches for an IMAP INTERNALDATE
Definition: prex.h:181
Tue, 3 [Jan] 2020 14:32:55 +0200
Definition: prex.h:126
imaps://host.com:[993]/...
Definition: prex.h:65
From god@heaven.af.mil Sat Jan 10 [01:05:34] 1996
Definition: prex.h:228
enum Prex which
Regex type, e.g. PREX_URL.
Definition: prex.c:69
From god@heaven.af.mil Sat Jan 10 [01:05] 1996
Definition: prex.h:230
From god@heaven.af.mil Sat [Jan] 3 01:05:34 1996
Definition: prex.h:224
Tue, 3 Mar 2020 14:[32]:55 +0200
Definition: prex.h:164
[Mon, (Comment) 16 Mar 2020 15:09:35 -0700]
Definition: prex.h:38
[From god@heaven.af.mil Sat Jan 3 01:05:34 1996]
Definition: prex.h:220
Tue, 3 Mar 2020 14:32:55 [+0200]
Definition: prex.h:171
Tue, 3 Mar 2020 [14]:32:55 +0200
Definition: prex.h:128
From [god@heaven.af.mil] Sat Jan 3 01:05:34 1996
Definition: prex.h:202
From god@heaven.af.mil Sat Jan [ 3] 01:05:34 1996
Definition: prex.h:225
From god@heaven.af.mil Sat Jan [10] 01:05:34 1996
Definition: prex.h:207
Tue, 3 Mar 2020 14:32:55[CET]
Definition: prex.h:132
#H foo.com A76D ... [65B1]
Definition: prex.h:111
[ 4]-MAR-2020 15:09:35 -0700
Definition: prex.h:184
imaps:[//me@example.com/Inbox]?foo=bar
Definition: prex.h:56
Tue, 3 Mar 2020 14:32:55[CET]
Definition: prex.h:170
https://example.com/?[q=foo]
Definition: prex.h:34
PrexMboxFromLax
Regex matches for an mbox-style From line, lax mode.
Definition: prex.h:218
...//user[:pass]@...
Definition: prex.h:59
PrexRfc5322DateLax
Regex Matches for a RFC5322 date, including obsolete comments in parentheses.
Definition: prex.h:148
...Inbox?[foo=bar&baz=value]
Definition: prex.h:70
[imaps://user:pass@example.com/INBOX?foo=bar]
Definition: prex.h:33
[Mon, 2 Mar 2020 14:32:55 +0200]
Definition: prex.h:122
void mutt_prex_free(void)
Cleanup heap memory allocated by compiled regexes.
Definition: prex.c:347
From [god@heaven.af.mil] Sat Jan 3 01:05:34 1996
Definition: prex.h:222
Tue, 3 [Jan] 2020 14:32:55 +0200
Definition: prex.h:158
imaps://...[127.0.0.1]...
Definition: prex.h:63
...//[user]:pass@...
Definition: prex.h:58
[=?utf-8?Q?=E8=81=AA=E6=98=8E=E7=9A=84?=]
Definition: prex.h:35
[From god@heaven.af.mil Sat Jan 3 01:05:34 1996]
Definition: prex.h:40
[Mon], 2 Mar 2020 14:32:55 +0200
Definition: prex.h:124
...//[user:pass@]...
Definition: prex.h:57
PrexRfc5322Date
Regex Matches for a RFC5322 date.
Definition: prex.h:120
[4]-MAR-2020 15:09:35 -0700
Definition: prex.h:185
[Mon, 16 Mar 2020 15:09:35 -0700]
Definition: prex.h:37
From god@heaven.af.mil Sat Jan 10 [01:05:34] 1996
Definition: prex.h:229
15-[MAR]-2020 15:09:35 -0700
Definition: prex.h:187
[#H foo.com A76D 954B EB79 1F49 5B3A 0A0E 0681 65B1]
Definition: prex.h:36
From god@heaven.af.mil Sat Jan [3] 01:05:34 1996
Definition: prex.h:206
[#H foo.com A76D ... 65B1]
Definition: prex.h:108
Tue, 3 Mar 2020 14:32:[55] +0200
Definition: prex.h:131
PrexRfc2047EncodedWordMatch
Regex Matches for PREX_RFC2047_ENCODED_WORD.
Definition: prex.h:92
...:993[/Inbox]
Definition: prex.h:66
[imaps]://...
Definition: prex.h:53
Manage regular expressions.
Tue, 3 Mar 2020 14:32[:55] +0200
Definition: prex.h:130
[Mon, ]2 Mar 2020 14:32:55 +0200
Definition: prex.h:123
[15]-MAR-2020 15:09:35 -0700
Definition: prex.h:186
imaps://...[host.com]...
Definition: prex.h:62
From god@heaven.af.mil [Sat] Jan 3 01:05:34 1996
Definition: prex.h:203
From god@heaven.af.mil Sat Jan [ 3] 01:05:34 1996
Definition: prex.h:205
PrexUrlQueryKeyValMatch
Regex Matches for PREX_URL_QUERY_KEY_VAL.
Definition: prex.h:79
Tue, 3 Mar 2020 [14]:32:55 +0200
Definition: prex.h:162
Tue, 3 Mar 2020 14:32:55[UT]
Definition: prex.h:134
mailto:[me@example.com]?foo=bar
Definition: prex.h:68
[From god@heaven.af.mil Sat Jan 3 01:05:34 1996]
Definition: prex.h:41
const char * str
Regex string.
Definition: prex.c:71
From god@heaven.af.mil Sat Jan 10 01:05:34 [1996]
Definition: prex.h:233
#H foo.com [A76D ... 65B1]
Definition: prex.h:110
PrexUrlSchemeMatch
Regex Matches for PREX_URL.
Definition: prex.h:50