-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
address_2address_8c.html
4443 lines (4231 loc) · 352 KB
/
address_2address_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
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- 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: address/address.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('address_2address_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="#define-members">Macros</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle"><div class="title">address.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Representation of an email address.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include "config.h"</code><br />
<code>#include <stdbool.h></code><br />
<code>#include <stdint.h></code><br />
<code>#include <stdio.h></code><br />
<code>#include <string.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="address_8h_source.html">address.h</a>"</code><br />
<code>#include "<a class="el" href="idna2_8h_source.html">idna2.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 address.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="address_2address_8c__incl.svg" width="520" height="256"><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="address_2address_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="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:abd3dab3876f09438368ece04594cd9f5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5">is_special</a>(ch, mask)    ((ch) >= 32 && (ch) < 96 && ((mask >> ((ch) - 32)) & 1))</td></tr>
<tr class="memdesc:abd3dab3876f09438368ece04594cd9f5"><td class="mdescLeft"> </td><td class="mdescRight">Is this character special to an email address? <br /></td></tr>
<tr class="separator:abd3dab3876f09438368ece04594cd9f5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9b0a500482eea16ed97e57a9ec4369b5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a9b0a500482eea16ed97e57a9ec4369b5">ADDRESS_SPECIAL_MASK</a>   0x380000015c005304ULL</td></tr>
<tr class="memdesc:a9b0a500482eea16ed97e57a9ec4369b5"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a>, for <a class="el" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5" title="Is this character special to an email address?">is_special()</a> <br /></td></tr>
<tr class="separator:a9b0a500482eea16ed97e57a9ec4369b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a949db8f1f314276f025014159b2112ef"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a949db8f1f314276f025014159b2112ef">USER_SPECIAL_MASK</a>   0x280000015c001200ULL</td></tr>
<tr class="memdesc:a949db8f1f314276f025014159b2112ef"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a> except " ( . <br /></td></tr>
<tr class="separator:a949db8f1f314276f025014159b2112ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aafa805d81c9081201be968406f9354cf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#aafa805d81c9081201be968406f9354cf">DOMAIN_SPECIAL_MASK</a>   0x000000015c001204ULL</td></tr>
<tr class="memdesc:aafa805d81c9081201be968406f9354cf"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a> except ( . <br /></td></tr>
<tr class="separator:aafa805d81c9081201be968406f9354cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9548377a4fe15c7e7b00b0272f38f2d8"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a9548377a4fe15c7e7b00b0272f38f2d8">ROUTE_SPECIAL_MASK</a>   0x000000015c000204ULL</td></tr>
<tr class="memdesc:a9548377a4fe15c7e7b00b0272f38f2d8"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a> except ( , . <br /></td></tr>
<tr class="separator:a9548377a4fe15c7e7b00b0272f38f2d8"><td class="memSeparator" colspan="2"> </td></tr>
</table><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:aaa1646f5189d7c48a6e822def364fe3b"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#aaa1646f5189d7c48a6e822def364fe3b">parse_comment</a> (const char *s, char *comment, size_t *commentlen, size_t commentmax)</td></tr>
<tr class="memdesc:aaa1646f5189d7c48a6e822def364fe3b"><td class="mdescLeft"> </td><td class="mdescRight">Extract a comment (parenthesised string) <br /></td></tr>
<tr class="separator:aaa1646f5189d7c48a6e822def364fe3b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ada2e412cecef51c99eb370ee6d46167a"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#ada2e412cecef51c99eb370ee6d46167a">parse_quote</a> (const char *s, char *token, size_t *tokenlen, size_t tokenmax)</td></tr>
<tr class="memdesc:ada2e412cecef51c99eb370ee6d46167a"><td class="mdescLeft"> </td><td class="mdescRight">Extract a quoted string. <br /></td></tr>
<tr class="separator:ada2e412cecef51c99eb370ee6d46167a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3e3dc0757e4c8bafb2cc9adef58c57f9"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a3e3dc0757e4c8bafb2cc9adef58c57f9">next_token</a> (const char *s, char *token, size_t *tokenlen, size_t tokenmax)</td></tr>
<tr class="memdesc:a3e3dc0757e4c8bafb2cc9adef58c57f9"><td class="mdescLeft"> </td><td class="mdescRight">Find the next word, skipping quoted and parenthesised text. <br /></td></tr>
<tr class="separator:a3e3dc0757e4c8bafb2cc9adef58c57f9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a37f5791b4426dcfbba05843219c6d5a8"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a37f5791b4426dcfbba05843219c6d5a8">parse_mailboxdomain</a> (const char *s, uint64_t special_mask, char *mailbox, size_t *mailboxlen, size_t mailboxmax, char *comment, size_t *commentlen, size_t commentmax)</td></tr>
<tr class="memdesc:a37f5791b4426dcfbba05843219c6d5a8"><td class="mdescLeft"> </td><td class="mdescRight">Extract part of an email address (and a comment) <br /></td></tr>
<tr class="separator:a37f5791b4426dcfbba05843219c6d5a8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2c9cf36d4ced43888bfa5f2b6593e7be"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a2c9cf36d4ced43888bfa5f2b6593e7be">parse_address</a> (const char *s, char *token, size_t *tokenlen, size_t tokenmax, char *comment, size_t *commentlen, size_t commentmax, struct <a class="el" href="structAddress.html">Address</a> *addr)</td></tr>
<tr class="memdesc:a2c9cf36d4ced43888bfa5f2b6593e7be"><td class="mdescLeft"> </td><td class="mdescRight">Extract an email address. <br /></td></tr>
<tr class="separator:a2c9cf36d4ced43888bfa5f2b6593e7be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3532d3aaeffc25226ab10b873ea47487"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a3532d3aaeffc25226ab10b873ea47487">parse_route_addr</a> (const char *s, char *comment, size_t *commentlen, size_t commentmax, struct <a class="el" href="structAddress.html">Address</a> *addr)</td></tr>
<tr class="memdesc:a3532d3aaeffc25226ab10b873ea47487"><td class="mdescLeft"> </td><td class="mdescRight">Parse an email addresses. <br /></td></tr>
<tr class="separator:a3532d3aaeffc25226ab10b873ea47487"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a13f6a8b0eb6004af26faf1a5f1f2769c"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a13f6a8b0eb6004af26faf1a5f1f2769c">parse_addr_spec</a> (const char *s, char *comment, size_t *commentlen, size_t commentmax, struct <a class="el" href="structAddress.html">Address</a> *addr)</td></tr>
<tr class="memdesc:a13f6a8b0eb6004af26faf1a5f1f2769c"><td class="mdescLeft"> </td><td class="mdescRight">Parse an email address. <br /></td></tr>
<tr class="separator:a13f6a8b0eb6004af26faf1a5f1f2769c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0edcb239a41a0bd08370e3bdc0218b63"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a0edcb239a41a0bd08370e3bdc0218b63">add_addrspec</a> (struct AddressList *al, const char *phrase, char *comment, size_t *commentlen, size_t commentmax)</td></tr>
<tr class="memdesc:a0edcb239a41a0bd08370e3bdc0218b63"><td class="mdescLeft"> </td><td class="mdescRight">Parse an email address and add an <a class="el" href="structAddress.html" title="An email address.">Address</a> to a list. <br /></td></tr>
<tr class="separator:a0edcb239a41a0bd08370e3bdc0218b63"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a687c9a764007297f7f9bf8b5b08398e9"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structAddress.html">Address</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a687c9a764007297f7f9bf8b5b08398e9">mutt_addr_new</a> (void)</td></tr>
<tr class="memdesc:a687c9a764007297f7f9bf8b5b08398e9"><td class="mdescLeft"> </td><td class="mdescRight">Create a new <a class="el" href="structAddress.html" title="An email address.">Address</a>. <br /></td></tr>
<tr class="separator:a687c9a764007297f7f9bf8b5b08398e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0d8aef5de5f361ae50ad1c7d567fe46a"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structAddress.html">Address</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a0d8aef5de5f361ae50ad1c7d567fe46a">mutt_addr_create</a> (const char *personal, const char *mailbox)</td></tr>
<tr class="memdesc:a0d8aef5de5f361ae50ad1c7d567fe46a"><td class="mdescLeft"> </td><td class="mdescRight">Create and populate a new <a class="el" href="structAddress.html" title="An email address.">Address</a>. <br /></td></tr>
<tr class="separator:a0d8aef5de5f361ae50ad1c7d567fe46a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac1d39161f1f62fbe4a624d6e49221bf6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#ac1d39161f1f62fbe4a624d6e49221bf6">mutt_addrlist_remove</a> (struct AddressList *al, const char *mailbox)</td></tr>
<tr class="memdesc:ac1d39161f1f62fbe4a624d6e49221bf6"><td class="mdescLeft"> </td><td class="mdescRight">Remove an <a class="el" href="structAddress.html" title="An email address.">Address</a> from a list. <br /></td></tr>
<tr class="separator:ac1d39161f1f62fbe4a624d6e49221bf6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a40eda06e6e64ff9d9f1e7d3b69e7c846"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a40eda06e6e64ff9d9f1e7d3b69e7c846">mutt_addr_free</a> (struct <a class="el" href="structAddress.html">Address</a> **ptr)</td></tr>
<tr class="memdesc:a40eda06e6e64ff9d9f1e7d3b69e7c846"><td class="mdescLeft"> </td><td class="mdescRight">Free a single <a class="el" href="structAddress.html" title="An email address.">Address</a>. <br /></td></tr>
<tr class="separator:a40eda06e6e64ff9d9f1e7d3b69e7c846"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9bb4abe92405bac67f03e36936a29b6e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a9bb4abe92405bac67f03e36936a29b6e">mutt_addrlist_parse</a> (struct AddressList *al, const char *s)</td></tr>
<tr class="memdesc:a9bb4abe92405bac67f03e36936a29b6e"><td class="mdescLeft"> </td><td class="mdescRight">Parse a list of email addresses. <br /></td></tr>
<tr class="separator:a9bb4abe92405bac67f03e36936a29b6e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ac391285f1af69a114544e6575b597a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a8ac391285f1af69a114544e6575b597a">mutt_addrlist_parse2</a> (struct AddressList *al, const char *s)</td></tr>
<tr class="memdesc:a8ac391285f1af69a114544e6575b597a"><td class="mdescLeft"> </td><td class="mdescRight">Parse a list of email addresses. <br /></td></tr>
<tr class="separator:a8ac391285f1af69a114544e6575b597a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1de5e467c74e205ff465fd601c275b88"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a1de5e467c74e205ff465fd601c275b88">mutt_addrlist_qualify</a> (struct AddressList *al, const char *host)</td></tr>
<tr class="memdesc:a1de5e467c74e205ff465fd601c275b88"><td class="mdescLeft"> </td><td class="mdescRight">Expand local names in an <a class="el" href="structAddress.html" title="An email address.">Address</a> list using a hostname. <br /></td></tr>
<tr class="separator:a1de5e467c74e205ff465fd601c275b88"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5fc8a0b1e781c6e88f43f86d0ede02d2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a5fc8a0b1e781c6e88f43f86d0ede02d2">mutt_addr_cat</a> (char *buf, size_t buflen, const char *value, const char *specials)</td></tr>
<tr class="memdesc:a5fc8a0b1e781c6e88f43f86d0ede02d2"><td class="mdescLeft"> </td><td class="mdescRight">Copy a string and wrap it in quotes if it contains special characters. <br /></td></tr>
<tr class="separator:a5fc8a0b1e781c6e88f43f86d0ede02d2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8f8e4be1b71a169870ac10be5426af8d"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structAddress.html">Address</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a8f8e4be1b71a169870ac10be5426af8d">mutt_addr_copy</a> (const struct <a class="el" href="structAddress.html">Address</a> *addr)</td></tr>
<tr class="memdesc:a8f8e4be1b71a169870ac10be5426af8d"><td class="mdescLeft"> </td><td class="mdescRight">Copy the real address. <br /></td></tr>
<tr class="separator:a8f8e4be1b71a169870ac10be5426af8d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a16764dc80c9b3f6ad2897c8b7e59bd10"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a16764dc80c9b3f6ad2897c8b7e59bd10">mutt_addrlist_copy</a> (struct AddressList *dst, const struct AddressList *src, bool prune)</td></tr>
<tr class="memdesc:a16764dc80c9b3f6ad2897c8b7e59bd10"><td class="mdescLeft"> </td><td class="mdescRight">Copy a list of addresses into another list. <br /></td></tr>
<tr class="separator:a16764dc80c9b3f6ad2897c8b7e59bd10"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a434492a707aadd897d74bdf7b493bbc2"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a434492a707aadd897d74bdf7b493bbc2">mutt_addr_valid_msgid</a> (const char *msgid)</td></tr>
<tr class="memdesc:a434492a707aadd897d74bdf7b493bbc2"><td class="mdescLeft"> </td><td class="mdescRight">Is this a valid <a class="el" href="structMessage.html" title="A local copy of an email.">Message</a> ID? <br /></td></tr>
<tr class="separator:a434492a707aadd897d74bdf7b493bbc2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a345cbe54f86e6e17da0789226c975056"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a345cbe54f86e6e17da0789226c975056">mutt_addrlist_equal</a> (const struct AddressList *ala, const struct AddressList *alb)</td></tr>
<tr class="memdesc:a345cbe54f86e6e17da0789226c975056"><td class="mdescLeft"> </td><td class="mdescRight">Compare two <a class="el" href="structAddress.html" title="An email address.">Address</a> lists for equality. <br /></td></tr>
<tr class="separator:a345cbe54f86e6e17da0789226c975056"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9a6c4ff878258def25f155501ddb3e7a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a9a6c4ff878258def25f155501ddb3e7a">mutt_addrlist_count_recips</a> (const struct AddressList *al)</td></tr>
<tr class="memdesc:a9a6c4ff878258def25f155501ddb3e7a"><td class="mdescLeft"> </td><td class="mdescRight">Count the number of Addresses with valid recipients. <br /></td></tr>
<tr class="separator:a9a6c4ff878258def25f155501ddb3e7a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a60b3ced56e9f5be39c391250d951bf72"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a60b3ced56e9f5be39c391250d951bf72">mutt_addr_cmp</a> (const struct <a class="el" href="structAddress.html">Address</a> *a, const struct <a class="el" href="structAddress.html">Address</a> *b)</td></tr>
<tr class="memdesc:a60b3ced56e9f5be39c391250d951bf72"><td class="mdescLeft"> </td><td class="mdescRight">Compare two e-mail addresses. <br /></td></tr>
<tr class="separator:a60b3ced56e9f5be39c391250d951bf72"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad602a3cf6ff5c7fb79d21627553a586d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#ad602a3cf6ff5c7fb79d21627553a586d">mutt_addrlist_search</a> (const struct AddressList *haystack, const struct <a class="el" href="structAddress.html">Address</a> *needle)</td></tr>
<tr class="memdesc:ad602a3cf6ff5c7fb79d21627553a586d"><td class="mdescLeft"> </td><td class="mdescRight">Search for an e-mail address in a list. <br /></td></tr>
<tr class="separator:ad602a3cf6ff5c7fb79d21627553a586d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a063ba7f9bacb413f113386620fc75ca7"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a063ba7f9bacb413f113386620fc75ca7">addr_is_intl</a> (const struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:a063ba7f9bacb413f113386620fc75ca7"><td class="mdescLeft"> </td><td class="mdescRight">Does the <a class="el" href="structAddress.html" title="An email address.">Address</a> have IDN components. <br /></td></tr>
<tr class="separator:a063ba7f9bacb413f113386620fc75ca7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1f6fcdd22fe42071c49ff7ca0d7beb91"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a1f6fcdd22fe42071c49ff7ca0d7beb91">addr_is_local</a> (const struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:a1f6fcdd22fe42071c49ff7ca0d7beb91"><td class="mdescLeft"> </td><td class="mdescRight">Does the <a class="el" href="structAddress.html" title="An email address.">Address</a> have NO IDN components. <br /></td></tr>
<tr class="separator:a1f6fcdd22fe42071c49ff7ca0d7beb91"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1e5796ca41b0c0693168aa4d496951db"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a1e5796ca41b0c0693168aa4d496951db">addr_mbox_to_udomain</a> (const char *mbox, char **user, char **domain)</td></tr>
<tr class="memdesc:a1e5796ca41b0c0693168aa4d496951db"><td class="mdescLeft"> </td><td class="mdescRight">Split a mailbox name into user and domain. <br /></td></tr>
<tr class="separator:a1e5796ca41b0c0693168aa4d496951db"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4924ea51b16e5d7d3156954477c647c4"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a4924ea51b16e5d7d3156954477c647c4">addr_set_intl</a> (struct <a class="el" href="structAddress.html">Address</a> *a, char *intl_mailbox)</td></tr>
<tr class="memdesc:a4924ea51b16e5d7d3156954477c647c4"><td class="mdescLeft"> </td><td class="mdescRight">Mark an <a class="el" href="structAddress.html" title="An email address.">Address</a> as having IDN components. <br /></td></tr>
<tr class="separator:a4924ea51b16e5d7d3156954477c647c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a55fa120cad4700e7401e0eccc2bebeb5"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a55fa120cad4700e7401e0eccc2bebeb5">addr_set_local</a> (struct <a class="el" href="structAddress.html">Address</a> *a, char *local_mailbox)</td></tr>
<tr class="memdesc:a55fa120cad4700e7401e0eccc2bebeb5"><td class="mdescLeft"> </td><td class="mdescRight">Mark an <a class="el" href="structAddress.html" title="An email address.">Address</a> as having NO IDN components. <br /></td></tr>
<tr class="separator:a55fa120cad4700e7401e0eccc2bebeb5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae9a102ec766bb41f3e4d54979bf662ed"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#ae9a102ec766bb41f3e4d54979bf662ed">mutt_addr_for_display</a> (const struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:ae9a102ec766bb41f3e4d54979bf662ed"><td class="mdescLeft"> </td><td class="mdescRight">Convert an <a class="el" href="structAddress.html" title="An email address.">Address</a> for display purposes. <br /></td></tr>
<tr class="separator:ae9a102ec766bb41f3e4d54979bf662ed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4e3a6705fd8f479444e5202a593587c3"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a4e3a6705fd8f479444e5202a593587c3">mutt_addr_write</a> (struct <a class="el" href="structBuffer.html">Buffer</a> *buf, struct <a class="el" href="structAddress.html">Address</a> *addr, bool display)</td></tr>
<tr class="memdesc:a4e3a6705fd8f479444e5202a593587c3"><td class="mdescLeft"> </td><td class="mdescRight">Write a single <a class="el" href="structAddress.html" title="An email address.">Address</a> to a buffer. <br /></td></tr>
<tr class="separator:a4e3a6705fd8f479444e5202a593587c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ce056b035774b9cf7ed2c031ca530ab"><td class="memItemLeft" align="right" valign="top">static size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a6ce056b035774b9cf7ed2c031ca530ab">addrlist_write</a> (const struct AddressList *al, struct <a class="el" href="structBuffer.html">Buffer</a> *buf, bool display, const char *header, int cols)</td></tr>
<tr class="memdesc:a6ce056b035774b9cf7ed2c031ca530ab"><td class="mdescLeft"> </td><td class="mdescRight">Write an AddressList to a buffer, optionally perform line wrapping and display conversion. <br /></td></tr>
<tr class="separator:a6ce056b035774b9cf7ed2c031ca530ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68510854c0e81cabea92de39e93ef0e7"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a68510854c0e81cabea92de39e93ef0e7">mutt_addrlist_write_wrap</a> (const struct AddressList *al, struct <a class="el" href="structBuffer.html">Buffer</a> *buf, const char *header)</td></tr>
<tr class="memdesc:a68510854c0e81cabea92de39e93ef0e7"><td class="mdescLeft"> </td><td class="mdescRight">Write an AddressList to a buffer, perform line wrapping. <br /></td></tr>
<tr class="separator:a68510854c0e81cabea92de39e93ef0e7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8143574988507c4f906548a2e88166d5"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a8143574988507c4f906548a2e88166d5">mutt_addrlist_write</a> (const struct AddressList *al, struct <a class="el" href="structBuffer.html">Buffer</a> *buf, bool display)</td></tr>
<tr class="memdesc:a8143574988507c4f906548a2e88166d5"><td class="mdescLeft"> </td><td class="mdescRight">Write an <a class="el" href="structAddress.html" title="An email address.">Address</a> to a buffer. <br /></td></tr>
<tr class="separator:a8143574988507c4f906548a2e88166d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f26185f6b123539b752d5be774606ea"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a3f26185f6b123539b752d5be774606ea">mutt_addrlist_write_list</a> (const struct AddressList *al, struct ListHead *list)</td></tr>
<tr class="memdesc:a3f26185f6b123539b752d5be774606ea"><td class="mdescLeft"> </td><td class="mdescRight">Write Addresses to a List. <br /></td></tr>
<tr class="separator:a3f26185f6b123539b752d5be774606ea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa84774e77c78da0fa229fe07beb3411"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#aaa84774e77c78da0fa229fe07beb3411">mutt_addrlist_write_file</a> (const struct AddressList *al, FILE *fp, const char *header)</td></tr>
<tr class="memdesc:aaa84774e77c78da0fa229fe07beb3411"><td class="mdescLeft"> </td><td class="mdescRight">Wrapper for mutt_write_address() <br /></td></tr>
<tr class="separator:aaa84774e77c78da0fa229fe07beb3411"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abfd85ca14a8e67427bbc809212ae7fd4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#abfd85ca14a8e67427bbc809212ae7fd4">mutt_addr_to_intl</a> (struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:abfd85ca14a8e67427bbc809212ae7fd4"><td class="mdescLeft"> </td><td class="mdescRight">Convert an <a class="el" href="structAddress.html" title="An email address.">Address</a> to Punycode. <br /></td></tr>
<tr class="separator:abfd85ca14a8e67427bbc809212ae7fd4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe8afdaeb5bdca19a1867823d73a1ec4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#abe8afdaeb5bdca19a1867823d73a1ec4">mutt_addrlist_to_intl</a> (struct AddressList *al, char **err)</td></tr>
<tr class="memdesc:abe8afdaeb5bdca19a1867823d73a1ec4"><td class="mdescLeft"> </td><td class="mdescRight">Convert an <a class="el" href="structAddress.html" title="An email address.">Address</a> list to Punycode. <br /></td></tr>
<tr class="separator:abe8afdaeb5bdca19a1867823d73a1ec4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95bcf9ec8be0b69b33fadde85800b559"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a95bcf9ec8be0b69b33fadde85800b559">mutt_addr_to_local</a> (struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:a95bcf9ec8be0b69b33fadde85800b559"><td class="mdescLeft"> </td><td class="mdescRight">Convert an <a class="el" href="structAddress.html" title="An email address.">Address</a> from Punycode. <br /></td></tr>
<tr class="separator:a95bcf9ec8be0b69b33fadde85800b559"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7b1224fc8c5dde7114228cfc8ffbbc23"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a7b1224fc8c5dde7114228cfc8ffbbc23">mutt_addrlist_to_local</a> (struct AddressList *al)</td></tr>
<tr class="memdesc:a7b1224fc8c5dde7114228cfc8ffbbc23"><td class="mdescLeft"> </td><td class="mdescRight">Convert an <a class="el" href="structAddress.html" title="An email address.">Address</a> list from Punycode. <br /></td></tr>
<tr class="separator:a7b1224fc8c5dde7114228cfc8ffbbc23"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aee5d40d84136d3a7adba727e2908ad66"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#aee5d40d84136d3a7adba727e2908ad66">mutt_addrlist_dedupe</a> (struct AddressList *al)</td></tr>
<tr class="memdesc:aee5d40d84136d3a7adba727e2908ad66"><td class="mdescLeft"> </td><td class="mdescRight">Remove duplicate addresses. <br /></td></tr>
<tr class="separator:aee5d40d84136d3a7adba727e2908ad66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a968e9f56e7408d5e0fa1d1135bdee017"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a968e9f56e7408d5e0fa1d1135bdee017">mutt_addrlist_remove_xrefs</a> (const struct AddressList *a, struct AddressList *b)</td></tr>
<tr class="memdesc:a968e9f56e7408d5e0fa1d1135bdee017"><td class="mdescLeft"> </td><td class="mdescRight">Remove cross-references. <br /></td></tr>
<tr class="separator:a968e9f56e7408d5e0fa1d1135bdee017"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a396bcf6adfff6663096fa6ae99c31c9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a396bcf6adfff6663096fa6ae99c31c9a">mutt_addrlist_clear</a> (struct AddressList *al)</td></tr>
<tr class="memdesc:a396bcf6adfff6663096fa6ae99c31c9a"><td class="mdescLeft"> </td><td class="mdescRight">Unlink and free all <a class="el" href="structAddress.html" title="An email address.">Address</a> in an AddressList. <br /></td></tr>
<tr class="separator:a396bcf6adfff6663096fa6ae99c31c9a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68385b174baad74a9aecf3dec61432a0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a68385b174baad74a9aecf3dec61432a0">mutt_addrlist_append</a> (struct AddressList *al, struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:a68385b174baad74a9aecf3dec61432a0"><td class="mdescLeft"> </td><td class="mdescRight">Append an <a class="el" href="structAddress.html" title="An email address.">Address</a> to an AddressList. <br /></td></tr>
<tr class="separator:a68385b174baad74a9aecf3dec61432a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa68a29c1feb5938596aa589cf2d6a1af"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#aa68a29c1feb5938596aa589cf2d6a1af">mutt_addrlist_prepend</a> (struct AddressList *al, struct <a class="el" href="structAddress.html">Address</a> *a)</td></tr>
<tr class="memdesc:aa68a29c1feb5938596aa589cf2d6a1af"><td class="mdescLeft"> </td><td class="mdescRight">Prepend an <a class="el" href="structAddress.html" title="An email address.">Address</a> to an AddressList. <br /></td></tr>
<tr class="separator:aa68a29c1feb5938596aa589cf2d6a1af"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87d3aafedba94d99128c14ca87d7d6ef"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a87d3aafedba94d99128c14ca87d7d6ef">mutt_addr_uses_unicode</a> (const char *str)</td></tr>
<tr class="memdesc:a87d3aafedba94d99128c14ca87d7d6ef"><td class="mdescLeft"> </td><td class="mdescRight">Does this address use Unicode character. <br /></td></tr>
<tr class="separator:a87d3aafedba94d99128c14ca87d7d6ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b9dcfae60924e14f0b55a33dcbdec33"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a5b9dcfae60924e14f0b55a33dcbdec33">mutt_addrlist_uses_unicode</a> (const struct AddressList *al)</td></tr>
<tr class="memdesc:a5b9dcfae60924e14f0b55a33dcbdec33"><td class="mdescLeft"> </td><td class="mdescRight">Do any of a list of addresses use Unicode characters. <br /></td></tr>
<tr class="separator:a5b9dcfae60924e14f0b55a33dcbdec33"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a930029e50328c7a0b48e302ef87fe023"><td class="memItemLeft" align="right" valign="top">const char </td><td class="memItemRight" valign="bottom"><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023">AddressSpecials</a> [] = "\"(),.:;<>@[\\]"</td></tr>
<tr class="memdesc:a930029e50328c7a0b48e302ef87fe023"><td class="mdescLeft"> </td><td class="mdescRight">Characters with special meaning for email addresses. <br /></td></tr>
<tr class="separator:a930029e50328c7a0b48e302ef87fe023"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Representation of an email address. </p>
<dl class="section author"><dt>Authors</dt><dd><ul>
<li>Richard Russon</li>
<li>Pietro Cerutti</li>
<li>Simon Symeonidis</li>
<li>Anna Figueiredo Gomes</li>
<li>Steinar H Gunderson</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="address_2address_8c_source.html">address.c</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="abd3dab3876f09438368ece04594cd9f5" name="abd3dab3876f09438368ece04594cd9f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd3dab3876f09438368ece04594cd9f5">◆ </a></span>is_special</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define is_special</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">ch, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">mask </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>    ((ch) >= 32 && (ch) < 96 && ((mask >> ((ch) - 32)) & 1))</td>
</tr>
</table>
</div><div class="memdoc">
<p>Is this character special to an email address? </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ch</td><td>Character </td></tr>
<tr><td class="paramname">mask</td><td>Bitmask of characters 32-95 that are special (others are always zero)</td></tr>
</table>
</dd>
</dl>
<p>Character bitmasks</p>
<p>The four bitmasks below are used for matching characters at speed, instead of using <code>strchr(3)</code>.</p>
<p>To generate them, consider the value of each character, e.g. <code>,</code> == 44. Now set the 44th bit of a <code>unsigned long long</code> (presumed to be 64 bits), i.e., 1ULL << 44. Repeat for each character.</p>
<p>To test a character, say <code>(</code> (40), we check if the 40th bit is set in the mask.</p>
<p>The characters we want to test, AddressSpecials, range in value between 34 and 93 (inclusive). This is too large for an integer type, so we subtract 32 to bring the values down to 2 to 61. </p>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00067">67</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
</div>
</div>
<a id="a9b0a500482eea16ed97e57a9ec4369b5" name="a9b0a500482eea16ed97e57a9ec4369b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b0a500482eea16ed97e57a9ec4369b5">◆ </a></span>ADDRESS_SPECIAL_MASK</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define ADDRESS_SPECIAL_MASK   0x380000015c005304ULL</td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a>, for <a class="el" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5" title="Is this character special to an email address?">is_special()</a> </p>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00071">71</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
</div>
</div>
<a id="a949db8f1f314276f025014159b2112ef" name="a949db8f1f314276f025014159b2112ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a949db8f1f314276f025014159b2112ef">◆ </a></span>USER_SPECIAL_MASK</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define USER_SPECIAL_MASK   0x280000015c001200ULL</td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a> except " ( . </p>
<p>\ </p>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00074">74</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
</div>
</div>
<a id="aafa805d81c9081201be968406f9354cf" name="aafa805d81c9081201be968406f9354cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafa805d81c9081201be968406f9354cf">◆ </a></span>DOMAIN_SPECIAL_MASK</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DOMAIN_SPECIAL_MASK   0x000000015c001204ULL</td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a> except ( . </p>
<p>[ \ ] </p>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00077">77</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
</div>
</div>
<a id="a9548377a4fe15c7e7b00b0272f38f2d8" name="a9548377a4fe15c7e7b00b0272f38f2d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9548377a4fe15c7e7b00b0272f38f2d8">◆ </a></span>ROUTE_SPECIAL_MASK</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define ROUTE_SPECIAL_MASK   0x000000015c000204ULL</td>
</tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="address_2address_8c.html#a930029e50328c7a0b48e302ef87fe023" title="Characters with special meaning for email addresses.">AddressSpecials</a> except ( , . </p>
<p>[ \ ] </p>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00080">80</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="aaa1646f5189d7c48a6e822def364fe3b" name="aaa1646f5189d7c48a6e822def364fe3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa1646f5189d7c48a6e822def364fe3b">◆ </a></span>parse_comment()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static const char * parse_comment </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>comment</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>commentlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>commentmax</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>Extract a comment (parenthesised string) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>String, just after the opening parenthesis </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">comment</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> to store parenthesised string </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">commentlen</td><td>Length of parenthesised string </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">commentmax</td><td>Length of buffer </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">ptr</td><td>First character after parenthesised string </td></tr>
<tr><td class="paramname">NULL</td><td>Error </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00091">91</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 92</span>{</div>
<div class="line"><span class="lineno"> 93</span> <span class="keywordtype">int</span> level = 1;</div>
<div class="line"><span class="lineno"> 94</span> </div>
<div class="line"><span class="lineno"> 95</span> <span class="keywordflow">while</span> (*s && level)</div>
<div class="line"><span class="lineno"> 96</span> {</div>
<div class="line"><span class="lineno"> 97</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'('</span>)</div>
<div class="line"><span class="lineno"> 98</span> {</div>
<div class="line"><span class="lineno"> 99</span> level++;</div>
<div class="line"><span class="lineno"> 100</span> }</div>
<div class="line"><span class="lineno"> 101</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">')'</span>)</div>
<div class="line"><span class="lineno"> 102</span> {</div>
<div class="line"><span class="lineno"> 103</span> <span class="keywordflow">if</span> (--level == 0)</div>
<div class="line"><span class="lineno"> 104</span> {</div>
<div class="line"><span class="lineno"> 105</span> s++;</div>
<div class="line"><span class="lineno"> 106</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 107</span> }</div>
<div class="line"><span class="lineno"> 108</span> }</div>
<div class="line"><span class="lineno"> 109</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'\\'</span>)</div>
<div class="line"><span class="lineno"> 110</span> {</div>
<div class="line"><span class="lineno"> 111</span> <span class="keywordflow">if</span> (!*++s)</div>
<div class="line"><span class="lineno"> 112</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 113</span> }</div>
<div class="line"><span class="lineno"> 114</span> <span class="keywordflow">if</span> (*commentlen < commentmax)</div>
<div class="line"><span class="lineno"> 115</span> comment[(*commentlen)++] = *s;</div>
<div class="line"><span class="lineno"> 116</span> s++;</div>
<div class="line"><span class="lineno"> 117</span> }</div>
<div class="line"><span class="lineno"> 118</span> <span class="keywordflow">if</span> (level != 0)</div>
<div class="line"><span class="lineno"> 119</span> {</div>
<div class="line"><span class="lineno"> 120</span> <span class="keywordflow">return</span> NULL;</div>
<div class="line"><span class="lineno"> 121</span> }</div>
<div class="line"><span class="lineno"> 122</span> <span class="keywordflow">return</span> s;</div>
<div class="line"><span class="lineno"> 123</span>}</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 caller 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="address_2address_8c_aaa1646f5189d7c48a6e822def364fe3b_icgraph.svg" width="272" 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="ada2e412cecef51c99eb370ee6d46167a" name="ada2e412cecef51c99eb370ee6d46167a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada2e412cecef51c99eb370ee6d46167a">◆ </a></span>parse_quote()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static const char * parse_quote </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>token</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>tokenlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>tokenmax</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>Extract a quoted string. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>String, just after the opening quote mark </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">token</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> to store quoted string </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">tokenlen</td><td>Length of quoted string </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">tokenmax</td><td>Length of buffer </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">ptr</td><td>First character after quoted string </td></tr>
<tr><td class="paramname">NULL</td><td>Error </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00134">134</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 135</span>{</div>
<div class="line"><span class="lineno"> 136</span> <span class="keywordflow">while</span> (*s)</div>
<div class="line"><span class="lineno"> 137</span> {</div>
<div class="line"><span class="lineno"> 138</span> <span class="keywordflow">if</span> (*tokenlen < tokenmax)</div>
<div class="line"><span class="lineno"> 139</span> token[*tokenlen] = *s;</div>
<div class="line"><span class="lineno"> 140</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'\\'</span>)</div>
<div class="line"><span class="lineno"> 141</span> {</div>
<div class="line"><span class="lineno"> 142</span> <span class="keywordflow">if</span> (!*++s)</div>
<div class="line"><span class="lineno"> 143</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 144</span> </div>
<div class="line"><span class="lineno"> 145</span> <span class="keywordflow">if</span> (*tokenlen < tokenmax)</div>
<div class="line"><span class="lineno"> 146</span> token[*tokenlen] = *s;</div>
<div class="line"><span class="lineno"> 147</span> }</div>
<div class="line"><span class="lineno"> 148</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'"'</span>)</div>
<div class="line"><span class="lineno"> 149</span> {</div>
<div class="line"><span class="lineno"> 150</span> <span class="keywordflow">return</span> s + 1;</div>
<div class="line"><span class="lineno"> 151</span> }</div>
<div class="line"><span class="lineno"> 152</span> (*tokenlen)++;</div>
<div class="line"><span class="lineno"> 153</span> s++;</div>
<div class="line"><span class="lineno"> 154</span> }</div>
<div class="line"><span class="lineno"> 155</span> <span class="keywordflow">return</span> NULL;</div>
<div class="line"><span class="lineno"> 156</span>}</div>
</div><!-- fragment --><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="address_2address_8c_ada2e412cecef51c99eb370ee6d46167a_icgraph.svg" width="443" height="62"><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="a3e3dc0757e4c8bafb2cc9adef58c57f9" name="a3e3dc0757e4c8bafb2cc9adef58c57f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e3dc0757e4c8bafb2cc9adef58c57f9">◆ </a></span>next_token()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static const char * next_token </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>token</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>tokenlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>tokenmax</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>Find the next word, skipping quoted and parenthesised text. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>String to search </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">token</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> for the token </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">tokenlen</td><td>Length of the next token </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">tokenmax</td><td>Length of the buffer </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">ptr</td><td>First character after the next token </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00166">166</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 167</span>{</div>
<div class="line"><span class="lineno"> 168</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'('</span>)</div>
<div class="line"><span class="lineno"> 169</span> <span class="keywordflow">return</span> <a class="code hl_function" href="address_2address_8c.html#aaa1646f5189d7c48a6e822def364fe3b">parse_comment</a>(s + 1, token, tokenlen, tokenmax);</div>
<div class="line"><span class="lineno"> 170</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'"'</span>)</div>
<div class="line"><span class="lineno"> 171</span> <span class="keywordflow">return</span> <a class="code hl_function" href="address_2address_8c.html#ada2e412cecef51c99eb370ee6d46167a">parse_quote</a>(s + 1, token, tokenlen, tokenmax);</div>
<div class="line"><span class="lineno"> 172</span> <span class="keywordflow">if</span> (*s && <a class="code hl_define" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5">is_special</a>(*s, <a class="code hl_define" href="address_2address_8c.html#a9b0a500482eea16ed97e57a9ec4369b5">ADDRESS_SPECIAL_MASK</a>))</div>
<div class="line"><span class="lineno"> 173</span> {</div>
<div class="line"><span class="lineno"> 174</span> <span class="keywordflow">if</span> (*tokenlen < tokenmax)</div>
<div class="line"><span class="lineno"> 175</span> token[(*tokenlen)++] = *s;</div>
<div class="line"><span class="lineno"> 176</span> <span class="keywordflow">return</span> s + 1;</div>
<div class="line"><span class="lineno"> 177</span> }</div>
<div class="line"><span class="lineno"> 178</span> <span class="keywordflow">while</span> (*s)</div>
<div class="line"><span class="lineno"> 179</span> {</div>
<div class="line"><span class="lineno"> 180</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="string2_8h.html#ad5d1decff25d97de6e53c4e5fe184fba">mutt_str_is_email_wsp</a>(*s) || <a class="code hl_define" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5">is_special</a>(*s, <a class="code hl_define" href="address_2address_8c.html#a9b0a500482eea16ed97e57a9ec4369b5">ADDRESS_SPECIAL_MASK</a>))</div>
<div class="line"><span class="lineno"> 181</span> <span class="keywordflow">break</span>;</div>
<div class="line"><span class="lineno"> 182</span> <span class="keywordflow">if</span> (*tokenlen < tokenmax)</div>
<div class="line"><span class="lineno"> 183</span> token[(*tokenlen)++] = *s;</div>
<div class="line"><span class="lineno"> 184</span> s++;</div>
<div class="line"><span class="lineno"> 185</span> }</div>
<div class="line"><span class="lineno"> 186</span> <span class="keywordflow">return</span> s;</div>
<div class="line"><span class="lineno"> 187</span>}</div>
<div class="ttc" id="aaddress_2address_8c_html_a9b0a500482eea16ed97e57a9ec4369b5"><div class="ttname"><a href="address_2address_8c.html#a9b0a500482eea16ed97e57a9ec4369b5">ADDRESS_SPECIAL_MASK</a></div><div class="ttdeci">#define ADDRESS_SPECIAL_MASK</div><div class="ttdoc">AddressSpecials, for is_special()</div><div class="ttdef"><b>Definition:</b> <a href="address_2address_8c_source.html#l00071">address.c:71</a></div></div>
<div class="ttc" id="aaddress_2address_8c_html_aaa1646f5189d7c48a6e822def364fe3b"><div class="ttname"><a href="address_2address_8c.html#aaa1646f5189d7c48a6e822def364fe3b">parse_comment</a></div><div class="ttdeci">static const char * parse_comment(const char *s, char *comment, size_t *commentlen, size_t commentmax)</div><div class="ttdoc">Extract a comment (parenthesised string)</div><div class="ttdef"><b>Definition:</b> <a href="address_2address_8c_source.html#l00091">address.c:91</a></div></div>
<div class="ttc" id="aaddress_2address_8c_html_abd3dab3876f09438368ece04594cd9f5"><div class="ttname"><a href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5">is_special</a></div><div class="ttdeci">#define is_special(ch, mask)</div><div class="ttdoc">Is this character special to an email address?</div><div class="ttdef"><b>Definition:</b> <a href="address_2address_8c_source.html#l00067">address.c:67</a></div></div>
<div class="ttc" id="aaddress_2address_8c_html_ada2e412cecef51c99eb370ee6d46167a"><div class="ttname"><a href="address_2address_8c.html#ada2e412cecef51c99eb370ee6d46167a">parse_quote</a></div><div class="ttdeci">static const char * parse_quote(const char *s, char *token, size_t *tokenlen, size_t tokenmax)</div><div class="ttdoc">Extract a quoted string.</div><div class="ttdef"><b>Definition:</b> <a href="address_2address_8c_source.html#l00134">address.c:134</a></div></div>
<div class="ttc" id="astring2_8h_html_ad5d1decff25d97de6e53c4e5fe184fba"><div class="ttname"><a href="string2_8h.html#ad5d1decff25d97de6e53c4e5fe184fba">mutt_str_is_email_wsp</a></div><div class="ttdeci">static bool mutt_str_is_email_wsp(char c)</div><div class="ttdoc">Is this a whitespace character (for an email header)</div><div class="ttdef"><b>Definition:</b> <a href="string2_8h_source.html#l00104">string2.h:104</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="address_2address_8c_a3e3dc0757e4c8bafb2cc9adef58c57f9_cgraph.svg" width="308" height="135"><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="address_2address_8c_a3e3dc0757e4c8bafb2cc9adef58c57f9_icgraph.svg" width="307" 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>
<a id="a37f5791b4426dcfbba05843219c6d5a8" name="a37f5791b4426dcfbba05843219c6d5a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37f5791b4426dcfbba05843219c6d5a8">◆ </a></span>parse_mailboxdomain()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static const char * parse_mailboxdomain </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t </td>
<td class="paramname"><em>special_mask</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>mailbox</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>mailboxlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>mailboxmax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>comment</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>commentlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>commentmax</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>Extract part of an email address (and a comment) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>String to parse </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">special_mask</td><td>Characters that are special (see <a class="el" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5" title="Is this character special to an email address?">is_special()</a>) </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">mailbox</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> for email address </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">mailboxlen</td><td>Length of saved email address </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">mailboxmax</td><td>Length of mailbox buffer </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">comment</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> for comment </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">commentlen</td><td>Length of saved comment </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">commentmax</td><td>Length of comment buffer </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">ptr</td><td>First character after the email address part</td></tr>
</table>
</dd>
</dl>
<p>This will be called twice to parse an email address, first for the mailbox name, then for the domain name. Each part can also have a comment in <code>()</code>. The comment can be at the start or end of the mailbox or domain.</p>
<p>Examples:</p><ul>
<li>"[email protected]"</li>
<li>"john.doe(comment)@example.com"</li>
<li>"[email protected](comment)"</li>
</ul>
<p>The first call will return "john.doe" with optional comment, "comment". The second call will return "example.com" with optional comment, "comment". </p>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00213">213</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 217</span>{</div>
<div class="line"><span class="lineno"> 218</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *ps = NULL;</div>
<div class="line"><span class="lineno"> 219</span> </div>
<div class="line"><span class="lineno"> 220</span> <span class="keywordflow">while</span> (*s)</div>
<div class="line"><span class="lineno"> 221</span> {</div>
<div class="line"><span class="lineno"> 222</span> s = <a class="code hl_function" href="mutt_2string_8c.html#a5bc328ca69776d155059041aaff9435a">mutt_str_skip_email_wsp</a>(s);</div>
<div class="line"><span class="lineno"> 223</span> <span class="keywordflow">if</span> ((*s == <span class="charliteral">'\0'</span>))</div>
<div class="line"><span class="lineno"> 224</span> <span class="keywordflow">return</span> s;</div>
<div class="line"><span class="lineno"> 225</span> </div>
<div class="line"><span class="lineno"> 226</span> <span class="keywordflow">if</span> (<a class="code hl_define" href="address_2address_8c.html#abd3dab3876f09438368ece04594cd9f5">is_special</a>(*s, special_mask))</div>
<div class="line"><span class="lineno"> 227</span> <span class="keywordflow">return</span> s;</div>
<div class="line"><span class="lineno"> 228</span> </div>
<div class="line"><span class="lineno"> 229</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'('</span>)</div>
<div class="line"><span class="lineno"> 230</span> {</div>
<div class="line"><span class="lineno"> 231</span> <span class="keywordflow">if</span> (*commentlen && (*commentlen < commentmax))</div>
<div class="line"><span class="lineno"> 232</span> comment[(*commentlen)++] = <span class="charliteral">' '</span>;</div>
<div class="line"><span class="lineno"> 233</span> ps = <a class="code hl_function" href="address_2address_8c.html#a3e3dc0757e4c8bafb2cc9adef58c57f9">next_token</a>(s, comment, commentlen, commentmax);</div>
<div class="line"><span class="lineno"> 234</span> }</div>
<div class="line"><span class="lineno"> 235</span> <span class="keywordflow">else</span></div>
<div class="line"><span class="lineno"> 236</span> {</div>
<div class="line"><span class="lineno"> 237</span> ps = <a class="code hl_function" href="address_2address_8c.html#a3e3dc0757e4c8bafb2cc9adef58c57f9">next_token</a>(s, mailbox, mailboxlen, mailboxmax);</div>
<div class="line"><span class="lineno"> 238</span> }</div>
<div class="line"><span class="lineno"> 239</span> <span class="keywordflow">if</span> (!ps)</div>
<div class="line"><span class="lineno"> 240</span> <span class="keywordflow">return</span> NULL;</div>
<div class="line"><span class="lineno"> 241</span> s = ps;</div>
<div class="line"><span class="lineno"> 242</span> }</div>
<div class="line"><span class="lineno"> 243</span> </div>
<div class="line"><span class="lineno"> 244</span> <span class="keywordflow">return</span> s;</div>
<div class="line"><span class="lineno"> 245</span>}</div>
<div class="ttc" id="aaddress_2address_8c_html_a3e3dc0757e4c8bafb2cc9adef58c57f9"><div class="ttname"><a href="address_2address_8c.html#a3e3dc0757e4c8bafb2cc9adef58c57f9">next_token</a></div><div class="ttdeci">static const char * next_token(const char *s, char *token, size_t *tokenlen, size_t tokenmax)</div><div class="ttdoc">Find the next word, skipping quoted and parenthesised text.</div><div class="ttdef"><b>Definition:</b> <a href="address_2address_8c_source.html#l00166">address.c:166</a></div></div>
<div class="ttc" id="amutt_2string_8c_html_a5bc328ca69776d155059041aaff9435a"><div class="ttname"><a href="mutt_2string_8c.html#a5bc328ca69776d155059041aaff9435a">mutt_str_skip_email_wsp</a></div><div class="ttdeci">char * mutt_str_skip_email_wsp(const char *s)</div><div class="ttdoc">Skip over whitespace as defined by RFC5322.</div><div class="ttdef"><b>Definition:</b> <a href="mutt_2string_8c_source.html#l00608">string.c:608</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="address_2address_8c_a37f5791b4426dcfbba05843219c6d5a8_cgraph.svg" width="391" 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-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="address_2address_8c_a37f5791b4426dcfbba05843219c6d5a8_icgraph.svg" width="507" height="62"><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="a2c9cf36d4ced43888bfa5f2b6593e7be" name="a2c9cf36d4ced43888bfa5f2b6593e7be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c9cf36d4ced43888bfa5f2b6593e7be">◆ </a></span>parse_address()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static const char * parse_address </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>token</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>tokenlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>tokenmax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>comment</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>commentlen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>commentmax</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structAddress.html">Address</a> * </td>
<td class="paramname"><em>addr</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>Extract an email address. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>String, just after the opening <code><</code> </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">token</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> for the email address </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">tokenlen</td><td>Length of the email address </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">tokenmax</td><td>Length of the email address buffer </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">comment</td><td><a class="el" href="structBuffer.html" title="String manipulation buffer.">Buffer</a> for any comments </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">commentlen</td><td>Length of any comments </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">commentmax</td><td>Length of the comment buffer </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td><a class="el" href="structAddress.html" title="An email address.">Address</a> to store the results </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">ptr</td><td>The closing <code>></code> of the email address </td></tr>
<tr><td class="paramname">NULL</td><td>Error </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="address_2address_8c_source.html#l00260">260</a> of file <a class="el" href="address_2address_8c_source.html">address.c</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 263</span>{</div>
<div class="line"><span class="lineno"> 264</span> s = <a class="code hl_function" href="address_2address_8c.html#a37f5791b4426dcfbba05843219c6d5a8">parse_mailboxdomain</a>(s, <a class="code hl_define" href="address_2address_8c.html#a949db8f1f314276f025014159b2112ef">USER_SPECIAL_MASK</a>, token, tokenlen, tokenmax,</div>
<div class="line"><span class="lineno"> 265</span> comment, commentlen, commentmax);</div>
<div class="line"><span class="lineno"> 266</span> <span class="keywordflow">if</span> (!s)</div>
<div class="line"><span class="lineno"> 267</span> <span class="keywordflow">return</span> NULL;</div>
<div class="line"><span class="lineno"> 268</span> </div>
<div class="line"><span class="lineno"> 269</span> <span class="keywordflow">if</span> (*s == <span class="charliteral">'@'</span>)</div>
<div class="line"><span class="lineno"> 270</span> {</div>
<div class="line"><span class="lineno"> 271</span> <span class="keywordflow">if</span> (*tokenlen < tokenmax)</div>
<div class="line"><span class="lineno"> 272</span> token[(*tokenlen)++] = <span class="charliteral">'@'</span>;</div>
<div class="line"><span class="lineno"> 273</span> s = <a class="code hl_function" href="address_2address_8c.html#a37f5791b4426dcfbba05843219c6d5a8">parse_mailboxdomain</a>(s + 1, <a class="code hl_define" href="address_2address_8c.html#aafa805d81c9081201be968406f9354cf">DOMAIN_SPECIAL_MASK</a>, token, tokenlen,</div>
<div class="line"><span class="lineno"> 274</span> tokenmax, comment, commentlen, commentmax);</div>
<div class="line"><span class="lineno"> 275</span> <span class="keywordflow">if</span> (!s)</div>
<div class="line"><span class="lineno"> 276</span> <span class="keywordflow">return</span> NULL;</div>