-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountcmd_8c.html
580 lines (560 loc) · 61.4 KB
/
accountcmd_8c.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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
<!-- 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 File Reference</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.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="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">accountcmd.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="structConnection.html">Connection</a> Credentials External <a class="el" href="structCommand.html">Command</a>.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include "config.h"</code><br />
<code>#include <stdio.h></code><br />
<code>#include <sys/types.h></code><br />
<code>#include "<a class="el" href="mutt_2lib_8h_source.html">mutt/lib.h</a>"</code><br />
<code>#include "<a class="el" href="config_2lib_8h_source.html">config/lib.h</a>"</code><br />
<code>#include "<a class="el" href="core_2lib_8h_source.html">core/lib.h</a>"</code><br />
<code>#include "<a class="el" href="accountcmd_8h_source.html">accountcmd.h</a>"</code><br />
<code>#include "<a class="el" href="connaccount_8h_source.html">connaccount.h</a>"</code><br />
<code>#include "globals.h"</code><br />
<code>#include "<a class="el" href="mutt__account_8h_source.html">mutt_account.h</a>"</code><br />
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Include dependency graph for accountcmd.c:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c__incl.svg" width="966" height="183"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
<p><a href="accountcmd_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6d191422dcbdf86d68a16a4ce79e4702"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="accountcmd_8c.html#a6d191422dcbdf86d68a16a4ce79e4702">make_cmd</a> (struct <a class="el" href="structBuffer.html">Buffer</a> *buf, const struct <a class="el" href="structConnAccount.html">ConnAccount</a> *cac, const char *cmd)</td></tr>
<tr class="memdesc:a6d191422dcbdf86d68a16a4ce79e4702"><td class="mdescLeft"> </td><td class="mdescRight">Build the command line for the external account command. <br /></td></tr>
<tr class="separator:a6d191422dcbdf86d68a16a4ce79e4702"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a58de8ac77a7405092bc0bfc2ad11959f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="accountcmd_8c.html#a58de8ac77a7405092bc0bfc2ad11959f">parse_one</a> (struct <a class="el" href="structConnAccount.html">ConnAccount</a> *cac, char *line)</td></tr>
<tr class="memdesc:a58de8ac77a7405092bc0bfc2ad11959f"><td class="mdescLeft"> </td><td class="mdescRight">Parse a single line of the response. <br /></td></tr>
<tr class="separator:a58de8ac77a7405092bc0bfc2ad11959f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a249c4d0378883430f8af9cb8a30d8cbe"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="accountcmd_8c.html#a249c4d0378883430f8af9cb8a30d8cbe">call_cmd</a> (struct <a class="el" href="structConnAccount.html">ConnAccount</a> *cac, const struct <a class="el" href="structBuffer.html">Buffer</a> *cmd)</td></tr>
<tr class="memdesc:a249c4d0378883430f8af9cb8a30d8cbe"><td class="mdescLeft"> </td><td class="mdescRight">Call the account command. <br /></td></tr>
<tr class="separator:a249c4d0378883430f8af9cb8a30d8cbe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abca7863c6e3eaeb09d4d822fcc7d337b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="accountcmd_8c.html#abca7863c6e3eaeb09d4d822fcc7d337b">mutt_account_call_external_cmd</a> (struct <a class="el" href="structConnAccount.html">ConnAccount</a> *cac)</td></tr>
<tr class="memdesc:abca7863c6e3eaeb09d4d822fcc7d337b"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve account credentials via an external command. <br /></td></tr>
<tr class="separator:abca7863c6e3eaeb09d4d822fcc7d337b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="structConnection.html">Connection</a> Credentials External <a class="el" href="structCommand.html">Command</a>. </p>
<dl class="section author"><dt>Authors</dt><dd><ul>
<li>Pietro Cerutti</li>
<li>Richard Russon</li>
</ul>
</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.</dd></dl>
<p>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.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>
<p class="definition">Definition in file <a class="el" href="accountcmd_8c_source.html">accountcmd.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a6d191422dcbdf86d68a16a4ce79e4702" name="a6d191422dcbdf86d68a16a4ce79e4702"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d191422dcbdf86d68a16a4ce79e4702">◆ </a></span>make_cmd()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void make_cmd </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="structBuffer.html">Buffer</a> * </td>
<td class="paramname"><em>buf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const struct <a class="el" href="structConnAccount.html">ConnAccount</a> * </td>
<td class="paramname"><em>cac</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>cmd</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Build the command line for the external account command. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">buf</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> to fill with a command line </td></tr>
<tr><td class="paramname">cac</td><td><a class="el" href="structConnAccount.html" title="Login details for a remote server.">ConnAccount</a> to read params from </td></tr>
<tr><td class="paramname">cmd</td><td><a class="el" href="structAccount.html" title="A group of associated Mailboxes.">Account</a> command from the user config </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="accountcmd_8c_source.html#l00047">47</a> of file <a class="el" href="accountcmd_8c_source.html">accountcmd.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 48</span>{</div>
<div class="line"><span class="lineno"> 49</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(buf && cac);</div>
<div class="line"><span class="lineno"> 50</span> </div>
<div class="line"><span class="lineno"> 51</span> <a class="code hl_function" href="buffer_8c.html#a9924e74ddcb5280ab380e4627d1fba99">buf_addstr</a>(buf, cmd);</div>
<div class="line"><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"><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"><span class="lineno"> 54</span> {</div>
<div class="line"><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"><span class="lineno"> 56</span> }</div>
<div class="line"><span class="lineno"> 57</span> </div>
<div class="line"><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"><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"><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"><span class="lineno"> 61</span> {</div>
<div class="line"><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"><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"><span class="lineno"> 64</span> }</div>
<div class="line"><span class="lineno"> 65</span>}</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="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_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="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="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="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_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><!-- fragment --><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-1-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_a6d191422dcbdf86d68a16a4ce79e4702_cgraph.svg" width="260" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_a6d191422dcbdf86d68a16a4ce79e4702_icgraph.svg" width="367" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a58de8ac77a7405092bc0bfc2ad11959f" name="a58de8ac77a7405092bc0bfc2ad11959f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58de8ac77a7405092bc0bfc2ad11959f">◆ </a></span>parse_one()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> parse_one </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="structConnAccount.html">ConnAccount</a> * </td>
<td class="paramname"><em>cac</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>line</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Parse a single line of the response. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cac</td><td><a class="el" href="structConnAccount.html" title="Login details for a remote server.">ConnAccount</a> to write to </td></tr>
<tr><td class="paramname">line</td><td><a class="el" href="structLine.html" title="A line of text in the pager.">Line</a> from the response </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">num</td><td><a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49" title="Flags, Which ConnAccount fields are initialised, e.g. MUTT_ACCT_PORT.">MuttAccountFlags</a> that matched </td></tr>
<tr><td class="paramname"><a class="el" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640" title="No flags are set.">MUTT_ACCT_NO_FLAGS</a></td><td>Failure </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="accountcmd_8c_source.html#l00074">74</a> of file <a class="el" href="accountcmd_8c_source.html">accountcmd.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 75</span>{</div>
<div class="line"><span class="lineno"> 76</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(cac && line);</div>
<div class="line"><span class="lineno"> 77</span> </div>
<div class="line"><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"><span class="lineno"> 79</span> <span class="keywordflow">if</span> (!match)</div>
<div class="line"><span class="lineno"> 80</span> {</div>
<div class="line"><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"><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"><span class="lineno"> 83</span> }</div>
<div class="line"><span class="lineno"> 84</span> </div>
<div class="line"><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"><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"><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"><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"><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"><span class="lineno"> 90</span> </div>
<div class="line"><span class="lineno"> 91</span> <span class="keywordflow">switch</span> (key[0])</div>
<div class="line"><span class="lineno"> 92</span> {</div>
<div class="line"><span class="lineno"> 93</span> <span class="keywordflow">case</span> <span class="charliteral">'l'</span>:</div>
<div class="line"><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"><span class="lineno"> 95</span> {</div>
<div class="line"><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"><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"><span class="lineno"> 98</span> }</div>
<div class="line"><span class="lineno"> 99</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 100</span> </div>
<div class="line"><span class="lineno"> 101</span> <span class="keywordflow">case</span> <span class="charliteral">'p'</span>:</div>
<div class="line"><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"><span class="lineno"> 103</span> {</div>
<div class="line"><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"><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"><span class="lineno"> 106</span> }</div>
<div class="line"><span class="lineno"> 107</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 108</span> </div>
<div class="line"><span class="lineno"> 109</span> <span class="keywordflow">case</span> <span class="charliteral">'u'</span>:</div>
<div class="line"><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"><span class="lineno"> 111</span> {</div>
<div class="line"><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"><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"><span class="lineno"> 114</span> }</div>
<div class="line"><span class="lineno"> 115</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 116</span> </div>
<div class="line"><span class="lineno"> 117</span> <span class="keywordflow">default</span>:</div>
<div class="line"><span class="lineno"> 118</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 119</span> }</div>
<div class="line"><span class="lineno"> 120</span> </div>
<div class="line"><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"><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"><span class="lineno"> 123</span>}</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_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_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="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="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="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="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_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><!-- fragment --><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_a58de8ac77a7405092bc0bfc2ad11959f_cgraph.svg" width="298" height="234"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_a58de8ac77a7405092bc0bfc2ad11959f_icgraph.svg" width="219" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a249c4d0378883430f8af9cb8a30d8cbe" name="a249c4d0378883430f8af9cb8a30d8cbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a249c4d0378883430f8af9cb8a30d8cbe">◆ </a></span>call_cmd()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> call_cmd </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="structConnAccount.html">ConnAccount</a> * </td>
<td class="paramname"><em>cac</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const struct <a class="el" href="structBuffer.html">Buffer</a> * </td>
<td class="paramname"><em>cmd</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Call the account command. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cac</td><td><a class="el" href="structConnAccount.html" title="Login details for a remote server.">ConnAccount</a> to write to </td></tr>
<tr><td class="paramname">cmd</td><td><a class="el" href="structCommand.html">Command</a> line to run </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">num</td><td><a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49" title="Flags, Which ConnAccount fields are initialised, e.g. MUTT_ACCT_PORT.">MuttAccountFlags</a> that matched </td></tr>
<tr><td class="paramname"><a class="el" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640" title="No flags are set.">MUTT_ACCT_NO_FLAGS</a></td><td>Failure </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="accountcmd_8c_source.html#l00132">132</a> of file <a class="el" href="accountcmd_8c_source.html">accountcmd.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 133</span>{</div>
<div class="line"><span class="lineno"> 134</span> <a class="code hl_define" href="signal2_8h.html#a903f9b298be75defd8a3043ebf62bd99">ASSERT</a>(cac && cmd);</div>
<div class="line"><span class="lineno"> 135</span> </div>
<div class="line"><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"><span class="lineno"> 137</span> </div>
<div class="line"><span class="lineno"> 138</span> FILE *fp = NULL;</div>
<div class="line"><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"><span class="lineno"> 140</span> <span class="keywordflow">if</span> (pid < 0)</div>
<div class="line"><span class="lineno"> 141</span> {</div>
<div class="line"><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"><span class="lineno"> 143</span> <span class="keywordflow">return</span> rc;</div>
<div class="line"><span class="lineno"> 144</span> }</div>
<div class="line"><span class="lineno"> 145</span> </div>
<div class="line"><span class="lineno"> 146</span> <span class="keywordtype">size_t</span> len = 0;</div>
<div class="line"><span class="lineno"> 147</span> <span class="keywordtype">char</span> *line = NULL;</div>
<div class="line"><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"><span class="lineno"> 149</span> {</div>
<div class="line"><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"><span class="lineno"> 151</span> <a class="code hl_define" href="memory_8h.html#a25875003b43b81a4302256caa4a13599">FREE</a>(&line);</div>
<div class="line"><span class="lineno"> 152</span> }</div>
<div class="line"><span class="lineno"> 153</span> </div>
<div class="line"><span class="lineno"> 154</span> <a class="code hl_define" href="file_8h.html#a9b519e795f098be88b93cd72c49a35ec">mutt_file_fclose</a>(&fp);</div>
<div class="line"><span class="lineno"> 155</span> <a class="code hl_function" href="mutt_2filter_8c.html#a22c6912b837b1114c3276c990e73dca3">filter_wait</a>(pid);</div>
<div class="line"><span class="lineno"> 156</span> <span class="keywordflow">return</span> rc;</div>
<div class="line"><span class="lineno"> 157</span>}</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="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="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="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="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><!-- fragment --><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_a249c4d0378883430f8af9cb8a30d8cbe_cgraph.svg" width="271" height="234"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-6-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_a249c4d0378883430f8af9cb8a30d8cbe_icgraph.svg" width="352" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="abca7863c6e3eaeb09d4d822fcc7d337b" name="abca7863c6e3eaeb09d4d822fcc7d337b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abca7863c6e3eaeb09d4d822fcc7d337b">◆ </a></span>mutt_account_call_external_cmd()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="connaccount_8h.html#a25025c559ef26ae8bbd9349cfea83d49">MuttAccountFlags</a> mutt_account_call_external_cmd </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="structConnAccount.html">ConnAccount</a> * </td>
<td class="paramname"><em>cac</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve account credentials via an external command. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cac</td><td><a class="el" href="structConnAccount.html" title="Login details for a remote server.">ConnAccount</a> to fill </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">num</td><td>A bitmask of MuttAccountFlags that were retrieved on success </td></tr>
<tr><td class="paramname"><a class="el" href="connaccount_8h.html#a3745080fbfe114df01308d1f00ce5640" title="No flags are set.">MUTT_ACCT_NO_FLAGS</a></td><td>Failure </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="accountcmd_8c_source.html#l00165">165</a> of file <a class="el" href="accountcmd_8c_source.html">accountcmd.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 166</span>{</div>
<div class="line"><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"><span class="lineno"> 168</span> {</div>
<div class="line"><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"><span class="lineno"> 170</span> }</div>
<div class="line"><span class="lineno"> 171</span> </div>
<div class="line"><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"><span class="lineno"> 173</span> <span class="keywordflow">if</span> (!c_account_command)</div>
<div class="line"><span class="lineno"> 174</span> {</div>
<div class="line"><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"><span class="lineno"> 176</span> }</div>
<div class="line"><span class="lineno"> 177</span> </div>
<div class="line"><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"><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"><span class="lineno"> 180</span> </div>
<div class="line"><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"><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"><span class="lineno"> 183</span> cac-><a class="code hl_variable" href="structConnAccount.html#af674ed2969fc29ff7d99f8b4cff6c92b">flags</a> |= rc;</div>
<div class="line"><span class="lineno"> 184</span> </div>
<div class="line"><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"><span class="lineno"> 186</span> <span class="keywordflow">return</span> rc;</div>
<div class="line"><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_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="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="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="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="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 id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-7-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_abca7863c6e3eaeb09d4d822fcc7d337b_cgraph.svg" width="406" height="234"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-8-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="accountcmd_8c_abca7863c6e3eaeb09d4d822fcc7d337b_icgraph.svg" width="440" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
</body>
</html>