-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountcmd_8c_source.html
292 lines (290 loc) · 52 KB
/
accountcmd_8c_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NeoMutt: conn/accountcmd.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><a href="https://neomutt.org"><img alt="Logo" src="neomutt-64.png"/></a></td>
<td id="projectalign" style="padding-left: 0.5em;">
<a style="color: black; text-decoration: none;" href="https://neomutt.org">
<div id="projectname">NeoMutt
 <span id="projectnumber">2024-12-12-19-ge4b57e</span>
</div>
<div id="projectbrief">Teaching an old dog new tricks</div>
</a>
<a href="https://github.com/neomutt/neomutt" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#000000; color:#fff; position: fixed; top: 0; border: 0; right: 0; z-index: 9999;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
</td>
<td><a style="text-decoration: none; position: absolute; right: 0; top: 25px; margin-right: 100px; color: #66d866; font-size: 400%;" href="http://www.doxygen.org/index.html">DOXYGEN</a></td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(document).ready(function(){initNavTree('accountcmd_8c_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">accountcmd.c</div></div>
</div><!--header-->
<div class="contents">
<a href="accountcmd_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include "config.h"</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include <stdio.h></span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include <sys/types.h></span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include "<a class="code" href="mutt_2lib_8h.html">mutt/lib.h</a>"</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include "<a class="code" href="config_2lib_8h.html">config/lib.h</a>"</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include "<a class="code" href="core_2lib_8h.html">core/lib.h</a>"</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#include "<a class="code" href="accountcmd_8h.html">accountcmd.h</a>"</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="preprocessor">#include "<a class="code" href="connaccount_8h.html">connaccount.h</a>"</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="preprocessor">#include "globals.h"</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="preprocessor">#include "<a class="code" href="mutt__account_8h.html">mutt_account.h</a>"</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="accountcmd_8c.html#a6d191422dcbdf86d68a16a4ce79e4702"> 47</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="accountcmd_8c.html#a6d191422dcbdf86d68a16a4ce79e4702">make_cmd</a>(<span class="keyword">struct</span> <a class="code hl_struct" href="structBuffer.html">Buffer</a> *buf, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code hl_struct" href="structConnAccount.html">ConnAccount</a> *cac, <span class="keyword">const</span> <span class="keywordtype">char</span> *cmd)</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>{</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(buf && cac);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_function" href="buffer_8c.html#a9924e74ddcb5280ab380e4627d1fba99">buf_addstr</a>(buf, cmd);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_function" href="buffer_8c.html#a0849b79217aad19e4bf9381d532d59d1">buf_add_printf</a>(buf, <span class="stringliteral">" --hostname %s"</span>, cac-><a class="code hl_variable" href="structConnAccount.html#aa440323ef3111e1faaf33f6a57103a3a">host</a>);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">if</span> (cac-><a class="code hl_variable" href="structConnAccount.html#af674ed2969fc29ff7d99f8b4cff6c92b">flags</a> & <a class="code hl_define" href="connaccount_8h.html#ab496cae7636af7b356aad973a4a2e675">MUTT_ACCT_USER</a>)</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> {</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_function" href="buffer_8c.html#a0849b79217aad19e4bf9381d532d59d1">buf_add_printf</a>(buf, <span class="stringliteral">" --username %s"</span>, cac-><a class="code hl_variable" href="structConnAccount.html#a48b8084b2dd1ef3d4e051a01cf15c7ca">user</a>);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *types[] = { <span class="stringliteral">""</span>, <span class="stringliteral">"imap"</span>, <span class="stringliteral">"pop"</span>, <span class="stringliteral">"smtp"</span>, <span class="stringliteral">"nntp"</span> };</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(<span class="keyword">sizeof</span>(types) / <span class="keyword">sizeof</span>(*types) == <a class="code hl_enumvalue" href="mutt__account_8h.html#a406c8474bdbb9cc2a25882558a367c2fae964a93a5e000f65eb2957e89e3b4cd5">MUTT_ACCT_TYPE_MAX</a>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">if</span> (cac-><a class="code hl_variable" href="structConnAccount.html#aefc6c0b647de43e60472000102a0e208">type</a> != <a class="code hl_enumvalue" href="mutt__account_8h.html#a406c8474bdbb9cc2a25882558a367c2fab25cb9a5066a800a7312ea88c46638eb">MUTT_ACCT_TYPE_NONE</a>)</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> {</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_function" href="buffer_8c.html#a0849b79217aad19e4bf9381d532d59d1">buf_add_printf</a>(buf, <span class="stringliteral">" --type %s%c"</span>, types[cac-><a class="code hl_variable" href="structConnAccount.html#aefc6c0b647de43e60472000102a0e208">type</a>],</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> (cac-><a class="code hl_variable" href="structConnAccount.html#af674ed2969fc29ff7d99f8b4cff6c92b">flags</a> & <a class="code hl_define" href="connaccount_8h.html#a4a13697bc3f261ea3949d4dbe3869863">MUTT_ACCT_SSL</a>) ? <span class="charliteral">'s'</span> : <span class="charliteral">'\0'</span>);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> }</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span>}</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="accountcmd_8c.html#a58de8ac77a7405092bc0bfc2ad11959f"> 74</a></span><span class="keyword">static</span> <a class="code hl_typedef" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> <a class="code hl_function" href="accountcmd_8c.html#a58de8ac77a7405092bc0bfc2ad11959f">parse_one</a>(<span class="keyword">struct</span> <a class="code hl_struct" href="structConnAccount.html">ConnAccount</a> *cac, <span class="keywordtype">char</span> *line)</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span>{</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(cac && line);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">const</span> regmatch_t *match = <a class="code hl_function" href="prex_8c.html#a204aa135b8b80f39730506b82385612d">mutt_prex_capture</a>(<a class="code hl_enumvalue" href="prex_8h.html#a94868f2b3ee14f09fb7b9e236d752488a744884a9dd9de6c9365b3a2b427ee62f">PREX_ACCOUNT_CMD</a>, line);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">if</span> (!match)</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_define" href="group__logging__api.html#gafaa521ab22db877ccf1b87e679e1b43e">mutt_perror</a>(<a class="code hl_define" href="mutt_2message_8h.html#a479d658dfd60fe8d9709ec67a58b34ca">_</a>(<span class="stringliteral">"Line is malformed: expected <key: val>, got <%s>"</span>), line);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keyword">const</span> regmatch_t *keymatch = &match[<a class="code hl_enumvalue" href="prex_8h.html#a4bbe73518d5aa200e3129011cfe147ccae41eba830186d929c8d719ca6e587f52">PREX_ACCOUNT_CMD_MATCH_KEY</a>];</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">const</span> regmatch_t *valmatch = &match[<a class="code hl_enumvalue" href="prex_8h.html#a4bbe73518d5aa200e3129011cfe147ccaec43ed86657231b42c369ae94c3871e6">PREX_ACCOUNT_CMD_MATCH_VALUE</a>];</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> line[<a class="code hl_function" href="regex3_8h.html#ace9a8836dfa6c039cb619573c60e253f">mutt_regmatch_start</a>(keymatch) + <a class="code hl_function" href="regex3_8h.html#a67ed3f37a5cbaab7f957bf5d842a9ff9">mutt_regmatch_len</a>(keymatch)] = <span class="charliteral">'\0'</span>;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *key = line + <a class="code hl_function" href="regex3_8h.html#ace9a8836dfa6c039cb619573c60e253f">mutt_regmatch_start</a>(keymatch);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *val = line + <a class="code hl_function" href="regex3_8h.html#ace9a8836dfa6c039cb619573c60e253f">mutt_regmatch_start</a>(valmatch);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">switch</span> (key[0])</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">case</span> <span class="charliteral">'l'</span>:</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="mutt_2string_8c.html#a6b6a50296dd2a31863a43379ef4a343d">mutt_str_equal</a>(key + 1, <span class="stringliteral">"ogin"</span>))</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_function" href="mutt_2string_8c.html#ad20e00309de897a1e882fc7400335b83">mutt_str_copy</a>(cac-><a class="code hl_variable" href="structConnAccount.html#a45280c267b6a42682643c0b3b135a75d">login</a>, val, <span class="keyword">sizeof</span>(cac-><a class="code hl_variable" href="structConnAccount.html#a45280c267b6a42682643c0b3b135a75d">login</a>));</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#ab5599042f07efbed4f70a19cd322370a">MUTT_ACCT_LOGIN</a>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> }</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordflow">case</span> <span class="charliteral">'p'</span>:</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="mutt_2string_8c.html#a6b6a50296dd2a31863a43379ef4a343d">mutt_str_equal</a>(key + 1, <span class="stringliteral">"assword"</span>))</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> {</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_function" href="mutt_2string_8c.html#ad20e00309de897a1e882fc7400335b83">mutt_str_copy</a>(cac-><a class="code hl_variable" href="structConnAccount.html#a842f1bf5afe0830ae96d80bdacead037">pass</a>, val, <span class="keyword">sizeof</span>(cac-><a class="code hl_variable" href="structConnAccount.html#a842f1bf5afe0830ae96d80bdacead037">pass</a>));</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#a9c5c05c3447f2884a5bbf1ab219e3f37">MUTT_ACCT_PASS</a>;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">case</span> <span class="charliteral">'u'</span>:</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="mutt_2string_8c.html#a6b6a50296dd2a31863a43379ef4a343d">mutt_str_equal</a>(key + 1, <span class="stringliteral">"sername"</span>))</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_function" href="mutt_2string_8c.html#ad20e00309de897a1e882fc7400335b83">mutt_str_copy</a>(cac-><a class="code hl_variable" href="structConnAccount.html#a48b8084b2dd1ef3d4e051a01cf15c7ca">user</a>, val, <span class="keyword">sizeof</span>(cac-><a class="code hl_variable" href="structConnAccount.html#a48b8084b2dd1ef3d4e051a01cf15c7ca">user</a>));</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#ab496cae7636af7b356aad973a4a2e675">MUTT_ACCT_USER</a>;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> }</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">default</span>:</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_define" href="group__logging__api.html#ga377d6ae04687e3cac3da87e05bc7de5d">mutt_warning</a>(<a class="code hl_define" href="mutt_2message_8h.html#a479d658dfd60fe8d9709ec67a58b34ca">_</a>(<span class="stringliteral">"Unhandled key in line <%s: %s>"</span>), key, val);</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a>;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span>}</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="accountcmd_8c.html#a249c4d0378883430f8af9cb8a30d8cbe"> 132</a></span><span class="keyword">static</span> <a class="code hl_typedef" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> <a class="code hl_function" href="accountcmd_8c.html#a249c4d0378883430f8af9cb8a30d8cbe">call_cmd</a>(<span class="keyword">struct</span> <a class="code hl_struct" href="structConnAccount.html">ConnAccount</a> *cac, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code hl_struct" href="structBuffer.html">Buffer</a> *cmd)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span>{</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(cac && cmd);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_typedef" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> rc = <a class="code hl_define" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a>;</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> FILE *fp = NULL;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> pid_t pid = <a class="code hl_function" href="mutt_2filter_8c.html#ad1ec6916f8ee2520af1711891f6b5302">filter_create</a>(<a class="code hl_function" href="buffer_8h.html#a728ebc5a947b77c8d56db44ce553a7ab">buf_string</a>(cmd), NULL, &fp, NULL, <a class="code hl_variable" href="globals_8c.html#ae45378328cf8b407e63b6d53eaf61a01">EnvList</a>);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">if</span> (pid < 0)</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> {</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_define" href="group__logging__api.html#gafaa521ab22db877ccf1b87e679e1b43e">mutt_perror</a>(<a class="code hl_define" href="mutt_2message_8h.html#a479d658dfd60fe8d9709ec67a58b34ca">_</a>(<span class="stringliteral">"Unable to run account command"</span>));</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">return</span> rc;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> }</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordtype">size_t</span> len = 0;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordtype">char</span> *line = NULL;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">while</span> ((line = <a class="code hl_function" href="file_8c.html#a1ad76f956147154f16128b7761dadd58">mutt_file_read_line</a>(NULL, &len, fp, NULL, <a class="code hl_define" href="file_8h.html#abb6d0dccab49bda4ed23948c7f5d0eaa">MUTT_RL_NO_FLAGS</a>)))</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> rc |= <a class="code hl_function" href="accountcmd_8c.html#a58de8ac77a7405092bc0bfc2ad11959f">parse_one</a>(cac, line);</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_define" href="memory_8h.html#a25875003b43b81a4302256caa4a13599">FREE</a>(&line);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> }</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <a class="code hl_define" href="file_8h.html#a9b519e795f098be88b93cd72c49a35ec">mutt_file_fclose</a>(&fp);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_function" href="mutt_2filter_8c.html#a22c6912b837b1114c3276c990e73dca3">filter_wait</a>(pid);</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordflow">return</span> rc;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>}</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="accountcmd_8c.html#abca7863c6e3eaeb09d4d822fcc7d337b"> 165</a></span><a class="code hl_typedef" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> <a class="code hl_function" href="accountcmd_8c.html#abca7863c6e3eaeb09d4d822fcc7d337b">mutt_account_call_external_cmd</a>(<span class="keyword">struct</span> <a class="code hl_struct" href="structConnAccount.html">ConnAccount</a> *cac)</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span>{</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordflow">if</span> (!cac || (cac-><a class="code hl_variable" href="structConnAccount.html#aa440323ef3111e1faaf33f6a57103a3a">host</a>[0] == <span class="charliteral">'\0'</span>) || (cac-><a class="code hl_variable" href="structConnAccount.html#aefc6c0b647de43e60472000102a0e208">type</a> == <a class="code hl_enumvalue" href="mutt__account_8h.html#a406c8474bdbb9cc2a25882558a367c2fab25cb9a5066a800a7312ea88c46638eb">MUTT_ACCT_TYPE_NONE</a>))</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> {</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a>;</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> }</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *c_account_command = <a class="code hl_function" href="config_2helpers_8c.html#a6b1589ee93ff51ef31f1d9324e138078">cs_subset_string</a>(<a class="code hl_struct" href="structNeoMutt.html">NeoMutt</a>-><a class="code hl_variable" href="structNeoMutt.html#af98065e32243ce9331f93b7f30247d47">sub</a>, <span class="stringliteral">"account_command"</span>);</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keywordflow">if</span> (!c_account_command)</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> {</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">return</span> <a class="code hl_define" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a>;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> }</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <a class="code hl_typedef" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> rc = <a class="code hl_define" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a>;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">struct </span><a class="code hl_struct" href="structBuffer.html">Buffer</a> *cmd_buf = <a class="code hl_function" href="pool_8c.html#a41cba27c25d33cb6822789a2856093f2">buf_pool_get</a>();</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <a class="code hl_function" href="accountcmd_8c.html#a6d191422dcbdf86d68a16a4ce79e4702">make_cmd</a>(cmd_buf, cac, c_account_command);</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> rc = <a class="code hl_function" href="accountcmd_8c.html#a249c4d0378883430f8af9cb8a30d8cbe">call_cmd</a>(cac, cmd_buf);</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> cac-><a class="code hl_variable" href="structConnAccount.html#af674ed2969fc29ff7d99f8b4cff6c92b">flags</a> |= rc;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <a class="code hl_function" href="pool_8c.html#a4cc6068279461cb8628219586dfa35a1">buf_pool_release</a>(&cmd_buf);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">return</span> rc;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span>}</div>
<div class="ttc" id="aaccountcmd_8c_html_a249c4d0378883430f8af9cb8a30d8cbe"><div class="ttname"><a href="accountcmd_8c.html#a249c4d0378883430f8af9cb8a30d8cbe">call_cmd</a></div><div class="ttdeci">static MuttAccountFlags call_cmd(struct ConnAccount *cac, const struct Buffer *cmd)</div><div class="ttdoc">Call the account command.</div><div class="ttdef"><b>Definition:</b> <a href="accountcmd_8c_source.html#l00132">accountcmd.c:132</a></div></div>
<div class="ttc" id="aaccountcmd_8c_html_a58de8ac77a7405092bc0bfc2ad11959f"><div class="ttname"><a href="accountcmd_8c.html#a58de8ac77a7405092bc0bfc2ad11959f">parse_one</a></div><div class="ttdeci">static MuttAccountFlags parse_one(struct ConnAccount *cac, char *line)</div><div class="ttdoc">Parse a single line of the response.</div><div class="ttdef"><b>Definition:</b> <a href="accountcmd_8c_source.html#l00074">accountcmd.c:74</a></div></div>
<div class="ttc" id="aaccountcmd_8c_html_a6d191422dcbdf86d68a16a4ce79e4702"><div class="ttname"><a href="accountcmd_8c.html#a6d191422dcbdf86d68a16a4ce79e4702">make_cmd</a></div><div class="ttdeci">static void make_cmd(struct Buffer *buf, const struct ConnAccount *cac, const char *cmd)</div><div class="ttdoc">Build the command line for the external account command.</div><div class="ttdef"><b>Definition:</b> <a href="accountcmd_8c_source.html#l00047">accountcmd.c:47</a></div></div>
<div class="ttc" id="aaccountcmd_8c_html_abca7863c6e3eaeb09d4d822fcc7d337b"><div class="ttname"><a href="accountcmd_8c.html#abca7863c6e3eaeb09d4d822fcc7d337b">mutt_account_call_external_cmd</a></div><div class="ttdeci">MuttAccountFlags mutt_account_call_external_cmd(struct ConnAccount *cac)</div><div class="ttdoc">Retrieve account credentials via an external command.</div><div class="ttdef"><b>Definition:</b> <a href="accountcmd_8c_source.html#l00165">accountcmd.c:165</a></div></div>
<div class="ttc" id="aaccountcmd_8h_html"><div class="ttname"><a href="accountcmd_8h.html">accountcmd.h</a></div><div class="ttdoc">Connection Credentials External Command.</div></div>
<div class="ttc" id="abuffer_8c_html_a0849b79217aad19e4bf9381d532d59d1"><div class="ttname"><a href="buffer_8c.html#a0849b79217aad19e4bf9381d532d59d1">buf_add_printf</a></div><div class="ttdeci">int buf_add_printf(struct Buffer *buf, const char *fmt,...)</div><div class="ttdoc">Format a string appending a Buffer.</div><div class="ttdef"><b>Definition:</b> <a href="buffer_8c_source.html#l00204">buffer.c:204</a></div></div>
<div class="ttc" id="abuffer_8c_html_a9924e74ddcb5280ab380e4627d1fba99"><div class="ttname"><a href="buffer_8c.html#a9924e74ddcb5280ab380e4627d1fba99">buf_addstr</a></div><div class="ttdeci">size_t buf_addstr(struct Buffer *buf, const char *s)</div><div class="ttdoc">Add a string to a Buffer.</div><div class="ttdef"><b>Definition:</b> <a href="buffer_8c_source.html#l00226">buffer.c:226</a></div></div>
<div class="ttc" id="abuffer_8h_html_a728ebc5a947b77c8d56db44ce553a7ab"><div class="ttname"><a href="buffer_8h.html#a728ebc5a947b77c8d56db44ce553a7ab">buf_string</a></div><div class="ttdeci">static const char * buf_string(const struct Buffer *buf)</div><div class="ttdoc">Convert a buffer to a const char * "string".</div><div class="ttdef"><b>Definition:</b> <a href="buffer_8h_source.html#l00096">buffer.h:96</a></div></div>
<div class="ttc" id="aconfig_2helpers_8c_html_a6b1589ee93ff51ef31f1d9324e138078"><div class="ttname"><a href="config_2helpers_8c.html#a6b1589ee93ff51ef31f1d9324e138078">cs_subset_string</a></div><div class="ttdeci">const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)</div><div class="ttdoc">Get a string config item by name.</div><div class="ttdef"><b>Definition:</b> <a href="config_2helpers_8c_source.html#l00291">helpers.c:291</a></div></div>
<div class="ttc" id="aconfig_2lib_8h_html"><div class="ttname"><a href="config_2lib_8h.html">lib.h</a></div><div class="ttdoc">Convenience wrapper for the config headers.</div></div>
<div class="ttc" id="aconnaccount_8h_html"><div class="ttname"><a href="connaccount_8h.html">connaccount.h</a></div><div class="ttdoc">Connection Credentials.</div></div>
<div class="ttc" id="aconnaccount_8h_html_a25025c559ef26ae8bbd9349cfea83d49"><div class="ttname"><a href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a></div><div class="ttdeci">uint8_t MuttAccountFlags</div><div class="ttdoc">Flags, Which ConnAccount fields are initialised, e.g. MUTT_ACCT_PORT.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00041">connaccount.h:41</a></div></div>
<div class="ttc" id="aconnaccount_8h_html_a3745080fbfe114df01308d1f00ce5640"><div class="ttname"><a href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640">MUTT_ACCT_NO_FLAGS</a></div><div class="ttdeci">#define MUTT_ACCT_NO_FLAGS</div><div class="ttdoc">No flags are set.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00042">connaccount.h:42</a></div></div>
<div class="ttc" id="aconnaccount_8h_html_a4a13697bc3f261ea3949d4dbe3869863"><div class="ttname"><a href="connaccount_8h.html#a4a13697bc3f261ea3949d4dbe3869863">MUTT_ACCT_SSL</a></div><div class="ttdeci">#define MUTT_ACCT_SSL</div><div class="ttdoc">Account uses SSL/TLS.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00047">connaccount.h:47</a></div></div>
<div class="ttc" id="aconnaccount_8h_html_a9c5c05c3447f2884a5bbf1ab219e3f37"><div class="ttname"><a href="connaccount_8h.html#a9c5c05c3447f2884a5bbf1ab219e3f37">MUTT_ACCT_PASS</a></div><div class="ttdeci">#define MUTT_ACCT_PASS</div><div class="ttdoc">Password field has been set.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00046">connaccount.h:46</a></div></div>
<div class="ttc" id="aconnaccount_8h_html_ab496cae7636af7b356aad973a4a2e675"><div class="ttname"><a href="connaccount_8h.html#ab496cae7636af7b356aad973a4a2e675">MUTT_ACCT_USER</a></div><div class="ttdeci">#define MUTT_ACCT_USER</div><div class="ttdoc">User field has been set.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00044">connaccount.h:44</a></div></div>
<div class="ttc" id="aconnaccount_8h_html_ab5599042f07efbed4f70a19cd322370a"><div class="ttname"><a href="connaccount_8h.html#ab5599042f07efbed4f70a19cd322370a">MUTT_ACCT_LOGIN</a></div><div class="ttdeci">#define MUTT_ACCT_LOGIN</div><div class="ttdoc">Login field has been set.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00045">connaccount.h:45</a></div></div>
<div class="ttc" id="acore_2lib_8h_html"><div class="ttname"><a href="core_2lib_8h.html">lib.h</a></div><div class="ttdoc">Convenience wrapper for the core headers.</div></div>
<div class="ttc" id="afile_8c_html_a1ad76f956147154f16128b7761dadd58"><div class="ttname"><a href="file_8c.html#a1ad76f956147154f16128b7761dadd58">mutt_file_read_line</a></div><div class="ttdeci">char * mutt_file_read_line(char *line, size_t *size, FILE *fp, int *line_num, ReadLineFlags flags)</div><div class="ttdoc">Read a line from a file.</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00808">file.c:808</a></div></div>
<div class="ttc" id="afile_8h_html_a9b519e795f098be88b93cd72c49a35ec"><div class="ttname"><a href="file_8h.html#a9b519e795f098be88b93cd72c49a35ec">mutt_file_fclose</a></div><div class="ttdeci">#define mutt_file_fclose(FP)</div><div class="ttdef"><b>Definition:</b> <a href="file_8h_source.html#l00138">file.h:138</a></div></div>
<div class="ttc" id="afile_8h_html_abb6d0dccab49bda4ed23948c7f5d0eaa"><div class="ttname"><a href="file_8h.html#abb6d0dccab49bda4ed23948c7f5d0eaa">MUTT_RL_NO_FLAGS</a></div><div class="ttdeci">#define MUTT_RL_NO_FLAGS</div><div class="ttdoc">No flags are set.</div><div class="ttdef"><b>Definition:</b> <a href="file_8h_source.html#l00040">file.h:40</a></div></div>
<div class="ttc" id="aglobals_8c_html_ae45378328cf8b407e63b6d53eaf61a01"><div class="ttname"><a href="globals_8c.html#ae45378328cf8b407e63b6d53eaf61a01">EnvList</a></div><div class="ttdeci">char ** EnvList</div><div class="ttdoc">Private copy of the environment variables.</div><div class="ttdef"><b>Definition:</b> <a href="globals_8c_source.html#l00075">globals.c:75</a></div></div>
<div class="ttc" id="agroup__logging__api_html_ga377d6ae04687e3cac3da87e05bc7de5d"><div class="ttname"><a href="group__logging__api.html#ga377d6ae04687e3cac3da87e05bc7de5d">mutt_warning</a></div><div class="ttdeci">#define mutt_warning(...)</div><div class="ttdef"><b>Definition:</b> <a href="logging2_8h_source.html#l00090">logging2.h:90</a></div></div>
<div class="ttc" id="agroup__logging__api_html_gafaa521ab22db877ccf1b87e679e1b43e"><div class="ttname"><a href="group__logging__api.html#gafaa521ab22db877ccf1b87e679e1b43e">mutt_perror</a></div><div class="ttdeci">#define mutt_perror(...)</div><div class="ttdef"><b>Definition:</b> <a href="logging2_8h_source.html#l00093">logging2.h:93</a></div></div>
<div class="ttc" id="amemory_8h_html_a25875003b43b81a4302256caa4a13599"><div class="ttname"><a href="memory_8h.html#a25875003b43b81a4302256caa4a13599">FREE</a></div><div class="ttdeci">#define FREE(x)</div><div class="ttdef"><b>Definition:</b> <a href="memory_8h_source.html#l00055">memory.h:55</a></div></div>
<div class="ttc" id="amutt_2filter_8c_html_a22c6912b837b1114c3276c990e73dca3"><div class="ttname"><a href="mutt_2filter_8c.html#a22c6912b837b1114c3276c990e73dca3">filter_wait</a></div><div class="ttdeci">int filter_wait(pid_t pid)</div><div class="ttdoc">Wait for the exit of a process and return its status.</div><div class="ttdef"><b>Definition:</b> <a href="mutt_2filter_8c_source.html#l00220">filter.c:220</a></div></div>
<div class="ttc" id="amutt_2filter_8c_html_ad1ec6916f8ee2520af1711891f6b5302"><div class="ttname"><a href="mutt_2filter_8c.html#ad1ec6916f8ee2520af1711891f6b5302">filter_create</a></div><div class="ttdeci">pid_t filter_create(const char *cmd, FILE **fp_in, FILE **fp_out, FILE **fp_err, char **envlist)</div><div class="ttdoc">Set up filter program.</div><div class="ttdef"><b>Definition:</b> <a href="mutt_2filter_8c_source.html#l00209">filter.c:209</a></div></div>
<div class="ttc" id="amutt_2lib_8h_html"><div class="ttname"><a href="mutt_2lib_8h.html">lib.h</a></div><div class="ttdoc">Convenience wrapper for the library headers.</div></div>
<div class="ttc" id="amutt_2message_8h_html_a479d658dfd60fe8d9709ec67a58b34ca"><div class="ttname"><a href="mutt_2message_8h.html#a479d658dfd60fe8d9709ec67a58b34ca">_</a></div><div class="ttdeci">#define _(a)</div><div class="ttdef"><b>Definition:</b> <a href="mutt_2message_8h_source.html#l00028">message.h:28</a></div></div>
<div class="ttc" id="amutt_2string_8c_html_a6b6a50296dd2a31863a43379ef4a343d"><div class="ttname"><a href="mutt_2string_8c.html#a6b6a50296dd2a31863a43379ef4a343d">mutt_str_equal</a></div><div class="ttdeci">bool mutt_str_equal(const char *a, const char *b)</div><div class="ttdoc">Compare two strings.</div><div class="ttdef"><b>Definition:</b> <a href="mutt_2string_8c_source.html#l00660">string.c:660</a></div></div>
<div class="ttc" id="amutt_2string_8c_html_ad20e00309de897a1e882fc7400335b83"><div class="ttname"><a href="mutt_2string_8c.html#ad20e00309de897a1e882fc7400335b83">mutt_str_copy</a></div><div class="ttdeci">size_t mutt_str_copy(char *dest, const char *src, size_t dsize)</div><div class="ttdoc">Copy a string into a buffer (guaranteeing NUL-termination)</div><div class="ttdef"><b>Definition:</b> <a href="mutt_2string_8c_source.html#l00581">string.c:581</a></div></div>
<div class="ttc" id="amutt__account_8h_html"><div class="ttname"><a href="mutt__account_8h.html">mutt_account.h</a></div><div class="ttdoc">ConnAccount object used by POP and IMAP.</div></div>
<div class="ttc" id="amutt__account_8h_html_a406c8474bdbb9cc2a25882558a367c2fab25cb9a5066a800a7312ea88c46638eb"><div class="ttname"><a href="mutt__account_8h.html#a406c8474bdbb9cc2a25882558a367c2fab25cb9a5066a800a7312ea88c46638eb">MUTT_ACCT_TYPE_NONE</a></div><div class="ttdeci">@ MUTT_ACCT_TYPE_NONE</div><div class="ttdoc">Account type is unknown.</div><div class="ttdef"><b>Definition:</b> <a href="mutt__account_8h_source.html#l00035">mutt_account.h:35</a></div></div>
<div class="ttc" id="amutt__account_8h_html_a406c8474bdbb9cc2a25882558a367c2fae964a93a5e000f65eb2957e89e3b4cd5"><div class="ttname"><a href="mutt__account_8h.html#a406c8474bdbb9cc2a25882558a367c2fae964a93a5e000f65eb2957e89e3b4cd5">MUTT_ACCT_TYPE_MAX</a></div><div class="ttdeci">@ MUTT_ACCT_TYPE_MAX</div><div class="ttdef"><b>Definition:</b> <a href="mutt__account_8h_source.html#l00041">mutt_account.h:40</a></div></div>
<div class="ttc" id="apool_8c_html_a41cba27c25d33cb6822789a2856093f2"><div class="ttname"><a href="pool_8c.html#a41cba27c25d33cb6822789a2856093f2">buf_pool_get</a></div><div class="ttdeci">struct Buffer * buf_pool_get(void)</div><div class="ttdoc">Get a Buffer from the pool.</div><div class="ttdef"><b>Definition:</b> <a href="pool_8c_source.html#l00082">pool.c:82</a></div></div>
<div class="ttc" id="apool_8c_html_a4cc6068279461cb8628219586dfa35a1"><div class="ttname"><a href="pool_8c.html#a4cc6068279461cb8628219586dfa35a1">buf_pool_release</a></div><div class="ttdeci">void buf_pool_release(struct Buffer **ptr)</div><div class="ttdoc">Return a Buffer to the pool.</div><div class="ttdef"><b>Definition:</b> <a href="pool_8c_source.html#l00096">pool.c:96</a></div></div>
<div class="ttc" id="aprex_8c_html_a204aa135b8b80f39730506b82385612d"><div class="ttname"><a href="prex_8c.html#a204aa135b8b80f39730506b82385612d">mutt_prex_capture</a></div><div class="ttdeci">regmatch_t * mutt_prex_capture(enum Prex which, const char *str)</div><div class="ttdoc">Match a precompiled regex against a string.</div><div class="ttdef"><b>Definition:</b> <a href="prex_8c_source.html#l00298">prex.c:298</a></div></div>
<div class="ttc" id="aprex_8h_html_a4bbe73518d5aa200e3129011cfe147ccae41eba830186d929c8d719ca6e587f52"><div class="ttname"><a href="prex_8h.html#a4bbe73518d5aa200e3129011cfe147ccae41eba830186d929c8d719ca6e587f52">PREX_ACCOUNT_CMD_MATCH_KEY</a></div><div class="ttdeci">@ PREX_ACCOUNT_CMD_MATCH_KEY</div><div class="ttdoc">[key]: value</div><div class="ttdef"><b>Definition:</b> <a href="prex_8h_source.html#l00225">prex.h:225</a></div></div>
<div class="ttc" id="aprex_8h_html_a4bbe73518d5aa200e3129011cfe147ccaec43ed86657231b42c369ae94c3871e6"><div class="ttname"><a href="prex_8h.html#a4bbe73518d5aa200e3129011cfe147ccaec43ed86657231b42c369ae94c3871e6">PREX_ACCOUNT_CMD_MATCH_VALUE</a></div><div class="ttdeci">@ PREX_ACCOUNT_CMD_MATCH_VALUE</div><div class="ttdoc">key: [value]</div><div class="ttdef"><b>Definition:</b> <a href="prex_8h_source.html#l00226">prex.h:226</a></div></div>
<div class="ttc" id="aprex_8h_html_a94868f2b3ee14f09fb7b9e236d752488a744884a9dd9de6c9365b3a2b427ee62f"><div class="ttname"><a href="prex_8h.html#a94868f2b3ee14f09fb7b9e236d752488a744884a9dd9de6c9365b3a2b427ee62f">PREX_ACCOUNT_CMD</a></div><div class="ttdeci">@ PREX_ACCOUNT_CMD</div><div class="ttdoc">key: value</div><div class="ttdef"><b>Definition:</b> <a href="prex_8h_source.html#l00042">prex.h:42</a></div></div>
<div class="ttc" id="aregex3_8h_html_a67ed3f37a5cbaab7f957bf5d842a9ff9"><div class="ttname"><a href="regex3_8h.html#a67ed3f37a5cbaab7f957bf5d842a9ff9">mutt_regmatch_len</a></div><div class="ttdeci">static size_t mutt_regmatch_len(const regmatch_t *match)</div><div class="ttdoc">Return the length of a match.</div><div class="ttdef"><b>Definition:</b> <a href="regex3_8h_source.html#l00077">regex3.h:77</a></div></div>
<div class="ttc" id="aregex3_8h_html_ace9a8836dfa6c039cb619573c60e253f"><div class="ttname"><a href="regex3_8h.html#ace9a8836dfa6c039cb619573c60e253f">mutt_regmatch_start</a></div><div class="ttdeci">static regoff_t mutt_regmatch_start(const regmatch_t *match)</div><div class="ttdoc">Return the start of a match.</div><div class="ttdef"><b>Definition:</b> <a href="regex3_8h_source.html#l00057">regex3.h:57</a></div></div>
<div class="ttc" id="asignal2_8h_html_a903f9b298be75defd8a3043ebf62bd99"><div class="ttname"><a href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a></div><div class="ttdeci">#define ASSERT(COND)</div><div class="ttdef"><b>Definition:</b> <a href="signal2_8h_source.html#l00058">signal2.h:58</a></div></div>
<div class="ttc" id="astructBuffer_html"><div class="ttname"><a href="structBuffer.html">Buffer</a></div><div class="ttdoc">String manipulation buffer.</div><div class="ttdef"><b>Definition:</b> <a href="buffer_8h_source.html#l00035">buffer.h:36</a></div></div>
<div class="ttc" id="astructConnAccount_html"><div class="ttname"><a href="structConnAccount.html">ConnAccount</a></div><div class="ttdoc">Login details for a remote server.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00052">connaccount.h:53</a></div></div>
<div class="ttc" id="astructConnAccount_html_a45280c267b6a42682643c0b3b135a75d"><div class="ttname"><a href="structConnAccount.html#a45280c267b6a42682643c0b3b135a75d">ConnAccount::login</a></div><div class="ttdeci">char login[128]</div><div class="ttdoc">Login name.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00055">connaccount.h:55</a></div></div>
<div class="ttc" id="astructConnAccount_html_a48b8084b2dd1ef3d4e051a01cf15c7ca"><div class="ttname"><a href="structConnAccount.html#a48b8084b2dd1ef3d4e051a01cf15c7ca">ConnAccount::user</a></div><div class="ttdeci">char user[128]</div><div class="ttdoc">Username.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00056">connaccount.h:56</a></div></div>
<div class="ttc" id="astructConnAccount_html_a842f1bf5afe0830ae96d80bdacead037"><div class="ttname"><a href="structConnAccount.html#a842f1bf5afe0830ae96d80bdacead037">ConnAccount::pass</a></div><div class="ttdeci">char pass[256]</div><div class="ttdoc">Password.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00057">connaccount.h:57</a></div></div>
<div class="ttc" id="astructConnAccount_html_aa440323ef3111e1faaf33f6a57103a3a"><div class="ttname"><a href="structConnAccount.html#aa440323ef3111e1faaf33f6a57103a3a">ConnAccount::host</a></div><div class="ttdeci">char host[128]</div><div class="ttdoc">Server to login to.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00054">connaccount.h:54</a></div></div>
<div class="ttc" id="astructConnAccount_html_aefc6c0b647de43e60472000102a0e208"><div class="ttname"><a href="structConnAccount.html#aefc6c0b647de43e60472000102a0e208">ConnAccount::type</a></div><div class="ttdeci">unsigned char type</div><div class="ttdoc">Connection type, e.g. MUTT_ACCT_TYPE_IMAP.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00059">connaccount.h:59</a></div></div>
<div class="ttc" id="astructConnAccount_html_af674ed2969fc29ff7d99f8b4cff6c92b"><div class="ttname"><a href="structConnAccount.html#af674ed2969fc29ff7d99f8b4cff6c92b">ConnAccount::flags</a></div><div class="ttdeci">MuttAccountFlags flags</div><div class="ttdoc">Which fields are initialised, e.g. MUTT_ACCT_USER.</div><div class="ttdef"><b>Definition:</b> <a href="connaccount_8h_source.html#l00060">connaccount.h:60</a></div></div>
<div class="ttc" id="astructNeoMutt_html"><div class="ttname"><a href="structNeoMutt.html">NeoMutt</a></div><div class="ttdoc">Container for Accounts, Notifications.</div><div class="ttdef"><b>Definition:</b> <a href="neomutt_8h_source.html#l00041">neomutt.h:42</a></div></div>
<div class="ttc" id="astructNeoMutt_html_af98065e32243ce9331f93b7f30247d47"><div class="ttname"><a href="structNeoMutt.html#af98065e32243ce9331f93b7f30247d47">NeoMutt::sub</a></div><div class="ttdeci">struct ConfigSubset * sub</div><div class="ttdoc">Inherited config items.</div><div class="ttdef"><b>Definition:</b> <a href="neomutt_8h_source.html#l00046">neomutt.h:46</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</body>
</html>