aboutsummaryrefslogtreecommitdiffstats
path: root/camel/ChangeLog
blob: d6d13dcc401b472c9bf9333a201ce187b296a5b6 (plain) (blame)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
2002-05-13  Dan Winship  <danw@ximian.com>

    * camel-folder.c (camel_folder_append_message): Add a "char
    **appended_uid" argument, for the caller to optionally pass in a
    variable to receive the UID of the appended message (if the
    provider knows it).
    (camel_folder_transfer_messages_to): Likewise, add "GPtrArray
    **transferred_uids"
    (transfer_messages_to): Update default implementation to handle
    transferred_uids.

    * camel-disco-folder.c (disco_append_message,
    disco_transfer_messages_to): Update for API changes.

    * camel-disco-diary.c (camel_disco_diary_replay): Update the
    diary's temporary uid->real uid map when replaying appends and
    transfers.

    * providers/imap/camel-imap-folder.c (imap_append_offline,
    imap_append_online, imap_transfer_offline): Pass back the new
    UIDs, when requested and available.
    (imap_append_resyncing): Pass back the new UIDs when requested and
    available. Remove the diary uidmap managing code since
    CamelDiscoDiary can handle that itself now.
    (imap_transfer_online, imap_transfer_resyncing): Update for new
    APIs, but don't actually pass back the new UIDs yet. (It's tricky
    since the COPYUID response may not be in the same order as the
    input uids.)
    
    * providers/local/camel-maildir-folder.c (maildir_append_message):
    Pass back the new UID if requested.

    * providers/local/camel-mbox-folder.c (mbox_append_message):
    Likewise.

    * providers/local/camel-mh-folder.c (mh_append_message): Likewise.

    * providers/local/camel-spool-folder.c (spool_append_message):
    Likewise.

    * camel-digest-folder.c (digest_append_message,
    digest_transfer_messages_to): Update for API changes.

    * camel-filter-driver.c (camel_filter_driver_filter_message,
    do_copy, do_move): Update for API changes.

    * camel-vee-folder.c (vee_append_message,
    vee_transfer_messages_to): Likewise.

    * camel-vtrash-folder.c (vtrash_append_message,
    vtrash_transfer_messages_to): Likewise. 

2002-05-13  Not Zed  <NotZed@Ximian.com>

    * camel-folder-thread.c
    (camel_folder_thread_messages_new_summary):
    (camel_folder_thread_messages_new): Since the fix for #3357 uses
    'order=0' to indicate tree structure nodes, make sure we dont
    actually set order=0 for valid messages, otherwise we silently
    lose duplicates of the first message (i==0).  Fixes #19920.

2002-05-10  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_get_message): Fetch the
    BODYSTRUCTURE rather than BODY since BODY seems to be lacking some
    of the data we need. This fixes bug #24131.

    * camel-transport.c (camel_transport_get_type): Might help if we
    called camel_transport_class_init.

2002-05-10  Dan Winship  <danw@ximian.com>

    * camel-folder.c (camel_folder_transfer_messages_to): Replace
    copy_messages_to and move_messages_to with a single function that
    just takes a "delete_originals" flag. Also, use the vtrash
    implementation if *either* folder is a vtrash.
    (transfer_messages_to): Make this use camel_operation_progress
    (previously move_messages_to did but copy_messages_to didn't), and
    freeze/thaw the folder(s) if doing multiple messages.

    * camel-vtrash-folder.c (vtrash_transfer_messages_to): Update for
    move/copy merge. Move the "move messages into vtrash" code here
    from mail-ops.c. Now all of the vtrash move/copy special casing is
    in camel instead of half of it being here and half in mail/. (This
    should also make it so that "Move to Trash" will work in filter
    rules.)

    * camel-vee-folder.c (vee_transfer_messages_to): Make this just
    return an exception, since it will only be called when trying to
    move/copy messages from one vfolder to another.
    (vee_append_message): Add this too so we get a nicer error message
    than the default "unimplemented" one in camel-folder.c.

    * camel-digest-folder.c: Replace copy_messages_to and
    move_messages_to with transfer_messages_to.

    * camel-disco-folder.c: Likewise

    * camel-disco-diary.c (camel_disco_diary_log,
    camel_disco_diary_replay): replace MOVE/COPY with TRANSFER.

    * providers/imap/camel-imap-folder.c (imap_transfer_offline,
    imap_transfer_online, imap_transfer_resyncing): Update for
    changes. (This ends up being a bit more complicated than it was
    before for now, but later disconnected operation changes should
    resimplify it.)

    * camel-filter-driver.c (camel_filter_driver_filter_message,
    do_copy, do_move): Use transfer_messages_to instead of copy.

2002-05-09  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-search.c (shell_exec): New filter function to pipe
    a message to another program.
    (run_command): Fixed some bugs to make this work.

2002-05-09  Not Zed  <NotZed@Ximian.com>

    * camel-service.c (camel_service_disconnect): Instead of testing
    for SERVICE_CONNECTED, we need to also handle SERVICE_CONNECTING
    too, as it will often have setup some details before it failed.
    Make it !DISCONNECTED (and !DISCONNECTING for recursive calls,
    which happen).  Fixes #23782, and maybe also #21604 and many other
    random crashes.

2002-05-08  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-digest-store.c (digest_setv): Implemented.
    (digest_getv): Implemented.

    * camel-disco-store.c (disco_setv): Implemented.
    (disco_getv): Implemented.

    * camel-remote-store.c (remote_store_setv): Implemented.
    (remote_store_getv): Implemented.

    * camel-transport.c (camel_transport_class_init): Implemented.
    (transport_setv): Implemented.
    (transport_getv): Implemented.

    * camel-store.c (store_setv): Implemented.
    (store_getv): Implemented.

    * camel-service.c (service_setv): Implemented.
    (service_getv): Implemented.

    * providers/pop3/camel-pop3-store.c (pop3_try_authenticate):
    camel_pop3_engine_iterate doesn't return the state, it returns -1
    on fail, 0 when finished processing request or >0 if more ops are
    in the queue, so don't check status against CAMEL_POP3_STATE_OK,
    instead check pcp->state against that.

2002-05-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-object.h: s/class/klass for arguments so that c++
    developers don't complain later.

2002-05-07  Dan Winship  <danw@ximian.com>

    * camel-object.c (camel_object_class_cast): Fix a crash in a
    g_warning.

2002-05-07  Not Zed  <NotZed@Ximian.com>

    * camel-remote-store.c (remote_send_string): Check for LOGIN xxxx
    as well if debug is on, so we dont print passwords to evolution
    logs.

    * providers/imap/camel-imap-utils.c (imap_is_atom_char): This was
    really broken.  1. isprint() is locale dependent, and 2. it looked
    up an 8 bit value in a 7 bit table without truncating it.  I've
    removed the isprint() stuff and just put it directly into the
    special table, which i've expanded to the right size too.

    * providers/imap/*: Applied patch from Preston Elder
    <prez@magick.tm> to make camel only use literals if it needs to
    for simple strings.  Changed slightly to use imap_is_atom() and
    more consistent formatting.
    providers/imap/camel-imap-utils.c (imap_is_atom): Chagned from
    imap_needs_quoting().

    ** Merged in camel-object2 branch.  Simpler camelobject
    implementation + object args interface.

    * camel.c (camel_init): Call camel_object_get_type() to make sure
    camel_object_type is initialised.

    * camel-object.h (CAMEL_OBJECT_TYPE): Changed to return global
    camel_object_type pointer, not call camel_object_get_type.
    
2002-05-06  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): If
    the pop3 command status is -1, then we probably have a TCP error
    (?) so set a SYSTEM exception so our caller can distinguish
    between a "bad password" and a "tcp error".
    (pop3_connect): Only uncache the password on "bad password"
    errors.

    * camel-pgp-mime.c (pgp_mime_part_sign_prepare_part): Use
    CamelMimeFilterBestenc to get a more appropriate encoding rather
    than just blindling assigning QP.

    * providers/imap/camel-imap-folder.c (do_append): Call
    camel_mime_message_encode_8bit_parts() which fixes bug #10885.

    * camel-tcp-stream-raw.c (socket_connect): Don't bother with
    counting down the timeout.

2002-05-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-fs.c (stream_read): Same fix as the tcp stream.
    (stream_write): Again here. Just like tcp stream's stream_write(),
    also make sure to save errno before calling fcntl to restore the
    fd flags.

    * camel-tcp-stream-raw.c (stream_read): Handle EINTR errors for
    select().
    (stream_write): Same and also preserve errno when setting the fd
    flags back. If w == -1, return -1.

2002-05-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_mailbox): Fixed the fix for
    stupidly-broken-mailer bug #5 to work when multiple unescaped
    characters were in a row. Fixes bug #24140.

    * camel-tcp-stream-raw.c (socket_connect): Check select() for
    EINTR errors.

    * camel-pgp-context.c (crypto_exec_with_passwd): Change the order
    of some code so that we check if the select() failed before we
    check for user-cancellation.

    * camel-service.c (camel_gethostbyname): Check for EINTR when
    select()ing.
    (camel_gethostbyaddr): Same.

2002-04-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-provider.c (camel_provider_auto_detect): Now takes a
    CamelURL argument rather than a GHashTable *settings argument.

2002-04-29  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-store.c (get_folder_info): We want
    to set unread_count to get_unread_message_count, not
    get_message_count().  Might fix #17174.  Also removed FIXME: as it
    was fixed.

2002-04-26  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/Makefile.am: Don't link to libibex.a anymore.

    * providers/nntp/Makefile.am: Same.

    * providers/imap/Makefile.am: And again here.

    * camel-store-summary.h: No longer want to #include
    <libibex/ibex.h>

    * camel-provider.c (camel_provider_auto_detect): New function to
    auto-detect configuration settings.

2002-04-26  Not Zed  <NotZed@Ximian.com>

    * camel-block-file.c (block_file_validate_root): Remove the
    excessive \n's, after printfs.

    * camel-text-index.c (text_index_compress_nosync): @!#$@#$!@$#!.
    Since the rename op was fixed, this broke compression's rename,
    resulting in the index 'vanishing' after every compress
    (i.e. after every reindex).  Fix this code to account for the
    fixed rename operation.

2002-04-25  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_rcpt): Don't put a
    space between the "RCPT TO:" and the "<recipient>" strings -
    rfc0821 was not clear on this but it seems rfc2821 defines a
    grammar excluding that SP.
    (smtp_mail): Same.

2002-04-24  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-local-provider.c
    (camel_provider_module_init): Configure the default paths for mh,
    mbox, maildir, spools, etc.

    * camel-provider.h: Add a CAMEL_PROVIDER_CONF_LABEL enum and
    define some default CamelProviderConfEntry macros.

2002-04-19  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_refresh_info): Free the
    LIST pop3 command.

    * camel-data-cache.c (data_cache_finalise): Free the cdc->path.

    * camel-multipart.c (write_to_stream): Don't g_return_val_if_fail
    here if the boundary is an empty string. See bug #23676 for
    details. The way I see it, we have 2 options: 1) leave this fix
    the way it is, thus allowing multipart boundaries to be
    empty-strings; or 2) make camel_multipart_get_boundary() change
    the boundary to something legal if the boundary is an
    empty-string. Since the parser should be able to handle an
    empty-string boundary *and* more importantly because we want to
    keep the same boundaries as the original raw message so as to be
    able to verify multipart/signed parts, I vote for solution #1.

2002-04-19  Not Zed  <NotZed@Ximian.com>

    * devel-docs/camel-index.txt: Start of a white-paperish document
    describing camel-index and older libibex.

2002-04-18  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-store.c (rename_folder): If we get a
    failure, make sure we set an exception.

    * camel-text-index.c (camel_text_index_rename): If the file
    doesn't exist, just assume it never did, dont return failure.
    (text_index_rename): Add '.index' to the path name we're using,
    since we dont get it passed in.

    * camel-folder-search.c (check_header): When doing a contains
    match, split the words and perform an and on it.
    (match_words_messages): If we have an index, but were forced to do
    a full search, first lookup a subset of messages using
    the index and a simplified word set.  Only do a manual search of
    this subset.

2002-04-17  Not Zed  <NotZed@Ximian.com>

    * camel-folder-search.c (match_message_index): Changed to take a
    utf8 string not a regex pattern.
    (match_words_index): Matches against a camel_search_words list.
    (match_words_1message): Matches a single message against a
    camel_search_words list.
    (match_words_message): Same, but gets the message from the folder
    for you.
    (match_words_messages): Matches a list of messages against a words
    list.
    (search_body_contains): Rewritten to handle multiple word
    searches.  For #23371.

    * providers/imap/camel-imap-search.c (sync_match): Split words
    when searching, to support multiple search words.  Also, try
    searching specifying charset of utf8 if we can, if that fails,
    fall back to not specifying charset.  TODO: It should translate
    the strings into the locale default charset?

    * providers/imap/camel-imap-store.c (connect_to_server): Added new
    cap - utf8_search, if set, we tell the server we're searching
    using utf8, otherwise we dont (incorrectly, since we always use
    utf8 to search).

    * camel-search-private.c (camel_ustrstrcase): Make this class public.
    (camel_search_words_split): Split a word into multiple words based
    on whitespace, and keep track of whether the word is simple
    (indexable directly), or not.
    (camel_search_words_free): Free 'em.

2002-04-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-vee-folder.c (vee_search_by_expression): If the vee-folder
    is the unmatched, we don't have our own expression so we cannot
    merge them. Instead, just use the expression passed in. This fixes
    a Null-Pointer-Read crash on Solaris systems at least.

2002-04-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Get
    rid of an unused variable.

    * providers/smtp/camel-smtp-transport.c (smtp_helo): Use
    camel_gethostbyaddr since gethostbyaddr is not reentrant.

    * camel-http-stream.c (http_connect): Updated after the rename of
    camel_get_host_byname.

    * camel-service.c (camel_gethostbyname): Renamed.
    (camel_gethostbyaddr): New cancellable/reentrant version of
    gethostbyaddr.

2002-04-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-spoold-store.c: Added #include
    <sys/types.h> for dirent.h which needs it on MacOS X.

    * providers/local/camel-maildir-store.c: Same.

    * providers/nntp/camel-nntp-store.c: Same.

    * providers/imap/camel-imap-message-cache.c: Same.

    * camel-provider.c: Same.

    * camel-data-cache.c: Same.

2002-04-12  Jeffrey Stedfast  <fejj@ximian.com>

    * broken-date-parser.c (datetok): Treat commas as token
    delimeters.
    (WEEKDAY_CHARS): Use full weekday names in case the broken mailer
    used the full names.
    (MONTH_CHARS): Same as above but for months.

2002-04-15  Not Zed  <NotZed@Ximian.com>

    * *.c: Fix callers for api changes to camel-object, mainly
    declare_event->add_event, and classfuncs->klass, and a couple
        of missing #include <config.h>'s

    * camel-arg.[ch], Makefile.am: New support code for
    camel_object_get/set arg.

    * *.h: Fixed all uses of get_type to return a CamelType rather
    than a guint (now a pointer).

    * camel-object.[ch]: Major cleanup of object implementation.  Also
    added a get/set interface, and some debugging options.

2002-04-11  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-summary.c (spool_summary_sync_full):
    If the last message(s) were deleted, and we had any messages
    output, account for the lost \n of the following From line by
    adding an extra \n. fix for #8214.

2002-04-10  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part-utils.c (convert_buffer): If we get a 0 length
    input, return a 0 lenght output as valid - fixes bugs with some
    iconv impl and its simpler anyway.

2002-04-11  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c: Set the UID_SET_LIMIT value
    to 4096. I ran into an issue tonight where apparently the IMAP
    server changed the UIDVALIDITY and so Evo needed to re-fetch all
    headers and it was trying to send a uid set of some 25k (yes, I
    have a very large INBOX). Anyways, it was set to unlimited
    before. Courier IMAPd can safely handle up to ~16k per token, but
    UW IMAPd can only handle 8k per command-line, so I set it to 4k
    just to be safe.

2002-04-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c (convert_buffer): Fixed a bug that would
    miscalculate how much data to copy into the GByteArray (negative
    value) thus causing a segfault. Also optimized it while I was at
    it.

2002-04-09  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_init): Make the folder_lock
    recursive. See bug #22363 for details. Basically,
    get_folder_info() is requesting a diary folder which in turn
    connects which requests then calls get_folder() but deadlocks
    because get_folder_info already holds the lock.

    * camel-mime-message.c (camel_mime_message_set_date): Don't adjust
    the timezone offset if we used tm.tm_gmtoff because it is already
    adjusted.

2002-04-09  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part.c (construct_from_parser): If we get multiple
    Content-Type header values, change subsequent headers to
    X-Invalid-Content-Type so it doesn't wreck processing.  This fixes
    the reported case in #18929, but i dont know if it fixes the
    original posters problems.

2002-04-08  Not Zed  <NotZed@Ximian.com>

    * camel-vtrash-folder.c (vtrash_move_messages_to): If we find
    we're moving from the vtrash to another folder, we need to convert
    the uid from a vfolder uid to the source uid (+8).  Fix for
    #20886.  Also changed to batch multiple moves to different folders
    so they are done as efficiently as possible rather than one at a
    time.

    * camel-mime-utils.c (base64_decode_step): If we only get passed
    '=', we back track only if we actually output any data.  Fix for
    #21716.
    (quoted_decode): Pass out size_t instead of int, and use 0 instead
    of -1 for error since its not signed.  This will fix similar bug
    to above in different circumstances since the result is taken as
    unsigned.  This is only an internal func.
    (quoted_encode): Return size_t just for consistency.

    * camel-block-file.c (block_file_validate_root): Comment out the
    debug and move it into a warning when the validation fails.

2002-04-08  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (uuencode_close): Don't count our filler when
    encoding our line-length octet.

2002-04-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-http-stream.c (http_get_headers): Don't get the statuscode
    here anymore.
    (http_method_invoke): Use a User-Agent header and do basic proxy
    authentication.
    (stream_read): Handle redirects.
    (camel_http_stream_set_user_agent): New function to allow client
    to set the User-Agent string.
    (camel_http_stream_set_proxy): New function for setting the proxy
    server.
    (camel_http_stream_set_proxy_authrealm): New function for setting
    the proxy auth realm.
    (camel_http_stream_set_proxy_authpass): New function for setting
    the proxy auth password.

2002-04-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (message_info_new): Simplified since we
    can now decode in-reply-to without getting extra cruft. Get rid of
    the FIXME about having to check scan->id because of the
    possibility of it being NULL, this can no longer happen.

    * camel-mime-utils.c (header_references_inreplyto_decode): New
    function to decode in-reply-to headers. Only grabs the first thing
    that looks like a message-id and then returns.
    (header_references_decode): Loop calling
    header_references_decode_single (a new internal function).

2002-04-04  Not Zed  <NotZed@Ximian.com>

    * providers/imap/camel-imap-search.c (imap_body_contains): If
    (body-contains) is not passed any arguments, return empty/false.
    Fixes a crash exposed by #15001.

    * camel-remote-store.c (remote_connect): Reset the keepalive
    timeout to 10 minutes rather than the 30 seconds I was using for
    testing.

2002-04-03  Dan Winship  <danw@ximian.com>

    * camel-provider.h (CamelProvider): make service_cache be an array
    of CAMEL_NUM_PROVIDER_TYPES elements so you can have a single
    provider offer both stores and transports. (Eg, Exchange, NNTP)

    * providers/imap/camel-imap-provider.c: Don't initialize
    service_cache here. (The session code can do it itself since the
    url_hash and url_equal functions are stored as part of the
    provider.)

    * providers/nntp/camel-nntp-provider.c: Likewise.

    * providers/local/camel-local-provider.c: Likewise.

    * providers/pop3/camel-pop3-provider.c: Likewise.

    * providers/sendmail/camel-sendmail-provider.c: Likewise.

    * providers/smtp/camel-smtp-provider.c: Likewise.

    * camel-session.c (register_provider): Initialize the provider's
    service cache(s) here.
    (camel_session_class_init): Don't initialize.
    vee_provider.service_cache here.
    (camel_session_destroy_provider): Update to destroy multiple
    service_caches.
    (service_cache_remove, get_service): Tweak these a bit to deal
    with multiple service_caches.

2002-04-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (set_errno): Handle a ton more nspr i/o
    errno's.
    (stream_connect): Act as if we are doing a non-blocking
    connect. This is to try and work around bug #15120 where users get
    an EINPROGRESS error. Maybe importing a PRFileDesc into SSL mode
    automagically makes it non-blocking? I dunno.

2002-04-01  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (message_info_new): Updated the
    construction of the references to match JWZ's updated algorithm
    initialization (ie, append any In-Reply-To reference onto any
    References header and never take more than a single message-id
    from the In-Reply-To header since anything after the first will
    probably just be email addresses). Fixes bug #1336.

2002-04-03  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Turn indexing back on, fingers
    crossed ...

    * camel-block-file.c (sync_nolock): #!@$@$#@~#$
    DF@#$!Q@$#!@$#!#%.  Well it helps if we're iterating a list to
    iterate the node pointer ...

    * camel-text-index.c (text_index_sync): Sync the key tables
    explcitly.
    (text_index_sync): Debug out frag info.
    (camel_text_index_dump): Added a (rather large, but optional) raw
    dumping mode for debugging purposes.

    * camel-partition-table.c (camel_key_table_finalise): Sync root
    block when done.
    (camel_key_table_sync): New function, sync key table (root) explicitly.
    (camel_partition_table_sync): Method to explicitly sync the
    partition table.

2002-04-02  Not Zed  <NotZed@Ximian.com>

    * camel-block-file.c (camel_block_file_free_block): Mark root
    block dirty when we change it (this function isn't used yet
    anyway).

    * camel-text-index.c (text_index_add_name_to_word): Touch the root
    block when we modify the counts.  Also, abort processing on any
    errors.
    (text_index_sync): Fix typo in comments.  Sync the block file
    inside the lock.
    (text_index_compress_nosync): Lock the old index while we're
    compressing.
    (text_index_compress_nosync): Remove the bogus while() at the end
    of the while() loops!  Also plug a memleak - records weren't
    freed.
    (text_index_rename): Lock around rename op.
    (text_index_add_name): More typos.
    (text_index_sync): Touch root when changing it.
    (text_index_add_name): "
    (text_index_delete_name): "
    (camel_text_index_new): Touch root if we change it.
    (text_index_cursor_reset): Make sure we NULL pointers after we
    free them (nothing uses this yet).

    * camel-partition-table.c (hash_key): Remove some debug
    accidentally left in.
    (camel_partition_table_add): When linking in the next block list,
    set the right previous pointer.
    (camel_key_table_add): Simplify the 'left' calculation (it was
    already ok though).
    (camel_key_table_next): Initialise returns before processing.
    Broaden the lock slightly, and simplify validity calculations.

    * providers/imap/camel-imap-store.c (imap_keepalive): Put back in
    the exception setup stuff i disabled for debugging.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Temporarily disable indexing.

2002-03-28  Not Zed  <NotZed@Ximian.com>

    * camel-partition-table.c (camel_key_table_lookup): Change range
    checking assert to a warning.

    * providers/pop3/camel-pop3-folder.c (pop3_finalize): Make sure we
    flush out all outstanding commands before finalising, stops being
    finalised while outsanding requests are processed by the store
    finalise.
    (pop3_get_message): Instead of pre-fetching all messages, just
    pre-fetch a maxiumum number at any one time, stops us running out
    of cache fd's.
    
    * providers/nntp/camel-nntp-folder.c (nntp_folder_init/finalise):
    Setup priv data + locks, & free.

    * providers/imap/camel-imap-folder.c (imap_rescan): Batch all
    message_chagned events into a single folder_changed event
    (otherwise updates can be >>> expensive, like >5 hours for 80K
    messages changing!).  Alternately it could use folder
    freeze/unfreeze perhaps.

2002-03-27  Not Zed  <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c (imap_keepalive): Pass an
    exception to called code so it behaves properly since it uses the
    passed exception to check returns.

2002-04-01  Dan Winship  <danw@ximian.com>

    * providers/imap/Makefile.am (libcamelimap_la_LDFLAGS): Use
    -avoid-version instead of -version-info 0:0:0, and specify
    -module. (From Max Horn <max@quendi.de>).

    * providers/local/Makefile.am (libcamellocal_la_LDFLAGS): Likewise.

    * providers/nntp/Makefile.am (libcamelnntp_la_LDFLAGS): Likewise.

    * providers/sendmail/Makefile.am (libcamelsendmail_la_LDFLAGS):
    Likewise.

    * providers/smtp/Makefile.am (libcamelsmtp_la_LDFLAGS): Likewise.

    * providers/pop3/Makefile.am (libcamelpop3_la_LDFLAGS): Likewise.
    Also remove $(KRB4_LDFLAGS) since KPOP is gone.
    (INCLUDES): and $(KRB4_CFLAGS)

2002-03-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_copy): We now have to check to make
    sure that p->message is non-NULL because we only load the message
    when we have to.
    (do_move): Same here.

2002-03-28  Dan Winship  <danw@ximian.com>

    * camel-transport.c (camel_transport_send_to): Change the message
    arg to a CamelMimeMessage instead of a CamelMedium. Even the NNTP
    provider returns CamelMimeMessages, and we're never going to
    support anything more exotic than that. Also do a few more
    g_return_if_fails here instead of in the providers.
    (camel_transport_can_send): No longer needed.
    (camel_transport_send): Remove this too. It wasn't being used any
    more, and it doesn't behave exactly the same in sendmail and smtp.

    * providers/smtp/camel-smtp-transport.c (smtp_send,
    smtp_can_send): Gone.
    (smtp_send_to): Update for arg change.
    (smtp_data): Make this take a CamelMimeMessage too.

    * providers/sendmail/camel-sendmail-transport.c (sendmail_send,
    sendmail_can_send): Gone.
    (sendmail_send_to): Update for arg change, and merge in the part
    that used to be shared with sendmail_send.

2002-03-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_folder):
    Construct the source_url the right way. The previous way was
    generating urls like pop://fejj@ximian.com;keep_on_server/inbox
    which is wrong.

2002-03-26  Not Zed  <NotZed@Ximian.com>

    * camel-text-index.c (text_index_normalise): Changed to use just
    g_utf8_strdown instead of utf8_normalise, to match the indexing
    code.  utf8_normalise is just far too expensive (saves approx 25%
    total processing).

2002-03-25  Not Zed  <NotZed@Ximian.com>

    * camel-text-index.c (text_index_add_name): When we add a new
    name, up all of the cache limits, because we're probably going to
    be adding more.
    (text_index_sync): Drop the cache limits back down again, we dont
    need them when looking words up.

    ** MERGE camel_index branch.

    * camel-text-index.[ch]: Added files i forgot to add (eep nearly
    lost all this work!)

    * camel-block-file.c (sync_nolock): Fix an infinite loop in syncing.

2002-03-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (camel_message_info_new_from_header): Use
    the date in the received header for the received_date.

2002-03-22  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Use the right option to remove the
    index file and reset the index file on creation.
    (camel_local_folder_construct): Remove any existing '.ibex' files
    - these are the old format index files.

    * camel-block-file.c (camel_block_file_rename): Lock io lock while
    renaming.
    (camel_key_file_rename): Lock around rename.
    (block_file_validate_root): Implement sync flag checking.
    (camel_block_file_touch_block): Turn off the sync flag if we're
    touching any non-root block and write it to disk.  Shoudl this
    fsync()?
    (sync_nolock): sync the root block only if we need to.

    * providers/local/camel-local-store.c (rename_folder): Re-enable
    index rename code.  Not sure how race-free it is though.
    (delete_folder): Delete the index file properly.

    * camel-partition-table.c (camel_key_table_lookup): Initialise
    output values to 0 before doing anything.
    (camel_key_table_add): Do some range-checking on values.

    * camel-text-index.c (text_index_compress): Changed to call sync here.
    (text_index_compress_nolock): and not here - stops a recursive
    sync call when sync performs a compress also.
    (text_index_compress_nolock): Change to _nosync, since the locking
    is irrelevent (recursive lock).  Fixed callers.
    (text_index_add_name_to_word): If we get a failure with key table
    ops, fail immediately.
    (text_index_compress_nosync): Likewise.
    (text_index_write_name): If the nameid is 0, do nothing.
    (text_index_add_name): If we can't get a keyid, dont add it to the
    partition table.
    (camel_text_index_remove): Function to delete an index file.
    (text_index_compress_nosync): Clean up temp files when done.

    * camel-folder-search.c (match_messages_index): New function,
    split from body_contains, matches a regex against all words in an
    index.
    (match_message_index): Similar to above but matches against an
    individual message.
    (search_body_contains): Changed to use above functions for
    matching - substring matches should now work on indexed data.

2002-03-21  Not Zed  <NotZed@Ximian.com>

    * camel-index.c (camel_index_words/names): New virtual
    methods/stubs to get a cursor of all words and names.

    * camel-text-index.c (text_index_compress_nolock): Split from
    text_index_compress, so we can call the compressor while locked
    also, removed lock calls.
    (text_index_compress): Changed to stub which calls
    text_index_compress_nolock.
    (camel_text_index_key_cursor_new): New object to iterate through
    a key table.
    (text_index_words, text_index_names): Implement virtual functions
    for iterating through all words or names.

    * camel-block-file.c: Turn off some debug.

2002-03-20  Not Zed  <NotZed@Ximian.com>

    ** New body index implementation.

    * camel-index*: Code for camel index, a new class to replace ibex.

    * camel-block-file.[ch]: block-based and link based
    filesystem-in-a-file classes.

    * camel-partition-table.[ch]: An implementation of a partition
    table (automatically extending on-disk hash-table using ideal
    hash), and a key-table, a key<>name mapping table.  Used by
    camelindex.

    * providers/local/*, camel-folder-summary.[ch]: Changed to use
    camel-index interface rather than ibex.

2002-03-05  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-maildir-summary.c (maildir_summary_check):
    Do progress reporting of operations.
    (maildir_summary_sync): Same here.

2002-03-04  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spoold-store.c (scan_dir): Kill a warning
    with a cast.

    * providers/local/camel-*.c: Changed for ibex->camelindex.

    * camel-folder-search.c (camel_folder_search_set_summary): Init
    summary_hash to point to 'static' uid strings.
    (search_body_contains): Use the static uid memory to return
    results rather than the values from the index library.

    * camel-folder-search.[ch]: Changed to use camelindex object.

    * camel-folder-summary.c (summary_build_content_info_message):
    Use a stream to index content, also filter html mail first.
    (camel_folder_summary_info_new_from_message): Use a stream
    filtered to index content.
    (main): Removed the test main code.  Added headers for open call
    (ibex must've had them before).

    * camel-folder-summary.[ch]: Changed from ibex to CamelIndex.

    * camel-mime-filter-index.c (camel_mime_filter_index_finalize):
    Unref index.

    * camel-mime-filter-index.[ch]: Changed from ibex to CamelIndex.

2002-03-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_encode_param): Fix this to work
    right. We need to convert the input buffer to the charset we claim
    in the encoded param (duh).

2002-03-18  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c
    (connect_to_server_wrapper): Updated to use the same logic as the
    POP code.

    * providers/pop3/camel-pop3-store.c (connect_to_server): No longer
    takes a stls_supported argument since we no longer need it with
    the new logic.
    (connect_to_server_wrapper): New logic: First try connecting to
    the SSL port (995 by default), if that fails with
    SERVICE_UNAVAILABLE, then we attempt to connect (to port 110 by
    default) and try to use STARTTLS.

2002-03-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder.h: 

    * camel-private.h: Don't allow any empty structs. If
    !ENABLE_THREADS, provide a gpointer dummy member. Fixes bug #6382.

2002-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_auth): Added a
    work-around for SMTP servers that can't read the RFCs and thus
    implement SASL incorrectly. Oh well, that's life in the world of
    mail clients I guess.

2002-03-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-digest-store.c (camel_digest_store_new): Now takes a url
    argument.

    * camel-digest-folder.c (digest_add_multipart): Fixed some memory
    corruption and also modified to use CAMEL_IS_MIME_MESSAGE() rather
    than comparing content-type strings.
    (digest_get_message): Fixed a logic blooper.

    * camel-folder-summary.c (camel_message_info_new_from_header): Set
    the date fields of the CamelMessageInfo as well. This may even fix
    some filter-related bugs where the user was trying to compare
    dates.

2002-03-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-digest-store.c: A pretty empty store implementation to be
    the parent store of a CamelDigestFolder.

    * camel-digest-folder.c: Updated to reference it's parent store.

2002-03-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-digest-folder.c (camel_digest_folder_new): Allow any leaf
    part to be a message/rfc822 part.
    (digest_get_uids): Recurse the mime structure and add all
    message/rfc822 parts and use a uid scheme similar to IMAP's mime
    part naming convention.
    (digest_get_message): Decode the uid to get the correct mime part.

2002-03-11  Ettore Perazzoli  <ettore@ximian.com>

    * camel-mime-utils.c: Change the order of the mailing list magic
    patterns so that the more mailing-list specific ones are on the
    top.

2002-03-11  Jeffrey Stedfast  <fejj@ximian.com>

    These fixes should fix bug #21737.

    * providers/smtp/camel-smtp-transport.c
    (connect_to_server_wrapper): Same as with the POP code.

    * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
    Slight restructuring of the if-statements for the USE_SSL_ALWAYS
    case so that we can't possibly return TRUE unless we really did
    connect successfully.

2002-03-10  Dan Winship  <danw@ximian.com>

    Rename the OpenSSL implementation of things to match the NSS
    implementation so that callers don't need to care which one is
    being used.

    * camel-tcp-stream-openssl.c: Implement CamelTcpStreamSSL, not
    CamelTcpStreamOpenSSL. Rename methods as well. Replace the
    camel-tcp-stream-openssl.h include with camel-tcp-stream-ssl.h.

    * camel-tcp-stream-openssl.h: Gone.

    * camel-tcp-stream-ssl.c: Add a note explaining that this
    implementation is only used for NSS, and that OpenSSL's
    implementation is in another file. (Should probably do some CVS
    renaming magic at some point.)

    * camel-http-stream.c (http_connect): Remove OpenSSL refs; the
    previously-NSS-specific code works for both now.

    * camel-remote-store.c: Likewise.

    * providers/smtp/camel-smtp-transport.c: Likewise.

    * providers/pop3/camel-pop3-store.c: Likewise.

    * Makefile.am (libcamelinclude_HEADERS): Remove
    camel-tcp-stream-openssl.h

2002-03-10  Dan Winship  <danw@ximian.com>

    * camel-tcp-stream.c (camel_tcp_stream_get_socket): Remove this:
    it couldn't be generically used, because different subclasses
    returned entirely different types of data.
    (camel_tcp_stream_get_local_address,
    camel_tcp_stream_get_remote_address): Add these to replace what
    get_socket was being used for.
    (camel_tcp_address_new, camel_tcp_address_free): Utility functions
    for get_{local,remote}_address.

    * providers/smtp/camel-smtp-transport.c: Change localaddr to a
    CamelTcpAddress *.
    (connect_to_server): Call camel_tcp_stream_get_local_address to
    get the local IP address.
    (smtp_disconnect): free localaddr.
    (smtp_helo): Update for localaddr change.

    * camel-tcp-stream-raw.c (stream_get_socket): Remove
    (stream_get_local_address, stream_get_remote_address): Implement.

    * camel-tcp-stream-ssl.c (stream_get_socket): Remove
    (stream_get_local_address, stream_get_remote_address): Implement.

    * camel-tcp-stream-openssl.c (stream_get_socket): Remove
    (stream_get_local_address, stream_get_remote_address): Implement.

2002-03-08  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-provider.c
    (camel_provider_module_init): Don't call
    camel_remote_store_get_authtypes since we no longer subclass
    camel-remote-store.

    * providers/pop3/camel-pop3-engine.c: Added STARTTLS to the
    capabilities to look for.
    (camel_pop3_engine_reget_capabilities): New function to re-get
    capabilities.

    * providers/pop3/camel-pop3-store.c: Updated to not subclass
    CamelRemoteStore.
    (connect_to_server): Rewritten to not depend on CamelRemoteStore's
    connect implementation. Also added support for STLS (aka
    STARTTLS).

2002-03-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-mime.c (camel_pgp_mime_part_sign): Add support for
    hash type RIPEMD160.

    * camel-cipher-context.h: Add RIPEMD160 hash type.

    * camel-pgp-context.c (pgp_sign): Updated to consider hash
    function for pgp5 and pgp6.
    (pgp_clearsign): Same.

    * camel-tcp-stream-openssl.c (stream_read): Add a timeout on the
    select.
    (stream_write): Same.

2002-03-06  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (connect_to_server): Fix
    to work with OpenSSL.

    * camel-tcp-stream-openssl.c: compile fixes.
    (camel_tcp_stream_openssl_enable_ssl): Check to make sure that the
    sockfd != -1, it's not enough to check that it is non-zero. Also
    set the sockfd to -1 on fail (open_ssl_connection will close the
    sockfd on fail).

2002-03-06  Dan Winship  <danw@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_construct): Make
    this compile.

2002-03-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (save_ssl_cert): Removed. Glory glory
    hallelujah!
    (ssl_bad_cert): No longer calls ssl_save_cert or
    ssl_cert_is_saved.

2002-03-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_new_raw):
    Start the ssl stream off in non-ssl mode (useful for STARTTLS).
    (camel_tcp_stream_openssl_enable_ssl): New function to toggle an
    ssl stream into ssl mode.
    (open_ssl_connection): Close the sockfd on fail so our caller
    doesn't have to - this also allows us to save the original errno.
    (stream_connect): If we want ssl mode, do our ssl stuff.
    (camel_tcp_stream_openssl_class_init): Init some SSL stuff here
    instead of in open_ssl_connection since these only ever need to be
    called once.
    (stream_read): Only use SSL_read if we are in ssl mode.
    (stream_write): Only use SSL_write if we are in ssl mode.

    * providers/smtp/camel-smtp-transport.c (smtp_helo): Check for the
    STARTTLS extension.
    (connect_to_server): Try to use STARTTLS whenever possible rather
    than the old way of doing things.
    (connect_to_server_wrapper): Wrapper around connect_to_server() to
    first try STARTTLS and then attempt normal SSL mode if we can't
    connect via STARTTLS.

    * camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_enable_ssl): New
    function to toggle an ssl stream into ssl mode.
    (camel_tcp_stream_ssl_new_raw): Start the ssl stream off in
    non-ssl mode (useful for STARTTLS).
    (stream_connect): Only connect in SSL mode if required.

2002-03-01  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-vtrash-folder.h: 
    * camel-vee-store.h: 
    * camel-vee-folder.h: 
    * camel-stream-null.h: 
    * camel-stream-filter.h: 
    * camel-store-summary.h: 
    * camel-news-address.h: 
    * camel-mime-utils.h: 
    * camel-mime-parser.h: 
    * camel-mime-filter-save.h: 
    * camel-mime-filter-linewrap.h: 
    * camel-mime-filter-index.h: 
    * camel-mime-filter-html.h: 
    * camel-mime-filter.h: 
    * camel-mime-filter-from.h: 
    * camel-mime-filter-crlf.h: 
    * camel-mime-filter-chomp.h: 
    * camel-mime-filter-charset.h: 
    * camel-mime-filter-bestenc.h: 
    * camel-mime-filter-basic.h: 
    * camel-internet-address.h: 
    * camel-folder-thread.h: 
    * camel-folder-summary.h: 
    * camel-folder-search.h: 
    * camel-filter-driver.h: 
    * camel-charset-map.h: 
    * camel-address.h: Add c++ armoring.

    * camel-object.h: s/class/klass

2002-03-01  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Reverted my
    pgp/mime fixes here too.

    * camel-mime-part.c (write_to_stream): Removed my pgp/mime raw
    stream hack, this is causing problems such as some messages to not
    displaying, view->source not working at all, etc.

2002-02-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-parser.c: Changed offset variables from int's to
    off_t's since the system may support large files.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Rearrange the
    save filter stuff so that we save raw streams for all mime
    parts. If the mime part turns out to be a multupart, then don't
    bother saving the raw stream, we only need to save the raw stream
    for leaf parts.

2002-02-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.h: Don't #include camel-mime-filter-save.h,
    we don't use it.

    * camel-file-utils.c: Fixed a few 'might be used uninitialized'
    warnings which were real problems.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Save the raw mime
    stream for any/all signed parts.

    * camel-mime-part.c (camel_mime_part_init): Initialize our raw
    stream to NULL.
    (camel_mime_part_finalize): Unref our raw stream, if we have one.
    (write_to_stream): If we have a raw stream, write that out instead
    of re-encoding.

    * camel-mime-filter-save.[c,h]: Rewritten to save to a stream
    rather than a file.

2002-02-28  Not Zed  <NotZed@Ximian.com>

    * camel-mime-utils.c (header_fold): Use the FOLD_SIZE as a
    recommended folding size, but add a new FOLD_MAX_SIZE (=998, the
    smtp max line size) as the hard limit for any output.

2002-02-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-chomp.c (camel_mime_filter_chomp_new): New
    stream filter that chomps excess trailing whitespace from the end
    of the stream. This is needed to update the PGP/MIME code to
    comply with rfc3156.

    * camel-pgp-mime.c (camel_pgp_mime_part_verify): Don't attach a
    from filter, if it ain't from-filtered already, then we'll just be
    breaking stuff. To become rfc3156 compliant, add a chomp filter
    here.
    (camel_pgp_mime_part_sign): Add a chomp filter here too.

2002-02-27  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part.c (init_header_name_table): Changed header
    formatted table to contain a pointer to an output function, and
    added in-reply-to and references headers.
    (write_references): New function to write out references header,
    folded properly.  It only approximates based on the last >, but it
    should be adequate and will also handle invalid headers.
    (write_fold): Function to write out headers folded.  Since this is
    the default it isn't required.
    (write_raw): Write out an already formatted header, e.g. most of
    the rest.
    (write_to_stream): Lookup header output function, if we have one,
    use that, otherwise fold header using basic (dumb) function.

    This is all for #14779.  A better fix is probably do have the
    headers always stored formatted, but that can wait.

2002-02-25  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-digest-folder.c (camel_digest_folder_new): Allow all
    multiparts that contain message/rfc822 attachments.
    (digest_get_uids): Only assign uids to message parts.

2002-02-22  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part.c (camel_mime_part_set_filename): Set the 'name'
    parameter on the Content-Type too. Fixes bug #20779.

2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_sign): Pass --always-trust to gpg
    (requested by users).
    (pgp_clearsign): Same.
    (pgp_encrypt): Here too.

2002-02-12  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_helo): Since the
    AUTH token sometimes uses '=' instead of whitespace, don't use
    smtp_token_next here.

2002-02-09  Not Zed  <NotZed@Ximian.com>

    * providers/pop3/camel-pop3-engine.c (get_capabilities): Duh, when
    we grab the apop stamp it needs to include the <> as well, I even
    read the rfc, silly me.

    * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Doh,
    when iterating the authtype list, it helps to goto the next node.
    Found with help from miles.

2002-02-08  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-summary.c
    (camel_spool_summary_build_from): The day number has to be 2 chars
    wide, space filled to work properly with pine, etc.

    * providers/local/camel-spoold-store.[ch]: new type of provider
    'spool directory', which lets you view external mbox dirs without
    adding any extra cruft.  Perhaps it should use . files to store
    summaries?  Still a bit experimental, there's a warning when you
    select it in the account editor.  Finished off most of #1185.
    Can't rename or move folders.

    * camel-mime-utils.c (header_decode_date): If the date is
    100->1900 then we actually want to use it as the year in the tm
    struct, not year+100.  e.g. year 102 -> 2002, not 2102.

2002-02-07  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-store.c (get_folder): Pass path into
    spool_folder_new.

    * providers/local/camel-spool-folder.c (camel_spool_folder_new): 
    (camel_spool_folder_construct): Take the full path to the folder
    and use that as the file path, independent of the full_name we
    use.

2002-02-07  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-provider.c: Added new type, spoold
    provider, spoold: for local directories.

    * providers/imap/camel-imap-store.c (get_one_folder_offline):
    Create offline uri's in a compatible manner to online ones.

2002-02-07  Dan Winship  <danw@ximian.com>

    * camel-sasl-ntlm.c: Implementation of NTLM (aka "Secure Password
    Authentication") auth, taken from soup.

    * Makefile.am (libcamel_la_SOURCES, libcamel_la_HEADERS): Add
    camel-sasl-ntlm.

    * camel-sasl.c: Add refs to camel-sasl-ntlm.

    * providers/imap/camel-imap-store.c (try_auth): Use
    imap_next_word() to skip over the "+ " of the continuation rather
    than just "resp + 2" since Exchange (incorrectly) returns "+"
    instead of "+ " for an empty continuation response.

2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.h: Remove the CAMEL_MESSAGE_NEEDS_REPLY
    flag, we no longer will be using this.

2002-02-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-http-stream.c (stream_read): Use camel_mime_parser_read to
    read internal parser data.
    (camel_http_stream_get_content_type): Implemented.
    (http_method_invoke): Use HTTP/1.0 instead of 1.1

    * camel-mime-utils.c (header_decode_int): Made public.

    * camel-http-stream.[c,h]: Added. New stream for HTTP requests
    (currently supported are GET and HEAD).

    * camel-tcp-stream-ssl.c (stream_connect): Call set_errno
    appropriately.

2002-01-31  Not Zed  <NotZed@Ximian.com>

    * camel-mime-utils.c (header_decode_domain): Oops, this was
    converting foo@[blah] to foo@[ blah ], fixed.

2002-01-30  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-provider.c: Use "pop" instead of
    "pop3" so current configurations continue to work.

2002-01-30  Not Zed  <NotZed@Ximian.com>

    * camel-sasl-login.c: Changed name from "NT Login" to simply
    "Login".

    * providers/pop3/*: Entirely new pop implmentation, supporting
    pipelining.

2002-01-29  Not Zed  <NotZed@Ximian.com>

    * camel-data-cache.c (free_busy): We dont want to unref the
    stream, instead, stop listening to the finalised events, and free
    the path only.

2002-01-25  Not Zed  <NotZed@Ximian.com>

    * camel-data-cache.c (stream_finalised): Remove the object from
    the busy_stream hashtable, not the busy_path hashtable.

2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_update_summary): Added
    more kludge to an existing Exchange IMAP 5.5 kludge to work around
    it returning multiple messages with the same UIDs.

2002-01-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-message.c (process_header): Handle Resent headers
    too.

    * camel-mime-message.h: Added Resent-* #defines.

    * camel-filter-driver.c (camel_filter_driver_remove_rule_by_name):
    Use while (node->next) instead of while (node)

    * providers/smtp/camel-smtp-transport.c (smtp_decode_status_code):
    New function to decode an enhanced status code.
    (smtp_set_exception): Sets an exception based on the
    Enhanced-Status-Code.
    (esmtp_get_authtypes): Don't diplicate the key in the hash since
    the key and value are the same.
    (smtp_rcpt): Include the failed recipient in the error message to
    be more helpful to the user.

    * camel-mime-utils.c (hex_decode): Make sure to allocate enough
    for the NUL byte.

2002-01-28  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_construct):
    (connect_to_server): Use flags rather than a bunch of gboolean
    variables.
    (smtp_connect): Same.
    (smtp_mail): Here too. Use the enhanced status codes if available.
    (smtp_data): And again here.
    (smtp_helo): Finally here. Also detect the ENHANCEDSTATUSCODES
    extension.
    (smtp_rcpt): Use the enhanced status codes if available.
    (smtp_rset): Here too.
    (smtp_quit): And finally here.

    * camel-transport.h: Removed gboolean supports_8bit since this is
    pretty local to only SMTP for now.

2002-01-24  Ettore Perazzoli  <ettore@ximian.com>

    * Makefile.am: Remove some old cruft.

2002-01-24  Ettore Perazzoli  <ettore@ximian.com>

    * tests/folder/Makefile.am: s/MAILER_LIBS/EVOLUTION_MAIL_LIBS/.
    * tests/message/Makefile.am: Likewise.
    * tests/mime-filter/Makefile.am: Likewise.
    * tests/misc/Makefile.am: Likewise.
    * tests/smime/Makefile.am: Likewise.
    * tests/stream/Makefile.am: Likewise.

2002-01-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_beep): Call the beep callback
    function.
    (camel_filter_driver_set_system_beep_func): New function to set
    the beep callback.

2002-01-22  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_remove_rule_by_name):
    New function to remove a filter rule by name.

2002-01-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_beep): As a temporary solution, just
    printf ("\a"); to make a beep :-)

    * providers/imap/camel-imap-command.c
    (imap_command_strdup_vprintf): Encode the mailbox to UTF-7 here.

    * providers/imap/camel-imap-utils.c (imap_parse_list_response):
    Decode the mailbox name as we parse the list response.
    (imap_mailbox_decode): It's only an illegal mailbox name if it
    didn't switch back to US-ASCII mode.

2002-01-18  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_mailbox_decode): New
    function to decode an IMAP mailbox name from modified UTF-7
    encoding to UTF-8.
    (imap_mailbox_encode): New function to convert a mailbox name from
    UTF-8 to IMAP's modified UTF-7 encoding.

2002-01-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-basic.c (filter): Stop uudecoding once the
    CAMEL_UUDECODE_STATE_END state bit gets set. Set the
    CAMEL_UUDECODE_STATE_BEGIN state bit once we find the begin line.
    (reset): No longer have uu_begin or uulen state variables, these
    are now stuffed into a single state variable.

    * camel-mime-utils.c (uudecode_step): No longer needs a uulen
    argument and also keeps track of whether or not the end of the
    encoded data has been found in 'state'.
    (uuencode_step): Now stuffs uulen into state so that the uulen
    argument is no longer needed.
    (uuencode_close): Same.

2002-01-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-basic.c (filter): If we don't want to corrupt
    the uuencoded data by overwriting it with base64 decoded data
    afterward, we need to add a break statement!

    * camel-folder-summary.c (summary_build_content_info): Add code to
    add a uu filter.
    (camel_folder_summary_finalize): Unref the uuencode filter.

2002-01-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-basic.c (filter): Fixed slight logic error to
    find the uuencode begin line. Fixes bug #18754.

2002-01-15  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_send_to): Updated to
    match the new send_to API.
    (smtp_send): Get the from address and pass that along to
    smtp_send_to().

    * providers/sendmail/camel-sendmail-transport.c
    (sendmail_send_to): Updated to match the new send_to API.

    * camel-transport.c (camel_transport_send_to): Now takes a from
    argument too.

    * providers/imap/camel-imap-folder.c (imap_update_summary): Sort
    the needheaders UID array and fixed to respect the
    UID_SET_LIMIT. This should now finish the fixification of bug
    #2529. There's still the possible issue that a command-line (The
    only command-line I can think of that can still be too long is a
    SEARCH command, but this can't possibly be fixed until we rewrite
    the imap code to use Zucchi's ImapEngine idea).

2002-01-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_expunge_uids_online):
    Move the command-lock outside the loop.

2002-01-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_expunge_uids_online):
    Updated to use the new imap_uid_array_to_set() interface.
    (imap_expunge_uids_resyncing): Same.
    (do_copy): Here too.
    (imap_update_summary): Added a FIXME comment to rewrite allowing
    for a uid-set limitation.
    (get_matching): Copy some of the logic over from
    imap_uid_adday_to_set() to limit the length of the uid-set string.
    (imap_sync_online): Added a comment to explain what is going on
    with get_matching() since the behavior has changed slightly.

    * providers/imap/camel-imap-utils.c (imap_uid_array_to_set):
    Modify the interface so that we can limit the size of the uid set
    string returned.

2002-01-14  Not Zed  <NotZed@Ximian.com>

    * providers/imap/camel-imap-search.c (imap_body_contains):
    Rewritten to use a cache for body searches when online.  Will need
    some heavy testing but so far seems to be beneficial.

    * providers/imap/camel-imap-folder.c (imap_search_by_expression,
    search_by_uids): dont initialise search object here.
    (camel_imap_folder_new): Setup search object here with pointer to
    cache dir.

2001-12-01  Not Zed  <NotZed@Ximian.com>

    * camel-store-summary.[ch]: New class to store a store's folder
    list in.  Not yet completed.

2002-01-11  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_update_summary): Kludge
    around a bug in Exchange 5.5 that reports 2 messages with the same
    UID. Fixes bug #17694. Replaces the fix from yesterday.

2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-local-folder.c: If PATH_MAX doesn't exist,
    use _POSIX_PATH_MAX.

    * providers/imap/camel-imap-folder.c (imap_update_summary): If mi
    is NULL, don't bother updating it. Should fix bug #17694.

2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.h: #include camel-mime-filter-tohtml.h

    * providers/imap/camel-imap-folder.c (imap_update_summary): Kludge
    around Microsoft Exchange 5.5 (bug #5348) by forgetting our
    currently selected folder and re-SELECTing it so that the Exchange
    server has a chance to realise it has new messages.

2002-01-09  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): If the mbox file is a symlink,
    follow the symlink and get the One True Path so that we can
    rewrite the mbox later without worrying about clobbering the
    symlink.

2002-01-08  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-search.c (TODO): There are a few sexp callbacks
    that could be modified to use fms->info rather than using a
    message object (like date and possibly mlist stuff) but *only* if
    the date exists on the CamelMessageInfo object (since it may be
    blank except for message flags).
    (camel_filter_search_get_message): New internal convenience
    function to make sure that the FilterMessageSearch has loaded the
    message (and to load the message if this isn't the case).
    (check_header): Call camel_filter_search_get_message().
    (header_exists): Same.
    (header_regex): Here too.
    (header_full_regex): And here.
    (body_contains): Again here.
    (body_regex): Here too.
    (get_sent_date): Here also.
    (get_received_date): Same.
    (get_source): Here if we need to.
    (camel_filter_search_match): Now takes a callback function/data
    pair for on-demand message loading so that we don't necessarily
    have to load the message if the defined filter rules don't require
    it.

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Don't
    bother fetching the message here, let
    camel_filter_driver_filter_message() worry about this.
    (get_message_cb): New utility callback to fetch a message.
    (camel_filter_driver_filter_message): Only fetch the message if we
    absolutely need it to get a CamelMessageInfo. Instead of passing a
    message object to camel_filter_search_match(), pass get_message_cb
    and some user_data so that the matching code can fetch the message
    on demand.

2002-01-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder.c (filter_filter): Flush the only-once actions.

    * camel-filter-driver.c (camel_filter_driver_filter_message):
    Don't increment a filtered_count here any longer.
    (camel_filter_driver_reset_filtered_count): Removed.
    (camel_filter_driver_get_filtered_count): Removed.
    (do_beep): New action.
    (play_sound): New action to play a sound
    (do_only_once): Another new action.
    (camel_filter_driver_finalise): Free the only_once hash if the
    driver has not been "flushed".
    (camel_filter_driver_flush): Flush all of the only-once actions.

    * camel-charset-map.c: Moved windows-1251 to the end of the list
    since it contains the euro and we'd prefer to use iso-8859-15 when
    the euro is requested than a windows charset if possible.

    * camel-charset-map-private.h: Regenerated.

2001-12-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (content_info_load): Don't try setting a
    content-type parameter if either the name or value is NULL.

    * camel-mime-utils.c (header_set_param): NULL-protection.

2002-01-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Do more like what mutt
    does so hopefully this'll fix bug #16363 and #16300.

2001-12-21  Jeffrey Stedfast  <fejj@ximian.com>

    * broken-date-parser.c (parse_broken_date): Completely
    rewritten. It is now a load faster and a heck of a lot more
    accurate, also now returns a time_t and sets the saveoffset
    variable rather than returning a new char* buffer for the normal
    camel date parser to re-parse. This saves a fair number of cpu
    cycles :-)

    * camel-mime-utils.c (header_decode_date): Cleanup the broken date
    parsing code.

2001-12-20  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-address.h: Change the prototype for camel_address_get_type
    to return a CamelType (since internally this is what it returns
    and also in case we decide to write a replacement for the current
    CamelObject it'd be easier to drop in).

    * camel-internet-address.h: Same but for
    camel_internet_address_get_type()

    * providers/smtp/camel-smtp-transport.c (smtp_send_to): Updated to
    use a CamelAddress of recipients.
    (smtp_send): Since smtp_send_to now takes a CamelAddress
    recipients argument, our lives have been simplified and we can now
    just concat To/Cc/Bcc into a recipients addr and send away.

    * providers/sendmail/camel-sendmail-transport.c
    (sendmail_send_to): Updated to use a CamelAddress of recipients.

    * camel-transport.c (camel_transport_send_to): Now takes a
    CamelAddress argument for the recipient list rather than a GList.

2001-12-19  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/Makefile.am: Remove the providerdir variable.

    * providers/sendmail/Makefile.am: Same.

2001-12-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-charset-map.c (camel_charset_iso_to_windows): New function
    to map ISO charsets to the Windows charsets.

    * camel-mime-part-utils.c (broken_windows_charset): Detect Windows
    charsets.
    (simple_data_wrapper_construct_from_parser): Simplify a tad and
    also check for iso-8859-* charsets that are really Windows
    charsets. Fixes bug #12631.

2001-12-17  Dan Winship  <danw@ximian.com>

    * Makefile.am (INCLUDES): define CAMEL_PROVIDERDIR to be the
    configure.in-defined camel_providerdir.

    * providers/Makefile.am: Remove some outdated comments

    * providers/imap/Makefile.am (camel_provider_LTLIBRARIES,
    camel_provider_DATA): renamed from provider_LTLIBRARIES,
    provider_DATA.  

    * providers/local/Makefile.am: Likewise 

    * providers/nntp/Makefile.am: Likewise 

    * providers/pop3/Makefile.am: Likewise 

    * providers/sendmail/Makefile.am: Likewise 

    * providers/smtp/Makefile.am: Likewise

2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (get_content): Reverted my
    previous changes here since it doesn't actually work afterall.

    * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate):
    Update to do uudecoding when appropriate.

2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (get_content): Try to use the
    original boundary so luis will stop bugging me about "data
    corruption". Also preserve other params in the multipart
    content-type by dumping it to a string and setting it on the mime
    part.

2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c
    (camel_filter_driver_reset_filtered_count): Reset the
    filtered_count to zero.
    (camel_filter_driver_get_filtered_count): Return the private
    filtered_count value.
    (camel_filter_driver_filter_message): Increment the
    filtered_count.
    (camel_filter_driver_set_shell_exec_func): New function to set the
    shell-exec func.
    (shell_exec): New ESExp filter action callback.

2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-mime.c (camel_pgp_mime_part_verify): Removed
    x-inline-pgp-hack kludge because it doesn't work.
    (camel_pgp_mime_part_decrypt): Same.

2001-12-13  Chris Toshok  <toshok@ximian.com>

    * camel-data-cache.c: include stdlib.h (for alloca on freebsd) and
    only include alloca.h if HAVE_ALLOCA_H is defined.

2001-12-11  Zbigniew Chyla  <cyba@gnome.pl>

    Fixes #17085

    * camel-charset-map.c: Added #include <errno.h>.

    * camel-charset-map-private.h:
    Recreated (following instructions from camel-charset-map.c)

2001-12-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-object.c (camel_type_register): Keep a name-to-type hash
    so that we can make sure that the type has not yet been registered
    (prevents a race condition such as the one in bug #16559).

    * camel-service.c (camel_service_connect): Make sure that the
    connect_op is non-NULL before unregistering/unreffing it.

2001-12-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_content_type_simple): Protect against
    either of the types being NULL.

2001-12-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-basic.c (filter): If complete() allocates
    len+2 bytes for the out buffer, so should this. See bug #16371 for
    an example case.

2001-12-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-digest-md5.c: iconv() returns a size_t, not an int.

    * camel-pgp-context.c: The return value of iconv() is a size_t,
    not an int.

    * camel-mime-part-utils.c (convert_buffer): Always use size_t args
    for iconv().

    * camel-mime-filter-charset.c (complete): Always use size_t args
    for iconv().
    (filter): Same.

    * camel-mime-utils.c (header_address_fold): Make headerlen a
    size_t instead of an int.
    (header_fold): Same.
    (base64_encode_close): We should be returning a size_t and inlen
    should also be a size_t.
    (base64_encode_step): Same here.
    (base64_decode_step): Here too.
    (base64_encode_simple): And here...
    (base64_decode_simple): Same.
    (uuencode_close): We should also use size_t's here...
    (uuencode_step): And here too.
    (uudecode_step): And also here.
    (quoted_encode_close): Same idea here.
    (quoted_encode_step): Again here.
    (quoted_decode_step): Here too.
    (quoted_encode): Input length should be a size_t.
    (rfc2047_decode_word): Same.
    (g_string_append_len): Here too.
    (append_8bit): "
    (rfc2047_encode_word): "
    (quote_word): "
    (hex_decode): "
    (rfc2184_decode): Use size_t's with iconv().
    (header_decode_param): Same.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

    * camel-folder-summary.c: Add "NeedsReply" to the flag_names array
    for CAMEL_MESSAGE_NEEDS_REPLY.

    * camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag.

2001-12-07  Dan Winship  <danw@ximian.com>

    * camel-mime-message.c (camel_mime_message_set_date): Fix the
    tm_gmtoff case (its sign is the opposite of "timezone"). Fixes
    #14678

2001-11-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-search.c (search_body_contains): Don't use regex
    matching. Fixes bug #16227.

    * camel-mime-message.c (best_encoding): Check the content-object's
    mime type, not the mime part types. Should fix bug #15843.

2001-11-27  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (get_content): Return NULL if
    construct_from_stream fails.
    (get_message): Same.
    (get_message_simple): Here too.
    (add_message_from_data): And here.

2001-11-14    <NotZed@Ximian.com>

    * camel-vee-folder.c (folder_changed_remove_uid): Use the uid
    rather than vuid for unmatched.  Also add the uid to unmatched if
    it wasn't in the unmatched_uids table at all.
    (folder_changed_change): If checking for added, if the new ones
    dont match, then try to add them to unmatched.  Fixes #6893.

    * camel-folder-summary.c (camel_folder_summary_index): Change lock
    order, always summary_lock before ref_lock.
    (camel_folder_summary_array): "
    (camel_folder_summary_uid): "
    (camel_folder_summary_remove_uid): " Fixes a deadlock.

2001-11-30  Not Zed  <NotZed@Ximian.com>
  
    * providers/nntp/camel-nntp-*.c: Completely new implementation of
    NNTP.
    
    Doesn't support subscriptions yet (lists all folders), but should
    be more reliable (faster?), and has an integrated cache.

    * camel-exception.c (camel_exception_new): Use e_memchunks for
    exception blocks.
    (camel_exception_free): Same.

    * camel-data-cache.[ch]: New object for managing on-disk caches of
    anything that can be stored in a camel-stream.

    * camel-file-utils.c (camel_file_util_mkdir): New function, just a
    nicer place to put this (than camel-store), should be removed from
    camel-store.
    (camel_file_util_safe_filename): New function to url-encode a
    filename.

    * camel-mime-parser.c (drop_states): New func to drop the parser
    state to initial state.
    (folder_scan_init_with_fd): 
    (folder_scan_init_with_stream): Call above func to reset state if
    the stream is changed on us so we can change streams to reuse a
    parser object.

2001-11-25  Not Zed  <NotZed@Ximian.com>

    * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message): If
    the uid doesn't have a ',' in it, fail to crash.

    * providers/nntp/camel-nntp-newsrc.c
    (camel_nntp_newsrc_article_is_read): check group != NULL before
    scanning.
    (camel_nntp_newsrc_get_highest_article_read): "
    (camel_nntp_newsrc_get_num_articles_read): "
    (camel_nntp_newsrc_mark_range_read): "

    * providers/nntp/camel-nntp-store.c
    (camel_nntp_store_get_overview_fmt): IF we dont have
    nntp_list_follows, dont try and get a list response.
    (nntp_store_get_folder_info): Set path part of folderinfo.

2001-11-20  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (get_smtp_error_string):
    Check to see that errno is non-zero before returning
    g_strerror. If it's 0, then we have an unknown error.

2001-11-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-basic.c: For the uudecoding mode, garble up
    the "begin <mode> <filename>" line before decoding.

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Add a uudecoder if
    the transfer encoding is x-uuencode.

    * camel-mime-part.c (write_to_stream): Handle x-uuencoded content
    too.

2001-11-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (stream_read): Added a check to see if
    the operation has been cancelled.
    (stream_write): Same.

2001-11-19  Jeffrey Stedfast  <fejj@ximian.com>

    Updates for compliance with rfc2231

    * camel-mime-utils.c (header_encode_param):
    camel_mime_special_table[c] & IS_ESAFE should have been
    !(camel_mime_special_table[c] & IS_ESAFE). Also added a few
    comments for how to improve the code at some future date.
    (header_decode_param): Now takes an argument rfc2184_part so our
    caller can get this information as well.
    (header_decode_param_list): Pass an rfc2184_part argument to
    header_decode_param and also added a few comments on where to
    improve on rfc2184/rfc2231 compliance.
    (rfc2047_decode_word): Updated to respect the updated ABNF syntax
    of rfc2047 encoded words, yay.

2001-11-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_parse_body): Abort if
    body == NULL.

    * camel-mime-filter-tohtml.c (camel_mime_filter_tohtml_new): New
    mime filter to convert plain text to html.

2001-11-16  Jeffrey Stedfast  <fejj@ximian.com>

    Since some mail clients like Outlook are broken, we need to set a
    name parameter on pgp signed and encrypted parts.

    * camel-pgp-mime.c (camel_pgp_mime_part_encrypt): Set a name
    parameter.
    (camel_pgp_mime_part_sign): Same.

2001-11-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-command.c
    (camel_imap_command_response): If we get a BYE response, call
    camel_service_disconnect() and set an exception. Also do the check
    for "* BYE" first instead of passing it off imap_read_untagged()
    since we'll just waste time in there mallocing left and right only
    to arrive at the single response line "* BYE" again :-)

2001-11-13    <NotZed@Ximian.com>

    * camel-filter-search.c (get_source): If we have no source string,
    then use undefined, which should always evaluate to FALSE.  Fix
    for #15267.

2001-11-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_get_folder): Added a
    g_return_val_if_fail for folder_name != NULL.

2001-11-08  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (crypto_exec_with_passwd): If any of the
    pipe()'s fail, clean up any pipes that may have succeeded. Also
    close the password fds.

2001-11-09    <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c (imap_auth_loop): If we get a
    user cancel and that causes us to fail to authenticate, abort
    rather than loop forever.  Fix for #14951.

2001-11-06  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-command.c
    (camel_imap_command_continuation): Now takes a command-length
    argument so we can 1) avoid duping the command string yet again,
    yay. 2) we now don't have to worry about embedded nul-chars
    screwing us over (we still need to avoid allowing them into the
    string but at least now it won't mess us up).

    * providers/imap/camel-imap-folder.c (do_append): Instead of
    appending a nul char to the end of the byte array and then passing
    that off as if it were a string to
    camel_imap_command_continuation, instead pass the byte-array
    length since that function now takes a length argument. Yay.  Also
    encode any 8bit parts to avoid the possibility of sending embedded
    nul chars to the imap server.

    * providers/imap/camel-imap-store.c (try_auth): Updated to pass a
    command-length argument to camel_imap_command_continuation().

2001-11-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (save_ssl_cert): Oops, pass a mode
    argument to the open() call.

    * camel-tcp-stream-openssl.c (save_ssl_cert): Oops, pass a mode
    argument to the open() call.

2001-11-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-mime.c (camel_pgp_mime_part_decrypt): Add code to
    kludge around any x-inline-pgp-hacks by prepending some content
    headers to the decrypted data.

2001-11-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-data-wrapper.c (camel_data_wrapper_init): Initialize our
    private mutex.
    (camel_data_wrapper_finalize): Destroy our private mutex.
    (write_to_stream): Lock around camel_stream_write_to_stream() so
    that we don't get 2 threads trying to read from our stream at the
    same time.

2001-11-01    <NotZed@Ximian.com>

    * camel-vee-folder.c (folder_changed_change): Move all searching
    operations outside of any locks except subfolder lock, same as
    build_folder.  Fix for #14294.

2001-10-31    <NotZed@Ximian.com>

    * providers/local/camel-spool-folder.c (spool_get_message): Same
    as below.

    * providers/local/camel-maildir-folder.c (maildir_get_message):
    Same as below.

    * providers/local/camel-mbox-folder.c (mbox_get_message): Set
    USER_CANCEL if failed due to EINTR.

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): If
    construct from parser fails due to user cancel, set USER_CANCEL on
    exception.

    * camel-mime-part.c (construct_from_parser): Return error if the
    parser had an io error.

    * camel-mime-message.c (construct_from_parser): Check error on
    parser/return error.

    * camel-mime-parser.c (folder_scan_init): Init error number.
    (camel_mime_parser_errno): New function, return errno of any io
    failures.
    (folder_read): Set errno if a failure occured.
    (folder_seek): Same.
    (folder_scan_init_with_fd): Setup errno depeding on ok/failure.
    (folder_scan_init_with_stream): Same.

2001-10-30    <NotZed@Ximian.com>

    * camel-operation.c (camel_operation_new): Dont setup cancel_fd.
    (camel_operation_cancel_fd): If cancel_fd not created, set it up.
    (camel_operation_cancel): Set cancel flag before sending message.
    (cancel_thread): Same.

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): Make
    sure we unref the mimeparse when we're done (successfully).  This
    was leaking an fd every get-mail! :(

    * camel-lock-client.c (camel_lock_helper_init): Close all fd's
    above 2.

    * providers/local/camel-mbox-folder.c (mbox_get_message): Remove
    the X-Evolution header before anyone else gets to see this private
    thing.  Shoudl fix 11676 since we were inheriting flags from
    X-Evolution headers we didn't want to.

    * camel-folder-search.c (match_message): If we can't retrieve the
    message, ignore it, it can't match.

    * providers/imap/camel-imap-search.c
    (camel_imap_search_class_init): Setup parent class pointer.
    (imap_body_contains): If offline, just use the parent
    body_contains method which will get the messages and search them
    manually.

    * providers/imap/camel-imap-folder.c (imap_search_by_expression,
    imap_search_by_uids): Remove offline check.

2001-10-30  Dan Winship  <danw@ximian.com>

    * camel-mime-part.c (free_headers): Fix this to match get_headers.

2001-10-30    <NotZed@Ximian.com>

    * providers/local/camel-local-store.c (rename_folder): Dont try to
    move ibex if we have none.

    * camel-tcp-stream-openssl.c (stream_write): Fixed compilation
    errors.

2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (camel_mime_utils_init): Removed unused
    variable.

2001-10-30    <NotZed@Ximian.com>

    * camel-mime-utils.c (header_decode_mailbox): w(x) out some warnings.

    * providers/local/camel-local-summary.c
    (camel_local_summary_load): Remove the warning about not loading
    summary file - its a valid case for new folders.

2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-openssl.c (my_SSL_write): Removed.
    (stream_write): Keep looping (non-blocking case) if errno is
    EAGAIN, EINTR or EWOULDBLOCK. For NONBLOCKing I/O, sync up with
    CamelTcpStreamRaw. As with CamelTcpStreamRaw/SSL - make sure to
    write out everything before returning.
    (my_SSL_read): Removed.
    (stream_read): Just call ssl_error_to_errno() and check the errno
    values that we care about so we can keep the general look of all
    this stream code the same. Also when checking the return value of
    SSL_read, check for <0 instead of ==-1 since the man page for
    SSL_read doesn't say it will return -1 on fail, it just says <0.
    (stream_flush): Don't fsync() since syncing on a socket is a Bad
    Thing (tm).

    * camel-tcp-stream-ssl.c (stream_write): Make sure we write out
    everything just like in camel-tcp-stream-raw.c.

    * camel-stream-buffer.c (camel_stream_buffer_gets): If
    camel_stream_read() returns -1, don't necessarily return -1 to our
    caller since it's possible that we did actually "read" some data
    (ie, we copied some pre-buffered data into the out buffer).

    * camel-stream-buffer.h: Removed CAMEL_STREAM_BUFFER_NEWLINE since
    it never got used anywhere and it isn't supported anyway.

2001-10-30    <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c
    (parse_list_response_as_folder_info): If we get an empty name,
    then mark that as NoSelect.  Workaround fix for #13239.

2001-10-29  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (get_message_simple, 
    imap_get_message): Set an X-Evolution-Source header on the
    returned message so replies come from the right identity.

2001-10-29    <NotZed@Ximian.com>

    * camel-vee-folder.c (folder_changed_change): If we're not going
    to search on a changed uid, make sure we change out copy still.
    Fixes #13916.

2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (subscribe_folder): Don't emit
    a folder_subscribed signal if we are in the process of renaming
    folders.
    (unsubscribe_folder): Same here but for the unsubscribe signal.
    (rename_folder): Unsubscribe from the folder being renamed and any
    subfolders it may have before actually renaming. Once the folder
    has been renamed, re-subscribe to it and it's subfolders with the
    new name.

    * camel-store.c (camel_folder_info_build): Sort the folder info's
    before constructing the tree.

    * camel-mime-utils.c (header_decode_param): Minor fix - should
    have been using a strNcmp when checking if it was an rfc2047
    encoded word.

    * camel-pgp-context.c (pgp_sign): Notify the user that PGP 2.6.x
    is no longer supported and use camel_exception_set() instead of
    setv() where appropriate.
    (pgp_clearsign): Same.
    (pgp_verify): And again here.
    (pgp_encrypt): Here too.
    (pgp_decrypt): And finally here.

2001-10-29  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (unsubscribe_folder): Don't
    free the hash table key if the folder wasn't found in the hash
    table. I'm not sure where the bug is/was that made it possible to
    add a folder to the tree after creating it failed, but now if that
    happens, it won't crash if you try to delete it again. (#11492)

    * camel-disco-store.c (camel_disco_store_status): if the service
    is being connected and thinks it's online, but the session is
    offline, then mark the service offline as well. Fixes 13683.

2001-10-29    <NotZed@Ximian.com>

    * camel-mime-utils.c: Turn off w() -> warnings.

    * providers/imap/camel-imap-store.c (rename_folder): Also rename
    the message cache.
    (rename_folder): Fix subscribed folders table with rename(s).

    * providers/imap/camel-imap-folder.c (imap_rename): Implement,
    rename the cache dir pointer.

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_set_path): New method to set the path
    used by a message cache.

    * camel-vee-store.c (build_info): Fix the 'is this a matching
    subfolder or subfolder' logic to match camel-store
    get_subfolders'.

    * camel-store.c (get_subfolders): Fix the 'is this a matching
    folder or subfolder' logic.

2001-10-28    <NotZed@Ximian.com>

    * providers/local/camel-local-store.c (rename_folder): Changed to
    call ibex_move to rename it internally.

    * camel-store.c (camel_store_rename_folder): Use the right
    variable, not info.

2001-10-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-buffer.c (camel_stream_buffer_read_line): Make sure
    we've actually read data before checking if p[-] is '\r' or not.

    * camel-tcp-stream-raw.c (stream_write): Same.

    * camel-stream-fs.c (stream_write): If errno isn't EAGAIN, just
    exit with -1 and instead of using continue (which doesn't go to
    the top of the do-while thus making our logic suck), just set w to
    0. Still seems to be a bug in select() if it's telling us the
    socket is ready for data when it really isn't but oh well.

2001-10-28    <NotZed@Ximian.com>

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Use path not protocol as the path
    part of the uri of the folder_created event.

    * providers/local/camel-maildir-store.c (scan_dir): If FAST is
    set, dont try and scan for unread counts.

    * providers/local/camel-local-store.c (create_folder): Implement,
    just return the folderinfo of the folder matched, not all of it.

    * camel-store.c (camel_store_rename_folder): Rename the
    camelfolders before emitting the folderchanged event (otherwise
    vstore fails to pick up change.

2001-10-27    <NotZed@Ximian.com>

    * camel-store.c (camel_store_init): Always use a default dir_sep
    of '/'.

    * camel-store.h (struct _CamelStore): Added a dir_sep to the base
    store so rename and whatnot can work, temporary fix for mixed dir
    separator in folder name api's.

    * providers/imap/camel-imap-store.c (rename_folder): Finished
    implementation.
    (imap_connect_online): Also set the store's dir_sep here.
    (imap_connect_offline): "

    * providers/local/camel-local-folder.c (local_rename): Implement
    local rename of folder objects.

2001-10-26    <NotZed@Ximian.com>

    * camel-vee-folder.c (camel_vee_folder_class_init): Hook into
    rename function.
    (vee_rename): Implement the veefolder rename function.
    (camel_vee_folder_class_init): 
    (folder_changed_change): Kill a warning with a cast.

    * camel-vee-store.c (vee_rename_folder): Emit a folder_renamed
    event properly, also call parent to do some rename stuff.

    * camel-store.h: Added a CamelRenameInfo for the rename event.

    * camel-folder.c (camel_folder_rename): New function to rename a
    folder object.
    (camel_folder_class_init): Added a renamed event.
    (folder_rename): Default impl, set full_name, and set name
    assuming the dir separator is '/'.

    * camel-store.c (camel_store_class_init): Added folder_renamed
    event.
    (camel_store_rename_folder): Rename an active folder object if we
    have one, and update the folder table.
    (rename_folder): Make a default implementation that handles
    updating the folder tree.

2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (delete_folder): Don't bother
    checking ex since we can rely on the response being NULL on error.
    (rename_folder): Implemented.

2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_get_message): Check to
    make sure that the dataset is non-NULL before using and/or
    freeing.

    * camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK
    too?
    (stream_read): Same.
    (stream_flush): Return 0 always, fsync() and tcp sockets don't
    play nice :-)

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_get): Lets try putting a
    camel_stream_reset() here. Logic being that the stream may have
    been read from since it was cached and thus our caller may try
    reading from it and get no data from it since it is already at the
    EOS. This may fix bug #12943.

2001-10-25    <NotZed@Ximian.com>

    * camel-search-private.c (utf8_get): Remove the stupid warning
    that should never have been there in the first place.

    * camel-sasl-digest-md5.c (digest_response): s/iconv/e_iconv/

    * camel-pgp-context.c (pgp_verify): "

    * camel-mime-utils.c (rfc2047_decode_word, rfc2047_decode_word,
    append_8bit, rfc2047_encode_word, rfc2184_decode,
    header_decode_param): "

    * camel-mime-part-utils.c (convert_buffer, convert_buffer): "

    * camel-mime-filter-charset.c (reset, complete, filter): "

2001-10-24    <NotZed@Ximian.com>

    * camel-mime-filter-basic.c (complete): For qp decoding, if the
    data isn't really qp encoded, we could possible grow the buffer by
    upto 2 bytes above the input size, fix allocations/assertions
    appropraitely.

    * camel-vee-folder.c (folder_changed_change): If we're not
    autoupdate, only search for new matches against changed uid's that
    we dont already have.

2001-10-24  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (unsubscribe_folder): Don't
    let fi->name be NULL.

2001-10-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-fs.c (stream_read): Same as in the TcpStreamRaw code.
    (stream_write): And again here...

    * camel-tcp-stream-raw.c (stream_read): Handle the EAGAIN error
    case as well.
    (stream_write): Same here, this might fix the SMTP truncation
    thing? I hope?

2001-10-23  Dan Winship  <danw@ximian.com>

    * camel-mime-utils.c (mail_list_magic): Remove an extra * in one
    of the regexps that glibc apparently doesn't mind but bsd does.

2001-10-23    <NotZed@Ximian.com>

    * providers/local/camel-mbox-summary.c: made d(x) x recompile again.

2001-10-22    <NotZed@Ximian.com>

    * providers/local/camel-spool-summary.c (summary_rebuild): No, use
    Storing, as the other code does :p
    (spool_summary_check): Check for consistency.

2001-10-22  Jon Trowbridge  <trow@ximian.com>

    * providers/local/camel-spool-summary.c (summary_rebuild):
    s/summarising/summarizing/.
    (spool_summary_check): s/summarise/summarize/.

2001-10-22  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-mime.c (camel_pgp_mime_part_verify): If we are
    kludging around a inline-pgp signed part, do some charset
    conversion to protect any 8bit text.

2001-10-22    <NotZed@Ximian.com>

    * camel-filter-search.c, camel-folder-search.c (check_header): Use
    search_type_mlist for mailing list searches.

    * camel.c (camel_init): call camel-mime-utils-init func.

    * camel-mime-utils.c: Changed mail mail_list_magic to include a
    domain part, also pre-compile all the patterns.  They are all
    backward compatible except List-Id: which now uses the
    mail-address-like <list-name.host.name> part rather than the
    plain-text part (which might've been blank anyway).
    (camel_mime_utils_init): Initialisation function to setup any
    static data required by camel-mime-utils at run-time.  We now
    setup the base64/charset class tables here, so it doesn't need to
    be done statically.
    (camel_mime_special_table, camel_mime_base64_rank): No longer
    statically initialise these.
    (main): Removed + the tests at the end of the file.
    (header_raw_check_mailing_list): Dont compile regex's here,
    already compiled in utils_init.  Use the regex patterns to remove
    leading <'s from addresses.  Also, if there is a domain part
    matched, add that after a '@' is added.

    * camel-search-private.c (camel_search_header_match): Match check
    against all addresses in a multiple address match.  Should fix
    #13051.
    (camel_search_header_match): Oops, missing i=0.
    (camel_search_header_match): Added SEARCH_TYPE_MLIST for mlist
    search types.  It ignores the domain part if either (but not both)
    of the values dont have it.

2001-10-22  Dan Winship  <danw@ximian.com>

    * camel-pgp-mime.c (camel_pgp_mime_part_verify): Add a hack: if
    the multipart/signed part has a "x-inline-pgp-hack" parameter in
    its Content-Type, don't pass the MIME headers as part of the data
    to be verified.

2001-10-22  Rodrigo Moya <rodrigo@ximian.com>

    * Makefile.am: added $GNOME_INCLUDEDIR to INCLUDES, needed for latest
    libgnome, which install headers in $(prefix)/gnome-1.0

2001-10-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Only do the rawtext
    checks if the part is a text part, otherwise don't bother wasting
    cpu cycles.

    * camel-store.c (camel_folder_info_build): Updated comments to
    make the code a bit more clear.

2001-10-21    <NotZed@Ximian.com>

    * camel-store.c (CS_CLASS): Dont do the macro stuff - basically so
    you can actually debug calls.
    (camel_store_uri_cmp): New function to compare store objects.

    * camel-vee-folder.c (vee_folder_add_info): oops, dont free the
    vuid, since its alloca'd now.
    (folder_changed_change): Kill a compile warning.

2001-10-20    <NotZed@Ximian.com>

    * camel-folder.c (move_messages_to): If no exception supplied, use
    a local one.
    (move_message_to): Set the seen flag also when we delete it.

2001-10-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-vtrash-folder.c (vtrash_move_messages_to): If the
    destination folder is the vfolder source folder, then
    set_message_flags on it.

2001-10-19    <NotZed@Ximian.com>

    * camel-session.c (register_provider): When registering provider,
    translate all strings.

    * camel-vee-folder.c (camel_vee_folder_remove_folder): Lock the
    right lock for unmatched subfolder list stuff.  If the sub folder
    is deleted & part of unmatched, or the last ref to the sub folder
    is gone from unmatched, blow it away completely from unmatched,
    but only do it once.
    (vee_folder_remove_folder): Added arg to kill unmatched
    unconditionally.  Also handle deleted folders, always remove
    stuff.
    (folder_changed_change): Lock subfolder lock for entirety of
    operation, and also check to see if the subfolder is still there
    before doing any fancy work (incase it got removed while we were
    waiting to execute).
    (folder_changed_change_uid): Use alloca for vuid, and not
    sprintf(".lengths")
    (vee_search_by_expression): Dont use sprintf for vuid.
    (vee_search_by_uids): "
    (vee_folder_add_info): "
    (folder_changed_remove_uid): "
    (folder_changed_change): "
    (folder_changed_change_uid): Also check folder_unmatched for
    changed uid's so we properly update/propagate unmatched changes.
    (folder_changed_change): Ok, so dont hold the subfolder lock for
    the whole duration of the changed event, although we probably
    should, requires a recursive mutex.
    (folder_changed_change): Change logic, we always add changed stuff
    if it now matches, but dont remove it unless its auto-remove, only
    propagate changes for it.
    (vee_set_message_flags): Call parent method after doing our work.
    (vee_set_message_user_flag): Same here.

2001-10-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): If a charset isn't
    specified or claims to be utf-8, check the validity of the text
    and if it's invalid, set the rawtext bit to TRUE. If the charset
    is x-unknown or some other x- charset, always set the rawtext bit
    to TRUE.

2001-10-18    <NotZed@Ximian.com>

    * camel-store.c (camel_store_unsubscribe_folder): If we are
    unsubscribing from a folder we have loaded, set the folder
    deleted, as with the delete_folder case.

    * providers/(imap|local|pop3|sendmail|smtp)/Makefile.am: Added
    CAMEL_CFLAGS so we get the right iconv stuff, patch from Yanko
    Kaneti <yaneti@declera.com>

2001-10-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (crypto_exec_with_passwd): Make sure the
    cancel_fd isn't -1.

2001-10-18  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-message-cache.c (insert_finish): Flush
    the stream here, not sure it really matters but it might
    (hopefully) fix bug #12943.

    * camel-pgp-context.c (crypto_exec_with_passwd): Make
    user-cancellable.

    * providers/local/camel-local-provider.c: String cleanup for bug
    #6640.

    * providers/imap/camel-imap-folder.c (imap_sync_online): Fix my
    Cyrus imapd workaround...instead of checking to see if info->flags
    == FLAGGED, just check to see if it contains any IMAP flags.

2001-10-17    <NotZed@Ximian.com>

    * providers/local/camel-maildir-folder.c
    (camel_maildir_folder_new): Use '.' as the inbox name for filter
    new messages test.

    * camel-store.c (camel_folder_info_clone): New function to clone a
    folderinfo tree.

2001-10-17  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-mh-folder.c (mh_append_message): Same as
    maildir and mbox append-message.

    * providers/local/camel-maildir-folder.c (maildir_append_message):
    Same as mbox append.

    * camel-exception.c (camel_exception_set): Make sure the new
    description isn't the same as the old description pointer before
    freeing the old one.
    (camel_exception_setv): Don't free the old description until we
    set the new one this way we can reuse the old description in the
    new description.

    * providers/local/camel-mbox-folder.c (mbox_append_message): If
    errno == EINTR, then we got a user-cancel so set the exception
    appropriately so that we don't make the user shit his pants.

    * camel-filter-driver.c (do_copy): Add an optimization for when
    destination folder is the same as the source folder.

2001-10-17    <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c (get_folder_info_online):
    (parse_list_response_as_folder_info): Patch from Danw, Use unread
    count of -1 to mark unflagged messages.  Make sure any folder we
    dont lookup explicitly is marked as -1.  Should fix #9947 and
    friends.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync): Only
    touch the summary if the timestamp or size changed.

2001-10-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message): Set
    the DELETED flag on directly on the info if the source folder
    doesn't have summary capability.

2001-10-17  Not Zed  <NotZed@Ximian.com>

    * camel-tcp-stream-raw.c (stream_write): As below.

    * camel-stream-fs.c (stream_write): If not checking cancellation,
    make sure we write out everything asked of us.

2001-10-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Rearange the order of the gpg
    options slightly otherwise it might try to use "--no-tty" as the
    filename to verify :-)

    * camel-object.[c,h]: If CAMEL_DEBUG is defined, print some useful
    ref/unref info.

    * providers/imap/camel-imap-store.c (delete_folder): Fixed an
    assignment warning.

    * camel-uid-cache.c (camel_uid_cache_new): Make sure that the
    parent directory exists before trying to open the filename, if it
    doesn't, create it.

2001-10-16    <NotZed@Ximian.com>

    * camel-mime-utils.c (header_address_decode): If no content, dont
    try and decode further and spit meaningless warnings.

2001-10-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_flag): Only perform the operation on
    the folder if the folder has summary capability, else just poke
    the info directly. Fixes the "Filters don't work" bug.
    (do_score): Same.
    (do_colour): And here too.

2001-10-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-fs.c (stream_read): Save the errno before calling
    fcntl so fcntl doesn't overwrite errno in case of a previous
    error.
    (stream_write): Same.

2001-10-13  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_data): Replace the
    Bcc headers in a single location and don't flush the data unless
    the write was successful.

2001-10-12  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Remove the stripheader filter from the build.

    * camel-mime-filter-stripheader.[c,h]: Removed.

    * providers/smtp/camel-smtp-transport.c (smtp_data): Check the
    return value of camel_stream_flush to make sure it flushed the
    data successfully before continuing. Don't use the stripheader
    filter, it was completely broken - instead remove the header and
    set it again after we send.

2001-10-12    <NotZed@Ximian.com>

    * camel-vee-folder.c (camel_vee_folder_remove_folder): Unhook from
    all events before removing folder.
    (camel_vee_folder_add_folder): Hook onto delete event.
    (camel_vee_folder_finalise): Unhook from deleted event for suibfolder.
    (subfolder_deleted): When the folder is deleted, remove it from
    the vfolder automagically.

2001-10-11    <NotZed@Ximian.com>

    * camel-vee-folder.c (vee_search_by_uids): convert the uids list
    to a subset appropriate for each subfolder before trying to search
    on it.

    * camel-charset-map.[ch]: Removed charset/locale charset lookup
    and iconv_open/close functions, moved to gal.  Fixed all callers.

2001-10-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (ssl_cert_is_saved): Same.

    * camel-tcp-stream-openssl.c (ssl_cert_is_saved): Instead of
    opening the file, stat it and make sure that it belongs to us.

2001-10-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-openssl.c (ssl_verify): Same hack as below.

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Hack around the fact that
    adding a cert to nss's certdb seems to not work.

2001-10-10    <NotZed@Ximian.com>

    * camel-vee-folder.c (vee_sync): Only re-build the folder if we're
    expunging.  Also only clear out the changed folders list if we're
    expungung and everything worked.

2001-10-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-charset-map.c (camel_charset_map_init): Added a hack for
    Solaris systems.

2001-10-10    <NotZed@Ximian.com>

    * providers/local/camel-maildir-store.c (scan_dir): oops, we want
    get_unread_message_count, not get_message_count!

2001-10-09    <NotZed@Ximian.com>

    * camel-service.c (camel_service_disconnect): Duplicate connect
    code that unregisters a cancel op if we created one.

    * camel-operation.c (camel_operation_progress): Another go at
    getting the logic right again.  Make transients only update after
    5 seconds (CAMEL_OPERATION_TRANSIENT_DELAY)
    (camel_operation_end): Likewise.

    * providers/local/camel-spool-folder.c (spool_search_by_uids):
    Implement.

    * providers/imap/camel-imap-search.c (imap_body_contains): If
    searching a sub-set of the total message count, then use a UID
    range to search only specific messages.

    * camel-vee-folder.c (vee_folder_change_match): Removed.
    (folder_changed_add_uid): Helper func for changed code.
    (folder_changed_remove_uid): "
    (folder_changed_change_uid): "
    (folder_changed): Rewritten.  Supports proper auto-updating of
    changes, but not removals till a sync occurs.
    (vee_search_by_uids): Implement.
    (folder_changed): Changed to call an async threaded function to do
    the actual folder updating.

    * camel-folder-summary.c (camel_flag_list_copy): New func to copy
    a whole list of flags.
    (camel_tag_list_copy): New func to copy a whole list of flags.

    * providers/imap/camel-imap-folder.c (imap_search_by_uids):
    Implement.

    * providers/local/camel-local-folder.c (local_search_by_uids):
    Implement.

    * camel-folder.c (camel_folder_search_by_uids): New function,
    search a subset of uid's.
    (search_by_uids): Default impl, return error.

2001-10-08  Dan Winship  <danw@ximian.com>

    * camel-folder.h (struct _CamelFolder): replace the ever-growing
    list of gbooleans with a single guint32 for flags.

    * camel-folder.c: Update folder flag setting/checking.

    * providers/pop3/camel-pop3-folder.c (camel_pop3_folder_init):
    * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): 
    * providers/local/camel-spool-folder.c (spool_init,
    camel_spool_folder_new): 
    * providers/local/camel-maildir-folder.c (camel_maildir_folder_new): 
    * providers/local/camel-local-folder.c (local_init): 
    * providers/imap/camel-imap-folder.c (camel_imap_folder_init,
    camel_imap_folder_new): 
    * camel-vtrash-folder.c (camel_vtrash_folder_init): 
    * camel-vee-folder.c (camel_vee_folder_init): 
    * camel-digest-folder.c (camel_digest_folder_init): update folder
    flag setting.

2001-10-07  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (get_folder_online): Unlock
    the store before returning error. (noted by NotZed)

2001-10-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_text): Fix a slight error in
    logic. Just because the last word was an encoded word doesn't mean
    we ignore the lwsp padding, we only ignore it if the last word and
    *this* word are encoded.

2001-10-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-basic.c (filter): Implemented uuencoding and
    decoding.
    (complete): Implemented uuencoding and decoding.

    * camel-mime-utils.c (uuencode_close): New function to flush the
    uu encoder.
    (uuencode_step): New function to uuencode a block of data.

2001-10-05    <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c (subscribe_folder): Use a
    folder_subscribed event rather than a folder_created one.
    (unsubscribe_folder): Similarly for unsubscribed/deleted.
    (create_folder): Emit a folder_created event on the folders we
    added.  Not sure hsould probably check which ones are new and
    which ones are just existing ones?
    (delete_folder): Emit a folder_deletd event when we've deleted the
    folder.  Part of fix for #11831.

    * camel-store.c (camel_store_class_init): Added
    folder_subscribed/unsubscribed events.

2001-10-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-service.c (camel_service_finalize): Turn off warnings.
    (get_name): Same.

    * camel-sasl.c (sasl_challenge): Turn off warnings.

    * camel-tcp-stream.c (tcp_connect): Turn off warnings.
    (tcp_getsockopt): Same.
    (tcp_setsockopt): Here too.
    (tcp_get_socket): And here.

    * camel-folder.c (folder_sync): Turn off warnings.
    (expunge): Same.
    (append_message): Here too.
    (get_message): And here.
    (search_by_expression): And again here.
    (folder_changed): Here too.

    * camel-store.c (get_folder): Set an exception and turn off
    debugging g_warnings.
    (create_folder): Same.
    (delete_folder): Here too.
    (rename_folder): And here.
    (get_trash): And here.
    (get_folder_info): Same.
    (free_folder_info): And again here.
    (camel_folder_info_build): Here too.
    (folder_subscribed): Same.
    (subscribe_folder): Here too.
    (unsubscribe_folder): And here.

2001-10-05    <NotZed@Ximian.com>

    * camel-mime-utils.c (header_decode_mailbox): Try harder to get
    broken names out of addresses.  Unencoded ,'s in names will still
    break it, but well what can you do eh?
    (header_decode_mailbox): Always add .'s into address we've scanned
    past a '.', even if we can't decode the next part.  Fix for some
    annoying bug #.

2001-10-04    <NotZed@Ximian.com>

    * camel-store.c (camel_store_delete_folder): Change the order of
    execution slightly.  We delete the folder first, then call the
    classes delete folder, then cleanup the hashtable afterwards.
    This is so deletes of vfolders work, since vee-store uses the
    folder hashtable to store all of is vfolders :-/

2001-10-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-service.c (camel_service_connect): Unregister the
    operation before unreffing it.

2001-10-03    <NotZed@Ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Remove now unused 'recents' array/freeing func.

    * camel-object.c (camel_object_trigger_event): Oops, always run
    the prep function, even if we have no hooks listening.  Causes
    incoming imap recents to get ignored bythe camel-folder filter
    inbox code.

    * providers/local/camel-local-folder.c (local_sync): Dont
    explicitly save metadata, its saved in summary_sync.

    * providers/local/camel-mh-summary.c: Call superclass.
    (mh_summary_check): Dont save ibex.

    * providers/local/camel-maildir-summary.c: Call superclass method.
    (maildir_summary_check): Dont save ibex explictly.

    * providers/local/camel-mbox-summary.c: Call super-class sync when
    done, saves summary/ibex, etc.
    (mbox_summary_check): Dont save ibex.
    (mbox_summary_sync): Call summary_check rather than trying to
    update from our known position.

    * providers/local/camel-local-summary.c
    (camel_local_summary_check): Dont save the summary or index here.
    (local_summary_sync): Save the summary/index here.

    * camel-search-private.c (camel_search_build_match_regex): Added
    MATCH_NEWLINE flag, -> REG_NEWLINE.

    * camel-lock-helper.c: Include <string.h> to kill some warnings.

    * camel-filter-search.c (get_full_header): Put \n's between each
    line we generate.
    (header_full_regex): Dont drop the first argument to the command
    -> empty matches!
    (header_full_regex): Set match_newline for building regex.
    (body_regex): And here too.  These all fix #9877.

2001-10-03  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_delete_folder): Call
    camel_folder_delete() on the folder if it's "alive".

    * camel-folder.c (camel_folder_delete): Mark the folder as
    deleted, perform any folder specific cleanup and emit the deleted
    event.
    (camel_folder_sync): Only sync the folder if it hasn't been
    deleted.
    (camel_folder_expunge): Same.

2001-10-03  Dan Winship  <danw@ximian.com>

    * providers/local/camel-local-provider.c (local_url_equal):
    Strange are the ways of alloca. Fixes 11543.

2001-10-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Import the certificate if
    the user accepts it.

2001-10-02    <NotZed@Ximian.com>

    * providers/local/camel-local-provider.c (local_url_hash,
    local_url_equal): for hashing/comparing local url's, we ignore
    trailing /'s in paths (maybe shuld handle multiple /'s too).
    (camel_provider_module_init): Use local_url_hash/equal for all
    functions.

    * camel-sasl-digest-md5.c (digest_response): Change to
    camel_charset_iconv_open/close.

    * camel-pgp-context.c (pgp_verify): Change to
    camel_charset_iconv_open/close.

    * camel-mime-part-utils.c (convert_buffer): Change to
    camel_charset_iconv_open().

    * camel-mime-filter-charset.c
    (camel_mime_filter_charset_new_convert, finalise): Change to
    camel_charset_iconv_open, etc.

    * camel-mime-utils.c: Use the camel_charset_iconv_open/close()
    functions to open/close it.

    * camel-charset-map.c (camel_charset_iconv_open): New function,
    wrap iconv_open, so we can cache ic's.
    (camel_charset_iconv_close): Likewise for close.
    (camel_charset_map_init,shutdown): Init/free iconv cache.

2001-10-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-charset-map.c (camel_charset_to_iconv): Revert my
    x-unknown special-case hack - this may mask other problems.

    * camel-mime-utils.c (rfc2047_decode_word): If the iconv
    conversion fails, for whatever reason, retry using the user's
    locale charset.

2001-10-02    <NotZed@Ximian.com>

    * providers/local/camel-maildir-store.c (get_folder_info): Go back
    to using the store url's path, not the toplevel_dir thing.

    * camel-operation.c (camel_operation_progress): Fix the progress
    logic, so we dont update too often.

    * camel-object.c (camel_object_get_hooks): Change the lock to a
    recursive e-mutex.
    (camel_object_hook_event): Maintain list length of hook list.
    (camel_object_unhook_event): "
    (camel_object_unhook_event): If we are in an event, just mark the
    pair as removed, without removing it.
    (camel_object_trigger_event): Before running events, copy the
    list, and also ignore 'removed' events.  After running events, if
    we're all out of events, then free up any pending-removed events.
    (camel_object_free_hooks): Add some new assertions on the state of
    the hook structure.
    Removed the #error if threads not defined.  It _should_ actually
    work without threads.
    (camel_object_free_hooks): Free mutex when done.

2001-10-01  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (delete_folder): Remove any
    cached messages that belonged to the deleted folder.
    (subscribe_folder): Don't ever let the info->name be NULL and
    don't use the stupid concat kludge to generate the URL, just use a
    CamelURL to do it. This way we don't risk breaking stuff by having
    a url like imap://fejj@imap//folder

    * camel-charset-map.c (camel_charset_to_iconv): If the charset is
    x-unknown, return the locale_charset.

2001-10-01  Dan Winship  <danw@ximian.com>

    * camel-provider.h: Fix up the provider flags to specify things
    more completely so we don't have to hardcode provider names in the
    mailer.

    * providers/local/camel-local-provider.c: MH, mbox, and Maildir
    are LOCAL. MH and mbox are no longer STORAGE by the new
    definition.

    * camel-session.c (vee_provider): The vfolder store is a STORAGE.

2001-10-01  Dan Winship  <danw@ximian.com>

    * providers/local/camel-local-store.c (construct): Don't munge the
    URL; CamelSession's caching relies on it not changing. Instead,
    add a toplevel_dir field to CamelLocalStore, and set that to the
    path, but always ending with /.
    (camel_local_store_finalize): Free toplevel_dir
    (camel_local_store_get_toplevel_dir): Return toplevel_dir rather
    than url->path.

    * providers/local/*: Lots of s/url->path/toplevel_dir/

    * providers/local/camel-spool-store.c (construct): Likewise, don't
    try to strip a trailing / from url->path here, but I didn't make
    the corresponding toplevel_dir change, because there's no good
    reason someone should expect "/var/spool/mail/danw/" to work since
    that's not a directory.

    * providers/pop3/camel-pop3-folder.c (pop3_refresh_info): if STAT
    returns 0, don't bother sending UIDL. Speeds things up slightly
    and also works around a bug in a particular random POP server.
    (ximian bug 11369).

2001-09-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_sign): Add --no-secmem-warning and
    --no-greeting to the gpg command-line options.
    (pgp_clearsign): Same.
    (pgp_verify): Here too.
    (pgp_encrypt): And here.
    (pgp_decrypt): And finally here.

2001-09-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-search.c (get_source): Same here.

    * camel-mime-message.c (camel_mime_message_set_source): Don't use
    the e_url_shroud hack, use CamelURL functions instead.

2001-09-28  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/nntp/camel-nntp-provider.c
    (camel_provider_module_init): Init the nntp url hash and url_equal
    functions.

    * providers/sendmail/camel-sendmail-provider.c
    (camel_provider_module_init): Init the sendmail url hash and
    url_equal functions.

    * providers/smtp/camel-smtp-provider.c
    (camel_provider_module_init): Init the smtp url hash and url_equal
    functions.

    * providers/pop3/camel-pop3-provider.c
    (camel_provider_module_init): Init the pop3 url hash and url_equal
    functions.

    * providers/imap/camel-imap-provider.c
    (camel_provider_module_init): Init the imap url hash and url_equal
    functions.

    * providers/local/camel-local-provider.c
    (camel_provider_module_init): Init the local url hash and
    url_equal functions.

    * camel-session.c (camel_session_class_init): Init the vfolder url
    hash and url_equal functions.

    * camel-provider.h: Added url_hash and url_equal function pointers
    to the structure.

    * camel-vtrash-folder.c (vtrash_move_messages_to): Oops, a
    CamelFolder is not a CamelFolderClass.

2001-09-28  Dan Winship  <danw@ximian.com>

    * camel-tcp-stream-openssl.c (ssl_error_to_errno): Make this take
    an SSL * instead of a CamelTcpStreamSSL *, since it can get called
    from open_ssl_connection, when the CamelTcpStreamSSL isn't set up
    right yet. Fixes a crash on connection failure.

2001-09-27  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c
    (camel_imap_folder_fetch_data): Grab the store's command_lock
    before grabbing the folder's cache_lock to prevent deadlock if
    another thread is processing an EXPUNGE response.

    * providers/imap/camel-imap-folder.c
    (imap_expunge_uids_resyncing): Fix a compiler warning that might
    point out a real bug...

    * providers/imap/camel-imap-folder.c (get_content): and one that
    doesn't

2001-09-27    <NotZed@Ximian.com>

    * camel-service.c (camel_service_connect): Dont re-register the
    connect_op if we got it by calling 'operation_registered', which
    returns an already-registered one.
    (camel_service_disconnect): Likewise here.  This removes all the
    re-registered warnings.

    * camel-object.c (camel_object_unref): Fill the finalised data
    with nonsense, rather than 0's - more easily detect bad data.
    (camel_object_new): Clear instance data when we retrieve it off
    the list.

    * camel-object.h (_CamelObject): Added an event lock pointer for
    uh, locking event stuff.  Also change the hooklist hashtable into
    a list.  Changed all the code to handle it.  Result: thread-safe
    events, event-hooks, and save memory too, and SHOULD FINALLY FIX
    THAT UNREAD COUNT PROBLEM.

2001-09-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-mime.c (camel_pgp_mime_part_decrypt): CRLF decode the
    stream before parsing it into a MIME part. This fixes bug #10521.

    * camel-store.c: Remove the old folder from the vTrash folder.

2001-09-27  Dan Winship  <danw@ximian.com>

    * camel-service.c: Change "gboolean connected" to
    "CamelServiceConnectionStatus status", which can be disconnected,
    connecting, connected, or disconnecting.
    (camel_service_init, camel_service_finalize): create/destroy the
    connect_op_lock. Refer to service->status rather than
    service->connected.
    (camel_service_connect): When connecting, note the current
    operation (and create a new one if there's none registered) and
    mark the connection "connecting" until we succeed or fail.
    (camel_service_disconnect): Likewise in reverse.
    (camel_service_cancel_connect): New function to cancel a
    connection attempt.
    (cancel_connect): Default implementation: Call
    camel_operation_cancel on the connect_op.

    * camel-disco-store.c (disco_connect): Only call
    CamelRemoteStore's connect func if we're online.
    (disco_cancel_connect): Fall back to offline if a connection gets
    cancelled.
    (disco_get_folder_info): Kludge: call connect explicitly before
    deciding whether to do the online or offline version, so if the
    connect fails, we fall back correctly.

    * camel-session.c (camel_session_get_service_connected):
    s/svc->connected/svc->status/

    * camel-remote-store.c (camel_remote_store_finalise):
    Change service->connected check to service->status check.
    (remote_connect): Don't set service->connected here:
    camel_service_connect() itself does that.

    * camel-operation.c (camel_operation_registered): Deal with the
    possibility that there's no registered op.

2001-09-26    <NotZed@Ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message): If
    we get a search error, just abort, dont try and fall back and copy
    to inbox.
    (camel_filter_driver_filter_message): Make sure we ALWAYS use
    exceptions for important things - like moving messages to inbox!
    (camel_filter_driver_filter_message): If we have the source
    folder, use camel_folder_set_message_flags rather then poking the
    info directly, which skips changed events.  This means filtering
    immediate doesn't lose changed events.
    (do_flag): Same here.
    (do_colour): Same thing but using set_tag.
    (do_score): Same again.
    (camel_filter_driver_filter_folder): Use ~0 as the 'set' arg to
    set_flags, just saves typing.
    (open_folder): We cache folders that we couldn't open as well as
    those ones we could.  Use magic token FOLDER_INVALID =
    (void *)~0 as the marker.
    (close_folder): Handle FOLDER_INVALID case properly.

2001-09-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-message.c
    (camel_mime_message_get_part_by_content_id): New function to
    convenience Larry ;-)
    (check_content_id): Oops, return !found instead of found. This
    callback has to return whether or not to keep searching, not
    whether or not it found what it's looking for. Do'h!

    * camel-pgp-mime.c (camel_pgp_mime_is_rfc2015_signed): block out
    some code if ENABLE_PEDANTIC_PGPMIME is not defined.

2001-09-26    <NotZed@Ximian.com>

    * camel-vee-store.c: Emptied VeeStorePrivate, member wasn't used.

    * camel-vee-folder.c (camel_vee_folder_set_expression): Lock
    changed list separately.
    (camel_vee_folder_remove_folder): "
    (camel_vee_folder_set_folders): Use changed_lock for changed list.
    (vee_refresh_info): Use changed_lock, also just grab the list,
    reset it in the lock, and do the work unlocked.
    (vee_sync): Use changed lock for changed list.
    (folder_changed): ".  All this kills a deadlock with sync/expunge.
    
    * camel-private.h (CamelVeeFolderPrivate): Added a new lock for
    the folders-changed list.
    (CamelVeeStorePrivate): Removed, defined in camel-vee-store.c,
    thanks to a pedantic.

2001-09-26  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Fix Ettore's fix.

2001-09-25  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (camel_pgp_context_new): No longer takes a
    remember argument.
    (pgp_sign): Only uncache the passphrase on failure.
    (pgp_clearsign): Same.
    (pgp_encrypt): Here too.
    (pgp_decrypt): And here.
    (pass_free): New function to zero the passphrase before freeing
    it.

2001-09-25  Ettore Perazzoli  <ettore@ximian.com>

    [Patch for Automake 1.5 compatibility pointed out by Richard
    Boulton <richard@tartarus.org>, as per #9258.]

    * providers/nntp/Makefile.am: Remove some commented parts that
    make Automake 1.5 choke.

    * Makefile.am (camel-lock-helper): Add $(EXEEXT) for Automake 1.5
    compatibility.

2001-09-25    <NotZed@Ximian.com>

    * camel-folder.c (get_unread_message_count): Only unref info if we
    got it.

    * camel-operation.c (camel_operation_unref): Fix for !threads
    enabled not ccompiling.
    (camel_operation_ref): Assert refcount > 0.
    (struct _CamelOperation): Removed the lock.  On further
    investigation, I dont think this will always work, the
    registration operations assume that a lookup in the
    operation_active table will return a ref, that will remain valid
    until we ref it, which needn't be the case.  So now i'm using a
    single global lock, since we'd need to do that for unref anyway,
    and every operation is fast & memory-bound.  Changed all the code
    to handle this.
    (camel_operation_progress_count): Since the code is identical,
    just call progress() for now.
    (camel_operation_register): No longer refcount, use unref to
    check/clear the active table.
    (camel_operation_unregister): Same here.
    (camel_operation_unref): Check if operation is in active table, if
    so, warn, remove.

2001-09-25  Dan Winship  <danw@ximian.com>

    * camel-tcp-stream-openssl.c (my_SSL_read, my_SSL_write): call
    SSL_read/write, looping on SSL_ERROR_WANT_READ/WRITE. I'm sure
    there's a perfectly good reason that the API works this way. No,
    really.
    (stream_read, stream_write): use my_SSL_read and my_SSL_write.
    Fixes at least ximian 8593, and probably 6024 and maybe 10366,
    at least for OpenSSL. There may be a parallel NSS bug?

2001-09-25    <NotZed@Ximian.com>

    * camel-stream-buffer.c (stream_write_all): A "safe write"
    function that always writes out all data asked of it, till
    finished.
    (stream_write): Rewritten.  What was i on when i wrote that
    originally, how did it ever work with tcp streams ...

2001-09-24    <NotZed@Ximian.com>

    * camel-folder.c (append_message): Set the exception to
    FOLDER_INVALID rather than making out it worked.  A fix for #7025.
    (search_by_expression): Here too.

    * providers/imap/camel-imap-folder.c (imap_update_summary): In the
    'lose' case, free messages, not fetch_data twice!

    * camel-filter-search.c (check_header): If the type is encoded,
    get the fallback charset from the message content-type.

    * camel-mime-part-utils.c (check_html_charset): Dont check for
    charset==null before calling charset_to_iconv.
    (simple_data_wrapper_construct_from_parser): "

    * camel-mime-message.c (process_header): Try use content-type
    charset param as the fallback charset.

    * camel-charset-map.c (camel_charset_to_iconv): Handle name ==
    NULL, return NULL.

    * camel-folder-summary.c (camel_folder_summary_format_address):
    (camel_folder_summary_format_string): Made private again, removed
    #warning about it.  Renamed to s/camel_folder//.
    (summary_format_string): Take default charset param.
    (camel_message_info_new_from_header, message_info_new): Decode
    content-type field to get the charset parameter to use as the
    default charset for decoding strings.

    * camel-search-private.c (camel_search_header_match): Pass NULL as
    the charset, the locale charset is always tried.
    (camel_search_header_match): Supply a default_charset parameter to
    be used with TYPE_ENCODED params.

    * camel-mime-utils.c
    (header_param): get rid of the g_strcasecmp crap.
    (header_set_param): Same here.
    (header_decode_param_list): And here.
    (header_decode_text): Totally rewritten.  30% of its size.  If the
    word is not rfc2047 encoded, always try default_charset if
    supplied, if that fails, try locale charset if it exists, if that
    fails then assume latin1/7 bit ascii.
    (append_8bit): Changed to return FALSE if we can't convert for
    whatever reason, and dont append anything.

    * camel-mime-part.h (struct _CamelMimePart): Move content_type and
    headers out of the 'private' section.

    * camel-mime-part.c (get_headers): Dont do any conversion on the
    header.
    (process_header): Get the content-type charset as the fallback
    charset for decode_string.
    (construct_from_parser): IF we have a content-type header, process
    it before doing anything else, so we have access to a fallback
    charset for invalid headers.

2001-09-23  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-openssl.c (ssl_verify): Don't even try to alert
    the user if the session isn't interactive.
    (errlib_error_to_errno): Make the default errno EINTR so that we
    act just like CamelTcpStreamSSL.

    * camel-pgp-context.c (pgp_sign): When the password is not
    provided, set the exception to USER_CANCEL.
    (pgp_clearsign): Same.
    (pgp_encrypt): And here.
    (pgp_decrypt): Here too.

2001-09-21    <NotZed@Ximian.com>

    * camel-store.c (create_folder): Set the exception if
    create_folder isn't implemented.

2001-09-21  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (create_folder): Go back to
    not using camel_folder_info_build() here because this seems to
    break folder creation (returning nodes from the root path when it
    shouldn't be?).

2001-09-21    <NotZed@Ximian.com>

    * camel-vee-store.c (vee_get_folder_info): Force a refresh of
    vfolders before storing their count.  This essentially makes
    'get_folderinfo' refresh all vfolders, so that get-mail works as
    expected.

    * camel-vee-folder.c (camel_vee_folder_finalise): Clear lists.
    (folder_changed): If we're not autoupdating the folder, then
    add this folder to the list of 'changed' folders for this vfolder.
    (camel_vee_folder_set_expression): Reset the folders_changed list.
    (camel_vee_folder_remove_folder): Remove the folder from the
    folders_changed list.
    (camel_vee_folder_set_folders): If we have a folder already, but
    its changed, use this opportunity to update it.
    (vee_sync): Remove any synced folders from the folders_changed
    list.
    (vee_refresh_info): Refresh folder, re-run queries on any changed
    folders.

2001-09-20    <NotZed@Ximian.com>

    * camel-folder-summary.c (camel_folder_summary_header_load): New
    function to just load the summary.  Not much use yet, until unread
    counts are stored in the summary (which now looks like too much
    work!).

    * camel-mime-utils.c (header_decode_mailbox): Crappy fix for
    stupid mailers.  If we get 'name b. name <foo>' then treat it as
    '"name b. name" <foo>'.  See 8147.
    (header_decode_mailbox): Another fix for really broken mailers
    that have things that look like addresses followed by <address>
    bits.
    (rfc2047_encode_word): Escape ??= to avoid some bizarre warning
    about trigraphs.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Setup unread count properly, and
    also setup the url properly.

    * providers/local/camel-maildir-store.c (camel_folder_info_new):
    Build the path on the folderinfo.
    (scan_dir): Dont include empty host part in url for folder.
    (scan_dir): Lookup folder counts for any folders we currenty have
    open.
    (scan_dir): If we dont have the folder open, then scan the 'new'
    and 'cur' folders for new and unread messages to count instead.

    * providers/local/camel-spool-store.c (get_folder_info): If we
    have this folder open, then set unread from the folder itself.
    (get_folder_info): Change the INBOX path to not include the
    leading /.

    * providers/local/camel-spool-folder.c
    (camel_spool_folder_construct): Fix path.
    (camel_spool_folder_construct): Properly setup the url field when
    we say we've got a new folder created.

    * providers/imap/camel-imap-store.c (unsubscribe_folder): Build
    path on folderinfo.

    * camel-store.c (camel_folder_info_build_path): Prepend / to path.

    * camel-vee-folder.c (camel_vee_folder_construct): Use macro for
    unmatched folder name.
    (camel_vee_folder_new): "

    * camel-vee-store.c (vee_get_folder_info): Use macro for unmatched
    folder name.
    (vee_delete_folder): "
    (vee_rename_folder): "
    (vee_get_folder): Prepend / onto path.
    (vee_delete_folder): Setup path in folderinfo.
    (vee_get_folder_info): Fix path in folderinfo.

    * camel-vee-folder.h (CAMEL_UNMATCHED_NAME): New define for
    unmatched (internal) name.

2001-09-20  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-spool-folder.c
    (camel_spool_folder_construct): And finally here.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): And here.

    * camel-vee-store.c (vee_get_folder): ANd here too.
    (vee_get_folder_info): And here.

    * providers/imap/camel-imap-store.c (create_folder): Use
    camel_folder_info_build() and do better error checking.
    (subscribe_folder): Set the path on the folder info.

    * camel-store.c (camel_folder_info_build): Set the folder-info
    path if it hasn't already been set by the caller.
    (camel_folder_info_free): Free the path.

    * camel-store.h: Added a path member to the FolderInfo type.

2001-09-20  Dan Winship  <danw@ximian.com>

    * camel-charset-map.c (camel_charset_to_iconv): Nuke debug warning.

2001-09-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c: Updated exception strings to be more clear.

    * camel-pgp-mime.c (pgp_mime_part_sign_restore_part): Stupid
    mistake, fixes bug #9975.

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Oops, don't fail if
    `data' isn't a CamelService...cuz it's not supposed to be! It's a
    CamelTcpStreamSSL object...doh!

2001-09-19    <NotZed@Ximian.com>

    * General cleanup of camel debug printfs.
    
    * camel-lock.c (camel_lock_fcntl): Changed to return 'success' if
    the error indicates file locking isn't supported on this
    filesystem.  Still return a warning just incase (if its the first
    time).  Might fix a lot of reported bugs.

    * providers/local/camel-spool-store.c (get_folder_info): Dont
    include the empty // host part in the uri.  This 'breaks' the
    service lookup.

2001-09-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c: Match mailing-list header List-Owner.

2001-09-18    <NotZed@Ximian.com>

    * camel-vee-store.c (vee_get_folder): Fix the uri genereated for
    the folderinfo for the folder_created event.

    * camel-store.h: Added 'total' to CamelFolderInfo.

2000-09-18    <NotZed@Ximian.com>

    * providers/local/camel-maildir-folder.c
    (camel_maildir_folder_new): If filter inbox is set on the store,
    and we're opening inbox '', then enable filtering on new messages.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): After loading the summary, check
    it, and only abort if that fails.  Also maintain the changes
    count.

    * providers/local/camel-local-summary.c
    (camel_local_summary_load): Remove summary_check code from here.
    (camel_local_summary_check): Sync index/summary here, if we were
    successful.

    * providers/local/camel-spool-folder.c
    (camel_spool_folder_new): If we have filter-new-messages-on-inbox
    set and we just opened inbox, turn on filtering on this folder.
    (camel_spool_folder_construct): Keep track of changes for the
    folder, so that filter-new-messages works right (?)

    * providers/local/camel-spool-store.c (get_folder): Pass 'INBOX'
    as the folder name, not the path.

    * camel-folder-search.c (search_not): Modified patch from
    <peterw@ximian.com> since the summary is messageinfo's, not
    strings.

    ** Ok so the problem with the stuff below is that maildir/spool
    'summary_load' throws away all events, including recents, joy eh?
    
    * providers/local/camel-maildir-summary.c (maildir_summary_check):
    Add new messages to the recent changeinfo.

    * providers/local/camel-spool-summary.c: Mark 'new' message as
    recent, for later processing if required (i.e. 'filter new
    messages').

    * camel-store.c (construct): new function, cascade up construct
    method and check for 'filter' param, and set accordingly for any
    one that might want it.

    * providers/imap/camel-imap-store.c (construct): map the
    param_filter_inbox flag to the store->flags as
    CAMEL_STORE_FILTER_INBOX.

    * camel-store.h (CAMEL_STORE_FILTER_INBOX): new flag to tell it to
    filter inbox.

    * providers/imap/camel-imap-folder.h: Removed do_filtering flag
    from CamelImapFolder.

    * providers/imap/camel-imap-folder.c (imap_update_summary): Remove
    the 'recents' parameter, use the 'changes' parameter instead to
    convey this info.
    (camel_imap_folder_changed): Changed for update_summary api
    change.  Now always just emit the changed event if we have any
    changes to report, filtering code removed, handled upstream.
    (filter_proc): 
    (filter_free): Removed old filtering code.
    (camel_imap_folder_new): Set the filter_recent flag on the folder
    if we're the inbox and filtering of inbox is enabled.

    * camel-folder.c (folder_changed): If we have 'recent' messages,
    and are set to filter recents, then freeze the folder and launch a
    thread to do the processing (or similar if threading not enabled).
    (thaw): Make sure we emit the changed signal outside of owning the
    lock and if things have changed.  Also, no longer bother
    downgrading folder_changed events to message_changed events.

    * camel-folder.h (struct _CamelFolder): Added filter_recent flag
    -> signifies all recent messages in folder should be filtered.

    * camel-session.c: (camel_session_thread_msg_new,
    camel_session_thread_msg_free, camel_session_thread_queue,
    camel_session_thread_wait): code to handle async operations as
    part of camel processing.
    (camel_session_finalise): free thread_lock, destroy thread, active
    hash, etc.
    (camel_session_init): init thread, active hash, etc.
    (camel_session_class_init): Init virtual functions.
    (session_thread_msg_new, session_thread_msg_free,
    session_thread_destroy, session_thread_received,
    session_thread_queue, session_thread_wait): default implementation
    of session threads stuff.

2001-09-17    <NotZed@Ximian.com>

    * camel-folder.c (camel_folder_change_info_recent_uid): New
    function to add a 'recent' uid to the change info.
    (camel_folder_change_info_clear): Clear recent list.
    (camel_folder_change_info_free): Free recent list.
    (camel_folder_change_info_new): Setup recent list.

    * camel-folder.h: Added a uid_recent item to the folder_changed
    event data.

    * providers/local/camel-maildir-store.c (scan_dir): Free new in
    the right block.

    * providers/local/camel-local-provider.c: Add local config entries
    to filter on new messages in spool and maildir provider.

    * camel-vee-folder.c (vee_folder_construct): Remove the assertion
    which stops ? in names from being allowed.

2001-09-18  Dan Winship  <danw@ximian.com>

    * camel-data-wrapper.c (camel_data_wrapper_is_offline): Virtualize
    this.

    * camel-medium.c (is_offline): A medium is offline if its content
    object is offline.

    * camel-multipart.c (is_offline): A multipart is offline if any of
    its subparts are offline.

2001-09-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-charset-map.c: Added korean charset conversion.

2001-09-17  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (delete_folder): Don't process
    the ImapResponse data, we don't want to block forever on data we
    don't care about...
    (create_folder): Use get_folders_online() instead of
    get_folder_info_online().

    * camel-folder.c: Reverted previous changes.

2001-09-17  JP Rosevear  <jpr@ximian.com>

    * Makefile.am: Helpful install-exec-hook debugging output

2001-09-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder.c (camel_folder_get_uri): New function to get the
    URI of a folder.
    (get_uri): Default implementation.

2001-09-14    <NotZed@Ximian.com>

    * camel-vee-folder.c (camel_vee_folder_set_folders): New function,
    set the complete list of folders on a vfolder, all at once.
    (camel_vee_folder_set_expression): If we set the query to be the
    same thing, dont do anything.

    * camel-vee-store.c (camel_vee_store_init): Turn off vtrash for
    this store.

    * camel-store.c (camel_store_init): Enable vtrash by default via
    flags.
    (camel_store_get_trash): REturn NULL if the store doesn't support
    vtrash.
    (init_trash): Dont init if store doesn't support vtrash.

    * camel-store.h: Add a new flags CAMEL_STORE_VTRASH -> store
    supports vtrash.

2001-09-13    <NotZed@Ximian.com>

    * camel-vee-store.c (vee_get_folder_info): Implement.
    (build_info): Used to build a folder record from the folders
    hashtable.
    (vee_delete_folder): Implemented, remove folder from hashtable.
    (vee_rename_folder): Implemented, remove old folder from
    hashtable, add new one and rename its guts too.

    * camel-store.c (camel_store_rename_folder): Do nothing if we're
    not asked to actually change names.  Also dont do the renamed
    cache check till after we've called the subclass.
    (camel_store_delete_folder): Call the subclass delete firs,t then
    make sure the cache is right.

    * camel-vee-folder.c (vee_folder_construct): Remove support for
    name?query syntax to setup vfolder.  Abort if such syntax is used.
    (camel_vee_folder_new): Removed code that handles ? syntax, etc.
    (vee_folder_build_folder): Handle unset expression, treat it as an
    empty search.
    (camel_vee_folder_set_expression): Oops, actually set the
    expression.

    * camel-vtrash-folder.c (camel_vtrash_folder_new): Dont use
    name?query syntax to setup vfolder, but set the expression
    directly.  Also fixes a small memleak.

2001-09-12    <NotZed@Ximian.com>

    * camel-store.c (camel_store_delete_folder): Fixed warnings with a
    cast.
    (camel_store_rename_folder): "

2001-09-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-url.c (camel_url_set_param): Use g_datalist_set_data_full
    so that the data will be free'd when we clear the list.

2001-09-14  Dan Winship  <danw@ximian.com>

    * camel-file-utils.c (camel_file_util_encode_string,
    camel_file_util_decode_string): Don't claim failure when
    reading/writing the empty string.

2001-09-14  JP Rosevear  <jpr@ximian.com>

    * Makefile.am: use install hook instead of install rule to
    guarantee we run after installation

2001-09-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Don't
    reuse the exception if it has already been set.
    (camel_filter_driver_filter_message): Same here. Also use the new
    return value from camel_filter_search_match().

    * camel-filter-search.c (camel_filter_search_match): Return an
    integer (matched, no-match, or error).

    * providers/local/camel-mbox-folder.c (mbox_append_message): Do
    error-checking based on function return values rather than
    exceptions as it's possible for them to be NULL.
    (mbox_get_message): Same.

    * providers/imap/camel-imap-folder.c (imap_append_offline): Pass
    an exception to the cache.
    (imap_append_online): Same.
    (imap_append_resyncing): Here too.
    (imap_copy_offline): And here.
    (handle_copyuid): Pass NULL as the exception here...
    (parse_fetch_response): And finally here.

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_insert):
    (insert_setup):
    (camel_imap_message_cache_insert_stream):
    (camel_imap_message_cache_insert_wrapper):
    (camel_imap_message_cache_copy): Take an exception argument and
    set it on error.

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Convert the charset
    to the iconv-friendly name.

    * camel-charset-map.c (camel_charset_to_iconv): Add code to
    convert windows-[cp]#### charsets to their iconv-friendly format
    of cp####.

    * camel-pgp-context.c (crypto_exec_with_passwd): Return -1 on
    failure.

2001-09-12  Larry Ewing  <lewing@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): free
    the source url in the nonfailure case.

2001-09-12    <NotZed@Ximian.com>

    * camel-folder-search.h: Change the 'not' virtual method from an
    immediate e-sexp function to a non-immediate one, which is what it
    should be.

    * camel-folder-search.c (search_not): Implement a 'not' function
    ourselves.  If 'not' on a vector value, then not over all items
    in the summary.
    (builtings[]): Change the 'not' builtin to be a non-immediate
    function.

2001-09-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): Unref
    the message info.

2001-09-10    <NotZed@Ximian.com>

    * providers/local/camel-maildir-store.c (get_folder_info): Pass in
    a hashtalbe used for finding visited nodes.
    (inode_hash): 
    (inode_equal): 
    (inode_free): Helper functions for visited node checks, hashes on
    inode + device number.
    (scan_dir): Dont re-visited directories we've already visited, use
    inodes + device number.
    Also, if the folder doesn't contain cur/tmp/new, mark it as
    noselect, but continue to recurse folders, if asked.

    * camel-folder.c (move_messages_to): Progress reporting while
    moving messages.

    * camel-store.c (camel_store_delete_folder): Make sure we remove
    the folder from our vtrash, if we have it in our opened set, and
    also remove it from our hashtable.
    (camel_store_rename_folder): Remove the old folder name from the
    folder cahce, if it is there.

2001-09-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-charset-map.c (camel_charset_to_iconv): Get rid of the
    g_warning, we no longer really need that.

2001-09-10    <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c (camel_imap_msg_new): Forgot
    to return the newly allocated msg.

2001-09-08  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-summary.c (spool_summary_sync_full):
    Likewise.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
    Fix the wording.

    * camel-tcp-stream-raw.c (stream_read): Save errno around fcntl
    call in cancellable read case.  Also, loop while we get EINTR.
    This might fix some weird reconnect behaviour with pop.
    (stream_write): "

2001-09-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (ssl_bad_cert): #if 0 out the code that
    was hopefully going to fix bug #5325 because the functions I used
    seem to have been deprecated. *sigh*.

    * camel-remote-store.c (camel_remote_store_finalise): Disconnect
    from the service here otherwise the locks will be destroyed and by
    the time CamelService finalizes we'll crash or hang.

    * providers/smtp/camel-smtp-transport.c (smtp_data): Make sure to
    unref the mime filters when we finish with them.

2001-09-07  Ettore Perazzoli  <ettore@ximian.com>

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
    s/Synchronising/Synchronizing/.
    (mbox_summary_sync_quick): Likewise.
    (summary_rebuild): s/Summarising/Summarizing/.

2001-09-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-multipart.c (camel_multipart_set_boundary): Take a const
    char * instead of a char *.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Reuse the
    original boundary instead of generating our own.

2001-09-06    <NotZed@Ximian.com>

    * providers/imap/camel-imap-folder.c (filter_proc): Thread
    function to perform filtering.
    (filter_free): Free the filter object.
    (camel_imap_folder_changed): If we have threads enabled, then
    queue up a request to perform filtering.  For bug #4422.

    * providers/imap/camel-imap-store.c (camel_imap_msg_new): Create a
    new 'imap msg'.
    (camel_imap_msg_queue): Queue an 'imap msg'.
    (async_received): Handle receiving of imap msg in async thread.
    (async_destroy): Handle destroying of imap msg.
    (camel_imap_store_finalize): Destroy thread when done.
    (camel_imap_store_init): Setup thread.

    * providers/imap/camel-imap-store.h: Added an ethread to the
    store, for async processing.

2001-09-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-remote-store.c (remote_recv_line): Use
    camel_stream_buffer_read_line() instead of duplicationing the
    functionality. Also, the previous way was broken anyway. What if a
    line was the same length as our buffer? Then we'd go and read a
    second line and a third and so on until they weren't the same
    length, leaving \r's in the middle of the buffer.

2001-09-06  Dan Winship  <danw@ximian.com>

    * providers/pop3/camel-pop3-store.c (pop3_get_response): Fix this
    to always set an exception if it returns POP3_FAIL, as documented.

    * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
    Revert.

2001-09-06  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
    Set an exception on POP3_FAIL as well.

2001-09-06  Dan Winship  <danw@ximian.com>

    * providers/pop3/camel-pop3-provider.c: #ifdef out the "delete
    after N days" option in pop3_conf_entries, since it won't be done
    for 1.0.

2001-09-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-remote-store.c (remote_disconnect): Too late to sync the
    folders here... if this is gonna happen at all it should be done
    in the provider.

    * camel-service.c (camel_service_finalize): Do a clean disconnect.

2001-08-30  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-spool-store.c (get_inbox): Return the
    default folder (ie. INBOX) rather than saying we don't support an
    inbox.

    * camel-tcp-stream-ssl.c: #include pk11func.h.
    (ssl_bad_cert): Use CERT_GetDefaultCertDB.

2001-08-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-smime-context.c (smime_sign_prepare): Do the same here as
    what we did in the pgp code a moment ago.
    (smime_sign_restore): And again here.
    (smime_sign): And update thise code to pass in the address of the
    encodings list when restoring parts.

    * camel-pgp-mime.c (pgp_mime_part_sign_prepare_part): Special-case
    message/rfc822 mime parts - don't set an encoding on these,
    instead traverse into their subparts and set the encodings for
    those.
    (pgp_mime_part_sign_restore_part): Reverse any operations done to
    message/rfc822 parts in the above prepare_part() function and also
    take a pointer to a GSList of encodings instead of just a GSList
    so we can properly keep track of which encoding we are on.
    (camel_pgp_mime_part_sign): Pass in the address to the encodings
    list when restoring parts.

2001-08-29  Not Zed  <NotZed@Ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_sync): Add progress
    reporting to deleting messages.  Dont change the calculation to a
    bloody float.  Bug #6189.

2001-08-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (crypto_exec_with_passwd): Initialize buf
    and diag_buf to NULL, hopefully this fixes the crash if the
    select() times out.
    (pgp_encrypt): Argh. What was I thinking? Don't use "-r recipient"
    as an argument, instead use "-r" and "recipient" as 2 separate
    arguments to pgp. This might fix the "gpg only encrypts to my
    private key" bug?

2001-08-28  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-store.c (create_folder): Whoops.
    Double-free and FMR = bad.

    * camel-remote-store.c (remote_send_string): Don't reveal the
    user's IMAP password if their server supports LITERALPLUS. Also
    add some more dashes to make it line up nicely :-)

2001-08-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (ssl_bad_cert): If the user accepts the
    certificate, add it to the database as a trusted CA.

2001-08-28  Peter Williams  <peterw@ximian.com>

    * camel-object.c (camel_object_unref): Make the locking more
    fine-grained on destruction; specifically, don't hold the
    type lock while calling the finalize functions.

2001-08-27  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-local-provider.c: Changed the
    description/names of some of the local providers to try and
    clarify the meanings.

    * providers/pop3/camel-pop3-provider.c: Simplify the POP
    description - we want short but sweet.

    * providers/imap/camel-imap-provider.c: s/IMAPv4/IMAP

2001-08-27  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part-utils.c (convert_buffer): re-read the iconv man
    page, and treat the return value properly.  It returns the number
    of non-reversible conversions performed, not the number of output
    characters, sigh.
    (check_html_charset): Changed to just take a buffer of data, and
    not the mime parser.
    (simple_data_wrapper_construct_from_parser): Since we dont need
    the charset till we have all the data, search for the charset
    after we've read the data, if we have html data with no charset in
    the header.
    (simple_data_wrapper_construct_from_parser): Remove the
    seekable_source stuff.

    * Re-apply patches from before.

2001-08-25  Not Zed  <NotZed@Ximian.com>

    ["Summarising" and "Synchronising" are spelt with a "s" in
    ENGLISH]

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_quick):
    s/Synchronizing/Synchronising/.

    * providers/local/camel-mbox-summary.c (summary_rebuild):
    s/Summarizing/Summarising/

2001-08-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-disco-diary.c (camel_disco_diary_replay): Use fseek
    instead of fseeko since we want to be portable and use ftell
    rather than ftello for the same reason.
    (camel_disco_diary_empty): Same here.

2001-08-24  Peter Williams  <peterw@ximian.com>

    * Revert Not Zed's previous commits as they apparently can cause
    serious data loss for POP3 users.
    
2001-08-24  Ettore Perazzoli  <ettore@ximian.com>

    ["Summarizing" and "Synchronizing" are spelt with a "z" in the
    default locale, that happens to be "en_US".]

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_quick):
    s/Synchronising/Synchronizing/.

    * providers/local/camel-mbox-summary.c (summary_rebuild):
    s/Summarising/Summarizing/

2001-08-24  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part-utils.c (convert_buffer): Limit the maximum
    output buffer size.  iconv bugs?  returns E2BIG forever on some
    (valid) data?

    * providers/local/camel-spool-summary.c (summary_rebuild):
    Likewise.

    * providers/local/camel-mbox-summary.c (summary_rebuild):
    Summarising is spelt with an s.

2001-08-23  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part.c (write_to_stream): If we have rawtext, then
    dont do any charset conversion, only encoding/crlf conversion.

    * camel-data-wrapper.h (struct _CamelDataWrapper): Added 'rawtext'
    member, says the character encoding is raw, not utf8.

    * providers/local/camel-spool-summary.c
    (spool_summary_sync_quick): Synchronising is spelt with an s, not
    a z.
    (spool_summary_sync_full): "

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
    No, synchronising is spelt with an s.
    (mbox_summary_sync_quick): "

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Remove the
    warnings which aren't going anywhere fast.
    (convert_buffer): Function to convert a bytearray of textual
    content from one charset to another.  If the charset doesn't exist
    or fails, then do no conversion.
    (simple_data_wrapper_construct_from_parser): First, read in data,
    then try and convert it using the specified charset if supplied.
    If that fails, then dont do any conversion, and leave as raw.
    Also, if we have any x-* charsets, then dont do any processing.

2001-08-23  Peter Williams  <peterw@ximian.com>

    * providers/local/camel-mbox-summary.c (summary_rebuild): Add a
    missing \n to the end of a printf.

    * providers/local/camel-spool-summary.c (summary_rebuild): Same.

2001-08-22  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_generate_uids):
    Oops. Fixed a mis-use of GPtrArray. If we set_size, then using
    g_ptr_array_add will assume `size' elements have already been
    initialized and will start appending on to the end.

2001-08-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Turn on --batch and reenable
    gpg keyserver lookups.
    (pgp_decrypt): Disable keyserver lookups if we are disconnected.

2001-08-21  Dan Winship  <danw@ximian.com>

    * camel-folder-thread.c
    (camel_folder_thread_messages_new_summary): Fix the duplicate
    message check so it doesn't mess up threading when a reply appears
    in the folder before the message it's a reply to. Fixes bug #3357.
    (camel_folder_thread_messages_new): Likewise, although I don't
    think this function is used any more.

2001-08-20  JP Rosevear  <jpr@ximian.com>

    * Makefile.am: build a static camel for the addressbook conduit

2001-08-20  Ettore Perazzoli  <ettore@ximian.com>

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
    s/Synchronising/Synchronizing/.
    (mbox_summary_sync_quick): Likewise.  *
    providers/local/camel-spool-summary.c (spool_summary_sync_full):
    Likewise.
    (spool_summary_sync_quick): Likewise.

2001-08-20  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (create_folder): Get the
    entire directory structure for the folder we just created, meaning
    if we created a folder named "test.mailbox" where test didn't
    previously exist, get the listing for "test" and "test.mailbox".

    * providers/imap/camel-imap-utils.c (imap_parse_folder_name): New
    function.

2001-08-19  Chris Toshok  <toshok@ximian.com>

    * camel-store.h: #include <sys/types.h> for mode_t on freebsd.

2001-08-19  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_generate_uids): Make
    sure the generated UID is non-NULL before appending it to the
    array of UIDs. How would this even happen? I have no clue...

2001-08-17  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_update_summary): Start
    scanning new messages at maxuid + 1 rather than uidval + 1? Maybe
    I'm missing the logic, but anyways...this might fix bug #5348.

2001-08-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (imap_keepalive): If we are
    online and message flags have changed in the current folder, sync
    the flags else do a NOOP. This fixes bug #4666. Also lock around
    the NOOP command.

    * providers/imap/camel-imap-folder.c (imap_sync_online): Don't
    ever send "STORE FLAGS.SILENT ()" since Cyrus imapd doesn't like
    this (and maybe others too?) so what we'll do instead is to send
    "STORE -FLAGS.SILENT (\Seen \Answered \Deleted \Marked)" to clear
    all the flags (since this is in essence what we want to do
    anyway).

2001-08-16  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-store.c (imap_connect_online): Fix
    this again. Sigh. Problem of namespace = "" may not yet be
    completely solved.

2001-08-15  Peter Williams  <peterw@ximian.com>

    * camel-tcp-stream-openssl.c (ssl_error_to_errno): New
    function. Try to approximate the SSL error into errno.
    (errlib_error_to_errno): New function, try to approximate
    OpenSSl's error library's error (ERR_*) into errno.
    (stream_read): Try to set errno using ssl_error_to_errno.
    (stream_write): Same.
    (open_ssl_connection): Same.

    * providers/imap/camel-imap-store.c (imap_connect_online): Oh
    crap, huge killer typo.

2001-08-14  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-store.c (imap_connect_online):
    Canonicalize store->namespace to end in store->dir_sep, once both
    values are known. The %F-related code makes this
    assumption. Probably fixes a bug reported on the mailing list.

2001-08-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_get_folder): After talking to NotZed,
    it turns out I was wrong after all.
    (store_sync): Create a copy of the folder-cache that owns a ref on
    each of the folders so that if one of the folders get's finalized
    inside store_sync(), we don't run into any locking issues. This is
    mostly meant to solve a problem in IMAP (#6089).

2001-08-13  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-store.c (delete_folder): Fix a leak.

    * providers/imap/camel-imap-utils.c (imap_namespace_concat): Bleah,
    handle when namespace = NULL (can happen upon initial open of mailbox.)

    * providers/imap/camel-imap-command.c (imap_command_strdup_vprintf): 
    Don't crash when %F'ing with an empty folder name and NULL namespace.

2001-08-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_get_folder): We need to be ref'ing
    the folder if/when we add it to the hash. This may fix bug #6089?
    (camel_store_get_folder): Nevermind, reverted the fix.
    (camel_store_get_folder): No, I wasn't on crack before after
    all...if we don't ref here, then we're open to a race condition
    later.

2001-08-11  Ettore Perazzoli  <ettore@ximian.com>

    * providers/local/camel-spool-summary.c (summary_rebuild):
    s/summarising/summarizing/.
    (summary_rebuild): Likewise.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
    s/summarise/summarize/.
    (mbox_summary_sync_quick): Likewise.
    (summary_rebuild): Likewise.
    (mbox_summary_check): Likewise.

2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_quote_string): Added an
    assert - at this point a backtrace would be more useful than a
    transaction log for debugging.

    * providers/imap/camel-imap-command.c (imap_command_start): Return
    FALSE here, not NULL.
    
    * providers/imap/camel-imap-folder.c (imap_rescan): Don't
    g_strdup() the uid into the trigger_event call.

    * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
    Set the total bytes expected to 0 if the response is empty too.
    (pop3_refresh_info): Return of there was an error generating pop3
    uids.

    * camel-mime-utils.c (header_raw_check_mailing_list): regfree the
    pattern before continue'ing. This was showing up quite a bit under
    purify.

2001-08-09  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_parse_string_generic): A
    quoted string cannot contain \n's so check for those as well.
    (imap_atom_specials): Update this to fix bug #6553.

2001-08-08  Jon Trowbridge  <trow@ximian.com>

    * camel-filter-search.c (get_source): Remove trailing stuff from
    URLs before returning.  (Done in an evil way, not in the good way
    suggested by fejj. :)) (Bug #4876)

2001-08-08  jacob berkman  <jacob@ximian.com>

    * camel-search-private.c (camel_search_header_match): check for
    NULL name and addr (fixes a bug i was about to report)

2001-08-08  Not Zed  <NotZed@Ximian.com>

    * camel-filter-search.c (check_header): Properly determine match
    type to pass to header_match.
    (address_matches_exactly): Removed, effectively added to
    camel_search_header_match.

    * camel-folder-search.c (check_header): Properly determine the
    match type to pass to header_match.

    * camel-search-private.c (camel_search_header_match): Add a new
    parameter 'type' which is the type of header we're matching
    against.  ASIS means utf8 format, ADDRESS means an internet
    address ('formatted'), ADDRESS_ENCODED means a raw address header,
    ENCODED means rfc 2047 encoded text.
    (header_match): Move original logic here, have search_header_match
    call it as appropriate for the 'type' of match.

2001-08-07  Not Zed  <NotZed@Ximian.com>

    * camel-session.c (camel_session_class_init): Only init the vee
    provider struct once (if we're subclassed this will get called
    multiple times).

    * camel-object.c (obj_finalize): Removed a bit of a debug that
    crept in with jacob's poolv patch (?).

2001-08-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-search.c (address_matches_exactly): New function to
    do danw's address "is" comparison (as specified in bug #5886.
    (check_header): Special-case address-type headers when we are
    doing an exact match to use the address_matches_exactly function.

2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
    Modify to take a headers_only argument which will then only fetch
    message headers.
    (pop3_generate_uids): Pass in TRUE for headers_only.
    (pop3_get_message): Pass in FALSE for headers_only and move the
    camel_operation() stuff out of get_message_stream and in to here
    instead.
    (pop3_generate_uids): We also need to be using i+ 1 as the id
    since we are starting at 0.

2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
    New internal function to get a message stream by message sequence
    id (so that we can share code between pop3_get_message and
    pop3_generate_uids).
    (pop3_get_message): Use pop3_get_message_stream.
    (pop3_generate_uids): New function to generate UIDs based on the
    message - this fixes bug #1256.
    (pop3_refresh_info): If the server doesn't support UIDL, call
    pop3_generate_uids to get our list of UIDs.

    * providers/imap/camel-imap-store.c (get_folder_info_online):
    Don't strstr for noselect=yes, that's just plain broken.

2001-08-06  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_rescan): Fix off-by-one
    error in cleaning up deleted messages at the end of the folder.
    Fixes bug #5585 and maybe others.

    * providers/imap/camel-imap-store.c (get_folder_info_online): Do a
    refresh_info on the selected folder before looking at its unread
    count. Should fix bug #4944.

2001-08-06  Peter Williams  <peterw@ximian.com>

    Completely hide the namespace from everything external to the IMAP
    code, which Dan W says is the way it should be.
    
    * providers/imap/camel-imap-command.c
    (imap_command_strdup_vprintf): Add a new %F argument, which is like
    %S but will add the namespace (for folder names).
    (camel_imap_command): Use %F here.

    * providers/imap/camel-imap-utils.c (imap_parse_list_response):
    Changed to strip out the namespec when returning *folder. In order
    to do this we need to be passed the CamelImapStore.
    (imap_concat): Move to here from camel-imap-store.c, un-static
    (imap_namespace_concat): New function, adds the namespace to the 
    folder name, unless it's INBOX.
    
    * providers/imap/camel-imap-utils.h: Prototypes.

    * providers/imap/camel-imap-store.c (imap_connect_online): Extra
    arg to imap_parse_list_response.
    (imap_connect_offline): Here too.
    (get_folder_status): Use %F.
    (get_folder_online): Here too.
    (delete_folder): Here too.
    (create_folder): Here too, and arg to imap_parse_list_response.
    (parse_list_response_as_folder_info): Arg to i_p_l_r.
    (get_subscribed_folders_by_hand): Use %F.
    (get_folders_online): Here too.
    (get_folder_info_online): Instead of checking for NULL @name, check
    for name = NULL or "", and set to "" instead of namespace. Pass ""
    instead of namespace to camel_folder_info_build.
    (subscribe_folder): Use %F.
    (unsubscribe_folder): Here too.

    * providers/imap/camel-imap-folder.c (imap_get_full_name): This
    now just returns folder->full_name.
    (do_append): Use %F
    (do_copy): Here too.

2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Always do --no-auto-key-retrieve.

2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Minor changes to the iconv
    code so that it does the check in the return value of iconv() just
    like the code in camel-mime-utils.c in case this fixes Bo Rosen's
    gpg bugs (but I doubt this will change anything?).

2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): First
    check to make sure that service->url->authmech is non-NULL before
    passing it into strcmp to avoid a segfault.

    * camel-pgp-context.c (pgp_decrypt): Sigh, if gpg returns '1' it
    means that the key is bad but it did succeede in decrypting the
    block so to make users happy (even though I find this a
    questionable action) we are going to ignore the error and show it
    to the user anyway. This fixes bug #6136.

2001-08-03  Not Zed  <NotZed@Ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): special
    case popb4smtp auth before we try and connect, and do the magic
    here first.

2001-08-02  Not Zed  <NotZed@Ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Check for
    POPB4SMTP separate to the esmtp auth list.
    (smtp_auth): If creating the sasl object means it is
    already authenticated, then exit early.  Sort of 'clean hack' to
    help popb4smtp work.
    (smtp_auth): Unref the sasl object, clean up a memleak i think.

    * providers/smtp/camel-smtp-provider.c
    (camel_provider_module_init): Added POPB4SMTP auth type.

    * camel-sasl.c (camel_sasl_authtype): Added POPB4SMTP type.

    * camel-sasl-popb4smtp.c: New file for pop before smtp
    'authentication'.

    * Makefile.am (libcamel_la_SOURCES, HEADERS): Add
    camel-sasl-popb4smtp.[ch].

2001-08-01  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-mbox-folder.c (mbox_lock): If we fail to
    get the lock, make sure we close our locking fd, and reset it.
    Fixes the crash part of 5095.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Slightly re-arranged filter/change notification logic.  If we;re
    filtering, freeze the folder till we're finished to smooth the ui
    for new mail.

2001-07-31  Not Zed  <NotZed@Ximian.com>

    * camel-folder.c (camel_folder_init): Chagned mutexes to
    e_mutexes, folder lock recursive.  This fixes the imap filtering
    bug, or at least some cases of it.
    (camel_folder_finalize): Free mutexes.

    * camel-private.h (CamelFolderPrivate): Changed mutexes to
    e_mutexes.

2001-07-25  Not Zed  <NotZed@Ximian.com>

    * camel-folder.c (camel_folder_change_info_*): Change the
    return if fail's into asserts.
    (camel_folder_change_info_free): Don't let it accept a NULL
    argument.  This isn't g_lib so we dont have to.

2001-07-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_param): Fix the fix that fixes
    broken mailer behavior. We want to make sure that the user's
    locale charset is non-NULL before we pass it off to
    iconv_open(). If it *is* NULL, we want to use iso-8859-1.

2001-07-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-url.c (camel_url_free): Allow the url to be NULL just like
    the libc free convention.

2001-07-26  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-command.c (camel_imap_command_start):
    Send an IMAP command, but don't wait for responses.
    (camel_imap_command_response): Read a single line of response from
    the server.
    (camel_imap_command, etc): Reimplement in terms of the new code.

    * providers/imap/camel-imap-folder.c (imap_rescan): Use
    camel_imap_command_start and camel_imap_command_response, and
    call camel_operation_progress after each line read from the
    server.
    (imap_update_summary): Likewise, although with more fudging on the
    precentages... Also, fix this so that if none of the new messages
    are cached, it only does a single FETCH, and if some of them are
    cached, it does two FETCHes (one to get the UIDs, FLAGS, and
    SIZEs, and another to get the bodies of all of the messages that
    aren't cached now that it knows the relevant UIDs). This should
    speed up startup a bunch (especially if you have high bandwidth
    but also high latency to the IMAP server).

2001-07-25  Dan Winship  <danw@ximian.com>

    * camel-mime-utils.c (mail_mlist_magic): Add another Sender
    pattern.

2001-07-24  Not Zed  <NotZed@Ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Change the break into a continue, we should process as many as we
    can find.

    * camel-folder.c (camel_folder_move_messages_to): If we have no
    uid's to copy, exit here before going any further.  Some code
    internally [imap] assumes there are uids to copy otherwise it can
    segfault.
    (camel_folder_copy_messages_to): Same.

2001-07-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_param): Handle broken mailers
    that send unencoded 8bit header params. And there was much
    rejoicing. Rah.

    * camel-url.h (CAMEL_URL_HIDE_ALL): New #define, and there was
    much rejoicing. Rah.

2001-07-24  Not Zed  <NotZed@Ximian.com>

    * camel-operation.c (camel_operation_register, unregister): Added
    some warnings for bad cases.

2001-07-23  Not Zed  <NotZed@Ximian.com>

    * camel-operation.c (camel_operation_register): Only insert a hash
    entry if we haven't already.
    (camel_operation_unregister): Only remove the has entry if the id
    is a real thread.

2001-07-23  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_move): Slight fix for when source ==
    destination (we don't want to do this action because on-demand
    filtering would then delete the messages it supposedly "moved").

2001-07-23  Not Zed  <NotZed@Ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_auth, smtp_helo,
    send_to): Added some operation progress reporting.  Actual data
    transfer is 'tricky' because of the layers used.
    (smtp_auth): Instead of checking exception_is_set, use
    challenge==NULL to test if sasl_challenge_base64 failed.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync): Remove
    peters changes below and put in a better fix.  These functions
    already return -1 on error, just use that, and not worry about
    building our own exception redundantly.

    * camel-service.c (camel_get_host_byname): Turn the progress into
    a transient event.

2001-07-20  Peter Williams  <peterw@ximian.com>

    * providers/local/camel-mbox-summary.c (mbox_summary_sync): More
    usage fixes for CamelException. Check our own exception for
    summary_update and xfer it out if an error occurred.

2001-07-20  JP Rosevear  <jpr@ximian.com>

    * Pull up test fixes to get them building again

2001-07-20  Not Zed  <NotZed@Ximian.com>

    * camel-charset-map.c (camel_charset_get_iconv_friendly_name):
    renamed to camel_charset_to_iconv() to make it just a little more
    consistent and not so long & fixed callers.

2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-charset.c
    (camel_mime_filter_charset_new_convert): Convert to the
    iconv-friendly charset names.

    * providers/imap/camel-imap-store.c (create_folder): Fixed a
    compiler warning about returning without a value in a non-void
    function. Blah.

    * camel-mime-part.c (process_header): Pass the locale charset as
    the default_charset to header_decode_string().

    * camel-folder-summary.c (camel_folder_summary_format_string):
    Pass the locale charset as the default_charset to
    header_decode_string().
    (content_info_new): Same.

    * camel-mime-message.c (process_header): Pass the locale charset
    as the default_charset to header_decode_string().

    * camel-mime-utils.c (append_8bit): New helper function who's
    purpose is similar to append_latin1() but for 8bit text that we
    are assuming is not latin1.
    (header_decode_text): Now takes a default_charset parameter and
    calls append_8bit when appropriate.
    (header_decode_string): Also takes a default_charset parameter
    now.
    (header_decode_mailbox): Pass NULL as the default_charset to
    header_decode_string().

2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Modified to treat the return
    value from camel_charset_locale_name() as a const char*.

    * camel-sasl-digest-md5.c (digest_response): Modified to treat the
    return value from camel_charset_locale_name() as a const char*.

    * camel-charset-map.c (camel_charset_locale_name): Modify to
    return const char* by returning the static locale_charset which is
    created inside of camel_charset_map_init().
    (camel_charset_map_init): Find the locale charset here and set the
    static variable.

2001-07-19  Peter Williams  <peterw@ximian.com>

    Policy change: NULL url's are no longer allowed in
    CamelFolderInfos. They used to signify that the folder was, in
    IMAP jargon, NoSelect; now the same effect is achieved by adding a
    "noselect=yes" parameter to the end of the URL. As far as I know,
    IMAP is the only affected provider.
    
    * providers/imap/camel-imap-store.c (delete_folder): New
    function. Implement folder deletion.
    (camel_imap_store_class_init): Set the delete_folder class
    function here.
    (get_folder_status): New function. Utility wrapper around the
    STATUS command.
    (create_folder): If the parent folder is NoSelect but is empty,
    delete it and recreate it as a a subfolder-containing folder. If
    it is NoSelect but contains messages, set an exception.
    (parse_list_response_as_folder_info): Always set the FolderInfo's
    URL, but add a NoSelect parameter if it isn't selectable.
    (get_folder_info_online): Change logic of removing the namespace
    to reflect URL change. Same for logic of checking unread counts.
    (get_folder_info_online): Use get_folder_status to simplify this.

    * camel-store.c (camel_folder_info_build): When creating dummy
    parents, copy the child's URL and set the NoSelect parameter.

2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): No need for
    `acharset' anymore.
    (check_html_charset): Return a const char* and also use
    camel_charset_get_iconv_friendly_name() internally.

    * camel-mime-utils.c (rfc2047_decode_word): Remove my iso8859-1 ->
    iso-8859-1 hack and use camel_charset_get_iconv_friendly_name()
    instead.
    (rfc2184_decode): Use camel_charset_get_iconv_friendly_name()

    * camel.c (camel_init): Call camel_charset_map_init().

    * camel-charset-map.c (camel_charset_map_init): New function to
    initialize the charset-equivalent lookup table. To be called by
    camel_init().
    (camel_charset_get_iconv_friendly_name): New function to try and
    convert a charset into something that iconv is more likely to
    accept.

2001-07-19  Peter Williams  <peterw@ximian.com>

    * Revert 7/11/2001 patch for IMAP INBOX filtering at NotZed's 
    request.

2001-07-17  Peter Williams  <peterw@ximian.com>

    Clean up some exception misusage.

    * providers/imap/camel-imap-command.c (camel_imap_command): Use
    our own internal exception for sending the string and transfer it
    to @ex if anything goes wrong.
    (imap_read_response): Use our own internal exception for reading
    the untagged responses and blah blah blah.

    * camel-session.c (get_service): Use our own internal exception
    when constructing the service and transfer it to @ex if anything
    goes wrong.

    * camel-remote-store.c (remote_recv_line): Instead of having
    gboolean exception, use our own internal exception and copy
    it to @ex if anything goes wrong.

    * camel-store.c (store_sync): Create an internal exception
    because sync_folder() checks it for validity. Transfer it to
    @ex when done.

    * camel-exception.c (camel_exception_get_description): If @ex is
    NULL, complain - passing NULL exceptions to Camel is okay, but
    there should be no circumstances under which they're then
    examined.
    (camel_exception_get_id): Same here,
    (camel_exception_xfer): NULL-protect and warn if transferring from
    a NULL exception.
    
2001-07-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (init_trash): Use CAMEL_VTRASH_NAME.

    * camel-vtrash-folder.h: #define CAMEL_VTRASH_NAME

2001-07-16  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-command.c (camel_imap_response_free):
    Given:
        * 4 EXISTS
        * 1 EXPUNGE
    We have to pass 3, not 4 to camel_imap_folder_changed for the
    exists count. Fixes ximian bug #2112 (finally!).

2001-07-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    If the message info for an expunged message is NULL, then just
    break out - maybe a message was expunged that we were never
    notified even existed?

2001-07-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (rfc2047_decode_word): Added a hack to
    convert charsets in the format iso8859-1 to iso-8859-1 because it
    seems to be more iconv friendly. It has been reported that on some
    systems, iconv doesn't know about iso8859-1 while it *does* know
    about iso-8859-1. See bug #4530.

2001-07-13  Peter Williams  <peterw@ximian.com>

    * Makefile.am (install-exec-local): Let people install as
    non-root, but give them a bigass warning so they're not allowed to
    complain when it doesn't work right.

    * camel-remote-store.c (sync_remote_folder): New function: hash
    table callback.
    (remote_disconnect): If cleanly disconnecting, sync our
    folders. Fixes deadlocks on exit (folders syncing after store
    disconnects) and also makes sense.

2001-07-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-uid-cache.c (camel_uid_cache_new): We now use a structure
    as the bucket data rather than just a cache level so set the save
    state to TRUE.
    (maybe_write_uid): We only save the uid if the cache levels are
    the same *and* if the save state is TRUE.
    (free_uid): Free the state value.
    (camel_uid_cache_get_new_uids): New uids that get added to the
    cache start with a save state of FALSE.
    (camel_uid_cache_save_uid): Set the save state of the uid to
    TRUE. What should we do if the uid isn't already in the cache?
    Currently I make it add the uid, but maybe it shouldn't?

    * providers/imap/camel-imap-folder.c (imap_filter_timeout): Update
    to reflect CamelFilterDriver API changes.

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Take
    a cache argument so we can tell the cache whether or not the uid
    should be saved (meaning we have successfully filtered it).

2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message):
    Okay, I've decided that that user is just on crack. We don't want
    to allow filtering of deleted messages or we could get some
    unexpected behavior.
    (do_move): Oops. My last fix needs to be after the if-statement,
    not inside it.
    (do_copy): And here too.

2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_move): Only set p->copied and
    p->deleted if the messages are copied without an exception.
    (do_copy): Same - but obviously we don't set the p->deleted here
    at all.
    (camel_filter_driver_filter_message): Since users complained that
    they couldn't filter deleted messages for "safe keeping" (WTF?
    safe keeping? why were they deleted in the first place then??), I
    have taken out the code that optimized filtering by not allowing
    deleted messages to be filtered. This fixes bug #4473.

    Note: Users have a warped sense of logic.

2001-07-12  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part-utils.c (extract_metatag_charset): Removed.
    (check_html_charset): Replaced with this.
    (simple_data_wrapper_construct_from_parser): Call
    check_html_charset if we dont have a charset on the content-type,
    and we have text/html data.
    (check_html_charset): We also need to do qp/base64 decoding
    ourselves, sigh.

    * camel-mime-utils.c (html_meta_param_list_decode): Removed.  This
    was very wrong, the rules for mail headers vastly different from
    rules for decoding html elements.
    (rfc2184_decode): Move the malloc inside the iconv_open worked,
    otherwise we have a memleak.

    * camel-mime-filter-html.c (camel_mime_filter_html_finalize, init,
    run, reset): Changed to use camelhtmlparser, and fixed a tiny
    memleak.

    * camel-html-parser.c: Made the html indexer tokeniser re-usable.
    ONLY TO BE USED INTERNAL TO CAMEL HOWEVER.
    (tokenise_step): Slight fix to non-quoted values.

    * camel-folder-summary.c
    (camel_folder_summary_info_new_from_message): Removed some code i
    wasn't supposed to commit.

    * providers/local/camel-local-summary.c (local_summary_add): Only
    set info->size if it is not zero.
    (local_summary_add): If we dont get a size from the info passed
    in, calculate it using a null stream write.  Should do #4392.

2001-07-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c (extract_metatag_charset): New function
    to extract a meta-tag charset value if it exists.
    (simple_data_wrapper_construct_from_parser): Along the same lines
    as the code I previously ripped out, but this time use the
    mime-parser's seek ability to help us along. Currently I read up
    to a 2k buffer size - this is probably overkill, 1k is probably
    plenty.

    * camel-mime-utils.c (html_meta_param_list_decode): When we get to
    an `=', we must skip past it before trying to grab the param
    value. duh.

2001-07-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Ripped out my code
    since it was never being used since the mime parser is not using a
    seekable stream (ever?) which pretty much means my code needs to
    be done someplace else.

2001-07-11  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed): 
    Run the filter in its own thread to prevent locking issues.
    (imap_filter_timeout): New function that does the filtering called
    as a CamelSession timeout.

2001-07-11  Not Zed  <NotZed@Ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): Create
    the messageinfo itself, so we can properly set the size.

    * camel-movemail.c (camel_movemail_solaris): Write out the from
    line between each message.

2001-07-10  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-summary.c (local_summary_add): Copy
    the size across from the source message info if supplied.

    * camel-stream-null.c: Added a 'written' member which keeps track
    of how much has been written to the stream.

    * camel-movemail.c (camel_movemail): If we have BROKEN_SPOOL
    defined, then use the solaris movemail to quote from lines that
    sendmail didn't.
    (camel_movemail_solaris): Compile this in if BROKEN_SPOOL defined.

2001-07-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (html_meta_param_list_decode): New function
    to parse an HTML meta-tag.

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): If the Content-Type
    did not contain a charset parameter and it's also a text/html
    part, we have 1 last place to look - in the META html tags. *sigh*

    * camel-mime-message.c (camel_mime_message_get_source):
    s/gint/unsigned since that's what it should be.

2001-07-09  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_sign): Forget the passphrase if the
    user has set that option.
    (pgp_clearsign): Same.
    (pgp_encrypt): And here...
    (pgp_decrypt): And finally here.
    (camel_pgp_context_new): Take a `remember' argument.

2001-07-09  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-maildir-summary.c (maildir_summary_sync):
    Oops, e_poolv_set free's it for us, so dont double-free here.

2001-07-06  Not Zed  <NotZed@Ximian.com>

    * camel-vee-folder.c (camel_vee_folder_finalise): Changed so we
    dont have the list changing under us, just going to the next node
    before we call a function that might change the list is
    potentially dangerous (slight mod of peters fix).  Hmm, i think it
    would've double-unref'd it too(?)

2001-07-08  Chris Toshok  <toshok@ximian.com>

    * camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_finalize):
    openssl_table is gone.  we now store/get the stream from the
    SSL_CTX's app_data.
    (stream_read): rework the non-blocking case to account for SSL
    possibly buffering data (in which case select will block even
    though data is ready to be read), and to account for FreeBSD's
    strange behavior of returning -1/EAGAIN even though select said
    the fd was ready to be read.
    (ssl_verify): openssl_table is gone.
    (open_ssl_connection): set the SSL_CTX's app_data to be the
    stream, remove the openssl_table code.

2001-07-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_encode_param): Don't allow in to be
    NULL, so instead of doing if (in == NULL) return;, make it a
    g_return_val_if_fail and later we can make it an assert or
    something.

    * providers/local/camel-maildir-store.c (get_inbox): Fixes bug
    #1138.

    * providers/local/camel-mbox-summary.c
    (camel_mbox_summary_build_from): Make the `day-of-month' digit
    take up 2 chars by using "%2d". Fixes bug #3989 for lame mailers
    like Pine.

    * camel-pgp-context.c (crypto_exec_with_passwd): Set the pipe fd's
    to nonblocking.

2001-07-06  Peter Williams  <peterw@ximian.com>

    * camel-object.c (camel_object_unref): Make sure that after the
    finalization event has happened and the finalization functions
    have been called that the object still has a zero refcount.

2001-07-06  Joe Shaw  <joe@ximian.com>

    * providers/nntp/camel-nntp-grouplist.c: Add locking to
    camel_nntp_get_grouplist_from_server().

    * providers/nntp/camel-nntp-resp-codes.h: Added
    NNTP_EXTENSIONS_SUPPORTED (202).

    * providers/nntp/camel-nntp-store.c (camel_nntp_store_get_extensions):
    Check for both NNTP_LIST_FOLLOWS and NNTP_EXTENSIONS_SUPPORTED from
    a LIST EXTENSIONS request. (Dunno if NNTP_LIST_FOLLOWS ever comes
    out of this, but that's what was already there...) Also, put some
    locking around it.
    (finalize): e_mutex_destroy() the command lock
    (camel_nntp_store_init): e_mutex_new() the command lock.

    * providers/nntp/camel-nntp-store.h: Add locking macros.

2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (camel_message_info_string): Added an
    assert to make sure that `mi' isn't NULL.
    (camel_message_info_set_string): Same.

    * providers/imap/camel-imap-command.c (camel_imap_response_free):
    Create and use a temporary CamelException for use with
    camel_imap_folder_changed.

2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Send the
    --no-auto-key-retrieve argument to gpg if we are in offline mode
    so that we don't have to worry about gpg hanging if it can't
    connect to the key servers, because now it shouldn't even attempt
    to.

2001-07-05  Chris Toshok  <toshok@ximian.com>

    * camel-tcp-stream-openssl.c (ssl_verify): use
    X509_STORE_CTX_get_ex_data to get at the SSL* - don't use the
    X509_STORE_CTX to look up our stream, since it's not what we used
    to insert our stream into the hashtable.
    (open_ssl_connection): insert the stream into the hashtable before
    calling SSL_connect, as this can cause ssl_verify to be called,
    and we need to look up the stream there.  remove the stream from
    the hashtable if there's an error connecting.
    (stream_connect): pass the CamelTcpStreamOpenSSL* to
    open_ssl_connection since it handles the hashtable stuff.  remove
    hashtable stuff from here.

2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder.c (camel_folder_copy_messages_to): if source ==
    dest, just no-op.

2001-07-05  Peter Williams  <peterw@ximian.com>

    * camel-vee-folder.c (camel_vee_folder_finalise): Move this before the
    camel_vee_folder_remove_folder because that function modifies p->folders
    messing up our iteration.
    (camel_vee_folder_finalise): Don't unref our summary; camel-folder now
    does this.

    * camel-object.h (CamelObject): Add a 'destroying' flag to CamelObject.

    * camel-object.c (obj_init): Clear 'destroying'.
    (camel_object_unref): If 'destroying' then do not send the finalize
    event and do not call finalize functions. Otherwise, set destroying
    so just in case we get refed (eg event code) we don't get doubly
    finalized.

2001-07-05  Not Zed  <NotZed@Ximian.com>

    * camel-mime-filter-basic.c (filter): Fix the assertion slightly,
    if we have a little bit of input the output size could be larger,
    since we store upto 3 chars in the state.

    * camel-folder-summary.c
    (camel_folder_summary_info_new_from_message): When indexing a new
    record, create a pseudo word 'ibexindexed' so we can always tell
    that a message has already been idnexed, even if it contains no
    words of its own.  Things like maildir use this check to see if
    its already been processed, and it matters if it is incorrect in
    this case (not just wasted cycles).
    (camel_message_info_dup_to): Assign the to->strings from the
    e_poolv_cpy() call, since it may allocaote a new poolv if the
    lengths do not match.

    (camel_folder_summary_info_new_from_parser): And same here.

    * providers/local/camel-maildir-summary.c (maildir_summary_sync):
    Changed the logicfor epoolv code to be different, we dont need to
    update hash references or any tricky stuff.
    (maildir_summary_check): Samehere.

    * camel-folder-summary.h: Removed include of e-memory.h.

2001-07-03  Joe Shaw  <joe@ximian.com>

    * providers/nntp/camel-nntp-resp-codes.h: Added NNTP_NO_PERMISSION
    (502) to the list of response codes.

    * providers/nntp/camel-nntp-store.c (nntp_store_connect): If we
    receive a NNTP_NO_PERMISSION, don't get into an infinite loop trying
    to reconnect, get extensions, etc. Just give up and return FALSE.

2001-07-03  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_clear): Doh. Don't remove things from
    the hash table while foreach'ing it. (And can't use foreach_remove
    either because we have to remove them in a weird order). Fixes
    #3618.

    * providers/imap/camel-imap-folder.c (imap_get_message): If the
    server returns OK from the FETCH BODY, but there's no parseable
    BODY response, it's probably because there's an UN-parseable BODY
    response, implying the message is badly formatted, MIMEwise. In
    that case, fall back to fetching the message as a single part.

2001-07-02  Sam Creasey <sammy@oh.verio.com>

        * providers/nntp/camel-nntp-folder.c: Implemented
        nntp_folder_search_by_expression and
        nntp_folder_search_free.  Basic search functionality e.g. unread
        marking now works for NNTP folders.

        * camel_filter_search.c (get_size): Added get-size sexp directive
        to get the size of a message for filters.

    * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new):
    Always check with the NNTP server after summary load -- this
    function now always expires old summary entries and syncs with
    the news server.

    * providers/nntp/camel-nntp-utils.c (camel_nntp_get_headers):
    Only fetch headers for articles not already logged in 
    the summary file.
    
    * providers/nntp/camel-nntp-grouplist.c 
    (camel_nntp_get_grouplist_from_*): change from g_list_append()
    to g_list_prepend() + g_list_reverse.  Traversing 40,000 
    element linked lists sucks.

    * providers/nntp/camel-nntp-store.c (camel_nntp_command):
    Should the NNTP connection die with 
    CAMEL_EXCEPTION_SERVICE_NOT_CONNECTED, make a single retry 
    attempt.  Timing out the NNTP link is less painful this way.

2001-07-02  Peter Williams  <peterw@ximian.com>

    * README (Introduction): Add comment noting that Camel actually
    exists now :-)

2001-07-02  Dan Winship  <danw@ximian.com>

    * camel-session.c (camel_session_get_filter_driver): new method to
    get an application-initialized filter driver.

    * camel-filter-driver.c (camel_filter_driver_new): Remove the
    get_folder function and data args from here...
    (camel_filter_driver_set_folder_func): ...and add this function to
    set/change them.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): If
    this folder is INBOX and we're filtering INBOX, set a flag on the
    folder for later.
    (imap_update_summary): Add another argument (GPtrArray *recents),
    and if it's non-NULL, add the uids of any \Recent new messages to
    it.
    (camel_imap_folder_changed): If doing filtering in this folder,
    create a recents array and pass it to imap_update_summary. Then
    get a filter driver and use it to filter the recent messages.

    * providers/imap/camel-imap-summary.h: 
    * providers/imap/camel-imap-utils.c (imap_parse_flag_list): Add
    support for the \Recent flag.

    * providers/imap/camel-imap-provider.c (imap_conf_entries): enable
    the "filter" option.

    * camel-types.h: add CamelFilterDriver typedef here

2001-07-02  Not Zed  <NotZed@Ximian.com>

    * camel-lock-client.c (camel_lock_helper_init): properly return
    error if we can't create pipes.

    * camel-folder-summary.c (summary_build_content_info): re-enable
    html indexing.

    * camel-mime-filter-html.c: Completely re-implemented using a
    custom parser.

2001-07-02  Dan Winship  <danw@ximian.com>

    * tests/misc/url.c (main): Change a camel_exception_clear to
    camel_exception_init to fix a sometimes-crash

2001-06-29  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c: Added Originator: header as a header to look
    for when looking for the mailing list.

    * tests/mime-filter/Makefile.am: Build the test-crlf test program.

    * tests/mime-filter/test-crlf.c: New test suite for the crlf
    filter.

    * camel-mime-filter-crlf.c (filter): Fixed to correctly encode and
    decode dots.

2001-06-28  Peter Williams  <peterw@ximian.com>

    * camel-mime-filter-stripheader.c: New file. Filter that strips a
    header from mime output.

    * camel-mime-filter-stripheader.h: New file. Header for the above.

    * providers/smtp/camel-smtp-transport.c (smtp_data): Use the
    stripheader filter to remove the "Bcc" header.

    * Makefile.am: Add the stripheader files.

    * tests/lib/Makefile.am (INCLUDES): Get this to compile again.

    * tests/mime-filter/test-stripheader.c: New file. Test suite for
    the CamelMimeFilterStripHeader.

    * tests/mime-filter/Makefile.am: New test section: mime filters.

2001-06-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_param_list): Fix a memory
    leak. Also if the decoded value is NULL, that means it wasn't
    encoded so we don't want to toss the old value.
    (header_param_list_format_append): Correctly wrap long parameter
    values according to rfc2184.

2001-06-28  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_refresh_info): If the
    folder is frozen, don't refresh, just record that we need to do it
    later.
    (imap_append_online): If the APPEND doesn't trigger an immediate
    EXISTS response (because the folder isn't the selected folder, or
    because the server doesn't do that until the next command), call
    imap_refresh_info on the folder.
    (imap_copy_online): Likewise. (Replacing the unconditional NOOP
    that was there before, which absolutely killed filter performance
    by forcing the IMAP provider to switch back and forth between
    folders after every copy or move.)
    (imap_thaw): If the folder needs a refresh, do it.

    * camel-folder.c (camel_folder_is_frozen): New method

2001-06-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-transport.c (camel_transport_init): Initialize the private
    send_lock.
    (camel_transport_finalize): Free the private send_lock.
    (camel_transport_get_type): Set the init and finalize functions.
    (camel_transport_send): Lock the transport.
    (camel_transport_send_to): Same.

    * camel-private.h: Add CAMEL_TRANSPORT_(UN)LOCK macros.

2001-06-27  Jeffrey Stedfast  <fejj@ximian.com>

    * tests/folder/test9.c (main): Updated to match the current API.

    * tests/folder/test3.c: #include <gtk/gtk.h> since we use
    gtk_init().

    * camel-internet-address.c
    (camel_internet_address_encode_address): Use the new
    header_address_fold.

    * camel-mime-utils.c: Removed some old #if 0'd code of mine.
    (rfc2047_encode_word): If enclen is 0, don't write an encoded word
    token (=?iso-8859-7?Q??= would be an invalid token).
    (header_address_fold): New function to wrap address headers -
    header_fold() was force-wrapping rfc2047 encoded words which was
    making the test suite fail. The *real* solution, however, is to
    not create rfc2047 encoded words longer than 72 chars.

2001-06-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (open_folder): Since we want an error
    opening a folder to result in the message being copied to Inbox
    (assuming no other filters get a chance to `move` it), don't
    record any exceptions that may occur in this function.

2001-06-26  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected,
    imap_append_offline, imap_append_online,
    camel_imap_folder_changed): lock the cache around accesses

    * providers/imap/camel-imap-store.c (get_folder_online): ref the
    newly-created folder (as current_folder) before calling
    camel_imap_folder_selected, in case that needs to do something
    that causes another folder to become current...

    * camel-service.c (camel_service_get_url): D'oh.
    s/FALSE/CAMEL_URL_HIDE_PASSWORD/

2001-06-25  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-search.c (get_source): g_strdup() the message
    source here or we will have problems later when we go to free the
    result ;-)

2001-06-25  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (try_auth): Fix this: IMAP
    doesn't allow an extra argument to AUTHENTICATE to avoid a useless
    round trip like some other SASL bindings do.

    * providers/imap/camel-imap-command.c (imap_read_response): Deal
    with IMAP servers that (incorrectly) return "+\r\n" rather than
    "+ \r\n" for an empty continuation response.
    (camel_imap_response_extract_continuation): Likewise.

2001-06-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (word_types_compatable): New function that
    decides if 2 word types are mergeable. An atom and a qstring are
    mergeable; 2 qstrings are mergeable; and 2 encoded words are
    mergeable.
    (header_encode_phrase_merge_words): If 2 words are merged, the new
    word type is the MAX of the combined types. This means that if we
    merge a qstring and an atom, the resulting word type is a
    qstring.

    * camel-internet-address.c (internet_format):
    s/g_string_sprintfa/g_string_append since this makes more sense in
    this particular case.
    (internet_encode): Same here.

2001-06-21  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_send): Use
    camel_address_length() rather than casting and accessing data
    members.

2001-06-20  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_raw_check_mailing_list): If the first
    char of the mailing-list name is '<', chop it off to make Ettore
    happy. Fixes bug #2153.

2001-06-19  Not Zed  <NotZed@Ximian.com>

    * camel-lock-helper.c (unlock_id): Fixed a bug when not running
    setuid it wouldn't unlock.

    * camel-movemail.c (camel_movemail): use new
    locking daemon, also return an error code.

2001-06-18  Jeffrey Stedfast  <fejj@ximian.com>

    Note: Except for the info_free(), the NULL checks are
    g_return's. I felt that since g_free() handles NULL that our
    _free() functions should also.
    
    * camel-folder.c (camel_folder_change_info_free): Check to make
    sure that the info pointer isn't NULL.
    (camel_folder_change_info_change_uid): Same.
    (camel_folder_change_info_changed): Same.
    (camel_folder_change_info_remove_uid): Same.
    (camel_folder_change_info_add_uid): Same.
    (camel_folder_change_info_build_diff): Same.
    (camel_folder_change_info_cat): Same.
    (camel_folder_change_info_add_source): Same.
    (camel_folder_change_info_add_source_list): Same.
    (camel_folder_change_info_add_update): Same.
    (camel_folder_change_info_add_update_list): Same.

2001-06-18  Dan Winship  <danw@ximian.com>

    * tests/stream/Makefile.am (LDADD): 
    * tests/smime/Makefile.am (LDADD): 
    * tests/misc/Makefile.am (LDADD): 
    * tests/message/Makefile.am (LDADD): 
    * tests/folder/Makefile.am (LDADD): Remove DB3_LDADD

    * Makefile.am (install-exec-local): Set camel-lock-help setgid or
    setuid as needed

2001-06-18  Not Zed  <NotZed@Ximian.com>

    * camel-folder-summary.c
    (camel_folder_summary_info_new_from_parser): Only create a missing
    uid if we have indexing turned on.

    * camel-lock-helper.c (setup_process): Function to setup
    process/sanity/security checks.  Change to the real uid as soon as
    we can.
    (lock_path): First try to lock as the real uid, if that fails, try
    the root uid.
    (unlock_id): Unlock as the uid we created the lock as.

    * Makefile.am (INCLUDES): Added -DCAMEL_SBINDIR for lock helper
    location.

    * providers/local/camel-spool-folder.c (spool_lock): Implemented,
    using lock helper locking.  Need to work out if the locking
    requires a root created lock?
    (spool_unlock): Likewise.

2001-06-15  Not Zed  <NotZed@Ximian.com>

    * camel-lock-helper.c: Setuid Lock helper process.  Creates and manages
    .locks, keeping them active, removing them, etc.  What real perms it
    needs is a little system dependent.

2001-06-14  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-maildir-store.c (get_folder_info): Implement.
    (scan_dir): Does the work of scanning for maildir directories.

2001-06-13  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-store.c (get_folder_info):
    Implemented, just returns a hardcoded INBOX folder.
    (free_folder_info): implemented, free's the 1 possible level of
    folder info.

    * providers/local/camel-spool-folder.c
    (camel_spool_folder_construct): Set the real unread message
    count on the folder_created thing.

2001-06-15  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_max_uid): Return the largest real UID in
    the cache (as an integer). Eventually to be used for an
    optimization in the new-message fetch code.
    (cache_put): Keep track of max_uid.

2001-06-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c: Added Mailing-List header regex so that we
    can do mlist magic on that header.

2001-05-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_param): Properly handle
    correct and incorrect (for the common case, ie Outlook and
    Netscape/Mozilla) rfc2184 values.
    (header_decode_rfc2184_param): Get the param name and see if we
    should expect a rfc2184 parameter value.
    (rfc2184_decode): Decode a rfc2184 value.
    (hex_decode): hex decode a string.
    (header_decode_param_list): Handle rfc2184 encoded parameters (ie
    parameters that have been split and perhaps encoded).
    (header_param_list_format_append): Encode the value before seeing
    if it will fit on the line. If the value does get encoded, be sure
    to put a '*' before the equal-sign.
    (header_encode_param): New function to rfc2184 encode a parameter
    value (maybe it should be renamed?)

2001-06-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part.c (init_header_name_table): Don't try to format
    the Reply-To header - we don't want to wrap the reply-to address.

2001-06-12  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-spool-*.[ch]: A new provider, for spool
    mailboxes.  Mostly a cut and paste of the mbox code, but not a
    subclass CamelLocal*.  Not tested a lot, doesn't lock yet, use
    with extreme caution.

    * tests/lib/folders.c (test_folder_message_ops): Added spool arg,
    spool folders can't be deleted, renamed, etc.
    (test_folder_basic): Same.

    * tests/folder/test2.c (main): Added checks for spool type.

    * tests/[message|stream|folder|misc|smime]/Makefile.am (LDADD):
    Added db3 flags, so make check compiles, doesn't run though.

2001-05-24  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-provider.c
    (camel_provider_module_init): Added spool provider.

2001-06-07  Jon Trowbridge  <trow@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Add a
    separator between the service url and the folder name, if needed.

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): Added
    an argument, so that the original source URI of the mbox can be
    passed in.  This is needed because this function is called
    post-movemail, so we are never reading from the original mbox
    anymore.  Without the original mbox URI, the X-Evolution-Source
    tag gets set incorrectly and filter-on-source will fail to work.
    (camel_filter_driver_filter_message): Also take an extra arg
    for the original source URI.  It is the original URI, not the
    source URI, that is used for filtering and for setting the
    X-Evolution-Source tag.

2001-06-05  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_rescan): Don't fetch
    the UID and FLAGS of messages we don't know about yet, since
    they'll just get discarded.

2001-06-01  Jeffrey Stedfast  <fejj@ximian.com>

    * tests/smime/pgp.c: Fix to not get into a recursive loop in
    get_type().

    * tests/smime/pgp-mime.c: Same.

2001-05-31  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-smime-context.c: Numerous fixes to get it to compile.

    * camel.h: Added camel-cipher-context.h, camel-cms-context.h,
    camel-smime-context.h, and camel-smime-utils.h

    * camel-cms-context.[c,h]: New virtual class for manipulating
    cryptographic message syntax messages (like S/MIME).

    * camel-smime-context.[c,h]: Modified to inherit from the
    CamelCMSContext class rather than the CamelCipherContext class.

    * camel-smime.[c,h]: Removed - just use camel-smime-context
    directly.

    * camel-smime-utils.[c,h]: New source files. Moved the 2 useful
    functions from camel-smime.[c,h] into here.

2001-05-30  Dan Winship  <danw@ximian.com>

    * camel-charset-map.c: Redo the BUILD_MAP code to not depend on
    libunicode. Now it only generates a map of "popular" 8bit
    encodings. (It's not worthwhile to support obscure encodings,
    because any mailer that supports them will support UTF8 too. And
    Chinese and Japanese use mostly the same UTF8 characters so you
    need to decide between those encodings based on the locale or
    the charset of the message you're replying to or the input
    method you used. So this is sufficient for camel_charset_best's
    use.)

    * camel-charset-map-private.h: Regenerated.

    * camel.c (camel_shutdown): Move #ifdefs around to prevent a
    warning.

2001-05-29  Dan Winship  <danw@ximian.com>

    * camel-disco-diary.c: Code for logging and replaying offline
    operations.

    * camel-disco-store.c (disco_construct): Set disco->status here
    (where we can base it on the session's offline status) rather than
    at init time.
    (disco_connect): If we connect online and have a non-empty diary,
    switch to RESYNCING mode and replay the diary to the server.
    (disco_get_folder, disco_get_folder_info): Add _resyncing
    variants.

    * camel-disco-folder.c (disco_sync, disco_expunge_uids,
    disco_append_message, disco_copy_messages_to,
    disco_move_messages_to): Add _resyncing variants to switches.
    (disco_expunge_uids, disco_append_message, disco_copy_messages_to,
    disco_move_messages_to): Remove #ifdef'ed out diary code: let the
    provider do it.
    (disco_append_message): Redo the append methods to no longer
    return the UID, since we're no longer doing the logging from here.

    * providers/imap/camel-imap-store.c (imap_connect_online,
    imap_connect_offline): Create a CamelDiscoDiary.
    (imap_disconnect_offline): And free it.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
    If RESYNCING, don't do any sort of checking that the remote folder
    matches the summary, beyond making sure that the UIDVALIDITY is
    correct.
    (imap_rescan): Add a missing camel_folder_summary_info_free when
    removing a UID from the summary.
    (imap_expunge_uids_offline): Implement. Fairly simple.
    (imap_expunge_uids_resyncing): Implement. If the store supports
    UIDPLUS, we can just use imap_expunge_uids_online. If not, we need
    to temporarily undelete any messages marked deleted on the server
    that aren't supposed to get expunged.
    (imap_append_offline): Implement, using cache and summary
    operations, and triggering the folder_changed event by hand.
    (imap_append_resyncing): Implement. Redo imap_append_online a bit
    in the process to make them able to share more code.
    (imap_copy_offline): Implement.
    (imap_copy_online): Move parts of this out into a helper.
    (imap_copy_resyncing): Implement. In most cases this is just like
    imap_copy_online, but if you are copying a message that was itself
    copied or appended into the folder, and the server doesn't do
    UIDPLUS, it will be necessary to replace at least part of the copy
    operation with one or more appends.

    * providers/imap/camel-imap-command.c (imap_read_response): Don't
    record the current folder in the response when in RESYNCING mode.
    (This means that EXISTS and EXPUNGE responses won't be processed,
    which is needed because the summary may not match the folder at
    this point.)
    (imap_read_response): On error, call
    camel_imap_response_free_without_processing, not
    camel_imap_response_free.

    * providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Make
    this work better when operating on UIDs that aren't in the summary.

    * providers/imap/camel-imap-summary.c
    (camel_imap_summary_add_offline): New routine used by
    imap_append_offline and imap_copy_offline to create new summary
    entries.

2001-05-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_set_param): Use g_strcasecmp()
    because some systems don't have strcasecmp(). Also, when removing
    a param, make sure to free the param->name too.

2001-05-27  Dan Winship  <danw@ximian.com>

    * tests/lib/messages.c (test_message_read_file): Fix an fd leak

    * tests/lib/session.c, tests/lib/session.h: a CamelSession
    subclass for the test programs.

    * tests/lib/Makefile.am: include session.[ch]

    * tests/folder/test*.c: Use a CamelTestSession from libcameltest
    instead of cut+pasting everywhere.

    * tests/misc/url.c (main): Update for a camel_url_new change at
    some point.

    * tests/*/.cvsignore: Add stuff.

    * camel-mime-utils.c (rfc2047_encode_word): Fix a silly ==/!=
    mixup.

2001-05-26  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c: Add a "need_rescan" flag
    saying if we want to rescan the entire folder for flag changes
    next time it's selected.
    (camel_imap_folder_init): Set need_rescan TRUE.
    (camel_imap_folder_selected): If need_rescan is TRUE, call
    imap_rescan.
    (imap_refresh_info): Only do a full rescan if need_rescan is TRUE.
    Otherwise just do a NOOP, making this a MUCH more lightweight
    operation. Also, don't call imap_rescan directly if the folder
    isn't selected, since that could end up causing the folder to be
    scanned *twice* (imap_rescan -> camel_imap_command ->
    camel_imap_folder_selected -> imap_rescan).
    (imap_rescan): Set need_rescan FALSE.
    (imap_sync_online): Don't NOOP if no changes were pushed: the
    caller will call refresh_info if it wants to poll for changes.
    Fixes evolution-mail doing lots of unnecessary extra work at
    quit time.

    * providers/imap/camel-imap-store.c (refresh_folder_info): Set
    need_rescan on each folder before calling refresh_info.

2001-05-25  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_auth): Oops. Use a
    strNcmp to make sure the response begins with a 334 code, not a
    strcmp. Duh.

    * providers/local/camel-maildir-folder.c (maildir_append_message):
    remove the summary info so we are not out-of-sync with the maildir
    folder.

    * providers/local/camel-mh-folder.c (mh_append_message): remove
    the summary info so we are not out-of-sync with the mh folder.

    * providers/local/camel-mbox-folder.c (mbox_append_message):
    remove the summary info so we are not out-of-sync with the mbox.

2001-05-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-smime-context.c (camel_smime_context_new): Oops, I spelled
    the get-default-db function name wrong.

2001-05-23  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): s/folder_deleted/folder_created -
    result of a bad copy/paste.

    * providers/imap/camel-imap-search.c (imap_body_contains):
    Optimize the match "" case.

2001-05-21  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (get_folder_info_online):
    Store the CamelFolderInfo tree that was returned from
    camel_folder_info_build() in a new variable, 'tree', rather than
    'fi' since we later use 'fi' when syncing folders. Not only does
    this fix a memory leak, but it also fixes the bug where the user
    would only see the last folder in the folder list and/or it's
    subfolders.

2001-05-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-session.c (camel_session_forget_password): The service can
    be NULL here too, thanks to Wayne Davis for pointing this out.

    * camel-smime-context.c (camel_smime_context_new): We don't need
    to be passed the certdb path anymore.

2001-05-16  Dan Winship  <danw@ximian.com>

    * camel-medium.c (camel_medium_get_headers): New function to
    return an array of all headers.
    (camel_medium_free_headers): And free them.

    * camel-mime-part.c (get_headers, free_headers): Implement this
    for CamelMimePart. (Works for CamelMimeMessage too.)

2001-05-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-smime-context.c (camel_smime_context_finalise): Don't
    close or free (it wasn't allocated) the certdb.
    (camel_smime_context_new): If we get a NULL certdb handle, then
    don't bother trying to create a new certdb handle since NSS_Init*
    should have done that.

2001-05-15  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Don't use EXTRA_GNOME_*, use the new CAMEL_*
    variables so we don't link in tons of extra cruft that we don't
    need.

    * tests/smime/pkcs7.c: Added to the test suite - tests the S/MIME
    pkcs7 functions.

2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-smime-context.c: Lots of fixes to get this to compile.

    * camel-smime.c (camel_smime_part_verify): Updated to pass in a
    hash argument to camel_smime_verify().

    * camel-pgp-mime.c (camel_pgp_mime_part_verify): Update according
    to the changes in the context API.

    * camel-pgp-context.c (pgp_verify): Updated to take a
    CamelCipherHash argument.

    * camel-cipher-context.c (camel_cipher_verify): Now takes a hash
    argument since the S/MIME code needs this.

    * Makefile.am: Add camel-smime-context.[c,h] and camel-smime.[c,h]
    to the build.
    
    * camel-smime.[c,h]: New source files for manipulating S/MIME
    message parts.

2001-05-14  Jon Trowbridge  <trow@ximian.com>

    * camel-search-private.c (utf8_get): Replicate the semantics of
    the libunicode utf8 functions by returning NULL in the arg
    on invalid utf8.

    * camel-pgp-context.c (pgp_verify): Check for valid utf8,
    terminate loop if something looks wrong.

    * camel-mime-utils.c (header_encode_phrase_get_words): Properly
    check for invalid utf8.
    (header_encode_string): Properly check for invalid utf8.

    * camel-charset-map.c (camel_charset_step): Properly check for
    invalid utf8.

2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

    * tests/folder/test9.c: 
    * tests/folder/test8.c:
    * tests/folder/test7.c: 
    * tests/folder/test6.c: 
    * tests/folder/test5.c: 
    * tests/folder/test4.c:
    * tests/folder/test3.c: 
    * tests/folder/test2.c: 
    * tests/folder/test1.c: 
    * tests/smime/pgp-mime.c: 
    * tests/smime/pgp.c: Subclass CamelSession since we can no longer
    specify the passwd callback any other way and update code
    accordingly.

2001-05-11  Dan Winship  <danw@ximian.com>

    * camel-mime-utils.c (header_location_decode): Decode
    Content-Location, either correctly or Netscape-generated-brokenly.

    * camel-mime-part.c (camel_mime_part_set_content_location,
    camel_mime_part_get_content_location, etc): Deal with
    Content-Location header.

2001-05-11  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_auth): Don't check
    the initial auth response until we get into the while-loop
    otherwise we have problems if the SASL mechanism supported a
    client initiated challenge (like PLAIN and LOGIN do).

2001-05-11  Dan Winship  <danw@ximian.com>

    * camel-stream-null.c (camel_stream_null_new): Make this return
    CamelStream * (like the other stream new functions) instead of
    CamelStreamNull *

2001-05-10  Chris Toshok  <toshok@ximian.com>

    * camel-tcp-stream-ssl.c (stream_connect): call SSL_Enable after
    the SSL_ImportFD and before PR_Connect.  Otherwise, NSS aborts
    during the connect.

2001-05-10  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-session.c (camel_session_get_password): Don't abort if the
    Service is NULL, this is perfectly valid for cipher contexts.

2001-05-09  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_move_messages_to): Pass
    appropriate parameters to CF_CLASS and add comment explaining why
    my initial attempt at a solution didn't work.

2001-05-09  Dan Winship  <danw@ximian.com>

    * camel-disco-store.c (camel_disco_set_status): Set the
    disconnected status.
    (camel_disco_store_can_work_offline): Return whether or not a
    given CamelDiscoStore can work offline or not.

    * camel-disco-folder.c (camel_disco_folder_cache_message):
    Explicitly tell a folder to cache a message. (Better than using
    get_message, because for IMAP that doesn't guarantee you'll get
    all the message parts.)
    (camel_disco_folder_prepare_for_offline): Prepare a folder for
    offline use by caching all messages meeting given search criteria
    (and doing anything else the particular folder implementation
    needs).

    * camel-session.c (camel_session_set_online,
    camel_session_is_online): A session-wide online/offline toggle.
    (camel_session_init): Set online to TRUE.

    * providers/imap/camel-imap-store.c (can_work_offline):
    Implementation of CamelDiscoStore::can_work_offline. (Checks that
    the store has been used online at least once.)
    (imap_get_folder_online, imap_get_folder_offline): Deal with
    request for "inbox" properly. ("Don't you mean... 'INBOX'?").

    * providers/imap/camel-imap-folder.c (imap_cache_message):
    Implementation of CamelDiscoFolder::cache_message.

    * camel.h: Add camel-disco-store.h and camel-disco-folder.h

2001-05-09  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part.c (camel_mime_part_set_content_id): Wrap the
    content-id with <>'s.

2001-05-04  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (connect_to_server): Add
    support for using OpenSSL.

    * camel-remote-store.c (remote_connect): Add support for using the
    OpenSSL implementation.

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Hmmmm, don't pass in a
    NULL as the last argument to alert_user - prototype doesn't take
    that argument anymore?

    * camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_finalize):
    (ssl_verify): Use a global hash table to try and lookup the
    CamelTcpStreamOpenSSL object given the ssl context since OpenSSL
    doesn't think one needs to pass data around, we should all be
    living in a world of global variables, duh!

2001-05-06  Dan Winship  <danw@ximian.com>

    * Makefile.am (libcamelinclude_HEADERS): Fix another build
    problem. (Um, anyone else could have done this...)

2001-05-04  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (get_folder_online): Fix up
    refcounting on current_folder.

    * camel-disco-folder.c, camel-disco-store.h: Remove
    CamelDiscoDiary refs that weren't supposed to escape yet.

2001-05-03  Dan Winship  <danw@ximian.com>

    * camel-disco-store.c: new abstract class for disconnectable
    remote stores

    * camel-disco-folder.c: new abstract class for folders on
    disconnectable stores.

    * Makefile.am: Add camel-disco-folder.[ch] and
    camel-disco-store.[ch].

    * providers/imap/camel-imap-store.c: Make this a subclass of
    CamelDiscoStore, and fix up the offline interfaces for the changes
    since they were first written (particularly the fact that some
    IMAP stores don't just use subscribed folders).

    * providers/imap/camel-imap-folder.c: Make this a subclass of
    CamelDiscoFolder, although most ops still fail in disconnected
    mode.

    * camel-store.c (camel_store_get_folder_info): Change gboolean,
    gboolean, gboolean to guint32 in the prototype for this function.

    * providers/local/camel-local-store.c (get_folder_info): Update
    for prototype change.

2001-05-02  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.h: Clean this up a bit. Add a
    "tag_prefix" member. Move "useful_lsub" into capabilities.

    * providers/imap/camel-imap-store.c (camel_imap_store_init):
    Initialize the tag_prefix, based on a static variable.

    * providers/imap/camel-imap-command.c (camel_imap_command): Use
    the store's tag_prefix character rather than "A" at the start of
    the tag. Makes the verbose debug output easier to parse when
    connected to multiple IMAP servers. (Well, unless you're connected
    to more than 26 servers...)

    * providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Fix
    this up... it was losing count in some cases and giving a more
    verbose answer than it needed to.

    * providers/pop3/camel-pop3-store.c: Rescue the KPOP code from bit
    rot.

2001-05-01  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-command.c (camel_imap_command): Redo
    command locking. Since command_lock is recursive, we can just get
    a lock here, and release it either on error, or when the caller
    frees the response data. (This simplifies a lot of stuff, and
    fixes some problems with camel_imap_folder_changed being called
    without the command_lock locked because of the 2001-03-22 change.)

    (camel_imap_response_free): 
    (camel_imap_response_free_without_processing): 
    (camel_imap_response_extract): 
    (camel_imap_response_extract_continuation): These all take a
    CamelImapStore now as well, to deal with locking.

    * providers/imap/camel-imap-private.h: Add
    CAMEL_IMAP_STORE_ASSERT_LOCKED, which defaults to a noop, but can
    be made to call e_mutex_assert_locked.

    * providers/imap/camel-imap-folder.c, camel-imap-search.c,
    camel-imap-store.c: Simplify using new locking stuff. Add a few
    CAMEL_IMAP_STORE_ASSERT_LOCKED checks.

2001-05-01  Dan Winship  <danw@ximian.com>

    Support the IMAP UIDPLUS extension (RFC 2359), which lets you
    resync after disconnected operation more efficiently, but also
    makes it possible to do appends and moves/copies more efficiently
    now.

    * providers/imap/camel-imap-folder.c (imap_append_message): If the
    server supports UIDPLUS, grab the APPENDUID response and cache the
    message into the folder's message cache.
    (imap_copy_messages_to): Likewise, for COPYUID, copy any message
    parts we have cached between the source and destination folder
    caches.
    (imap_get_message): If the entire message is already in the cache,
    just return that rather than building it from parts.
    (imap_update_summary): Fetch just the "UID FLAGS RFC822.SIZE" of
    the new messages first, then only fetch the headers for messages
    where we don't already have the headers cached.

    * providers/imap/camel-imap-message-cache.c: Add gtk-doc comments.
    (cache_put): Fix refcounting stuff here.
    (camel_imap_message_cache_insert_stream,
    camel_imap_message_cache_insert_wrapper): New.
    (camel_imap_message_cache_get): Fix a bug here so the memory
    caching actually works.
    (camel_imap_message_cache_copy): New routine, used by
    imap_copy_messages_to.

    * providers/imap/camel-imap-utils.c (imap_uid_set_to_array):
    Inverse operation of imap_uid_array_to_set. Used to parse COPYUID
    response.

2001-04-30  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_uid_array_to_set):
    New-and-improved version of get_uid_set() from
    camel-imap-folder.c. Looks at the summary as it goes so that if
    you ask for messages 5, 6, 8, and 9, and there is no message 7,
    then you get "5:9" instead of "5:6,8:9"

    * providers/imap/camel-imap-folder.c (imap_copy_messages_to): Use
    imap_uid_array_to_set() rather than get_uid_set().
    (get_uid_set): Gone

2001-04-27  Dan Winship  <danw@ximian.com>

    * camel-session.c: Redo this a lot so that instead of having a
    class full of callbacks, we have a subclassable class. Also,
    replace the increasingly horrifying
    camel_session_query_authenticator with three new routines,
    camel_session_get_password, camel_session_forget_password, and
    camel_session_alert_user.

    * camel-pgp-context.c:
    * camel-pkcs7-context.c:
    * camel-smime-context.c: 
    * providers/imap/camel-imap-store.c: 
    * providers/pop3/camel-pop3-store.c: 
    * providers/smtp/camel-smtp-transport.c: 
    Use camel_session_get_password / camel_session_forget_password.

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Use
    camel_session_alert_user.

2001-04-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.c (camel_init): Automagically call camel_shutdown()
    atexit() ;-)
    (camel_init): Also initialize NSS databases as read/write for
    S/MIME and if NSS fails to init, try initializing with volatile
    databases.

    * camel-file-utils.h: #include <sys/types.h> for off_t.

2001-04-26  Dan Winship  <danw@ximian.com>

    * camel-file-utils.c: New file, with the int, string, time_t, and
    off_t encode/decode routines from camel-folder-summary.c moved
    here and renamed, for the enjoyment of non-CamelFolderSummary
    subclasses.

    * Makefile.am (libcamel_la_SOURCES): Add camel-file-utils.c
    (libcamelinclude_HEADERS): and camel-file-utils.h

    * camel-folder-summary.c: Remove functions that were moved to
    camel-file-utils.c, update uses of them for the new names.
    (camel_folder_summary_{en,de}code_token are still here.)

    * providers/local/camel-mbox-summary.c: Use camel_file_util_*
    names

    * providers/imap/camel-imap-summary.c: Use camel_file_util_* names

    * providers/imap/camel-imap-store.c (imap_store_setup_online,
    imap_store_setup_offline): Use camel_file_util_* names, which
    makes much more sense since this isn't folder summary stuff.

2001-04-26  Dan Winship  <danw@ximian.com>

    * Makefile.am (INCLUDES): Remove UNICODE_CFLAGS (and some other
    stuff that's redundant with EXTRA_GNOME_CFLAGS)
    (libcamel_la_LIBADD): Replace UNICODE_LIBS with GAL_LIBS.

    * camel-search-private.c: 
    * camel-pgp-context.c: 
    * camel-mime-utils.c: Use gunicode interfaces rather than
    libunicode.

    * camel-charset-map.c: Use gunicode rather than libunicode. (The
    charmap-regen code still depends on libunicode though.)

    * camel-mime-filter-charset.h: 
    * tests/message/test2.c (convert): Use iconv rather than
    unicode_iconv.

    * providers/smtp/Makefile.am (libcamelsmtp_la_LIBADD): 
    * providers/pop3/Makefile.am (libcamelpop3_la_LIBADD): 
    * providers/local/Makefile.am (libcamellocal_la_LIBADD): Remove
    UNICODE_LIBS.

    * camel.c (camel_init): Remove call to unicode_init.

    * camel-mime-parser.c: Remove unused unicode.h include.

2001-04-26  Dan Winship  <danw@ximian.com>

    * camel-service.c (get_host): Use e_gethostbyname_r.
    (camel_service_gethost): Remove unused var.

2001-04-26  Not Zed  <NotZed@Ximian.com>

        * Applied jacob's patches for e-poolv stuff.

2001-04-23  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.h: Add camel-vee-folder.h and camel-digest-folder.h

    * camel-digest-folder.[c,h]: New class that can be used to browse
    a multipart/digest message as if it were a CamelFolder.

2001-04-22  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (pgp_verify): Oops, don't use the return
    value of iconv() as a string length, it only tells us the number
    of non-reversable character conversions. This fixes it so we
    actually see the gpg output in the message viewer.

2001-04-23  Mikael Hallendal  <micke@codefactory.se>

    * providers/nntp/Makefile.am (INCLUDES): 
    Changed GTK_INCLUDEDIR to EXTRA_GNOME_CFLAGS.

2001-04-20  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-smime-context.c (smime_sign): Implemented using the
    secmime.h convenience functions.
    (smime_clearsign): We just error our here, there is no clearsign
    for smime.
    (smime_verify): Copied code over from the pkcs7 verify - same
    state, ugly and unknown :-)
    (smime_encrypt): Implemented using the secmime.h convenience
    functions.
    (smime_decrypt): Same as the code in pkcs7-context.

2001-04-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pkcs7-context.c (pkcs7_sign): Implemented.
    (pkcs7_clearsign): Implemented.
    (get_zero_len_passwd): Convenience function to try a 0-length key
    on the certificate db - if this works then there is no need to
    prompt the user.
    (get_password): Callback to get the password.
    (camel_cipher_hash_to_nss): Convenience function to convert a
    CamelCipherHash to an NSS HASH_HashType.
    (nss_hash_to_sec_oid): Converts a HASH_HashType to a SecOidTag.
    (pkcs7_digest): Digest function for use with pkcs7_sign().
    (sign_encode_cb): Callback to write the signed data to the output
    stream.
    (pkcs7_verify): Hacked on a bit more but am still a bit on the
    confused side. This might work but I wouldn't hold my breath. The
    sign/clearsign should be close if not correct, but this one...god
    only knows.
    (pkcs7_decrypt): Implemented.
    (pkcs7_encrypt): Implemented (mostly, still need to handle when
    'sign' is TRUE).

2001-04-18  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (camel_imap_store_finalize):
    Free base_url and storage_path.

    * providers/pop3/camel-pop3-store.c (finalize): Free the
    implementation string.
    (camel_pop3_command): Clarify documentation to mention that
    @ex isn't set (and *@ret is) on CAMEL_POP3_ERR.
    (connect_to_server): Set @ex properly on CAMEL_POP3_ERR.

    * providers/pop3/camel-pop3-folder.c (pop3_refresh_info,
    pop3_get_message): Set @ex properly on CAMEL_POP3_ERR.

2001-04-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pkcs7-context.[c,h]: New source files to handle Pkcs7
    encryption, decryption, signing, and verifying. Not yet
    complete. I'm sensing this is going to take a while seeing as how
    NSS is just so well documented.

2001-04-17  Dan Winship  <danw@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message): Fix
    a memory leak in the error case.

2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-mbox-summary.c (summary_rebuild): Don't we
    want to tell where we are by using the start of the message? I
    think this should be using camel_mime_parser_tell_start_from()
    instead. Also divide by the size *before* multiplying by 100 so
    that we don't overflow the int which was giving us negative values
    for our progress status (oops).

2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-operation.c: Added a prototype for stamp().

    * camel-charset-map.c (camel_charset_locale_name): #include
    string.h so we don't get a warning about strchr being undefined
    and also init charset to NULL.

    * camel-pgp-context.c (pgp_verify): Go back to doing the utf8
    conversion by hand so that we don't depend on gal.

    * Makefile.am: Remove the EXTRA_GNOME_CFLAGS include.

    * camel-store.c (camel_mkdir_hier): Convenience function that it
    seems a number of camel-store implementations used gal for.

    * providers/nntp/camel-nntp-store.c (ensure_news_dir_exists): Lets
    not depend on gal for just e_mkdir_hier() - use camel_mkdir_hier()
    instead.

    * providers/nntp/camel-imap-store.c: Lets not depend on gal for
    just e_mkdir_hier() - use camel_mkdir_hier() instead.

    * camel-session.c (camel_session_get_storage_path): Don't depend
    on e_mkdir_heir() anymore, use the CamelStore version.

    * camel-folder-search.h: Removed gal dependency, why was this even
    there in the first place?

    * providers/imap/camel-imap-folder.c: Don't need gal/util/e-util.h
    here, so remove it.

    * string-utils.c (strstrcase): New function, well more like old
    function brought back to life so we don't have to depend on gal.

    * providers/imap/camel-imap-store.c (imap_store_setup_online): Use
    strstrcase rather than e_strstrcase so we don't depend on gal.
    (get_unread_online): Same here.

    * providers/smtp/camel-smtp-transport.c (smtp_helo): Use
    strstrcase.

2001-04-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_raw_check_mailing_list): regex
    doesn't set errno and regcomp returns 0 on success and any other
    value for an error (so don't *just* check for -1).

2001-04-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-cipher-context.c: Check to make sure the context is a
    valid context in all the user functions.

2001-04-13  Jon Trowbridge  <trow@ximian.com>

    * providers/imap/camel-imap-store.c (imap_disconnect):
    s/imap_store/store/, fixing a typo that was causing the build to
    fail.

    * camel-filter-search.c (get_source): Make the (previously unused)
    get-source command actually do the right thing, properly shrouding
    any passed-in source and falling back to use the source attached
    to the mime message.

2001-04-13  Dan Winship  <danw@ximian.com>

    * camel-object.c (camel_object_hook_event):
    * camel-uid-cache.c (camel_uid_cache_get_new_uids):
    * camel-url.c (camel_url_new_with_base): Plug leaks.

    * camel-remote-store.c (camel_remote_store_init): Don't
    re-initialize the folders hash table.

    * providers/imap/camel-imap-store.c (imap_disconnect): Free
    authtypes since they'll be re-read on re-connect.
    (get_folder_info): Free folderinfos that we're discarding from the
    list.

2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (camel_pgp_context_get_type): Oops, lets not
    get into a recursive call here ;-)

    * tests/smime/pgp.c: Updated to reflect changes to the PGP code.

    * tests/smime/pgp-mime.c: Same.

2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-mime.c: Updated to reflect the few changes made to the
    CamelPgpContext class.

    * camel-pgp-context.c: Updated to subclass of CamelCipherContext.

    * camel-cipher-context.[c,h]: New base class for
    CamelPgpContext. Also contains the replacement for
    CamelPgpValidity, CamelCipherValidity.

2001-04-12  Dan Winship  <danw@ximian.com>

    * camel-mime-filter-crlf.c (filter): Fix a pair of array bounds
    reads noted by purify

2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.h: #include the pgp stuff.

2001-04-12  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_remove): 
    * camel-url.c (camel_url_to_string): Plug memory leaks.

2001-04-11  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_parse_string_generic):
    Simplify peterw's imap_is_atom_char fix.

2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

    * tests/smime/Makefile.am: Added pgp-mime.c to the tests.

    * tests/smime/pgp-mime.c: Test suite for camel-pgp-mime.c functions.

    * Makefile.am: Add camel-pgp-mime.[c,h] to the build.

    * camel-pgp-mime.c: Made a number of fixes to get it to compile
    and also fixed a few logic errors (mostly forgetting to reset
    streams) so that it worked (thanks to the pgp-mime test program).

2001-04-11  JP Rosevear  <jpr@ximian.com>

    * providers/imap/Makefile.am: user GNOME_INCLUDEDIR since gnome
    files are included in the top level camel headers and the gtk
    include dir is now versioned and such

    * providers/local/Makefile.am: ditto

    * providers/pop3/Makefile.am: ditto

    * providers/smtp/Makefile.am: ditto

    * providers/sendmail/Makefile.am: ditto

    * camel-service.c: use five arg version of gethostbyname_r if
    appropriate
    (camel_get_host_byname): check if msg->herr is non-zero instead of
    checking if msg->hp is null since we may not always have msg->hp

2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-digest-md5.c (digest_response): Use
    camel_charset_locale_name() to get the locale charset rather than
    checking the CHARSET environment variable. This is a much less
    ugly hack. Also: If we fail to be able to convert to UTF8, then
    disavow all knowledge of the charset parameter.

    * camel-charset-map.c (camel_charset_locale_name): New function to
    return the locale charset (or NULL if US-ASCII).

2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (camel_pgp_verify): Use
    e_utf8_from_locale_string() rather than trying to do it manually
    since Lauris's version works much better.

2001-04-06  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Added camel-pgp-context.[c,h] to the build. Also
    added tests/smime/pgp.c and Makefile.am

    * tests/smime/pgp.c: New test suite for PGP functions.

    * camel-pgp-context.c: Various fixes to get it to build.

2001-04-07  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-utils.c (imap_parse_string_generic): It
    would be a good idea to recognize '\0'. Before, this code was running
    off the ends of strings and intermittently coredumping (if it didn't
    hit an imap_atom_char first) -- whoops!

2001-04-05  Not Zed  <NotZed@Ximian.com>

    * merge from evolution-0-10-branch to evolution-0-10-merge-0

2001-04-03  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Added tests/ back in

    * camel-mime-utils.c (header_decode_text): Ignore whitespace
    between encoded words (there were a few cases where it didn't
    before).
    (header_encode_string): Preserve whitespace between words that are
    to be encoded by encoding them too.
    (header_encode_phrase): Same here but with phrases.

2001-04-03  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_sync): If we don't
    change any flags or expunge, send a NOOP to give the server a
    chance to send EXISTS, etc, messages.
    (imap_get_message): If the server_level < IMAP4rev1, always fetch
    messages all-at-once, since they don't support the [#.MIME]
    syntax.
    (imap_update_summary): When reading message flags, set the
    server_flags field as well, and don't overwrite any flags set by
    camel_folder_summary_info_new_from_message. Might help with some
    of the flag problems...

2001-04-02  Dan Winship  <danw@ximian.com>

    * camel-service.h: Remove the "quick_login" member, which is
    unnecessary.

    * providers/smtp/camel-smtp-transport.c (smtp_auth): Remove the
    references to quick_login and fix this to use the CamelSasl
    interfaces correctly to do the same thing.
    (connect_to_server): Split this out of smtp_connect
    (smtp_connect): Use connect_to_server. When re-EHLO'ing after
    auth, ignore errors.
    (query_auth_types): Use connect_to_server rather than
    smtp_connect, so it doesn't try to authenticate. Add LOGIN
    authtype to the list of authtypes to check for.

    * providers/smtp/camel-smtp-provider.c
    (camel_provider_module_init): Add LOGIN authtype to the authtypes
    list explicitly.

    * camel-sasl.c (camel_sasl_authtype_list): Don't list LOGIN here:
    it's not a real SASL authtype and is only used for SMTP.
    
    * camel-sasl-plain.c: 
    * camel-sasl-login.c: 
    * camel-sasl-kerberos4.c: 
    * camel-sasl-cram-md5.c: 
    * camel-sasl-anonymous.c: 
    * providers/pop3/camel-pop3-provider.c: Remove "quick_login"
    argument from authtypes.

2001-04-02  Gediminas Paulauskas <menesis@delfi.lt>

    * camel-filter-driver.c: marked missing report status' for translation.

2001-04-02  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.c (camel_pgp_sign): mutex lock & unlock the
    context.
    (camel_pgp_clearsign): Same.
    (camel_pgp_verify): Same.
    (camel_pgp_encrypt): Same.
    (camel_pgp_decrypt): And finally here...

    * camel-pgp-context.h: Update the function prototypes to match
    those found in camel-pgp-context.c.

    * camel-pgp-context.c: Updated.

    * camel-pgp-mime.c (camel_pgp_mime_part_sign): Implemented.
    (camel_pgp_mime_part_verify): Implemented.
    (camel_pgp_mime_part_encrypt): Implemented.
    (camel_pgp_mime_part_decrypt): Implemented.

2001-04-01  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-login.[c,h]: New files to handle the LOGIN SASL
    mechanism.
    
    * camel-sasl-plain.c: Removed the definition of
    camel_sasl_login_authtype.

    * camel-sasl.c (camel_sasl_new): Oops. I thought LOGIN was an
    alias to PLAIN. I was wrong. These two SASL objects have to be
    separate.

    * providers/smtp/camel-smtp-transport.c (smtp_auth): Updated to
    check for and use authmech->quick_login when available.

2001-04-01  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-provider.c: Updated the authtypes here
    too.

    * camel-sasl-plain.c: 
    * camel-sasl-anonymous.c: 
    * camel-sasl-digest-md5.c: 
    * camel-sasl-cram-md5.c: 
    * camel-sasl-kerberos4.c: Updated the authtype values.

    * camel-service.h: Added another field to CamelServiceAuthType
    that specifies whether or not the mechanism supports "quick auth"
    which means that the client can send the initial challenge in the
    AUTH request.

    * camel-sasl.c (camel_sasl_new): Add support for LOGIN.
    (camel_sasl_authtype_list): Here too.
    (camel_sasl_authtype): And finally here.

    * camel-sasl-plain.c: Define camel_sasl_login_authtype.

    * providers/smtp/camel-smtp-transport.c (smtp_auth): Only unref
    the SASL object if it exists.

2001-03-30  Dan Winship  <danw@ximian.com>

    * providers/pop3/camel-pop3-store.c (connect_to_server,
    query_auth_types, pop3_connect): Move things around here to make
    this all work right again (so you don't get prompted for a
    password when checking the supported authtypes.)

2001-03-30  Jon Trowbridge  <trow@ximian.com>

    * camel-mime-message.c (camel_mime_message_set_source): Shrould
    our source URL before putting it into X-Evolution-Source.

2001-03-29  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Don't
    blindly append "/INBOX", construct a CamelURL and set the path
    that way.
    (parse_list_response_as_folder_info): Don't blindly append
    "/<foldername>", construct a CamelURL and set the path that way
    instead.
    (get_folders_offline): And again here.

2001-03-30  Not Zed  <NotZed@Ximian.com>

    * camel-service.c (camel_get_host_byname): Dont overwrite an
    exception if we got one already.  Added camel_operation status to
    it, and comment out some debug.

2001-03-29  Not Zed  <NotZed@Ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Free host
    name info when done ... blah blah.

    * camel-sasl-kerberos4.c (krb4_challenge): Free host name info
    after we're done with it.

    * camel-sasl-digest-md5.c (digest_md5_challenge): Free host name
    info after we're done with it.

    * camel-remote-store.c (remote_connect): Free the host name info
    from get_host after we're finished with it.

    * camel-service.c (camel_get_host_byname): New function to
    lookup a name, and still be cancellable.
    (camel_free_host): And a function to free the structure
    returned.
    (camel_service_gethost): Call get_host_byname for this.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message): Save
    the source URL using camel_mime_message_set_source.

    * camel-mime-message.c (camel_mime_message_set_source): Renamed
    camel_mime_message_set_identity to this.  Sets the X-Evolution-Source
    header.
    (camel_mime_message_get_source): Returns the X-Evolution-Source
    header.

2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

    * broken-date-parser.c: #include <stdio.h>, <stdlib.h> and <string.h>
    * broken-date-parser.h: Remove all includes but <glib.h>
    * camel-address.h: Added #include <glib.h>
    * camel-data-wrapper.c: Move system includes to the top.
    * camel-data-wrapper.h: #include <glib.h>
    * camel-exception.c: #ifdef HAVE_CONFIG_H
    * camel-exception.h: Remove #include <glib.h>
    * camel-filter-driver.c: #ifdef HAVE_CONFIG_H and move system
    headers to top. Mark strings in camel_exception_set*() for i18n.
    * camel-filter-driver.h: #include <glib.h>
    * camel-filter-search.c: #ifdef HAVE_CONFIG_H
    * camel-folder-search.c: #include <config.h>
    * camel-folder-search.h: Header shuffling
    * camel-folder-summary.h: Same here
    * camel-folder-thread.c: #ifdef HAVE_CONFIG_H
    * camel-folder.c: Here too.
    * camel-folder.h: #include <glib.h>
    * camel-internet-address.c: Move system headers up
    * camel-lock.c: #ifdef HAVE_CONFIG_H
    * camel-medium.c: Same here
    * camel-mime-filter-bestenc.c: Move system headers up
    * camel-mime-filter-from.c: Same here
    * camel-mime-filter-linewrap.c: And here
    * camel-mime-filter.c: #include <string.h> to fix warnings from new gcc
    * camel-mime-filter.h: System headers moved up
    * camel-mime-message.c: Here too. #ifdef HAVE_CONFIG_H added
    * camel-mime-part-utils.c: #ifdef HAVE_CONFIG_H added
    * camel-mime-part.c: Here too, and shuffle headers
    * camel-mime-utils.c: #ifdef HAVE_CONFIG_H. Remove const from two
    variables to remove warning.
    * camel-mime-utils.h: Shuffle headers
    * camel-movemail.c: #ifdef HAVE_CONFIG_H. Mark string in camel_exception_set
    * camel-multipart.c: #ifdef HAVE_CONFIG_H. Added includes to remove
    warnings from new gcc
    * camel-object.c: #ifdef HAVE_CONFIG_H
    * camel-object.h: Shuffle headers
    * camel-operation.c: #ifdef HAVE_CONFIG_H
    * camel-provider.c: #ifdef HAVE_CONFIG_H. Shuffle headers. Mark a string
    * camel-remote-store.c: #ifdef HAVE_CONFIG_H
    * camel-sasl-anonymous.c: #ifdef HAVE_CONFIG_H. #include <string.h>
    * camel-sasl-cram-md5.c: #ifdef HAVE_CONFIG_H. #include <string.h> and
    <stdio.h> to remove warnings.
    * camel-sasl-digest-md5.c: #ifdef HAVE_CONFIG_H. shuffle headers
    * camel-sasl-digest-md5.h: Shuffle headers.
    * camel-sasl-kerberos4.c: #ifdef HAVE_CONFIG_H. Shuffle headers.
    * camel-sasl-kerberos4.h: Shuffle headers.
    * camel-sasl-plain.c: #ifdef HAVE_CONFIG_H. Shuffle
    * camel-sasl.c: #ifdef HAVE_CONFIG_H. #include <string.h>
    * camel-search-private.c: #include <config.h>
    * camel-seekable-stream.c: #ifdef HAVE_CONFIG_H
    * camel-seekable-stream.h: Shuffle
    * camel-seekable-substream.c: #ifdef HAVE_CONFIG_H
    * camel-service.c: Same
    * camel-service.h: Shuffle
    * camel-session.c: #ifdef HAVE_CONFIG_H
    * camel-store.c: Same
    * camel-stream-buffer.c: Here too
    * camel-stream-buffer.h: Shuffle
    * camel-stream-filter.c: #include <string.h>
    * camel-stream-fs.c: #ifdef HAVE_CONFIG_H
    * camel-stream-fs.h: Shuffle headers
    * camel-stream-mem.c: Same as above
    * camel-stream-mem.h: Here too
    * camel-stream-null.c: #ifdef HAVE_CONFIG_H
    * camel-stream.c: Here too
    * camel-stream.h: Shuffle
    * camel-tcp-stream-openssl.c: #ifdef HAVE_CONFIG_H
    * camel-tcp-stream-raw.c: Same here. and move local includes down
    * camel-tcp-stream-ssl.c: Same as above
    * camel-tcp-stream.c: #ifdef HAVE_CONFIG_H
    * camel-tcp-stream.h: move local include down
    * camel-transport.c: #ifdef HAVE_CONFIG_H
    * camel-transport.h: #include <glib.h>
    * camel-uid-cache.c: #ifdef HAVE_CONFIG_H. Shuffle headers
    * camel-uid-cache.h: Shuffle
    * camel-url.c: #ifdef HAVE_CONFIG_H
    * camel-vee-folder.c: #ifdef HAVE_CONFIG_H. Shuffle headers
    * camel-vee-folder.h: #include <glib.h>
    * camel-vee-store.h: Same here
    * camel.c: #ifdef HAVE_CONFIG_H
    * gstring-util.c: Here too
    * hash-table-utils.c: Remove #include <glib.h>
    * hash-table-utils.h: #include it here instead.
    * string-utils.c: #ifdef HAVE_CONFIG_H
    * providers/cache/camel-cache-map.c: #ifdef HAVE_CONFIG_H, shuffle
    headers and mark strings in camel_exception_set*()
    * providers/cache/camel-cache-provider.c: #ifdef HAVE_CONFIG_H
    * providers/cache/camel-cache-store.c: Same here, and mark a string.
    * providers/imap/camel-imap-command.c: #ifdef HAVE_CONFIG_H
    * providers/imap/camel-imap-command.h: Shuffle header
    * providers/imap/camel-imap-folder.c: #ifdef HAVE_CONFIG_H
    * providers/imap/camel-imap-message-cache.c: #ifdef HAVE_CONFIG_H
    * providers/imap/camel-imap-provider.c: #ifdef HAVE_CONFIG_H and
    #include <string.h>
    * providers/imap/camel-imap-search.c: #ifdef HAVE_CONFIG_H
    * providers/imap/camel-imap-store.c: #ifdef HAVE_CONFIG_H and mark
    a string.
    * providers/imap/camel-imap-summary.c: Shuffle headers
    * providers/imap/camel-imap-wrapper.c: #ifdef HAVE_CONFIG_H. Shuffle
    * providers/local/camel-local-folder.c: #ifdef HAVE_CONFIG_H
    * providers/local/camel-local-provider.c: #ifdef HAVE_CONFIG_H
    * providers/local/camel-local-store.c: Same here
    * providers/local/camel-local-summary.c: Here too, shuffle, mark a string
    * providers/local/camel-maildir-folder.c: #ifdef HAVE_CONFIG_H
    * providers/local/camel-maildir-store.c: Same
    * providers/local/camel-maildir-summary.c: Here too
    * providers/local/camel-mbox-summary.c: And here
    * providers/local/camel-mbox-store.c: And here
    * providers/local/camel-mbox-summary.c: #include <config.h>
    * providers/local/camel-mh-folder.c: #ifdef HAVE_CONFIG_H
    * providers/local/camel-mh-store.c: same
    * providers/local/camel-mh-summary.c: #ifdef HAVE_CONFIG_H, shuffle headers
    and mark a string for translation.
    * providers/nntp/camel-nntp-auth.c: #include <config.h>
    * providers/nntp/camel-nntp-store.c: Remove superfluous arg to 
    CAMEL_SERVICE_CLASS to make it compile
    * providers/pop3/camel-pop3-provider.c: #ifdef HAVE_CONFIG_H
    * providers/pop3/camel-pop3-store.c: Same here
    * providers/sendmail/camel-sendmail-provider.c: Here too
    * providers/sendmail/camel-sendmail-transport.c: Here too
    * providers/smtp/camel-smtp-provider.c: Same
    * providers/smtp/camel-smtp-transport.c: #ifdef HAVE_CONFIG_H, mark
    strings for translations.
    
2001-03-29  Dan Winship  <danw@ximian.com>

    * camel-url.c (camel_url_to_string): change "gboolean show_passwd"
    to "guint32 flags".

    * tests/misc/url.c (main): Update calls to camel_url_to_string

    * providers/imap/camel-imap-store.c (construct): Call
    camel_url_to_string with flags to hide password, authtype, and
    params to create the base_url.
    (etc): Update for the fact that the base_url no longer has the "/"
    at the end.

    * camel-service.c (construct): Update calls to camel_url_to_string
    (pass CAMEL_URL_HIDE_PASSWORD)

2001-04-03  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_text): Ignore whitespace
    between encoded words (there were a few cases where it didn't
    before).
    (header_encode_string): Preserve whitespace between words that are
    to be encoded by encoding them too.
    (header_encode_phrase): Same here but with phrases.

2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

    * camel-filter-driver.c: Added #include <config.h>. Marked
    a bunch of strings for translation.
    * camel-folder-search.c: Added #include <config.h>.
    * camel-folder-summary.c: Same here.
    * camel-movemail.c: Marked strings for translation.
    * camel-provider.c: Same here.
    * camel-search-private.c: #include <config.h>
    * camel-vee-folder.c: Mark string for translation.
    * providers/local/camel-mbox-summary.c: #include <config.h>
    
2001-04-03  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_sync): If we don't
    change any flags or expunge, send a NOOP to give the server a
    chance to send EXISTS, etc, messages.
    (imap_get_message): If the server_level < IMAP4rev1, always fetch
    messages all-at-once, since they don't support the [#.MIME]
    syntax.

2001-04-01  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Don't
    blindly append "/INBOX", construct a CamelURL and set the path
    that way.
    (parse_list_response_as_folder_info): Don't blindly append
    "/<foldername>", construct a CamelURL and set the path that way
    instead.
    (get_folders_offline): And again here.

2001-03-31  Not Zed  <NotZed@Ximian.com>

    * camel-operation.c (struct _status_stack): change stamp to
    unsigned to avoid overflow.
    (camel_operation_end):
    (camel_operation_progress_count):
    (camel_operation_progress): Double the delay before transient
    events start showing their own progress.

2001-03-30  Not Zed  <NotZed@Ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_get_message): Change
    the pop download into a transient event.

    * camel-operation.c (stamp): Get a timestamp that changes 4x a
    second (or rather, arbitrarily more often than 1/second).
    (camel_operation_progress): Use stamp() for time updates.
    (camel_operation_progress_count): "
    (camel_operation_start): Store the status as a struct status_stack
    item.
    (camel_operation_start_transient): New function to start a
    transient event, which is only reported if it runs for too
    long/and is reset afterwards.
    (camel_operation_progress):
    (camel_operation_progress_count): Fix for status_stack changes,
    and account for transient updates. 

    * camel-filter-driver.c (camel_filter_driver_filter_folder): When
    we remove things (set deleted), always set seen too, to mirror
    interface behaviour when you delete.
    (camel_filter_driver_filter_message): And same here too.

2001-03-30  Dan Winship  <danw@ximian.com>

    * providers/pop3/camel-pop3-store.c (connect_to_server,
    query_auth_types, pop3_connect): Move things around here to make
    this all work right again (so you don't get prompted for a
    password when checking the supported authtypes.)

2001-03-29  Dan Winship  <danw@ximian.com>

    * camel-url.c (camel_url_to_string): change "gboolean show_passwd"
    to "guint32 flags".

    * tests/misc/url.c (main): Update calls to camel_url_to_string

    * providers/imap/camel-imap-store.c (construct): Call
    camel_url_to_string with flags to hide password, authtype, and
    params to create the base_url.
    (etc): Update for the fact that the base_url no longer has the "/"
    at the end.

    * camel-service.c (construct): Update calls to camel_url_to_string
    (pass CAMEL_URL_HIDE_PASSWORD)

2001-03-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-pgp-context.[c,h]: New class for PGP encrypting,
    decrypting, signing and verifying. Next I'll be moving the
    contents of mail/mail-crypto into Camel. These files will
    basically replace mail/openpgp-utils.[c,h].

2001-03-29  Not Zed  <NotZed@Ximian.com>

    * camel-folder-search.c (search_body_contains): Optimise the match
    "" case, just match everything in the folder (if we have it).

    * camel-vtrash-folder.c (vtrash_move_messages_to): Access the
    folder directly from the message info.
    (vtrash_move_messages_to): I think we also need to call the real
    move_messages_to, and not try and bypass the lock, since we dont
    have the lock for that folder.

    * camel-vee-folder.h: Move CamelVeeMessageInfo to public, so
    subclasses can get to it.

    * camel-vee-folder.c (camel_vee_folder_add_folder): Dont let you
    add a vfolder to itself.
    (folder_changed): 
    (vee_folder_remove_folder): 
    (vee_folder_build_folder): Copy changes before triggering changed
    events, so we can do them outside of locks.
    (camel_vee_folder_get_message_folder): Removed function.
    (camel_vee_folder_hash_folder): Made public (renamed from
    hash_folder), simply for subclasses (probably not needed).
    (vee_expunge): Oops, call the class sync, not superclass sync.
    (vee_sync): Remove some accidental debug.

2001-03-27  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-service.c (get_path): Add the port (if user defined) to
    the path to fix bug #1996.

    Danw: I'm iffy on the "fix" so I'd like you to comment.

2001-03-27  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-folder.c (pop3_sync): If we aren't
    going to even check the resp/free buffer that gets returned from
    camel_pop3_command, don't even bother using it. Send in NULL
    instead.
    (pop3_get_message): Check to make sure that the `result' string is
    non-NULL. It's possible that some POP servers may return with
    "+OK\r\n<message>..." rather than the expected 
    "+OK ### octets\r\n<message>..."

2001-03-27  Not Zed  <NotZed@Ximian.com>

    * camel-folder-summary.c (camel_folder_summary_finalize): Unref
    the html filter when done.
    (summary_build_content_info): Disable using the html parser to
    help index html mails until it gets sorted out.

    * camel-vee-folder.c (folder_changed): Fix a cut n paste bug, we
    want uid_removed not uid_changed deref, fixes bug #1999.

2001-03-27  Dan Winship  <danw@ximian.com>

    * camel-sasl.c (camel_sasl_authtype_list): add an argument to say
    whether or not you want "PLAIN" in the list (so you don't end up
    with "Password" twice in the config dialog).

    * providers/imap/camel-imap-provider.c (camel_provider_module_init): 
    * providers/imap/camel-imap-store.c (query_auth_types): We don't
    want PLAIN.

    * providers/smtp/camel-smtp-provider.c (camel_provider_module_init): 
    * providers/smtp/camel-smtp-transport.c (query_auth_types): But we
    do.

2001-03-27  Dan Winship  <danw@ximian.com>

    * camel-provider.h: Add an "extra_conf" field to CamelProvider
    with structures and defines and stuff, for providers to specify
    additional configuration options that they want. Also add a
    "supports ssl" flag to the provider flags.

    * camel-url.c (camel_url_new_with_base): Fix parsing of params.
    (output_param): And unparsing...

    * camel-remote-store.c: add a "default_ssl_port" field.
    (remote_construct): If the URL has the "use_ssl" parameter, set
    the store's use_ssl flag.
    (remote_connect): If using SSL and no port specified, use the
    default_ssl_port rather than the default_port.

    * providers/smtp/camel-smtp-provider.c (smtp_provider): add
    CAMEL_PROVIDER_SUPPORTS_SSL and CAMEL_URL_ALLOW_USER. (The config
    gui code knows that the ALLOW_USER and ALLOW_AUTH go together.)
    (ssmtp_provider): gone

    * providers/smtp/camel-smtp-transport.c (smtp_construct): Set a
    flag if "use_ssl" param is set.
    (smtp_connect): Check the CamelSmtpTransport use_ssl flag rather
    than checking if this is smtp or ssmtp.

    * providers/imap/camel-imap-provider.c (imap_conf_entries): Add a
    bunch of IMAP-specific configuration options, like "check for new
    mail in all folders" (default TRUE), "show only subscribed
    folders" (default TRUE), "ignore server-supplied namespace", and
    "apply filters to INBOX" (not yet implemented).
    (imap_provider): We support SSL and we no longer allow a path in
    the URL. (namespace is handled via extra_conf)
    (simap_provider): Gone

    * providers/imap/camel-imap-store.c (camel_imap_store_init): Set
    default_ssl_port, don't set CAMEL_STORE_SUBSCRIPTIONS here
    (construct): remove simap stuff, deal with "use_lsub",
    "namespace", "check_all", and "filter" parameters. Set base_url
    to not include params.
    (imap_store_setup_online): Don't ask for the namespace if it was
    set explicitly. Don't get subscribed folders if !use_lsub.
    (imap_concat): Fix a bug.
    (get_folder_info): Support for not checking all folders.

    * providers/imap/camel-imap-folder.c (imap_get_full_name): Rewrite
    to use imap_store->namespace, not service->url->path

    * providers/pop3/camel-pop3-provider.c (pop3_conf_entries): "keep
    on server" (currently still implemented by the mailer code, not
    here), "delete after N days" (not yet implemented).
    (pop3_provider): we support SSL
    (spop_provider): gone

    * providers/pop3/camel-pop3-store.c (camel_pop3_store_init): Set
    default_ssl_port
    (pop3_connect): Remove spop code

2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-vee-folder.c (vee_folder_construct): Move all of the
    camel_vee_folder_construct() internals here.
    (camel_vee_folder_construct): This function basically becomes a
    wrapper for vee_folder_construct and also checks to make sure that
    the UNMATCHED vfodler is constructed otherwise constructs it.
    (camel_vee_folder_new): Call vee_folder_construct() instead so
    that we don't get into a dead-lock.

2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (init_trash): Use camel_vtrash_folder_new() to
    create the vtrash folder now.

    * camel-vtrash-folder.[c,h]: New subclass of CamelVeeFolder for
    our vTrash folders.

    * camel-folder.c (camel_folder_copy_messages_to): Don't watch for
    vtrash folders anymore.
    (camel_folder_move_messages_to): Same.

    * camel-vee-folder.c (camel_vee_folder_class_init): Update.
    (vee_move_messages_to): Rewrite to use the new move API.

    * camel-filter-driver.c (do_copy): Updated to reflect
    copy_message_to changes. Create a temporary uid array and use
    that.
    (do_move): Same.
    (camel_filter_driver_filter_message): And again, here...

    * providers/imap/camel-imap-folder.c (imap_copy_messages_to):
    Update to the new API.
    (imap_move_messages_to): Same.
    (get_uid_set): New function to create a `set' string based on an
    array of UIDs for use with imap_copy_messages_to.

    * camel-folder.c (camel_folder_copy_messages_to): Replaces
    camel_folder_copy_message_to
    (camel_folder_move_message_to): Replaces
    camel_folder_move_message_to.

2001-03-27  Not Zed  <NotZed@Ximian.com>

    * camel-vee-store.c (vee_get_folder): Added folder_created event
    here.
    
    * camel-vee-folder.c (unmatched_finalise): Removed, moved into
    main finalise code.
    (message_changed): Just create a new change entry and promote it
    to a folder_changed thing.
    (vee_sync): Always rebuild folder on sync, even when not expunge.
    (folder_changed): If not autoupdating, make sure we remove any
    removed entries.
    (vee_folder_build_folder):
    (vee_folder_remove_folder): NOP if we're called on
    folder_unmatched.
    (vee_search_by_expression): Only search each folder once.  Should
    we also order the result in summary order?

2001-03-20  Not Zed  <NotZed@Ximian.com>

    * camel-store.c (init_trash): Fix calling for vee_folder_new().

    * camel-folder-summary.c (camel_folder_summary_remove_index):
    Optimise slightly, use ptr_array_remove_index rather than have to
    search for the index by using summary_remove.

    * camel-vee-folder.h: Removed local member from VeeFolder, since
    it was never used.

    * camel-vee-store.c (camel_vee_store_finalise): Setup finalise
    function.

    * camel-vee-folder.c (camel_vee_folder_set_expression): New
    function to set the query of an existing vfolder.
    (camel_vee_folder_construct): New function for
    convenience/subclasses.
    (camel_vee_folder_new): Removed exception parameter, no longer
    needed (since we dont search yet).
    (camel_vee_folder_new): Changed to use folder_construct, and no
    longer raise the folder created signal.
    (vee_folder_build_folder): Make it return error on exception, so
    we can work without exceptions.
    (vee_folder_remove_folder): Use remove index rather than
    remove_uid, this is ok since we have the summary locked for our
    own access.
    (camel_vee_folder_add_folder): Only add the folder to the
    unmatched private if it is not a private folder.
    (camel_vee_folder_remove_folder): Only remove the folder from
    unmatched if it is not private.
    (vee_expunge): Just call sync with expunge set.
    (vee_sync): If expunging, also refresh the search.
    (vee_folder_build_folder): We do our own locking now, removed from
    callers, also trigger changed events here too (within locks),
    fixed callers appropriately.
    (vee_folder_remove_folder): Do our own locking, and trigger
    changed events.
    (vee_folder_add_info): Renamed of vee_folder_add, we now take a
    hash of the folder name, rather than use the folders address.
    (hash_folder): Convert a folder name into an 8 character hash.
    (vee_get_message, vee_search_by_expression, vee_set_message_flags,
    vee_set_message_user_flag, vee_move_message_to): Changed the uid
    to be an 8 byte hash + original uid, with no ':' anymore.

2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_text): When writing the last
    token (if not rfc2047 encoded), don't use g_string_append_len, use
    append_latin1.

    * camel-mime-message.c (write_to_stream): Don't spew a warning if
    the message-id wasn't set by the application, not a big deal since
    we create one right here.

2001-03-26  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-command.c (camel_imap_command): keep a
    reference on the store's current_folder.

    * providers/imap/camel-imap-store.c (camel_imap_store_finalize): 
    (imap_disconnect): unref the current_folder before clearing it.

    * camel-url.c (camel_url_get_param): Add missing accessor.

    * camel-session.c (camel_session_get_provider): New. Return
    the provider for a URL.

2001-03-25  Dan Winship  <danw@ximian.com>

    * camel-url.c (camel_url_new_with_base): New URL parser with full
    RFC1808 relative URL support. Yum.
    (camel_url_new): Wrapper around camel_url_new_with_base now.

    * tests/Makefile.am: add misc subdir

    * tests/misc/url.c: relative URL test cases from RFC 1808

2001-03-25  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (do_copy): Don't use copy_to if the source
    folder doesn't support summary info's.
    (do_move): Same.
    (camel_filter_driver_filter_message): And again here.  I think
    this will fix the problem of "colour" tags not staying with the
    message when it's copied to a folder during the filter process.

2001-03-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-digest-md5.c (digest_response): Do charset conversion
    on the username param here if needed.
    (parse_server_challenge): Protect against possibly empty-string
    charset values.

2001-03-23  Jon Trowbridge  <trow@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message):
    Don't call camel_mime_message_set_identity.  (The call is
    commented out, left over from some earlier experimentation that I
    want to be able to remember later...)

    * camel-mime-message.c (camel_mime_message_set_identity): Added.
    A function to set the X-Evolution-Identity header.
    
2001-03-22  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-command.c (imap_read_response): Don't
    look at untagged responses other than "* BYE"...
    (camel_imap_response_free): ...do it here instead...
    (camel_imap_response_free_without_processing): ...but not here.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
    Remove the "EXISTS" line from the response so
    camel_imap_response_free won't try to process it.
    (camel_imap_folder_selected): If we get an EXISTS response mixed
    in with the FETCH responses, record the new EXISTS value.
    Use camel_imap_response_free_without_processing so that an EXISTS
    response won't cause a loop.
    (imap_rescan): Use camel_imap_response_free_without_processing.
    (imap_update_summary): Use
    camel_imap_response_free_without_processing. If an EXISTS response
    shows up, call imap_update_summary again to get the new messages.
    (imap_protocol_get_summary_specifier): Use BODY.PEEK[0], not
    RFC822.HEADER for prev IMAP4rev1, since the FETCH parser won't
    deal with RFC822.HEADER responses.

    * providers/imap/camel-imap-store.c (get_folder_info): Fix an
    uninitialized variable

2001-03-21  Dan Winship  <danw@ximian.com>

    * camel-provider.h: (CamelProvider) add a "GList *authtypes", so
    you can get the list of authtypes used by a provider without
    needing to have an actual CamelService object handy. (Will be
    needed by the new config druid.)
    (CAMEL_PROVIDER_ALLOWS, CAMEL_PROVIDER_NEEDS): New macros to test
    the URL part stuff, since the way it works is too complicated and
    everyone always does it wrong.

    * camel-service.c (camel_service_query_auth_types): Remove the
    @connected arg again: if you don't want to connect, you can just
    get the list of authtypes off the provider.
    (camel_service_free_auth_types): Remove this. All existing
    implementations do authtypes the same way, so just say the caller
    should "g_list_free" the list. (Oh, look, removing this function
    doesn't actually cause the mailer to not build. How 'bout that.)
    (construct, get_path): Use the new URL part macros.

    * camel-remote-store.c (remote_query_auth_types): Update
    (remote_free_auth_types): Nuke
    (camel_remote_store_authtype_list): New function for use by
    subclasses.

    * providers/imap/camel-imap-provider.c:
    * providers/pop3/camel-pop3-provider.c:
    * providers/smtp/camel-smtp-provider.c: Update CamelProvider
    structures.
    (camel_provider_module_init): Put all the SSL parts together so
    there's only 1 #ifdef. Set up the provider authtypes field using
    the SASL, CamelRemoteStore, and standard authtypes, as
    appropriate. Copy that from the normal provider to the SSL
    provider.

    * providers/local/camel-local-provider.c:
    * providers/sendmail/camel-sendmail-provider.c:
    * camel-session.c: Update CamelProvider structures.

    * providers/imap/camel-imap-store.c (query_auth_types):
    * providers/pop3/camel-pop3-store.c (query_auth_types): Update

    * providers/smtp/camel-smtp-store.c (query_auth_types): Update.
    Remove the no_authtype, because that's what "ALLOW_AUTH" rather
    than "NEED_AUTH" means.
    (free_auth_types): Nuke.

2001-03-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message):
    Return -1 on fail.
    (camel_filter_driver_filter_folder): Same.
    (camel_filter_driver_filter_mbox): Same.
    (camel_filter_driver_filter_folder): Return -1 if an exception was
    set as well.

2001-03-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_finalize):
    Free the expected host.
    (camel_tcp_stream_openssl_new): Now takes a Service and an
    expected_host. Set them.

2001-03-20  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c
    (camel_imap_store_check_online): Function to check if the store is
    online and set an exception if not. Currently controlled by an
    environment variable, but eventually there will be both a global
    (session-level) setting and a per-store setting.
    (construct): Set up storage_path and base_url here rather than at
    connect-time.
    (imap_auth_loop): Split out from imap_connect.
    (imap_setup_online): Split out from imap_connect. Do the
    post-authentication connection setup, and cache the results to
    disk.
    (imap_setup_offline): Set up a CamelImapStore with information
    saved from a previous imap_setup_online.
    (imap_connect): If online, do connect_to_server(),
    imap_auth_loop(), and imap_setup_online(). Otherwise, do
    imap_setup_offline().
    (get_folder, get_folder_info): Add offline support.
    (create_folder, subscribe_folder, unsubscribe_folder): Disable
    these when offline (for now).

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new):
    Remove the sync'ing-with-server stuff... it's done by
    camel_imap_folder_selected now, which only gets called if the
    store is online.
    (camel_imap_folder_selected): add the code removed from
    camel_imap_folder_new. Besides simplifying the folder_new and
    summary_new code, this also means now that we'll DTRT if a
    folder's UIDVALIDITY changes while we're connected. Also, when
    that happens, clear the message cache explicitly.
    (imap_refresh_info, imap_sync): These are no-ops when offline.
    (imap_expunge, imap_append_message, imap_copy_message_to,
    imap_search_by_expression): These don't yet work offline.
    (imap_get_message, camel_imap_folder_fetch_data): Return an error
    when trying to fetch a non-cached body part when we're offline.

    * providers/imap/camel-imap-summary.c (camel_imap_summary_new):
    Rewrite to not check the validity here. (We'll do it from
    camel_imap_folder_selected instead.)

    * providers/imap/camel-imap-command.c (camel_imap_command): Call
    camel_imap_folder_selected even when the selection is all we're
    doing, to match the changes in camel-imap-folder.c.

    * providers/imap/camel-imap-message-cache.c
    (camel_imap_message_cache_clear): New function to clear out a
    message cache.

2001-03-19  Christopher James Lahey  <clahey@ximian.com>

    * Makefile.am (INCLUDES): Added $(EXTRA_GNOME_CFLAGS)

2001-03-19  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-store.c (pop3_connect): Set the errbuf
    to NULL after freeing it? I don't think this should fix bug #1801
    but I guess it can't hurt.

2001-03-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-remote-store.c (remote_recv_line): Protect against a
    possibly NULL exception.

    * camel-filter-driver.c (camel_filter_driver_filter_message):
    Document and modify to return a boolean value denoting whether or
    not errors occured during processing.
    (camel_filter_driver_filter_mbox): Same as above and also modified
    to check return codes of filter_message rather than relying only
    on whether or not the exception was set (as it's possible to pass
    in NULL for the exception).
    (camel_filter_driver_filter_folder): Same as above.

    * camel-mime-utils.c (header_param_list_format_append): Quote the
    param value if it contains whitespace as well.

2001-03-17  Jeffrey Stedfast <fejj@ximian.com>

    * Makefile.am: Don't include system include dir.

    * camel.c: Use quotes around the nss.h include so it doesn't try
    to use the systen nss.h file.

    * camel-tcp-stream-ssl.c: Same here.

2001-03-17  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-maildir-summary.c (maildir_summary_sync): 
    Modified patch from Dan Berger <dberger@ix.netcom.com> to re-check
    the maildir directory for new/updated messages at sync time.

    * camel-folder.c (camel_folder_ref_message_info): Implemented.
    (ref_message_info): And default implementation.

    * camel-folder.h: Added ref_message_info virtual method.

2001-03-16  Not Zed  <NotZed@Ximian.com>

    * camel-folder-thread.c
    (camel_folder_thread_messages_new_summary): New function to create
    a thread tree from a supplied summary array.
    (camel_folder_thread_messages_destroy): Handle thread trees
    generated by the above function properly.

2001-03-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-private.h: Same.

    * camel-remote-store.h: Fixed #include to use <>'s instead of ""'s

2001-03-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (ssl_bad_cert): Print info about the
    issuer of the certificate.

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Use
    camel_tcp_stream_get_socket().

    * camel-tcp-stream-openssl.c (stream_get_socket): Implemented.

    * camel-tcp-stream-ssl.c (stream_get_socket): Implemented.

    * camel-tcp-stream-raw.c (stream_get_socket): Implemented.

    * camel-tcp-stream.c (camel_tcp_stream_get_socket): New function.

2001-03-16  Kjartan Maraas  <kmaraas@gnome.org>

    * providers/pop3/camel-pop3-folder.c: Added #include <config.h>
    
2001-03-16  Dan Winship  <danw@ximian.com>

    * camel-mime-utils.c (header_msgid_generate): Don't use
    getdomainname: it's NIS crap, not DNS.

2001-03-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.c (camel_init): Don't use the hardcoded cert db directory,
    use the one passed in.

    * camel-tcp-stream-ssl.c (ssl_get_client_auth): Wrote the default
    implementation. Not that we'll use this though, since this is the
    default implementation provided by NSS anyway. This more or less
    serves as a reference in case we want to change anything.
    (ssl_auth_cert): Same.
    (ssl_bad_cert): Changed the prompt string and free it when we're
    done.

2001-03-15  Dan Winship  <danw@ximian.com>

    First batch of disconnected IMAP-related stuff. This adds local
    caching of message parts, but NOT any actual disconnected support.
    (But it should speed up IMAP use.)

    * providers/imap/camel-imap-message-cache.c: New class for caching
    message data to disk, and removing it when it's no longer
    relevant. Will eventually also support merging message parts
    together to save on files. Or maybe using a db instead of files?

    * providers/imap/camel-imap-private.h: Add a cache_lock to
    CamelImapFolderPrivate. This lock must be recursive, so make both
    locks EMutexes rather than GMutex.

    * providers/imap/camel-imap-folder.c (parse_fetch_response): "The
    only FETCH response parser you need!" Replaces the various
    almost-correct bits of code formerly scattered throughout this
    file with a single fully-correct function that can handle any
    FETCH response at any time, so we don't get confused by seeing a
    flags update when we were only expecting a message body, etc.
    (camel_imap_folder_fetch_data): FETCH a message body part either
    from the cache or the server
    (camel_imap_folder_changed): Remove expunged messages from the
    message cache.
    (camel_imap_folder_new): Change to take a directory instead of a
    summary file name. Create a CamelImapMessageCache for the folder.
    (imap_finalize): Unref the message cache.
    (camel_imap_folder_selected, imap_rescan, get_content,
    get_message, imap_get_message, imap_update_summary): Redone a
    bunch to use parse_fetch_data, CamelImapMessageCache, etc.

    * providers/imap/camel-imap-store.c (get_folder): Pass directory
    name to camel_imap_folder_new, not summary filename. Use
    e_path_to_physical to generate a path with /subfolders/ inserted
    between directory components.

    * providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new):
    Call camel_imap_folder_fetch_data (with cache_only TRUE) and if
    the data is cached, return an online datawrapper rather than an
    offline one.
    (write_to_stream): Use camel_imap_folder_fetch_data (with
    cache_only FALSE) here too

    * providers/imap/camel-imap-utils.c (imap_skip_list): Renamed from
    skip_list and made non-static.

2001-03-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.h: Uninclude prnetdb.h since it's not
    needed here.

    * providers/smtp/camel-smtp-transport.c: #include prnetdb.h here
    instead of making camel-tcp-stream-ssl.h include it. Prevents some
    header bloat.

    * providers/smtp/Makefile.am: Include the NSPR_CFLAGS and
    NSS_CFLAGS.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Update for
    using CamelTcpStreams and also for using SSL.

    * providers/smtp/libcamelsmtp.urls: defined "ssmtp"

    * providers/smtp/camel-smtp-provider.c: Defined the Secure SMTP
    provider.
    (camel_provider_module_init): Register the Secure SMTP provider.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (imap_connect): Check for
    "simap" instead of "imaps".

    * providers/pop3/camel-pop3-store.c (pop3_connect): Change the
    port to be 995 for spop.

    * providers/pop3/libcamelpop3.urls: Change to "spop".

    * providers/imap/libcamelimap.urls: Change "imaps" to "simap" to
    correspond to /etc/services.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-store.c (pop3_connect): Check to see
    if we are using "pops" and then set the appropriate SSL settings.

    * providers/pop3/libcamelpop3.urls: Add "pops"

    * providers/pop3/camel-pop3-provider.c: Defined the pops provider.
    (camel_provider_module_init): Register the pops provider.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_new): Ya know what?
    Lets not ref the service because otherwise we'll start having the
    same problems we had back with vtrash. Besides, since the store
    owns the stream, it's not like the store is going anywhere without
    the stream anyway.
    (camel_tcp_stream_ssl_finalize): No need to unref the service.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-remote-store.c (remote_connect): Pass the service into the
    SSL stream, not the session.

    * camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_init): Set the
    service to NULL.
    (camel_tcp_stream_ssl_finalize): Unref the service.
    (camel_tcp_stream_ssl_new): Takes a CamelService arg now rather
    than a CamelSession arg.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.c (camel_init): So it turns out that NSS_Init *isn't*
    idempotent, so we have to protect against initializing it more
    than once(contrary to what their design specs suggest).

    * camel-session.c (camel_session_get_service): Use
    camel_exception_is_set() - Makes no difference but it's more
    consistant with how we normally do it.

    * camel-provider.h (CAMEL_URL_ALLOW_SSL): We don't need this.

    * providers/imap/camel-imap-provider.c: Define the imaps provider.
    (camel_provider_module_init): Register the imaps provider.

    * camel-provider.c (camel_provider_init): Only add the protocol to
    the hash table if it's non empty. Also, g_strdup() the filename
    into the hash table.

    * providers/imap/camel-imap-store.c (camel_imap_store_init): Eek!
    So the service's URL isn't set until after this is
    initialized. This means we can't check for SSL here.
    (imap_connect): Set the SSL options here instead.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c: Numerous fixes to get it to build
    correctly with NSS enabled.

    * camel-remote-store.c (remote_connect): Pass in the session and
    expected host args, oops.

    * camel-provider.h (CAMEL_URL_ALLOW_SSL): Defined.

    * providers/imap/camel-imap-store.c (camel_imap_store_init): Check
    to see if we are supposed to use SSL and set the options
    accordingly.
    (imap_connect): Return FALSE here instead of NULL.

    * providers/imap/camel-imap-provider.c: Add CAMEL_URL_ALLOW_SSL.

    * providers/imap/libcamelimap.urls: Add "imaps" which is the
    protocol for Secure IMAP.

2001-03-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-openssl.[c,h]: Added

    * Makefile.am: Added camel-tcp-stream-openssl.[c,h] to the build.

    * camel-types.h: Added CamelTcpStreamSSL and CamelTcpStreamOpenSSL

2001-03-14  Not Zed  <NotZed@Ximian.com>

    * camel-mime-filter-charset.c (filter, complete): re-constify
    inbuf, to remove a warning.

    * camel-mime-parser.c (folder_scan_step): When we're out of data,
    run the filter_complete.  For some reason the logic that was there
    was never being run, always try it now, i think it was to work
    around a buggy filter, rather than fix it the right way.

    * camel-folder-summary.c (summary_build_content_info): If indexing
    html parts, use the html filter to convert it to some indexable
    format.
    (summary_build_content_info): Reset the filters before adding them
    back to the stream, if they get re-used in a given instance
    (likely).

    * Makefile.am (libcamelinclude_HEADERS): Added
    camel-mime-filter-html.[ch].
    (INCLUDES): Added xml clags

2001-03-05  Not Zed  <NotZed@Ximian.com>

    * camel-folder-search.c (camel_folder_search_class_init): Setup a
    new function, "uid" which matches uids.
    (search_uid): Implement the "match uid" command.

2001-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c: Check for a new type of mailing list header.

2001-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-raw.c (stream_read): Made cancellable.
    (stream_write): Same.
    (stream_connect): Removed checks for DIVINE_INTERVENTION as the
    code worked fine.

    * camel-tcp-stream-ssl.c (stream_write): get rid of 'w' as it
    wasn't really needed.
    (set_errno): New function to set errno based on the NSPR error
    code.
    (stream_read): If an error occured, call set_errno().
    (stream_write): Same.

2001-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Added camel-tcp-stream-ssl to the build.

    * camel-remote-store.h: Add a use_ssl member to the
    CamelRemoteStore object.

2001-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_get_type):
    Oops. Make this a subclass of CamelTcpStream, not CamelStream.

    * camel-types.h: Add the defs for CamelTcpStream and
    CamelTcpStreamRaw

    * Makefile.am: Add camel-tcp-stream and camel-tcp-stream-raw to
    the build.

    * camel-remote-store.c (remote_connect): Update to use
    CamelTcpStreams.

    * camel-tcp-stream-raw.c (stream_connect): Made cancellable by
    copying the currently used code in camel-remote-store.c.
    (stream_setsockopt): Oops, flags = fcntl (..., GET_FL);
    (camel_tcp_stream_raw_get_type): Oops. Make this a subclass of
    CamelTcpStream, not CamelStream.

2001-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel.c (camel_init): Since all of the Mozilla libs (including
    NSPR and NSS) correctly handle reinitializations, we might as well
    init both NSPR and NSS in camel_init so we can be sure of that
    these libs have been initialized.
    (camel_shutdown): New function to call the NSS cleanup stuff.

2001-03-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder.c (camel_folder_copy_message_to): Don't allow the
    user to copy a message to or from the vtrash folder. Set an
    exception if they try.
    (camel_folder_move_message_to): This one is a bit more
    complicated: 1) If the user tried to move a message from the
    vtrash into the original folder, just undelete the message. 2) If
    the user tries to move the message to the vtrash folder, then just
    mark the message as deleted. 3) If the user tries to move the
    message from the vTrash to a folder other than the original, use
    the original folder as the source. As another optimization, I've
    made it so that if the user tries to move a message to the same
    folder, just no-op.
    (move_message_to): Unset the deleted flag before moving (assuming
    it's there).
    (copy_message_to): Same.

    * camel-vee-folder.c (camel_vee_folder_get_message_folder): New
    convenience function to get the folder from which the message uid
    is derived from.

2001-03-13  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c (imap_connect): When trying
    again after a failed password attempt, check if the connection got
    dropped (which Courier will do) and deal accordingly.

    * providers/sendmail/camel-sendmail-transport.c (sendmail_send_to,
    sendmail_send): More fixing for exim: It can't deal with "-tif",
    you need to say "-t -i -f".

2001-03-12  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (init_trash): Rename the folder to "Trash" and
    i18nify it.

2001-03-09  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.h: Comment out everything unless HAVE_NSS
    is defined.

    * camel-tcp-stream-ssl.c (stream_read): Don't use errno, use
    nspr's error code stuff.
    (stream_write): Same.

2001-03-09  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-session.c (camel_session_query_authenticator): Created a
    new mode (CAMEL_AUTHENTICATOR_ACCEPT) which is a Yes/No prompt to
    the user. This will be needed by the SSL/TLS code to come. Also
    changed the return value to a gpointer rather than a char* to
    allow the returning of TRUE/FALSE values.

    * camel.c: Wrap stuff with HAVE_NSS

2001-03-09  Dan Winship  <danw@ximian.com>

    * providers/sendmail/camel-sendmail-transport.c (sendmail_send,
    sendmail_send_to): Remove the "-U" for now, because it breaks
    exim's "sendmail" wrapper. (And it doesn't actually do all that
    much to sendmail's behavior, and it was working fine before
    anyway.)

    * camel-mime-utils.c (header_fold): Fix a bug that could make this
    walk off the end of a string. (The bug has been there since
    December... maybe this will fix some unreproduceable crashes?)

2001-03-08  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_get_folder): Changes so that the
    folder gets added to the vtrash reguardless of whether or not the
    store is holding it's own folder lookup hash.
    (init_trash): Oops, lets try locking the cache before we go and
    add all the cached folders to the vtrash.

2001-03-08  Jeffrey Stedfast  <fejj@ximian.com>
    These fixes make it so that the CamelStore does not actually hold
    a ref on it's vTrash folder. The vTrash folder is now created ONLY
    when it is requested. This solves the problem of not being able to
    unref a Store and have it disconnect/finalize like we expect it to.

    * camel-store.c (init_trash): When we create the vtrash, add all
    previously opened folders to it and hook on to the finalize event
    so that we can then set the store->vtrash to NULL.
    (get_trash): If a vtrash folder for the store doesn't exist,
    init_trash() and then try.
    (construct): No longer need this.
    (camel_store_class_init): Don't override the construct method.
    (camel_store_finalize): We no longer hold a ref on the vtrash so
    don't unref it.

2001-03-07  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/pop3/camel-pop3-store.c (init_trash): Implement.
    (get_trash): Implement.
    (camel_pop3_store_class_init): Override the default init_trash and
    get_trash virtual functions. Hopefully this should fix the problem
    of pop3 sotre's not disconnecting after the send&recv code
    finishes downloading mail.

    Wonder if I should override the default implementation for the
    mbox, mh, and maildir too?

2001-03-07  Dan Winship  <danw@ximian.com>

    * camel-remote-store.c (camel_remote_store_connected): Return the
    return value of camel_service_connect rather than returning
    !camel_exception_is_set(), since that will be wrong if ex==NULL...
    Fixes a crash in the IMAP keepalive code, but this same problem
    probably exists in other places too...
    (remote_recv_line): Fix another problem...

    * providers/local/camel-mbox-provider.c:
    * providers/vee/.cvsignore:
    * providers/vee/libcamelvee.urls: Remove some unused stuff
    
2001-03-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-digest-md5.c (compute_response): Redone so as to save
    on memory allocations and speed.

2001-03-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-plain.c (plain_challenge): Don't return NULL if the
    token is non-NULL. This is why:

    sending : AUTH PLAIN
        received: 334 ok. go on.                 <-- this is why
        sending : ZGZPaQpAZ214Lm5ldBBnb29jYXI=
        received: 235 {mp005-rz3} go ahead

    * camel-sasl.c (camel_sasl_authtype): Add the PLAIN type here.
    (camel_sasl_authtype_list): And here too.

    * camel-sasl-plain.c: Initialize the camel_sasl_plain_authtype.

    * camel-sasl-plain.h: extern the camel_sasl_plain_authtype.

2001-03-05  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-store.c (imap_connect): i18n'd some
    strings in here.

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Keep
    trying to authenticate until either we succeed or until the user
    cancels.

2001-03-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c: Wrote a new version of header_fold() that
    takes a 'force' option and uses another new function called
    header_fold_next_space() in place of strchr(inptr, ' ') to get the
    next whitespace char. The idea of header_fold_next_space() is to
    not treat spaces between a set of quotes as a space - this way it
    will be possible to fold (for example) the Content-Type MIME
    header without worrying about breaking up a boundary string.
    Note: This code is #if 0'd out until Zucchi approves of the patch.
    Another Note: We will probably still want to use the "don't fold
    this header" hash lookup for headers like the Message-Id and
    possibly a few others.

2001-03-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-internet-address.c
    (camel_internet_address_encode_address): Make sure there is a
    space between the name and the address tokens.

    * camel-mime-utils.c (rfc2047_decode_word): encoded string
    segments need to be at least 8 chars (7 doesn't leave room for an
    ecoding value. To be more realistic, even 8 chars isn't enough as
    this assumes there is no charset nor any encoded text. If the
    encoding value is not 'Q' or 'B', then return NULL. This fixes bug
    #1689.

2001-03-03  Not Zed  <NotZed@Ximian.com>

    * camel-vee-folder.c (vee_folder_remove_folder): New function to
    remove a folder from a vfolder.
    (camel_vee_folder_remove_folder): New public function to remove a
    folder from a vfolder.

2001-03-02  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-provider.c: Doh! Set the
    CAMEL_URL_ALLOW_AUTH flag.

    * providers/smtp/camel-smtp-transport.c (get_smtp_error_string):
    Updated with the extended AUTH return codes.

2001-03-02  Jeffrey Stedfast  <fejj@ximian.com>
    
    * providers/imap/camel-imap-store.c (try_auth): Don't forget to
    unref the SASL object.

    * providers/smtp/camel-smtp-transport.c (query_auth_types):
    Implemented.
    (smtp_auth): Implemented.
    (smtp_helo): Don't bother parsing the authtypes if we already have
    them.
    (smtp_connect): call smtp_auth() here if we found any authtypes.
    (smtp_disconnect): Updated as I now use a hash table for the
    supported authtypes rather than a linked list.
    (esmtp_get_authtypes): modify to use a hash table instead of a
    linked list and also use isspace() rather than == ' '.

2001-03-02  Dan Winship  <danw@ximian.com>

    * providers/sendmail/camel-sendmail-transport.c (sendmail_send_to,
    sendmail_send): Use "-f" to set the envelope from address so
    bounces go to the right place. Also, pass "-U" since the man page
    says we're supposed to...

2001-03-01  Jeffrey Stedfast  <fejj@ximian.com>
    
    * camel-sasl.c: #include "camel-sasl-digest-md5.h"
    (camel_sasl_authtype_list): add DIGEST-MD5 stuff here.
    (camel_sasl_authtype): And here too.
    (camel_sasl_new): And here...

    * camel-sasl-digest-md5.[c,h]: new SASL class for DIGEST-MD5 (has
    been tested and proven to work).

2001-03-01  Dan Winship  <danw@ximian.com>

    * camel-sasl.c (camel_sasl_challenge): Take a GByteArray as input
    as well. Comment that you can pass %NULL for @token to get the
    initial auth data for mechanisms that are client-initiated.
    (camel_sasl_challenge_base64): Convenience function for protocols
    that use base64-encoded SASL.
    (camel_sasl_authenticated): Implement this... (it was prototyped
    already)
    (camel_sasl_new): Function to take a service name, a mechanism
    name, and a CamelService, and return a CamelSasl for it.
    (camel_sasl_authtype, camel_sasl_authtype_list): Functions to
    return CamelServiceAuthType information about SASL mechanisms, to
    allow providers to deal with them generically.

    * camel-sasl-anonymous.c, camel-sasl-plain.c: Update/simplify for
    CamelSasl changes. Both of these are single-round
    (client-initiated) mechanisms, so they don't need to keep state.
    (camel_sasl_plain_new): Removed; use camel_sasl_new instead.
    (Can't get rid of camel_sasl_anonymous_new though...)

    * camel-sasl-cram-md5.c: Update/simplify for CamelSasl changes.
    (camel_sasl_cram_md5_new): Removed; use camel_sasl_new instead.
    (cram_md5_challenge): Use md5_get_digest where possible, and
    various other minor simplifications. CRAM-MD5 only has a single
    round, so there's no need to keep track of state. This code is now
    tested (against Cyrus IMAPd) and known to work.

    * camel-sasl-kerberos4.h: Update/simplify for CamelSasl changes.
    Make only a single #ifdef HAVE_KRB4. Remove stuff from priv that
    isn't needed between rounds.
    (camel_sasl_kerberos4_new): Removed; use camel_sasl_new instead
    (krb4_challenge): Fix up the logic I broke in my previous "at
    least make it compile" fixes, update to match other changes, and
    remove IMAP-isms that shouldn't be in the generic code. This still
    isn't tested, because we're stuck behind a NAT right now...

    * providers/imap/camel-imap-store.c: Add an "authtypes" hash table
    to CamelImapStore recording the supported authtypes.
    (connect_to_server): Record supported authtypes in the authtypes
    hash rather than the capabilities bitmask, since now the IMAP code
    is no longer responsible for keeping track of which authtypes we
    support.
    (query_auth_types): Use camel_sasl_authtype_list to get the
    SASL-supported authtypes.
    (try_auth): New function to try a SASL auth mechanism. Sort of
    formerly imap_try_kerberos_v4_auth.
    (imap_connect): Get rid of the krb4-specific bits and genericize
    them for any SASL authtype.

    * providers/imap/Makefile.am: Remove camel-imap-auth.[ch] (moved
    into camel-imap-store.c since it's now constant size) and the
    KRB4_CFLAGS and KRB4_LDFLAGS references.

2001-03-01  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-sasl-anonymous.c (anon_challenge): Don't base64 encode the
    data, leave that up to the provider to do if it needs to. Also
    save on some memory allocations and stuff.

    * camel-sasl-cram-md5.c (cram_md5_challenge): Same here. Also get
    rid of the need for the temp buf as we can just write it to the
    GByteArray.

2001-03-02  Not Zed  <NotZed@Ximian.com>

    * camel-mime-utils.c (rfc2047_encode_word, rfc2047_decode_word):
    Reconstify variables to match iconv.

    * camel-search-private.c (camel_ustrstrcase): Change some
    assertions back into valid returns.

2001-03-01  Dan Winship  <danw@ximian.com>

    * Makefile.am (libcamel_la_LIBADD, INCLUDES): camel depends on
    krb4 now (where available), for camel-sasl-kerberos4.c

    * camel-sasl-kerberos4.[ch]: Make this at least compile. Dunno if
    it works yet.

2001-03-01  Peter Williams  <peterw@ximian.com>

    * camel-url.c (camel_url_new): Assert url_string != NULL.

2001-02-28  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Added camel-sasl-anonymous.[c,h] to the build.

    * camel-sasl-anonymous.[c,h]: new SASL class for ANONYMOUS

    * camel-sasl-plain.c (plain_challenge): Oops, have a state for
    setting sasl->authenticated = TRUE;

    * camel-sasl-cram-md5.c (cram_md5_challenge): Same here.

2001-02-28  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_decode_date): A fix for broken
    mailers that send 2-digit years (ie "Wed, 28 Feb 01
    04:59:41"). Fixes bug #1633.

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Check
    to make sure message isn't NULL.

2001-02-28  Dan Winship  <danw@ximian.com>

    * camel-remote-store.c (remote_recv_line): If we get back 0 bytes
    from camel_stream_buffer_gets, that means the socket got
    disconnected, so set an exception. (Noticed because of a message
    that crashes our IMAP server when you try to look at it. :)

2001-02-28  Jeffrey Stedfast  <fejj@ximian.com>

    * Makefile.am: Added camel-sasl*.[c,h] to the build.

    * camel-sasl.[c,h]: new "abstract" SASL class

    * camel-sasl-kerberos4.[c,h]: new SASL class for KERBEROS_V4

    * camel-sasl-cram-md5.[c,h]: new SASL class for CRAM-MD5

    * camel-sasl-plain.[c,h]: new SASL class for PLAIN

    * providers/imap/camel-imap-auth.c: Removed the base64 functions.

    * camel-mime-utils.c (base64_encode_simple): Moved here from
    camel-imap-auth.c
    (base64_decode_simple): Same.

2001-02-26  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (imap_sync): Group messages
    into sets with the same flags and use the IMAP message set
    notation rather than doing a separate STORE FLAGS for each one.
    This cuts the network traffic down to just a handful of commands
    per sync rather than one per changed message. Removed the progress
    notification stuff since it's no longer meaningful and should
    hopefully be unnecessary.
    (imap_copy_message_to): move the former sync_message function
    into here, since it's no longer shared with imap_sync.

2001-02-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c: Made thread-safe and moved to above the test
    code.

    * camel-mime-message.c (camel_mime_message_init): Set the
    message_id to NULL.
    (camel_mime_message_finalize): Free the message_id.
    (camel_mime_message_set_message_id): New function to set the
    Message-Id.
    (camel_mime_message_get_message_id): New function to get the
    Message-Id.
    (process_header): Decode the message-id.

2001-02-24  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (construct): init the vTrash folder here instead
    of in store_init.
    (camel_store_class_init): init service_class->construct.
    (camel_store_finalize): We only need to unref the vtrash folder.
    (init_trash): don't create a vstore since we don't need it.

2001-02-23  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-store.c (camel_store_class_init): init get_trash and
    init_trash.
    (camel_store_init): call the virtual init_trash function.
    (camel_store_finalize): unref the vtrash folder/store if present.
    (camel_store_get_folder): Add the new folder to the vtrash
    vfolder.
    (init_trash): default implementation of init_trash.
    (get_trash): default implementation of get_trash.

    * camel-vee-store.c (vee_init_trash): No-op.
    (vee_get_trash): return NULL

2001-02-23  Not Zed  <NotZed@Ximian.com>

    * camel-folder-summary.c (camel_message_info_new_from_header):
    Doh, cut and paste problem, use mlist not cc.

    * camel-folder.c (move_message_to): 
    (copy_message_to): If the source folder doesn't support a
    summary, dont try and get the message info from it.

    * camel-filter-search.c (check_header): Implement a pseudo-header
    "x-camel-mlist" which just looks up in the message info for a
    match.

    * camel-folder-search.c (check_header): Add pseudo-header
    "x-camel-mlist" which can be used to match on mailing list.

    * providers/imap/camel-imap-folder.c (imap_sync): Add some
    internal progress reporting.
    (imap_rescan): Do some progress reporting.

    * camel-mime-part.c (init_header_name_table): Add the message-id
    to the formatted table, so we dont try and wrap it, and break it.

2001-02-22  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder.h: Remove the 'FIXME: remove because this isn't
    required...' comment for copy_message_to since we now need and
    cherish its existance in the filter-driver code ;-)

    * camel-filter-driver.c (camel_filter_driver_filter_message): Now
    takes a UID and CamelFolder arguments (which can be NULL) to allow
    for possible optimizations when copying messages between folders
    on the same store.
    (camel_filter_driver_filter_mbox): Updated (passes NULL for both
    since this case can't be optimized anyway).
    (camel_filter_driver_filter_folder): Updated to pass in the uid
    and folder of the message.

2001-02-22  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-summary.h (CAMEL_IMAP_SERVER_FLAGS):
    #define this as the set of all IMAP system flags

    * providers/imap/camel-imap-folder.c (sync_message): after syncing
    flags, set server_flags to (flags & CAMEL_IMAP_SERVER_FLAGS)
    rather than just "flags", since any other flags won't have been
    synced. Prevents the CAMEL_MESSAGE_ATTACHMENTS flag from getting
    lost.

2001-02-22  Not Zed  <NotZed@Ximian.com>

    * providers/vee/*: Removed all files.
    
    * camel-private.h: Move camel-vee-private.h stuff into here.

    * camel-session.c: Move the vee_provider here, and initialise it
    always as part of a session.  The vfolder provider is always
    available.

    * providers/Makefile.am: Remove "vee" from the build list, now
    built as part of the main library.

    * Makefile.am (libcamelinclude_HEADERS): 
    (libcamel_la_SOURCES): Added camel-vee-store.[ch],
    camel-vee-folder.[ch].

    * providers/vee/camel-vee-folder.c (vee_folder_build): Removed,
    not used.
    (camel_vee_folder_new): Removed call to build_folder.
    (vee_get_message): Dont try and free the mi if we didn't get it.

    * camel-folder.c (camel_folder_change_info_new): Added a hash
    table of what we have in the lists, plus moved private things into
    private pointer.
    (camel_folder_change_info_add_source): Fixed up private accesses.
    (camel_folder_change_info_add_uid): Changed to use a hashtable to
    see if we already have the uid, etc.
    (camel_folder_change_info_remove_uid): Similar.
    (change_info_remove): Likewise.
    (camel_folder_change_info_clear): Fixes for privatisations.
    (camel_folder_change_info_free): "

2001-02-21  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (fetch_medium): Fixes for
    IMAP4-pre-rev1 from Torsten Schulz.

2001-02-20  Not Zed  <NotZed@Ximian.com>

    * camel-mime-utils.c (mail_list_magic): Take the ^Header: part out
    of the expression, since we look that up ourselves.
    (header_raw_check_mailing_list): When getting the match, get match
    1, not match 0, we dont want the full string match.

    * camel-folder-summary.c (CAMEL_FOLDER_SUMMARY_VERSION): Bumped
    for summary change.
    (message_info_new): Extract the mlist info from the headers.
    (message_info_load): Load mlist from summary.
    (message_info_save): Save mlist to summary.
    (message_info_free): Save the mlist entry.
    (camel_message_info_new_from_header): Extract mailing list header.
    (camel_message_info_dup_to): Copy the mlist entry.
    (camel_message_info_free): Free mlist.
    (message_info_dump): Dump the mlist.

    * camel-folder-summary.h: Add an mlist (mailing list) string to
    the summary.

2001-02-19  Not Zed  <NotZed@Ximian.com>

    * providers/vee/camel-vee-folder.c (camel_vee_folder_new): Added
    flags argument.
    (message_changed): Add support for the auto-update flag, in which
    case we auto-match the content as it changes.
    (camel_vee_folder_init): Remoive "DYNAMIC" optionality
    (camel_vee_folder_finalise): "
    (vee_expunge): As we expunge folders, re-sync their content by
    rerunning the query.

    * providers/vee/camel-vee-store.c (vee_get_folder): Pass flags to
    folder new.

2001-02-18  Not Zed  <NotZed@Ximian.com>

    * providers/vee/Makefile.am (noinst_HEADERS): Added
    camel-vee-private.h.

    * providers/vee/camel-vee-private.h: New file to add locking stuff
    for vee folders.

    * providers/vee/camel-vee-folder.c (camel_vee_folder_new): Add
    locking around unmatched setup.
    (camel_vee_folder_init): Setup lock.
    (camel_vee_folder_finalise): Free locks.
    (folder_changed): Add locking.
    (unmatched_finalise): "
    (message_changed): "
    (vee_folder_build): "

2001-02-17  Not Zed  <NotZed@Ximian.com>

    * providers/vee/camel-vee-folder.c (vee_folder_add): Check uid
    doesn't exist before adding it.

2001-02-16  Not Zed  <NotZed@Ximian.com>

    * providers/vee/camel-vee-folder.c (camel_vee_folder_new): Create
    a new virtual virtual folder UNMATCHED, to store all messages that
    dont match other vfolders.
    (unmatched_folder_changed): When a vfolder issues a changed event,
    use its info to update the unmatched folder info.
    (unmatched_finalise): When a vfolder is finalised, remove any uids
    it has as if we had a removed event for it.

2001-02-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_finalise): Thaw the
    defaultfolder.
    (camel_filter_driver_set_default_folder): Thaw the defaultfolder
    we're about to replace, and freeze the new defaultfolder.

2001-02-15  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/vee/camel-vee-folder.c (camel_vee_folder_new): Emit
    the folder_created signal here.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Emit the folder_created signal.

    * providers/local/camel-local-store.c (delete_folder): On error,
    free the 'name' string so we don't leak. Also emit the
    folder_deleted signal.

    * providers/imap/camel-imap-store.c (subscribe_folder): Emit the
    folder_created signal.
    (unsubscribe_folder): Emit the folder_deleted signal.

    * camel-store.c (camel_store_class_init): Added folder_created and
    folder_deleted signal defs.

2001-02-15  Dan Winship  <danw@ximian.com>

    * camel-folder-thread.c (container_parent_child): Deal with
    out-of-order References headers so they don't cause messages to
    disappear in threaded view.

    * providers/imap/camel-imap-folder.c (fetch_medium): IMAP4
    (pre-rev1) doesn't allow BODY.PEEK[], so use RFC822.PEEK instead
    in that case.

2001-02-14  Christopher James Lahey  <clahey@ximian.com>

    * camel-mime-filter-charset.c (complete, filter),
    camel-mime-utils.c (rfc2047_decode_word, rfc2047_encode_word):
    Changed this code to match the glibc iconv signature.

2001-02-14  Dan Winship  <danw@ximian.com>

    * camel-store.c (camel_store_create_folder): New method to create
    a folder when you don't know its full name.

    * providers/imap/camel-imap-store.c (create_folder): Implement.
    (create_folder): Oops, and fix bug involving namespaces
    
2001-02-12  Not Zed  <NotZed@Ximian.com>

    * camel-mime-part.c (init_header_name_table): Add address headers
    to list that we dont fold when writing.  The are properly
    formatted as we build them.
    (write_to_stream): DOH, lookup the header name in the formatted
    hash table, not the value, that would never have worked.

    * camel-internet-address.c
    (camel_internet_address_encode_address): Changed to take a
    parameter saying how much we've printed so far.  We now fold the
    header as we format it.  We dont fold addresses, even if they are
    too long, we simply put them on another line by themselves: this
    should make the result more parsable by mailers that can't handle
    split up addresses (which are legal).
    (internet_encode): Fix for changes to above.

2001-02-12  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-local-provider.c: mbox, mh, and maildir
    camel-url's need absolute paths.

    * camel-provider.h (CAMEL_URL_PATH_IS_ABSOLUTE): New flaggy flag.

2001-02-08  Dan Winship  <danw@ximian.com>

    * camel-store.c: Rewrite a bunch. Replace the existing folder
    cache stuff with much simpler code that still handles all the
    existing cases. Now the folder hash table is always created by the
    base class, using hash and compare functions provided by the class
    implementation. (If they are set to NULL, CamelStore won't cache
    folders.) lookup_folder, cache_folder, and uncache_folder are no
    longer class methods, and get_name is gone completely.

    (camel_store_get_inbox): Renamed from
    camel_store_get_default_folder, since that wasn't being used, and
    this is what we actually need.
    (camel_store_get_root_folder): Removed, since it's not needed for
    anything given get_folder_info.

    * camel-remote-store.c:
    * providers/local/camel-local-store.c:
    * providers/local/camel-mbox-store.c:
    * providers/local/camel-mh-store.c:
    * providers/local/camel-maildir-store.c:
    * providers/nntp/camel-nntp-store.c:
    * providers/pop3/camel-pop3-store.c:
    * providers/vee/camel-vee-store.c: Minor updates for CamelStore
    changes

    * providers/imap/camel-imap-store.c (camel_imap_store_class_init):
    Update for CamelStore changes.
    (hash_folder_name, compare_folder_name): treat INBOX
    case-insensitively, otherwise use g_str_hash and g_str_equal.

    * camel-service.c (camel_service_construct): Remove
    camel_service_new and create camel_service_construct (as a class
    method) in its place.

    * camel-session.c (camel_session_get_service): Use
    camel_object_new and camel_service_construct to replace
    camel_service_new.

    * providers/local/camel-local-store.c (construct): Append a '/' to
    the URL path if it doesn't end with one

2001-01-31  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-tcp-stream-ssl.c: Oops, include the camel-tcp-stream-ssl
    header instead of the raw one.

2001-02-07  Not Zed  <NotZed@Ximian.com>

    * camel-operation.c (camel_operation_start): Changed to push the
    operation into a status stack.
    (camel_operation_progress): Changed to only accept % complete.
    (camel_operation_reset): Free status stack as well.

    * providers/pop3/camel-pop3-folder.c (pop3_get_message): Get the
    octect count from the return line, and pass it to
    get_additional_data().
    (pop3_refresh_info): Added status stuff.

    * providers/pop3/camel-pop3-store.c
    (camel_pop3_command_get_additional_data): Added a total bytes
    expected argument for progress reporting & fixed callers.
    (camel_pop3_command_get_additional_data): Added progress
    reporting.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
    (mbox_summary_sync_quick):
    (summary_rebuild): Added progress reporting stuff.

2001-02-07  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-search-private.c (CAMEL_SEARCH_COMPARE): Macro for making
    comparisons easy.
    (camel_ustrcasecmp): Use CAMEL_SEARCH_COMPARE and check for
    end-of-string before the utf-8 error check.
    (camel_ustrncasecmp): Same.
    (camel_search_header_match): Strip leading spaces before doing
    anything else. Also use vlen and mlen so as to not need to do 500
    strlen()'s.
    (camel_ustrcasecmp): Don't get_utf8() for the 2 strings in the
    comparison part of the loop because of short-circuit expression
    evaluation. (blame JPR if this is the wrong term!)
    (camel_ustrncasecmp): Same.

2001-02-06  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-search-private.c (utf8_get): Rewrote using unicode_get_utf8().
    (camel_ustrcasecmp): Use unicode_char_t
    (camel_ustrncasecmp): Same.

2001-02-06  Christopher James Lahey  <clahey@ximian.com>

    * camel-mime-filter-charset.c (complete, filter),
    camel-mime-utils.c (rfc2047_decode_word, rfc2047_encode_word):
    Made these pass char ** as the second parameter to iconv.

2001-02-06  Not Zed  <NotZed@Ximian.com>

    * camel-session.c: Removed all the camel_cancel stuff.

    * camel-stream-fs.c (stream_read): Change to use camel_operation.   
    (stream_write): "

    * camel-remote-store.c (socket_connect): Change to use
    camel_operation rather than camel_cancel stuff.
    Removed gal include, WTF is that doing there anyway?

    * Makefile.am (libcamel_la_SOURCES): 
    (libcamelinclude_HEADERS): Added camel-operation.[ch], stuff to
    handle notification and cancellation.

    * camel-search-private.c: Removed unwanted header.  It was never
    put in for a reason.  Stop fixing irrelevant warnings.
    
    (camel_ustrstrcase): Our own strstrcase impl for utf8 strings.
    (camel_ustrcasecmp): Ditto for strcasecmp.
    (camel_ustrncasecmp): And strncasecmp.
    (utf8_get): Simpler interface to utf8 string processing.
    (camel_search_header_match): Use the new things.

2001-02-05  Not Zed  <NotZed@Ximian.com>

    * camel-folder.c (get_summary): Removed some old variables/a small
    memleak.
    (free_summary): Removed old variables.

    * camel-mime-utils.c (header_raw_check_mailing_list): New utility
    function to get the mailing list (if any) that a set of headers
    came from.

2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

    * camel-stream-fs.c: Added a missing #include.

    * camel-search-private.c: Added a missing #include.

2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-remote-store.c (remote_query_auth_types): Oops. Change
    this too.

    * providers/smtp/camel-smtp-transport.c (query_auth_types): Updated.

    * providers/nntp/camel-nntp-store.c (nntp_store_query_auth_types):
    Updated.

    * providers/pop3/camel-pop3-store.c (query_auth_types): Updated.

    * providers/imap/camel-imap-store.c (query_auth_types): Updated.

    * camel-service.c (camel_service_query_auth_types): Now takes a
    boolean value to specify whether or not to connect when
    constructing a supported authtype list.

2001-02-05  Not Zed  <NotZed@Ximian.com>

    * camel-stream-filter.c (do_write): Revert jeff's earlier change,
    the change below is the more-correct fix.  All his was doing was
    ignoring the return code & looping actually :)

    * camel-stream-fs.c (stream_write): Since we are non-blocking on
    the outgoing fd, keep looping if writing out large blocks, so we
    can keep checking for cancel, etc.

2001-02-02  Not Zed  <NotZed@Ximian.com>

    * camel-folder-thread.c (camel_folder_thread_messages_new): When
    we drop a fake node, dont skip checking the next in the list.
    (camel_folder_thread_messages_new): Add an assertion check just to
    make sure we dont get any pseudo nodes, and spit a warning if we
    do.

2001-02-04  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-filter.c (do_write): Make do_write loop until the
    entire buffer is written.

2001-02-02  Not Zed  <NotZed@Ximian.com>

    * camel-stream-fs.c: Add missing header for cancel check stuff.

    * camel-session.c (camel_cancel_cancel): Fix a wrong cast.

    * camel-mime-part.c (init_header_name_table): Setup a new table
    header_formatted_table, that lists headers that we dont want to
    fold (they've already been folded).
    (write_to_stream): Check for already formatted headers, and dont
    try and fold them.  This is a fix for bug #1097.

2001-02-01  Not Zed  <NotZed@Ximian.com>

    * camel-mime-utils.c (header_fold): If we are folding, drop the
    space at the end of the line.

2001-01-30  Not Zed  <NotZed@Ximian.com>

    * camel-remote-store.c (timeout_cb): Remvoe the stream locking
    here.  I think this was leading to a deadlock when a keepalive is
    being sent, in imap.

2001-01-29  Not Zed  <NotZed@Ximian.com>

    * providers/imap/camel-imap-command.c
    (imap_command_strdup_vprintf): Include the terminating NUL in the
    calculated string length.  This hit memcheck.

2001-01-25  Not Zed  <NotZed@Ximian.com>

    * tests/folder/test3.c: Changed the subject search to handle case
    sensitive when it is mixed case.

    * Makefile.am (libcamel_la_SOURCES): Added camel-ssearch-private.c
    (noinst_HEADERS): Added camel-search-private.h

    * camel-folder-search.c (check_header): New function to do the
    work of the various header checks.
    (search_header_matches): 
    (search_header_starts_with): 
    (search_header_ends_with): 
    (search_header_contains): Use check_header to do the work.
    (build_match_regex): Removed.

    * camel-search-private.c (header_soundex):  New
    function to match words to phrases using soundex algorithm.

    * camel-filter-search.c (soundexcmp): Removed.
    (check_match): Moved to search-private.h

2001-01-24  Not Zed  <NotZed@Ximian.com>

    * camel-search-private.c (camel_search_build_match_regex): Added
    extra flags, so the same function can be used for
    start/end/whole/partial matches.
    (camel_search_header_match): Convenience function to check a
    single header against all sorts of different matches.

    * providers/imap/camel-imap-search.c (imap_body_contains): Fix for
    e_sexp api changes.

    * camel-folder-search.c: Fix for e_sexp api changes.
    (search_header_contains): Free args/quit on unknown header.
    (search_header_matches): "
    (search_header_starts_with): "
    (search_header_ends_with): "
    (match_message): Add an exception argument.
    (search_body_contains): Free args/quit on fatal error.
    (message_body_contains): Removed (moved to
    camel-search-private.c), fixed callers.

    * camel-filter-search.c: Fix for e_sexp api changes.
    (build_match_regex, message_body_contains): Moved into
    camel-filter-private.c  Fixed callers.
    (check_header): moved guts to camel-search-private, and
    changed to use regex's for everything.  Just calls that with the
    right args.
    (check_header): GEts the header, decodes it, and checks for
    failure, and whatnot.
    (check_match): Removed.
    (header_soundex): Changed significantly.  Now it soundexes each
    word in the header separately, and compares it to the first
    argument.

    * tests/folder/test9.c (main): Fix for api changes.
    (main): Added tests to see that invalid match and action
    rules are properly detected.

    * camel-filter-driver.c (camel_filter_driver_filter_mbox): Remove
    the 'finished message' bit.
    (camel_filter_driver_filter_message): Remove an accidentally
    checked in debug.
    (camel_filter_driver_filter_message): Fix for e-sexp api changes.

2001-01-23  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-wrapper.c: Add a lock around the
    delayed loading, so two threads won't try to do it at the same
    time.

2001-01-22  Dan Winship  <danw@ximian.com>

    * providers/vee/camel-vee-folder.c (camel_vee_folder_new): Set the
    CamelFolder::name to just the base part of the vfolder name (the
    non-query part)

2001-01-23  Not Zed  <NotZed@Ximian.com>

    * camel-filter-search.c (camel_filter_search_match): Perform error
    checking on parsing/execution.

    * camel-folder-search.c (camel_folder_search_execute_expression):
    Perform error handling on search expression.
    (CamelFolderSearchPrivate): Add a camelexception for error
    returns.
    (camel_folder_search_execute_expression): Setup exception pointer.
    (search_match_all): Quit on error.

    * providers/imap/camel-imap-summary.c (message_info_load): Removed
    some debug 'warnings', as they should now be displayed at the
    toplevel loader, and just made the code match similar code
    elsewhere.

    * providers/local/camel-mbox-summary.c (message_info_load): Error
    handling.
    (message_info_save): more error handling.

    * camel-folder-summary.c (message_info_load): Add error handling
    and sanity checking.
    (camel_folder_summary_load): Add error checks.
    (perform_content_info_load): Error + sanity checks.
    (content_info_load): error + sanity checks.

    * camel-filter-driver.c (close_folder): avoid /0 by updating after
    we've done the sync.
    (close_folders): Setup the first progress report to start it off.
    (camel_filter_driver_filter_message): Fix a fixme, check errors in
    e_sexp parsing, etc.

2001-01-22  Christopher James Lahey  <clahey@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
    Initialize the value of the variable exists here.

2001-01-22  Not Zed  <NotZed@Ximian.com>

    * .cvsignore */*/.cvsignore: Added profiling temp
    files.

    * camel-folder-thread.c (camel_folder_thread_messages_new): When
    removing phantom nodes, check for the end node too.

    * camel-filter-driver.[ch]: Changed status vars to be
    CAMEL_FILTER_STATUS_ etc.

2001-01-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (header_param_list_format_append): Make the
    output a little prettier. Okay, so I'm anal...

2001-01-21  Not Zed  <NotZed@Ximian.com>

    * camel-filter-driver.h: Added an exception to
    CamelFilterGetFolderFunc.

    * camel-filter-driver.c (camel_filter_driver_filter_message):
    Remove source parameter, as it is determined elsewhere now.
    (camel_filter_driver_filter_folder): Same here.
    (camel_filter_driver_filter_mbox): And here.
    (do_move): If we cannot open a folder, quit, rather than ignoring
    it.
    (do_copy): Here too.
    (open_folder): Pass an exception into get_folder callback.
    (camel_filter_driver_filter_folder): Report that we're syncing,
    when we are.
    (camel_filter_driver_filter_mbox): And here too.
    (close_folder): And here.

2001-01-19  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (camel_filter_driver_filter_message): Set
    the deleted bit *before* copying to the default folder, this way
    if they are importing mail and have a rule to delete it, it
    doesn't get copied to the default folder un-deleted.

2001-01-19  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-store.c
    (get_subscribed_folders_by_hand): If LISTing a subscribed folder
    doesn't return a LIST response, just ignore that folder. Yay
    RFC2060.
    (subscribe_folder): add a missing UNLOCK

2001-01-19  Kjartan Maraas  <kmaraas@gnome.org>

    * providers/smtp/camel-smtp-provider.c: Mark strings for translation.
    
2001-01-19  Not Zed  <NotZed@Ximian.com>

    * camel-filter-driver.c (report_status): Add a percentage complete
    indicator to the status thing.
    (camel_filter_driver_filter_mbox): Add percentage complete to
    reporting.  
    (camel_filter_driver_filter_folder): Same.

2001-01-18  Dan Winship  <danw@ximian.com>

    * camel-store.c (camel_folder_info_build): More tweaking... skip
    separator characters after the namespace character. (Gets rid of
    the shell folder registration warning some people have had with
    IMAP)

    * providers/imap/camel-imap-store.c (imap_connect): I'm sure there
    was some clever reason I was storing the flags of the folder in
    the hash table rather than just "1", but I don't remember what it
    was now. Anyway, since we only ever test NULL/non-NULL, store 1,
    since flags is sometimes 0.

    * providers/imap/camel-imap-folder.c (imap_update_summary): Oops.
    Somewhere in one of the reorgs, the code to add new messages to
    the CamelFolderChangeInfo structure got removed. Fix that.

2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-summary.c (message_info_load): Add
    some g_warnings() to help debug later if I ever get the segfaults
    I was getting earlier. Can't seem to reproduce them after my
    previous "fix".

    * camel-folder-summary.c (camel_folder_summary_load): Undid my
    change here, NotZed said it was wrong and that if it gets a NULL
    mi then it should abort and not continue.

2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (camel_folder_summary_load): Make sure
    that the message-info is non-null before we go accessing inner
    parts of it and/or adding it to the summary array. I may not have
    handled the error correctly, but it does seem to work
    correctly. If NotZed could double-check this it'd be great.

    * providers/smtp/camel-smtp-transport.c (get_smtp_error_string):
    New smtp error-code to string mapping function.
    (smtp_connect): Use the new error->string function for reporting
    useful errors.
    (smtp_helo): Same. Also use a case-insensitive strstr for 8BITMIEM
    as it seems Exchange sends back lowercase for that one single SMTP
    extension. Everything else is uppercase. I'm seeing a lack of love
    for that extension by Microsoft dudes...
    (smtp_mail): Use get_smtp_error_string.
    (smtp_rcpt): Same.
    (smtp_data): Same.
    (smtp_quit): Same.
    (smtp_rset): Same.

2001-01-16  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-folder-summary.c (camel_folder_summary_array): Add an int
    i so this code will compile. Should I be worried about how well
    this code will work? ;-)

2001-01-17  Not Zed  <NotZed@Ximian.com>

    * camel-folder.c (free_summary): Call
    camel_folder_summary_array_free() to do the work.
    (get_summary): Use camel_folder_summary_array() to get the array
    atomically.  These fixes allow folder/test8 to work again, and fix
    a sort of race where the summary size can change while we were
    making a copy of it.

    * camel-folder-summary.c (camel_folder_summary_array): Get the
    summary array atomically, so it can't contain empty records.
    (camel_folder_summary_array_free): And free it.

    * tests/lib/camel-test.c (die): If we are verbose & in threads,
    then goto sleep so we can debug.

    * tests/folder/test8.c (worker): Add a missing pull() for
    comnparing content.

    * camel-filter-search.c: Fix the symbol table, so match-all is an
    immediate function, as it should be.

    * tests/folder/test9.c (main): New test, tests some filtering
    things.

    * tests/message/test3.c (main): Dont use a boundary string with
    spaces in it.  Folding can corrupt it.  Maybe the folding isn't
    working entirely right, but anyway.

    * camel-session.c: Debug out the debug.

    * camel-filter-driver.c (camel_filter_driver_filter_folder): Plug
    a messageinfo leak.

2001-01-16  Dan Winship  <danw@ximian.com>

    Delayed loading of IMAP message parts.

    * camel-types.h: typedef CamelMessageInfo and
    CamelMessageContentInfo here

    * camel-folder-summary.h: Add a "size" field to
    CamelMessageContentInfo.

    * camel-folder-summary.c (camel_folder_summary_content_info_new,
    camel_folder_summary_content_info_free): Renamed and made
    non-static for providers that construct their own content info.
    (content_info_load, content_info_save): load/save size

    * camel-data-wrapper.c (camel_data_wrapper_is_offline): New
    function to return if a data wrapper's contents are "offline". (So
    that, for example, we don't make thumbnails of images that haven't
    been loaded off the IMAP server yet.) Defaults to FALSE.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
    Fix a bug in re-selecting a folder when messages have been
    expunged from it by another client in the meantime.
    (imap_get_message): Rewrite. If the message is larger than a
    certain size, just create a skeleton message containing
    CamelImapWrappers that will read parts as needed. This way, large
    attachments only need to be downloaded if the user looks at them,
    and multipart/alternative alternatives that aren't used will never
    be downloaded at all.
    (imap_update_summary): Rewrite this a bunch too to make the
    parsing more robust.

    * providers/imap/camel-imap-summary.c
    (CAMEL_IMAP_SUMMARY_VERSION): bump.
    (camel_imap_summary_new): Set build_content to TRUE.
    (content_info_load, content_info_save): Only save/load the content
    for messages that have it. (The content info gets created as a
    side effect of imap_get_message.)

    * providers/imap/camel-imap-utils.c (imap_parse_body): New routine
    (and helpers) to parse an IMAP 'body' FETCH response and fill in a
    CamelMessageContentInfo from it.

    * providers/imap/Makefile.am (libcamelimap_la_SOURCES,
    libcamelimap_la_HEADERS): add camel-imap-wrapper.

2001-01-16  Dan Winship  <danw@ximian.com>

    * camel-tcp-stream-raw.c (stream_getsockopt, stream_setsockopt):
    * camel-stream-fs.c (stream_read, stream_write): 
    * camel-remote-store.c (socket_connect): fcntl(fd, F_GETFL)
    returns the flags as the return value, not via a passed in
    pointer. And F_SETFL looks for an int, not a long, and you have to
    pass it what it's expecting because it's a va_arg parameter. (Yes,
    the man page lies on Linux. But check the UNIX98 spec or the glibc
    source.) Also, fix another bug in socket_connect: if we manage to
    connect right away, unset O_NONBLOCK so it doesn't mess us up
    later.

    Fixes a bunch of problems with non-blocking I/O being done in the
    allegedly-blocking case and then returning EWOULDBLOCK.

2001-01-16  Chris Toshok  <toshok@ximian.com>

    * providers/Makefile.am (NNTP_DIR): set to nntp if ENABLE_NNTP
    (SUBDIRS): use $(NNTP_DIR)

2001-01-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/smtp/camel-smtp-transport.c (smtp_rcpt): Don't check
    errno as it's not being set. Fixes bug #1150.

2001-01-16  Jeffrey Stedfast  <fejj@ximian.com>

    Ugh, this design is ugly like my butt.

    * camel-session.c (camel_session_query_cert_authenticator): New
    function which will be useful when we integrate SSL.

    * camel-tcp-stream-ssl.c (ssl_auth_cert): Callback to authenticate
    a certificate.
    (ssl_bad_cert): Callback that gets the reason the certificate is
    bad and then calls camel's cert-authenticator callback to notify
    the user and to allow the user to override the check.
    (stream_connect): Set the URL we expect to connect with and setup
    the auth_cert and bad_cert callbacks.
    (camel_tcp_stream_ssl_new): Now takes a CamelSession and a
    expected_host argument that it will use for certificate
    authentication.
    (camel_tcp_stream_ssl_finalize): Unref the session and free the
    expected_host.

2001-01-16  Not Zed  <NotZed@Ximian.com>

    * camel-filter-search.c (header_exists): Changed to support
    multiple args (or'd together).
    (header_contains): Cleaned up to match the search code.  Why did
    fejj change it? I'll never know.
    (header_matches): 
    (header_starts_with): 
    (header_ends_with): Big cleanup of fejj's "i'm the cut & paste
    king" code.  Also properly handle or'ing of additional args to
    match what the folder-search code should do.
    (check_match): New function which does the annoying matching
    stuff (for header matches).
    (check_header): Similarly, handles or'ing of the matches together.
    (header_contains):
    (header_matches): 
    (header_starts_with): 
    (header_ends_with): Call check_header to do the actual work.
    (header_soundex): And here too.
    (match_all): Yeah like match-all isn't passed expression results,
    its passed expression terms.  Fix this so match-all works like it
    should, by executing the contained expression.
    (message_body_contains): Copied directly from
    camel-folder-search.c, a more robust/faster/simpler body search
    code.
    (mime_part_matches): Removed entirely.
    (handle_multipart): Removed entirely.
    (build_match_regex): Copied from camel-folder-search.  Builds a
    set of simple strings into a regex pattern that matches any of
    them (for faster & simpler matching).  Expanded to accept regex
    patterns itself, so it can merge them together.
    (body_contains): Use build match/match message to match using a
    built regex.
    (body_regex): Likewise, this time we tell it we're building a
    regex though.
    (header_full_regex): Use build_match_regex to take the drudgery
    out of it, and expand it to handle multiple regex's at once.
    (get_full_header): slightly cleaner (well i dunno, the sprintf
    stuff just got to me).
    (header_regex): Cleaned up to use build_match_Regex too, and to
    properly check types.
    (filter_message_search): Just allocate 'fms' on the stack.

    * camel-filter-driver.c (camel_filter_driver_finalise): 
    (camel_filter_driver_init): 
    (camel_filter_driver_class_init): 
    (camel_filter_driver_get_type): Changed from gtk object to camel
    object.
    (camel_filter_driver_add_rule): New function to add a rule to be
    processed in sexp form.
    (camel_filter_driver_init): Init the rules list.
    (camel_filter_driver_finalise): Clear the rules/rules list.
    (camel_filter_driver_filter_message): Scan rules list directly
    rather than creating on the fly.

    * Makefile.am (libcamelinclude_HEADERS): Added camel-filter-driver.h
    (libcamel_la_SOURCES): Added camel-filter-driver.c, code taken
    from filter-driver, which can drive, uh, filters based on sexp's.
    (libcamelinclude_HEADERS): 
    (libcamel_la_SOURCES): Added camel-filter-search.[ch]

    * camel-folder-summary.c (camel_folder_summary_decode_string):
    Chganged len back to be unsigned.  And do a simple range check on
    the string value to try and detect corrupted summary files.

    * providers/imap/camel-imap-command.c (imap_read_untagged): Handle
    cancelled stream reads with an appropriate exception.

    * providers/imap/camel-imap-private.h: Fix the include-once
    macro.  Doh, confliced with camel-private.h.

    * providers/imap/camel-imap-store.c (imap_store_refresh_folders):
    A copy of camel_remote_store_refresh_folders.  We avoid locking
    each folder when we call it though.  This should be removed when i
    can work out how to remove the folder lock from this function
    easily.

    * camel-stream-fs.c (stream_write): Fix n' argument of select.
    (stream_read): Likewise.

    * camel-remote-store.c (socket_connect): Bump the connect timeout
    upto 4 minutes.
    (socket_connect): Oops, fix the 'n' argument of select.

    * camel-session.c (camel_cancel_cancel): If we are given no
    cancellation node, then do it for all active ones.

2001-01-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-fs.c (stream_close): If the close() is successful,
    set the fd to -1.

    * camel-tcp-stream-raw.c: Removed the disconnect() method.
    (stream_close): If the close() is successful, set the sockfd to
    -1.

    * camel-tcp-stream-ssl.c: Removed the disconnect() method.
    (stream_close): If the close() is successful, set the sockfd to
    NULL.

    * camel-tcp-stream.c (camel_tcp_stream_disconnect): Removed,
    easier to just use the close() method as it did the same thing
    anyway.

2001-01-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-raw.c (stream_getsockopt): Updated to be able
    to get the CAMEL_SOCKOPT_NONBLOCKING socket opt.
    (stream_setsockopt): Updated to be able to set the
    CAMEL_SOCKOPT_NONBLOCKING socket opt.

2001-01-15  Peter Williams  <peterw@ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Lock
    around the imap_rescan, which needs it.

2001-01-15  Not Zed  <NotZed@Ximian.com>

    * camel-remote-store.c (socket_connect): A cancellable connection
    routine.
    (remote_send_string): Return cancelled exception if we were.
    (remote_send_stream): "
    (remote_recv_line): "

    * camel-stream-fs.c (stream_read): First cut at cancellation
    stuff.  Its looking a bit ugly.

2001-01-15  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (stream_connect): Uses an SSL socket now
    although there's still a few things missing (like certificate
    handling and such).

    * camel.c (camel_ssl_init): A replacement function for
    camel_init() that also initializes SSL.

2001-01-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream-ssl.c (stream_getsockopt): Implemented.
    (stream_setsockopt): Implemented.

    * camel-tcp-stream-raw.c (stream_getsockopt): Implemented.
    (stream_setsockopt): Implemented.

    * camel-tcp-stream.c (camel_tcp_stream_getsockopt): New method.
    (camel_tcp_stream_setsockopt): Another new method. I think you get
    the idea of what these are for so I won't explain them.

2001-01-14  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-tcp-stream-ssl.[c,h]: New CamelTcpStream class that
    implements nspr sockets and eventually will use nss for
    SSL/TLS. Currently doesn't do any SSL/TLS but it should still
    work. It's functionally equivalent to CamelTcpStreamRaw at the
    moment only it uses nspr i/o.

    * camel-tcp-stream-raw.[c,h]: New CamelTcpStream class that
    implements native sockets. Should be usable but may have some bugs
    yet.

2001-01-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-tcp-stream.[c,h]: New abstract class for TCP streams. The
    next step is to write child classes (CamelTcpStreamBSD and
    CamelTcpStreamSSL). The BSD stream will use normal BSD sockets
    while SSL will use Mozilla's NSPR and NSS libraries to do Secure
    Socket Layers which wille ventually replace CamelStreamSSL which I
    just commit'd. Oh well.

2001-01-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-stream-ssl.[c,h]: New stream for handling SSL/TLS
    connections.

2001-01-12  Not Zed  <NotZed@Ximian.com>

    * camel-folder-thread.c (camel_folder_thread_messages_new):
    Perform a final pass, removing any pseudo nodes we added earlier.
    Quick patch to test the idea.
    (camel_folder_thread_messages_new): Added casts to rmeove some
    warnings for the analites out there.

2001-01-11  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
    Fix a bug in previous commit: don't check for deleted messages if
    there are no known messages in the folder (because it would end up
    sending "FETCH 0 ...").
    (imap_copy_message_to): Fix this up: sync flags to the server
    before copying so that they end up correct in the remote folder.
    And poke the destination folder after doing the copy so it notices
    the new message right away.
    (imap_move_message_to): Call imap_copy_message_to for most of the
    work rather than duplicating the code (since it's much more
    complicated now).

2001-01-11  Dan Winship  <danw@ximian.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
    New function to check for added/deleted messages when re-selecting
    a folder.
    (imap_refresh_info, imap_rescan, imap_update_summary): Various
    locking tweaks that turn out to be irrelevant since command_lock
    is recursive, but whatever.

    * providers/imap/camel-imap-command.c (camel_imap_command): When
    selecting a new folder, call camel_imap_folder_selected on it.

    * camel-folder.c (camel_folder_copy_message_to): Fix a locking
    problem. (One branch of an if statement was returning with the
    lock still locked.) Also remove the deprecation comments, to match
    move_message_to.

2001-01-10  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/local/camel-local-provider.c: Changed the descriptions
    for mh, mbox, and maildir to be more "user-friendly".

2001-01-10  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-types.h: New header to prevent
    recursive #include problems

    * providers/imap/*.h: Replace some #includes with #include
    "camel-imap-types.h", remove typedefs that were moved to
    camel-imap-types.h

    * providers/imap/*.c: Add #includes to make up for #includes
    removed from .h files

    * providers/imap/Makefile.am (libcamelimapinclude_HEADERS): Add
    camel-imap-types.h

2001-01-10  Dan Winship  <danw@helixcode.com>

    * camel-store.c (camel_store_sync): New class function, parallel
    to camel_folder_sync. (The default implementation just calls
    camel_folder_sync on each cached folder.)

    * providers/imap/camel-imap-store.c (get_folder_info): Call
    camel_store_sync before doing anything else so that the IMAP
    server and Camel are working from the same data. Don't ask the
    server for the unread message count of the current folder, since
    UW will return often-incorrect cached data, and we can calculate
    it without talking to the server anyway.

2001-01-09  Dan Winship  <danw@helixcode.com>

    Mostly IMAP changes. Use the NAMESPACE extension (where
    available). Deal with servers that don't return LIST flags in
    response to LSUB (like UW) to get rid of the "not a selectable
    folder" error messages in the UI. Take advantage of the \Marked
    and \Unmarked flags to try to speed up the folder scan by not
    doing STATUS on unmarked folders. Some further tweaks on the shape
    of the resulting folder tree in various situations...

    * camel-store.h: Remove the (read) message_count, since nothing
    uses it, and we can speed up IMAP a bit this way.

    * camel-store.c (camel_folder_info_build): Redo this a bit to make
    it more useful for IMAP since that's the only thing that uses it.

    * camel-remote-store.c (camel_remote_store_connected): Public
    function to check if the store is connected, and try to connect it
    if it's not.
    (remote_send_string, remote_send_stream, remote_recv_line): Use
    that.

    * providers/imap/camel-imap-store.c (camel_imap_store_finalize):
    fix up for changes.
    (camel_imap_store_init): Initialize subscribed_folders to NULL
    rather than an empty hash table.
    (imap_connect): Get the list of subscribed folders here. If the
    server doesn't claim that any of them are either Marked or
    Unmarked, then assume that it doesn't do that for LSUB and
    remember that for later. If the server supports the NAMESPACE
    extension and the user didn't specify a namespace, use the
    server-provided one.
    (imap_disconnect): Free the list of subscribed folders, and the
    namespace.
    (get_folder): check camel_remote_store_connected
    (get_folder_info): check camel_remote_store_connected. Add a bunch
    of new cleverness. If we learned that the server doesn't do LSUB
    usefully, do a bunch of LISTs by hand. Then, if we're getting
    unread counts, only do it for folders that weren't listed as
    Unmarked. Also, deal with namespaces that end with the separator
    character, and update for changes to camel_folder_info_build.
    (folder_subscribed): Add a g_return_val_if_fail.
    (subscribe_folder, unsubscribe_folder): check
    camel_remote_store_connected.

    * providers/nntp/camel-nntp-store.c (build_folder_info,
    build_folder_info_from_grouplist, nntp_store_get_folder_info):
    Don't fill in message_count since it doesn't exist any more.

2001-01-09  Dan Winship  <danw@helixcode.com>

    Kill off a long-hated Camel kludge: "empty" URLs and
    query_auth_types_generic.

    * camel-url.c: Remove "empty" from CamelURL.
    (camel_url_new): No longer set it.
    (camel_url_to_string): Treat "" as equivalent to NULL for
    authmech. (Unrelated change, but it simplifies some stuff with the
    new config dialog.)

    * camel-service.c (camel_service_new): Remove url->empty check: if
    the URL isn't valid, we don't create the service.
    (camel_service_query_auth_types): No longer need to switch between
    generic and connected variants.

    * providers/smtp/camel-smtp-transport.c (query_auth_types): 
    * providers/pop3/camel-pop3-store.c (query_auth_types): 
    * providers/nntp/camel-nntp-store.c (nntp_store_query_auth_types): 
    * providers/imap/camel-imap-store.c (query_auth_types): 
    * camel-remote-store.c (remote_query_auth_types): Remove generic
    version, rename connected version.

2001-01-06  Not Zed  <NotZed@HelixCode.com>

    * providers/vee/camel-vee-folder.c (vee_folder_build_folder): Dont
    try and unref a messageinfo that wasn't there, and use the right
    free function too.  Modified patch from Iain.
    (vee_move_message_to): New method, call the real folders'
    move_message_to method.

2001-01-04  JP Rosevear  <jpr@helixcode.com>

    * tests/lib/Makefile.am: fix includes for compilation

    * tests/message/Makefile.am: Build test3 again

    * tests/message/test2.c: Kill warnings with header includes

    * tests/message/test3.c: ditto

    * tests/lib/streams.c: ditto

    * tests/lib/camel-test.c: ditto

    * tests/lib/messages.c: ditto

    * tests/lib/folders.c: ditto

2001-01-04  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_rescan): Fix two
    problems in figuring out server-expunged messages.

2001-01-04  Not Zed  <NotZed@HelixCode.com>

    * camel-folder.c (thaw): If we have a lot of messages changed,
    promote it to a folder changed event.

2000-01-03  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder-search.c (search_header_matches): Implemented.
    (search_header_exists): Implemented.
    (search_header_starts_with): Implemented.
    (search_header_ends_with): Implemented.

2001-01-03  Christopher James Lahey  <clahey@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new):
    Initialize the exists variable so that we don't do random things
    if the imap server misbehaves.

2000-12-29  Not Zed  <NotZed@HelixCode.com>

    * camel-folder.c (camel_folder_move_message_to): REmove warning,
    this isn't really deprecated, sigh.

    * camel-mime-utils.c (header_fold): Comment out some debug.

2001-01-02  Christopher James Lahey  <clahey@helixcode.com>

    * providers/maildir/, providers/mbox/, providers/mh/: Removed
    these directories since they're unused.

2001-01-02  Dan Winship  <danw@helixcode.com>

    IMAP randomness.

    * providers/imap/camel-imap-stream.[ch]: Remove. To be replaced.

    * providers/imap/Makefile.am (libcamelimapinclude_HEADERS): Remove
    camel-imap-stream.h

    * providers/imap/camel-imap-utils.c (imap_parse_flag_list): Take a
    char ** instead of char *, to return the position at the end of
    parsing like the string parsing functions.
    (imap_parse_string_generic): New function to parse a string,
    nstring, or astring.
    (imap_parse_nstring, imap_parse_astring): Now macros
    (imap_parse_string): Added

    * providers/imap/camel-imap-folder.h: Remove the "exists" field
    from CamelImapFolder.

    * providers/imap/camel-imap-folder.c: Remove unused include of
    camel-imap-stream.h.
    (camel_imap_folder_init): Remove no-longer-relevant summary
    initialization.
    (camel_imap_folder_new): Update for imap_parse_flag_list change,
    exists removal, and imap_rescan.
    (imap_rescan): New function that does most of the work of the old
    imap_refresh_info, but taking "exists" as an argument instead of
    getting it from the folder. Also calls camel_imap_folder_changed
    to do the summary updating and signalling, rather than duplicating
    that code.
    (imap_refresh_info): Just call imap_rescan (using the size of the
    folder summary as "exists").
    (imap_update_summary): Update for imap_parse_flag_list change
    (camel_imap_folder_changed): Update for "exists" change.

2001-01-02  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_content_type_simple): New function to
    return just foo/bar with no parameters.

    * camel-data-wrapper.c (get_mime_type): Use
    header_content_type_simple rather than header_content_type_format.

2000-12-28  Dan Winship  <danw@helixcode.com>

    * gmime-content-field.[ch]: Remove this. It was only a thin
    wrapper around struct _header_content_type anyway, and didn't
    match the naming scheme of anything else.

    * Makefile.am: Remove gmime-content-field.[ch]

    * camel.h: Remove gmime-content-field.h

    * camel-types.h: Add CamelContentType as a typedef for struct
    _header_content_type (especially for use outside of camel).

    * camel-multipart.c: 
    * camel-mime-part.c: 
    * camel-mime-message.c: 
    * camel-folder-summary.c:
    * camel-folder-search.c: 
    * camel-data-wrapper.[ch]: Use CamelContentType and
    header_content_type_* functions rather than the GMime stuff. 

    * camel-mime-part-utils.c: 
    * camel-medium.c: Remove unused gmime-content-field.h include.

2000-12-27  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (connect_to_server): Fix the
    APOP check to not crash on servers that don't return any
    information on the +OK greeting line.

2000-12-24  Not Zed  <NotZed@HelixCode.com>

    * providers/imap/camel-imap-search.c (imap_body_contains): Lock
    the command channel while searching.
    (imap_body_contains): If performing a whole uid search, then add
    references to our own summary items, dont look it up in the
    folder.  This way they can't vanish unexpectedly.

    * providers/imap/camel-imap-folder.h (CamelImapFolder): Added a
    private field.
    (CamelImapFolder): Removed summary again from here.

    * providers/imap/camel-imap-private.h: Added lock for imap
    searches.

    * Merge from camel-mt-branch.
    
    * providers/imap/camel-imap-folder.c (imap_update_summary): Merge
    fix, use the folder->summary.
    (imap_get_message_flags, imap_set_message_flags,
    imap_get_message_user_flag, imap_set_message_user_flag): Removed
    again.
    (camel_imap_folder_init): Setup private data/lock.
    (imap_finalize): Free private data/search lock.
    (imap_search_free): Lock the search_lock.
    (imap_search_by_expression): Lock the search lock when using the
    search object.  Also copy/ref hte summary, rather than getting it
    directly.
    (imap_refresh_info): Free any info lookups.  Use folder->summary
    not imap_folder->summary.  And lock around commands.
    (camel_imap_folder_changed): Use folder->summary again.
    (camel_imap_folder_changed): Make sure we unref the summary lookup.

2000-12-22  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_info): When
    getting the top-level folder list, include INBOX even if it's not
    subscribed. Don't show subscribed folders outside of the given
    namespace. Do a better job of pruning the namespace from the
    returned folder tree.

2000-12-21  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-search.c: New CamelFolderSearch
    subclass that just reimplements body_contains (using the IMAP
    SEARCH command). All other kinds of searching are done against the
    local summary.

    * providers/imap/camel-imap-folder.c (imap_search_by_expression):
    Use a CamelImapSearch to do searching.

    * providers/imap/camel-imap-utils.c (imap_translate_sexp, etc): No
    longer needed.

    * camel-folder-search.h: Add missing CAMEL_FOLDER_SEARCH_TYPE
    #define

2000-12-21  Dan Winship  <danw@helixcode.com>

    * camel-stream-buffer.c (camel_stream_buffer_gets): Update the
    doc comment: since it always NUL-terminates the buffer, it reads
    at most @max-1 bytes, not @max.

    * camel-remote-store.c (remote_recv_line): Fix the "did
    camel_stream_buffer_gets fill the whole buffer" check. Fixes a bug
    when reading lines longer than 1024 characters (eg, IMAP SEARCH
    responses in very large folders).

2000-12-19  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_refresh_info): Oops.
    Don't do "FETCH 1:0" when the folder is empty.
    (imap_protocol_get_summary_specifier): Request RFC822.SIZE too.
    (imap_update_summary): Parse RFC822.SIZE and add it to the
    summary.

2000-12-18  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-summary.c: Add "guint32 server_flags"
    to CamelImapMessageInfo to keep track of the last known message
    flag state on the server.
    (message_info_save, message_info_load): Save/load the
    server_flags.

    * providers/imap/camel-imap-folder.c: Make this use
    CamelFolderChangeInfo and emit folder_changed notifications as it
    gets them rather than only on refresh_info.
    (imap_refresh_info): Notice flags that get cleared on the server
    as well as flags that get set.
    (imap_update_summary): Remove a comment that never actually
    applied to the committed code.

2000-12-15  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-command.c (camel_imap_command): Change
    the semantics of fmt: Now %S (capital S) means an IMAP "string",
    (which can be sent as either a quoted string or a literal). If
    the server supports LITERAL+, these will be sent as extended
    literals (which don't require any special escaping). Otherwise
    they'll be sent as quoted strings (and it now properly deals with
    " or \ in the string).
    (imap_command_strdup_vprintf): Utility routine that does the real
    work for the functionality mentioned above.

    * providers/imap/camel-imap-utils.c (imap_quote_string): Turns a
    string into a proper IMAP "quoted string".

    * providers/imap/camel-imap-store.c: 
    * providers/imap/camel-imap-folder.c: Use %S instead of "%s" where
    appropriate.

2000-12-22  Not Zed  <NotZed@HelixCode.com>

    * camel-folder-summary.c (GLOBAL_INFO_UNLOCK): Doh, cut and paste
    victim again, call unlock instead of lock!
    (summary_assign_uid): Unlock around trying to get a new uid, if we
    have a clash.

2000-12-21  Not Zed  <NotZed@HelixCode.com>

    * tests/folder/Makefile.am (TESTS): reenabled the tests here.

    * providers/nntp/camel-nntp-newsrc.c (CamelNNTPNewsrc): Add a
    lock.  Made completely mt-safe.  Sigh, this is all so i can
    support snooping of the set_flags stuff inside camel-nntp-folder,
    since i've removed the global folder lock from all of the other
    folder summary operations.
    (camel_nntp_newsrc_read_for_server): Setup lock.
    (camel_nntp_newsrc_get_highest_article_read): Lock internal access.
    (camel_nntp_newsrc_get_num_articles_read): 
    (camel_nntp_newsrc_mark_article_read): 
    (camel_nntp_newsrc_mark_range_read): 
    (camel_nntp_newsrc_article_is_read): 
    (camel_nntp_newsrc_group_is_subscribed): 
    (camel_nntp_newsrc_unsubscribe_group): 
    (camel_nntp_newsrc_subscribe_group): 
    (camel_nntp_newsrc_get_subscribed_group_names): 
    (camel_nntp_newsrc_get_all_group_names): "
    (camel_nntp_newsrc_write_to_file): Lock internal accesses.
    (camel_nntp_newsrc_write): Lock around diry stuff.

    * providers/local/camel-maildir-summary.c (maildir_summary_check):
    Lock around our internal poking of the summary hashtable/array.
    (maildir_summary_sync): And the same here too.

    * camel-folder-summary.c: Moved the summaryprivate data into
    camel-private.h.  Only needed for the locks really.
    (camel_folder_summary_init): Setup locks.
    (camel_folder_summary_set_filename): Lock.
    (camel_folder_summary_index): lock
    (camel_folder_summary_uid): Lock
    (camel_folder_summary_next_uid): "
    (camel_folder_summary_set_uid): "
    (camel_folder_summary_load): Lock around whole load.  Hrm,
    probably not required.
    (camel_folder_summary_save): Lock around whole save, this is
    reqwuired, unless we ref/copy the whole list first, and i couldn't
    be bothreed.
    (camel_folder_summary_add): lock
    (summary_assign_uid): Lock around internal accesses.
    (camel_folder_summary_info_new_from_parser): Lock around filtr stuff.
    (camel_folder_summary_info_ref): Add locking.  Could probably use
    its own lock?
    (camel_folder_summary_touch): Add locking, likewise.
    (camel_folder_summary_clear): Lock.  If the preiovus two are
    changed, then so this will need mroe locking.
    (camel_folder_summary_info_free): Lock around refcounting.
    (camel_folder_summary_remove): Locking.
    (camel_folder_summary_remove_uid): Lock ref, unlock, unref.  Also
    fixed a bug that would have made this never work, freeing the key,
    which isn't allocated.
    (camel_folder_summary_remove_index): lock, ref, unlock unref also.
    (camel_message_info_ref): Lock using a separate global lock, since
    we have no context here.
    (camel_message_info_free): Here too.
    (content_info_alloc): Use an alocation lock here.  avoids races
    with setting up content_info_chunks, etc.
    (camel_folder_summary_info_new): And here too.
    (camel_folder_summary_load): Changed to use a differnet lock for
    loading/saving.
    (camel_folder_summary_init): Doh, i do need a reflock afterall,
    set one up.
    (camel_folder_summary_finalize): Free it.
    (camel_folder_summary_index): Add a reflock.
    (camel_folder_summary_uid): And here too.
    (camel_folder_summary_info_free): Use reflock instead of
    summary_lock.
    (camel_folder_summary_info_ref): Likewise.
    (camel_folder_summary_remove_uid): Add reflocking.
    (camel_folder_summary_remove_index): And here too.

    * providers/vee/camel-vee-folder.c (camel_vee_folder_new): Setup a
    summary object.
    (vee_folder_build): Build each item into the real summary object.
    (vee_folder_add, vee_folder_add_uid, vee_folder_add_change): New
    functions to add a single record to the vfolder summary.
    (vee_folder_build_folder): Use a real summary.
    (vee_get_uids): Removed, use default impl.
    (vee_free_message_info): "
    (vee_get_message_info): "
    (vee_get_summary): "
    (vee_get_unread_message_count): "
    (vee_get_message_count): "
    (vee_sync): Make vee-folder-sync sync all subordinate folders.
    Well i dont think this is right, but enough peopl ehave aksed for
    it.
    (vee_expunge): Same for expunge.
    (vee_set_message_flags): Call parent class, then mirror flags to
    subfolder.
    (vee_get_message_user_flag): Removed, we just use the default
    impl, and our flags should always match.
    (vee_set_message_user_flag): Snoop the set and set on subfolder.
    (vee_get_message_flags): Removed, jsut use parent impl, assume our
    copy matches the real ones.
    (get_real_message): Removed.  We sort ofneed to keep the
    summaryitem refed while we use it, so this doesn't make as much
    sense as it did once.
    (camel_vee_folder_finalise): Unhook listening events as we unref
    folders.
    (camel_vee_folder_new): Set the summary messageinfo data size
    properly.
    (vfolder_remove_match): Fixed for summary change.
    (folder_changed): ditto.  Also stopped changed items from being
    re-searched and possibly removed.  Might have to resort to the old
    whole-search idea again.
    (message_changed): Similarly.  Might be easier just not to bother
    with a whole search.

    * providers/vee/camel-vee-folder.h: Removes summary
    hashtable/array, and use a real summary object.  Sigh, more work.

    * providers/nntp/camel-nntp-folder.c (nntp_folder_sync): Move
    summary to folder object.
    (nntp_folder_get_message_count): Removed, use default impl.
    (nntp_folder_set_message_flags): Call parent impl to do the work,
    but snoop for newsrc.
    (nntp_folder_get_uids): Removed, use default impl.
    (nntp_folder_get_summary): "
    (nntp_folder_get_message_info): "
    (nntp_folder_free_message_info): "
    (camel_nntp_folder_new): moved summary to folder class
    
    * providers/imap/camel-imap-folder.c (camel_imap_folder_init):
    Move summary to folder object.
    (camel_imap_folder_new): "
    (imap_finalize): No longer unref the summary (or infact, do
    anything else either).
    (imap_refresh_info): move summary to folder object.
    (imap_sync): "
    (imap_get_message_count): Removed, use default impl.
    (imap_get_unread_message_count): "
    (imap_get_uids): "
    (imap_get_summary): "
    (imap_free_summary): "
    (imap_get_message_info): "
    (imap_free_message_info): "
    (imap_get_message_flags): "
    (imap_set_message_flags): "
    (imap_get_message_user_flag): ", this changes functionality, but
    only by providing non-permanent flags.
    (imap_set_message_user_flag): "
    (imap_update_summary): move summary to folder object, and use
    camel_folder_summary_info_new_from_header, instead of calling the
    virtual function directly.

    * providers/local/camel-maildir-folder.c (maildir_append_message):
    move summary to folder object, again.
    (maildir_get_message): "

    * providers/local/camel-mh-folder.c (mh_append_message): move
    summary to folder object.
    (mh_get_message): "

    * providers/local/camel-mbox-folder.c (mbox_append_message): Move
    summary to folder object
    (mbox_get_message): "
    (mbox_set_message_user_flag): We need our own copy of this, sigh,
    so we can track if the xev needs a rewrite (probably, its only a
    guide anyway).
    (mbox_set_message_user_tag): Same same with this one.
    (camel_mbox_folder_class_init): Link in these new virtual functions.

    * providers/local/camel-local-folder.h (CamelLocalFolder): removed
    summary.

    * providers/local/camel-local-folder.c (local_get_message_count): 
    (local_get_unread_message_count): 
    (local_get_uids): 
    (local_get_summary): 
    (local_free_summary): 
    (local_get_message_info): 
    (local_free_message_info): 
    (local_get_message_flags): 
    (local_set_message_flags): 
    (local_get_message_user_flag): 
    (local_set_message_user_flag): 
    (local_get_message_user_tag): 
    (local_set_message_user_tag): Removed, all now use default
    implementation.
    (camel_local_folder_class_init): Removed overrides.
    (local_init): Clear folder->summary.
    (local_finalize): move summary to folder.
    (camel_local_folder_construct): "
    (local_sync): "

    * camel-folder.c (free_summary): Provide a real impl.
    (get_summary): "
    (free_uids): "
    (get_uids): "
    (free_message_info): "
    (get_message_info): "
    (set_message_user_tag): "
    (get_message_user_tag): "
    (set_message_user_flag): "
    (get_message_user_flag): "  Sigh, the last so far.
    (get_message_flags): Sigh, 1 more afterall.
    (get_unread_message_count): And and this.
    (get_message_count): and this!
    (set_message_flags): Sigh, and this.
    (camel_folder_finalize): Unref the summary if we have it.
    (camel_folder_free_uids): Remove locking.
    (camel_folder_get_message_flags): Remove locks, since the summary
    is now mt-safe.
    (camel_folder_set_message_flags): "
    (camel_folder_get_message_user_flag): "
    (camel_folder_set_message_user_flag): "
    (camel_folder_get_message_user_tag): "
    (camel_folder_set_message_user_tag): "
    (camel_folder_get_message_info): "
    (camel_folder_free_message_info): "
    (camel_folder_get_uids): "
    (camel_folder_free_summary): "
    (camel_folder_get_unread_message_count): "
    (get_unread_message_count): Check we got info, no big deal, but
    the summary might change while we're counting, and upset the count
    slightly.
    (camel_folder_get_message_count): Remove locks.

    * camel-folder.h (struct _CamelFolder): Added CamelFolderSummary
    to the base folder object.  Sigh, this is going to be a lot of
    work ...

    * camel-service.c (camel_service_init, finalise): changed
    connect_lock to be recursive e_mutex.

    * camel-remote-store.c (camel_remote_store_init, finalise): Changed
    stream_lock to recursive e_mutex.

    * camel-private.h (RemoteStorePrivate, ServicePrivate): Use
    recursive mutexes for connect_lock & stream_lock.  Ick.  Because
    of the imap code.

    * providers/imap/camel-imap-private.h: Change the command_lock to
    be an EMutex.

    * providers/imap/camel-imap-store.c (connect_to_server): Removed
    the command_lock stuff.  If we are just connected again, it should
    be safe to assume we have exclusive access at this point without
    it (and yes, removes a deadlock).
    (imap_create): Remove a lock that wasn't even supposed to be
    there.
    (camel_imap_store_finalize, init): g_mutex->e_mutex(E_MUTEX_REC).
    Use a recursive mutex since the imap code is multiply recursivly
    calling some functions (sigh, it would be nice to fix this).

2000-12-20  Not Zed  <NotZed@HelixCode.com>

    * camel-folder.c (folder_changed): Change the locks to inside the
    if.  Stops a deadloc,k and we dont need a lock to read a value.
    (message_changed): Likewise.

    * camel.c (camel_init): Blah, comment out g_thread_init, leave it
    to the caller, since it can only ever be done once.

    * camel-folder-thread.c (camel_folder_thread_messages_new): Ref
    and save the folder in the thread return.  Also get the summary
    once, and access that for the messageinfo's.  Added bonus that now
    threads should come out in a similar order.  We need to do this so
    that the messageinfo's dont get unref'd under us, and using the
    summary directly simplifies memory management.
    (camel_folder_thread_messages_destroy): Free the summary/unref the
    folder.

    * camel-folder-thread.h: Add a folder to CamelFolderThread struct.

2000-12-19  Not Zed  <NotZed@HelixCode.com>

    * providers/imap/camel-imap-utils.c (imap_translate_sexp): Unref
    using e_sexp_unref, since it is no longer an object.

    * tests/lib/camel-test.c: Added a global lock, and made it
    thread-aware.

    * camel-exception.c: Add a global lock.  Not sure its really
    needed here, but it doesn't really hurt.
    (camel_exception_clear): Lock around access.
    (camel_exception_set): Same.
    (camel_exception_setv): "
    (camel_exception_xfer): "

    * providers/local/Makefile.am (noinst_HEADERS): Added, for
    camel-local-private.h

    * camel-folder.c (camel_folder_search_by_expression): Removed
    locking here, now upto the implementing class to lock.
    (camel_folder_search_free): Removed the folder lock here too, for
    consistency really, and the locking probably wasn't needed.

    * providers/local/camel-local-folder.c (local_get_summary):
    Changed to copy/ref the summary items.
    (local_free_summary): Unref the summary items/free the array.
    (local_get_unread_message_count): Free info lookups.
    (local_search_by_expression): Perform more fine-grained locking,
    and dont lock the whole folder while searching, just the search
    object.  Dum de dum, it *would* be possible to not even have to
    lock the search, by using our own copy of the search object each
    time.  Could be investigated.
    (local_init): Init priaate data/lock.
    (local_finalize): Free private data/lock.
    (local_search_free): Also lock around the search object, because
    it accesses global data inside.

    * README.mt: Some info about the mt code development.

    * camel-folder-search.c (match_message): Put in a warning, this
    plain deadlocks so far, but i'm going to bed now.
    (camel_folder_search_finalize): Use e_sexp_unref() since its no
    longer an object.

    * camel-session.c (camel_session_init): Init private data/lock.
    (camel_session_finalise): Free private data/lock.
    (camel_session_register_provider): Lock hash insert.
    (service_cache_remove): Lock.
    (camel_session_list_providers): "
    (camel_session_get_service): Lock the whole function.

    * camel-session.h (struct _CamelSession): Added private data.

    * providers/imap/camel-imap-store.c (camel_imap_store_init): Setup
    private data.
    (camel_imap_store_finalize): Free private data.
    (connect_to_server): Lock around command calls.  I dont think its
    needed, but it shouldn't hurt either.
    (imap_connect): Lock around command calls.  Again, I don think it
    is needed, but wont hurt.
    (imap_disconnect): ditto for this one.
    (imap_create): Lock around command.
    (get_folder): "
    (get_folder_info): "
    (subscribe_folder): "
    (unsubscribe_folder): "
    (imap_keepalive): "

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Lock
    around calling a command.
    (imap_refresh_info): Likewise.
    (imap_sync): "
    (imap_append_message): "
    (imap_copy_message_to): "
    (imap_move_message_to): "
    (imap_get_message): "
    (imap_update_summary): "
    (imap_search_by_expression): ", also minor logic cleanup.
    (imap_get_summary): Copy/ref the summary items.
    (imap_free_summary): And free it now too.

    * providers/imap/camel-imap-auth.c (imap_try_kerberos_v4_auth):
    Lock the command stream for the command session.

    * providers/imap/camel-imap-private.h: Private (locking info)
    stuff for imap provider.
    (CAMEL_IMAP_STORE_UNLOCK): Fix to call unlock, rather than lock!

    * camel-service.c (camel_service_query_auth_types): Lock also for
    the connection here, incase the service needs to connect.

    * camel-remote-store.c (camel_remote_store_init): Init private
    data/lock.
    (camel_remote_store_finalise): Readded, free private data/lock.
    (remote_send_stream): Changed to return the number of bytes
    written, like a good little stream function should.
    (camel_remote_store_send_string): Lock for stream access.
    (camel_remote_store_send_stream): Same here.
    (camel_remote_store_recv_line): And here.
    (camel_remote_store_refresh_folders): Lock the store for cache
    access.
    (timeout_cb): Lock for stream access.

2000-12-18  Not Zed  <NotZed@HelixCode.com>

    * camel-service.c (camel_service_init): Init private data.
    (camel_service_finalise): Free private data.
    (camel_service_connect): Lock around connection access.
    (camel_service_disconnect): "

    * camel-service.h (struct _CamelService): Added private field.

    * camel-store.c (camel_store_init): Init private data/lock.
    (camel_store_finalize): Free private data/lock.
    (camel_store_get_folder): Lock internal calls.
    (camel_store_delete_folder): "
    (camel_store_rename_folder): "
    (camel_store_get_root_folder): "
    (camel_store_get_default_folder): "
    (camel_store_get_folder_info): "
    (camel_store_folder_subscribed): "
    (camel_store_subscribe_folder): "
    (camel_store_unsubscribe_folder): "
    (lookup_folder): Lock accesses to the folder cache.
    (cache_folder): "
    (uncache_folder): And here too.

    * camel-store.h (struct _CamelStore): Added a private field.

    * Makefile.am (noinst_HEADERS): Add camel-private.h.  There is a
    comment in that header as to why it ins't installed.

    * camel-private.h: New header for private data, that subclasses
    can get to.

    * tests/lib/camel-test.c (camel_test_init): If we do have threads
    enabled already, dont call g_thread_init().
    
    * tests/lib/folders.c (test_folder_counts): Add free of info.
    (test_folder_message): And here too.

    * providers/local/camel-maildir-summary.c (remove_summary): Free
    info.
    (maildir_summary_check): Free info lookups.

    * providers/local/camel-mh-summary.c (message_info_new): Removed,
    didn't add value.
    (remove_summary): free info after being used.
    (mh_summary_check): Free info lookups.
    (mh_summary_sync): and here too.

    * providers/local/camel-mbox-summary.c (summary_update): Free info
    lookups.
    (mbox_summary_sync_full): Likewise.
    (mbox_summary_sync_quick): And here.
    (mbox_summary_sync):  ... and here.

    * providers/local/camel-maildir-folder.c (maildir_get_message):
    Free messageinfo lookups.

    * providers/local/camel-mh-folder.c (mh_get_message): Free
    messageinfo lookups.

    * providers/local/camel-mbox-folder.c (mbox_get_message): Free
    messageinfo lookups.

    * providers/local/camel-local-summary.c
    (message_info_new_from_message): Removed, since it wasn't doing
    anything useful.
    (message_info_new_from_parser): Same.  And some other dead code.

    * providers/local/camel-local-folder.c (local_get_message_info):
    deconstify.
    (local_free_message_info):new func to free info.
    (local_get_uids): 
    (local_get_message_flags): 
    (local_set_message_flags): 
    (local_get_message_user_flag): 
    (local_set_message_user_flag): 
    (local_get_message_user_tag): 
    (local_set_message_user_tag): Free all info lookups.
    (local_expunge): Dont call camel_folder_* functions, to avoid a deadlock.

    * providers/nntp/camel-nntp-folder.c
    (nntp_folder_get_message_info): deconstify.
    (nntp_folder_free_message_info): Free summary item.
    (nntp_folder_get_message_flags): Free summary lookup.
    (nntp_folder_set_message_flags): and here.
    (nntp_folder_get_uids): And here.

    * providers/imap/camel-imap-auth.c: Make base64_*_simple optional
    with the HAVE_KRB4 flag.

    * providers/imap/camel-imap-folder.c (imap_free_message_info):
    Added a free of the message info.
    (imap_refresh_info): 
    (imap_sync): 
    (imap_refresh_info): 
    (imap_get_unread_message_count): 
    (imap_get_uids): 
    (imap_get_message_flags): 
    (imap_set_message_flags): Free any summary lookups.
    (imap_get_message_flags): Get the message info directly from the
    summary, not via the folder interface.
    (imap_move_message_to): Dont call folder functions directly
    (delete_message), as it will deadlock since we already have the
    lock.

    * providers/vee/camel-vee-folder.c (vee_free_message_info): Free/unref
    the messageinfo.
    (vee_get_message_info): First ref the internal copy, then return it.
    (folder_changed): Free all got message info's.
    (message_changed): And here.
    (get_real_message): And here.
    (vee_folder_build): and here.
    (vee_folder_build_folder): ... and here.

    * camel-folder-summary.c (camel_folder_summary_info_new):
    Initialise the messageinfo refcount to 1.
    (camel_folder_summary_info_free): Down the refcount till we need
    to free.
    (camel_folder_summary_info_ref): New function to up the refcount.
    (camel_message_info_dup_to): Sewt the refcount of the dest to 1.
    (camel_message_info_new): Set refcount to 1.
    (camel_message_info_new_from_header): Dont allocate the mi
    ourselves.
    (camel_message_info_free): Handle refcounting.
    (camel_message_info_ref): New function.
    (camel_folder_summary_index): Ref the messageinfo before returning
    it.
    (camel_folder_summary_uid): Likewise.
    (camel_folder_summary_save): Access the messageinfo array
    directly, rather than through accessors (saves ref/unref).
    (camel_folder_summary_clear): Likewise.
    (camel_folder_summary_remove_index): Likewise.
    (main): Free lookups.

    * camel-folder-summary.h (CamelMessageInfo): Added a refcount
    value.

    * camel-folder.c (camel_folder_free_message_info): New function to
    'free' a message info.
    (camel_folder_get_message_info): Deconstify return.
    (camel_folder_lock): New (internal) function to thread-lock the
    folder.
    (camel_folder_unlock): Likewise for unlocking.
    (freeze): 
    (thaw): Lock around access to folder->frozen/changed_frozen.
    (folder_changed): Likewise.
    (message_changed): Likewise.
    (camel_folder_init): Init private data, locks and moved frozen
    info.
    (camel_folder_finalize): Free new private data, locks and moved
    frozen info.
    (copy_message_to): Free the messageinfo after we've used it.
    (move_message_to): And here too.
    (camel_folder_sync): Lock around virtual method invocation.  Just
    locking around any virtual method that is known to need it.  This
    is the first cut at locking.
    (camel_folder_refresh_info): "
    (camel_folder_expunge): "
    (camel_folder_get_message_count): "
    (camel_folder_get_unread_message_count): "
    (camel_folder_append_message): "
    (camel_folder_set_message_flags): "
    (camel_folder_get_message_flags): "
    (camel_folder_get_message_user_flag): "
    (camel_folder_set_message_user_flag): "
    (camel_folder_get_message_user_tag): "
    (camel_folder_set_message_user_tag): "
    (camel_folder_get_message): "
    (camel_folder_get_uids): "
    (camel_folder_free_uids): "
    (camel_folder_get_summary): "
    (camel_folder_search_by_expression): "
    (camel_folder_free_summary): "
    (camel_folder_search_free): "
    (camel_folder_move_message_to): "
    (camel_folder_copy_message_to): "
    (copy_message_to): Dont call any of our own folder functions
    directly, otherwise we will deadlock.
    (move_message_to): Likewise.

    * camel-folder.h (CamelFolder): Added free_message_info() function
    & deconstify get_message_info()'s return.
    (CamelFolder): Add a private field (for locks).
    (struct _CamelFolder): Moved changed_changed/frozen into private
    data, since it really is private and now needs locked access.

2000-12-15  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-utils.c (header_fold): When checking to see if we
    need to fold the header, when we come accross a \n, make sure to
    start at p + 1 the next time through the loop or else we get into
    an infinite loop.

2000-12-13  Dan Winship  <danw@helixcode.com>

    * Namespace cleanup: change a bunch of IS_CAMEL_* macros to
    CAMEL_IS_*

2000-12-13  Chris Toshok  <toshok@helixcode.com>

    * providers/imap/camel-imap-auth.c: add #include <sys/types.h> for
    freebsd.

2000-12-12  Christopher James Lahey  <clahey@helixcode.com>

    * camel-folder-summary.c, camel-folder-summary.h: Added #ifndef
    NO_WARNINGS around a #warning.  Added (void) to the prototype and
    declaration of camel_message_info_new.

    * camel-mime-message.h: Added an include for
    camel-mime-filter-bestenc.h.  Added a prototype for
    camel_mime_message_set_best_encoding.  Reformatted prototypes to
    line up.

    * camel-mime-parser.c: Added #if d(!)0 around the states string
    lookup table since it's only used in debugging output.

    * camel-seekable-substream.c (stream_flush): Added a cast.

    * providers/imap/camel-imap-auth.c: Added #include <netinet/in.h>.

    * providers/imap/camel-imap-folder.c (imap_refresh_info): Made uid
    and flags const to fix warnings here.

    * providers/imap/camel-imap-store.c (get_folder_info): Made p
    const to fix warnings here.

2000-12-12  Dan Winship  <danw@helixcode.com>

    * tests/lib/Makefile.am: Add missing .h file. (From campd.)

2000-12-11  Not Zed  <NotZed@HelixCode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_data): Remove use of
    linewrap filter.  Headers are now wrapped.  encode_8bit already
    enforces a 998 octet line limit.
    (smtp_data): Also fixed a memleak, we always have to unref our own
    copy of the filters.  We also dont need to remove them manually,
    so dont bother.  The type's an int too ...

    * camel-internet-address.c (internet_unformat): When scanning past
    quotes, remove them also.
    (camel_internet_address_format_address): If the name contains "'s,
    or ','s then strip and quotes and wrap the whole lot in one set of
    quotes.
    
    * Makefile.am (noinst_HEADERS): We dont want to install
    camel-charset-map-private.h, ever.  There are probably other
    similar files ..?

    * camel-mime-part.c (write_to_stream): Fold header lines
    appropriately as we're writing them out.

    * camel-mime-utils.c (header_fold): Add a new argument, headerlen,
    tells it how long the associated header token is.
    (header_fold): Also,k check to see if we need to fold first, using
    a better algorithm, and also accept already-folded lines, and
    re-process accordingly.
    (rfc2047_decode_word): Add a little buffer space to iconv output
    for shifting overheads?
    (rfc2047_decode_word): finish the iconv with a null call, to flush
    shift state, etc.
    (rfc2047_encode_word): Attempt to break up long words into
    appropriately sized, independent, chunks.  See rfc2047, section 2.
    (header_decode_mailbox): Dont add in extra spaces into the output
    if we are decoding adjacent encoded words.  We can only guess this
    case, as some broken mailers put encoded words inside quoted
    words.
    (header_encode_phrase): Dont merge words if they are going to end
    up too long.  Also change back ot only merge consecutive words of
    the same type.  e.g. 'foo. blah fum.' -> "foo." blah "fum."  or
    'iam an. idiot' -> iam "an." idiot

    * camel-medium.c (camel_medium_set_header): Hrm, we actually want
    to call set_header, not add_header here, probably explains some
    duplicate X-Evolution headers i was trying to track down.  Also
    changed the api to handle a NULL value == remove the header.

    * providers/local/camel-maildir-summary.c
    (maildir_summary_decode_x_evolution): Always return error, we dont
    use x-evolution for maildir.
    (maildir_summary_encode_x_evolution): Always return a NULL string,
    likewise.
    (maildir_summary_add): Hook in here, since the _new function
    doesn't have access to any flags from the caller.  If we have
    flags, then update the filename again.  Not ideal, but should
    work.

2000-12-08  JP Rosevear  <jpr@helixcode.com>

    * tests/message/Makefile.am: Remove test3 from build until the files
    show up
    
2000-12-09  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-message.c (camel_mime_message_set_date): Change the
    sign of the default date offset when none is supplied.
    (camel_mime_message_set_date): Also do dst if its dst (forward 1
    hour).  Fixes #928 + some.

2000-12-06  Not Zed  <NotZed@HelixCode.com>

    * tests/lib/camel-test.h (check): Change line no format so that
    emacs can detect it.

2000-12-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_refresh_info): We want
    to bitwise-or the server and cached flags here so that we keep the
    flags that we have set locally and set any additional flags that a
    parallel connection may have set.

2000-12-05  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_data): If the data
    wrapper fails to be written to the stream, unref it and the
    filters before returning.

2000-12-05  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message): use
    BODY.PEEK[] rather than RFC822, so the message doesn't get marked
    as \Seen.
    (imap_refresh_info): Fix a really really really dumb bug.

2000-12-05  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_set_message_flags): Fix
    the check for "flags aren't actually changing".

    * providers/local/camel-local-folder.c (local_set_message_flags,
    local_set_message_user_flag, local_set_message_user_tag): Don't
    emit message_changed unless the flags actually changed.

    * providers/nntp/camel-nntp-folder.c
    (nntp_folder_set_message_flags): Don't emit message_changed unless
    the flags actually changed. Fix the check for marked as seen.

2000-12-05  Not Zed  <NotZed@HelixCode.com>

    * camel-seekable-substream.c (stream_flush): stream_flush does
    make sense for a substream afterall (if you have a stream_write).
    (stream_write): Implement this.
    (stream_seek): Change the STREAM_END behaviour to be more sane.
    if bounded go from the end of the bound, if unbounded, go from the
    end of the parent stream.

    * camel-stream-mem.c (stream_read): Dont return error if reading
    past the end of data, just return 0.

    * camel-stream-fs.c (camel_stream_fs_init): Initialise the stream
    to be unbound.
    (stream_seek): Fix the logic when seeking from the end of an
    unbounded stream.
    (camel_stream_fs_new_with_fd): If the fd is invalid (-1), then
    return NULL immediately.
    (stream_seek): Range check a SEEK_END so it fits within
    bound_start.

2000-12-01  Not Zed  <NotZed@HelixCode.com>

    * tests/lib/folders.c (test_folder_basic): New test to perform
    basic store operations on folders (taken from folders/test1).
    (test_folder_message_ops): Tkane the guts out of folders/test2.

2000-12-04  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): i18n-ize
    exception strings.
    (get_name): And here.
    (_send_to): Here too.
    (smtp_helo): And here and there...
    (smtp_mail): And around the square...
    (smtp_rcpt): Saying catch me if you can...
    (smtp_data): And here three.
    (smtp_rset): And here.
    (smtp_quit): And finally here.

2000-12-01  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder-search.h: Added system_flag to CamelFolderSearchClass

    * camel-folder-summary.c (camel_system_flag_get): Convenience
    function to return whether or not a flag is set using a string as
    the flag name.
    (camel_system_flag): Return the integer value of the flag string.

    * camel-folder-search.c (search_system_flag): New ESExp callback
    for allowing vfoldering on CamelMessageInfo flags.

2000-12-01  Dan Winship  <danw@helixcode.com>

    * camel-service.c (camel_service_disconnect): Don't
    g_return_if_fail if the service is already disconnected. Just
    return.

    * providers/pop3/camel-pop3-store.c (pop3_try_authenticate):
    Return FALSE (don't try again) if we get CAMEL_POP3_FAIL.
    (pop3_connect): If we don't succeed, disconnect.

2000-11-30  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c
    (parse_list_response_as_folder_info): Fix a possible bug where
    'name' could be uninitialized.

    * camel-folder-summary.c (camel_message_info_new): New convenience
    function, doesn't do much but it sure makes code cleaner to read.
    (camel_message_info_new_from_header): This one makes my life heaven.

2000-11-30  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-summary.c (camel_imap_summary_new):
    Handle the case where the summary failed to load - clear the
    summary and then set the dirty bit so that it is sure to save
    later. Is this the right fix?

2000-11-30  Dan Winship  <danw@helixcode.com>

    * camel-exception.c (camel_exception_setv): Remove unused
    variable.

2000-11-30  Not Zed  <NotZed@HelixCode.com>

    * providers/local/camel-mbox-folder.c (mbox_get_message): Remove
    assertion that content is there, when it no longer can be.

    * camel-folder-summary.h: Removed pos/bodypos/endpos from
    camelmeessagecontentinfo.
    (CamelMessageFlags): Added an attachments flag.

    * providers/local/camel-local-summary.h: Added load virtual
    function.

    * tests/lib/folders.c (test_message_info): Accessors.
    (test_folder_message): "

    * camel-folder-thread.c (get_root_subject): Fix accessors.
    (dump_tree_rec): "

    * camel-folder-search.c (camel_folder_search_execute_expression):
    Accessors for messageinfo.
    (search_match_all): "
    (search_header_contains): "
    (search_header_contains): "
    (search_body_contains): "
    (camel_folder_search_execute_expression): Use mepool_strdup.

    * providers/local/camel-mbox-summary.c (summary_update): Accessors
    for messageinfo.
    (mbox_summary_sync_full): "

    * providers/local/camel-mh-summary.c (remove_summary): Accessors
    for messageinfo.
    (mh_summary_check): "
    (mh_summary_sync_message): "
    (mh_summary_sync): "

    * providers/local/camel-mh-folder.c (mh_append_message): Use
    accessor for uid.

    * providers/local/camel-local-summary.c
    (local_summary_decode_x_evolution): Use accessor to uid.
    (local_summary_encode_x_evolution): Likewise.
    (message_info_new): And here.
    (camel_local_summary_load): Call virtual load function.
    (local_summary_load): Default load function, load summary.
    (camel_local_summary_load): Check file exists before trying to
    load.
    (camel_local_summary_construct): Turn off building content info!
    (CAMEL_LOCAL_SUMMARY_VERSION): Bump, since we dont build content
    info anymore.
    (camel_local_summary_load): After a successful load/check, do a
    save too so we dont have to go through it again randomly.

    * providers/nntp/camel-nntp-utils.c (get_XOVER_headers): Use
    accessors for messageinfo.

    * providers/nntp/camel-nntp-folder.c (nntp_folder_get_uids): Use
    accessors for uid.

    * providers/imap/camel-imap-folder.c (imap_refresh_info): Use
    accessor for uid.
    (imap_sync): Likewise.
    (imap_get_uids): Likewise.
    (imap_update_summary): And here.

    * providers/vee/camel-vee-folder.c (vfolder_remove_match): Use
    accessor for uid.
    (vfolder_add_match): Handle estrv stuff.
    (vfolder_change_match): Accessor for uid.
    (get_real_message): "
    (vee_get_uids): "
    (vee_folder_build): " + estrv.
    (vee_folder_build_folder): "

    * providers/local/camel-maildir-folder.c (maildir_append_message):
    Use acccessors for uid's.
    (maildir_get_message): Here too.

    * providers/local/camel-maildir-summary.c
    (camel_maildir_summary_init): Setup the string count for us.
    (message_info_new): Access the string array directly.
    (message_info_free): No need to free string if using array.
    (camel_maildir_summary_info_to_name): Use accessor to get to uid.
    (remove_summary): And here.
    (maildir_summary_check): Likewise.
    (maildir_summary_sync): And here.
    (maildir_summary_load): Load up a cache of uid->filename mappings
    before loading the actual summary file.  This saves us having to
    waste the diskspace storing the filenames in the summary itself,
    and also helps us sync the summary better on load.
    (message_info_load): If we have the load_map setup, and the uid
    exists, then set the filename cache from it, and update the flags
    from the name, incase our summary mismatches it.

    * camel-folder-summary.c (camel_folder_summary_init): Setup string
    count for compressed info record.  An optional compile mode which
    stores all strings for a given messageinfo into a packed array,
    which should save 36-50 bytes/record.
    (camel_folder_summary_info_new): Init the string array.
    (message_info_new): Set the string array items, as required.
    (message_info_load): And here too.
    (message_info_save): Use accessors to get to strings.
    (message_info_free): Free strings as one.
    (camel_message_info_dup_to): Handle packed array case.
    (camel_folder_summary_add): Use accessors.  And pack the strv
    before storing it.
    (summary_assign_uid): New function to assign a unique uid to a
    message, if it doesn't have one.
    (camel_folder_summary_add): Call assign_uid instead of doing it
    ourselves.
    (camel_folder_summary_info_new_from_parser): "
    (camel_folder_summary_info_new_from_message): "
    (camel_folder_summary_encode_string): constify.
    (camel_folder_summary_encode_token): "
    (summary_build_content_info_message): Fix accessors to messageinfo.
    (CAMEL_FOLDER_SUMMARY_VERSION): Bumped, for removal of
    contentinfo->pos data.
    (camel_folder_summary_info_new_from_parser): Calculate the size
    based on the parser position, not the removed contentinfo stuff.
    (camel_folder_summary_info_new_from_message): Remove size stuff.
    (camel_folder_summary_offset_content): Removed, no longer means anything.
    (content_info_new): 
    (content_info_load): 
    (content_info_save): 
    (summary_build_content_info): Remove stuff for contentinfo->pos*.
    (summary_build_content_info): Take a msginfo argument, set
    attachments flag if we find any attachments.
    (summary_build_content_info_message): set attachments flag if we
    find any attachments.
    (camel_folder_summary_info_new_from_parser): Always scan the
    content info, even if we dont save it.
    (camel_folder_summary_info_new_from_message): And here too.
    (summary_build_content_info): Only create the contentinfo stuff if
    we have it turned on, otherwise just parse and discard.
    (summary_build_content_info_message): Likewise.

2000-11-29  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-store.c (camel_store_get_folder): Updated the gtk-doc
    comment.

2000-11-29  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c: 
    * camel-mime-filter-charset.c: Use iconv instead of unicode_iconv.

    * providers/imap/camel-imap-command.c (imap_read_untagged): Fix
    some off-by-one-ness.

    * camel-stream-buffer.c (stream_read): Fix another bug found in
    previously-unused code here.

2000-11-29  Ettore Perazzoli  <ettore@helixcode.com>

    * tests/lib/Makefile.am (INCLUDES): `$(top_srcdir)' for builddir
    != srcdir compilation.

2000-11-29  Not Zed  <NotZed@HelixCode.com>

    * tests/message/test2.c (main): Add a missed unref.

    * camel-stream-mem.c (camel_stream_mem_set_buffer): We must set
    ourselves as the owner of the byte-array.
    Weird, someone has modified this file (its been reindented), but i
    can't see any changelogs ...

    * tests/lib/messages.c (content_finalise): Fix memleak in tester,
    free byte array when our content object is deleted.

    * camel-folder-search.c (camel_folder_search_finalize): Yeah
    great, so the sexp is a gtk object, not a camel object.  Isn't
    that going to be fun to fix?

    * camel-session.c (camel_session_finalise): Free the storage path.

    * providers/local/camel-local-store.c (camel_local_store_init): If
    store->folders is setup, free it first, then overwrite.  Hmm,
    this seems a bit crappy to me.

    * camel-store.c (camel_store_init): Dont setup store->folders if
    its already setup.

    * camel-exception.c (camel_exception_setv): Removed a memleak.  no
    need to strdup after a strdup_printf!!!

    * camel-address.c (camel_address_finalize): Free the address
    ptrarray, once finished.

    * providers/local/camel-local-folder.c (local_finalize): Make sure
    we dont leave the folder locked on close.
    (local_finalize): Free summary/search.

    * providers/local/camel-mh-summary.c (mh_summary_next_uid_string):
    Small memleak, always free name after using it.

    * camel-mime-part.c (set_content_object): Free txt after setting
    the header.

    * providers/local/camel-maildir-summary.c (maildir_summary_check):
    Fix a memleak, close the dir after scanning new.
    (message_info_free): Added so we can free the filename cached in
    the messageinfo.
    (camel_maildir_summary_finalise): Free the hostname.

    * tests/folder/test[12].c (main): Clear out camel-test before
    starting.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync_quick):
    Because encode_x_evolution folds the line (sigh, because
    encode_param does, unlike every other function in
    camel-mime-utils), unfold the encoded result before comparing.
    (mbox_summary_sync_quick): Another small memleak, free xevnew once
    finished with it.

    * camel-mime-utils.c (header_decode_quoted_string): Removed a
    redundant check for c=0.
    (header_unfold): New function to un-fold headers.

    * providers/local/camel-local-summary.c
    (local_summary_encode_x_evolution): some problems with encoding
    tags, using the wrong output strings.
    (local_summary_encode_x_evolution): We dont need to append a ;
    either, param_list_format_append() will do it for us.

2000-11-28  JP Rosevear  <jpr@helixcode.com>

    * camel-lock.c: No longer hard code the enabled lock types

2000-11-28  Dan Winship  <danw@helixcode.com>

    * camel-remote-store.c (remote_recv_line): Don't set exception to
    g_strerror (errno) when nread == 0, because it won't have been
    set.

    * providers/pop3/camel-pop3-folder.c (pop3_finalize): Don't try to
    free things if they haven't been set yet.

2000-11-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Clear the
    exception if EHLO fails before trying HELO in the cases where the
    SMTP provider doesn't announce its ESMTPness.

2000-11-28  Not Zed  <NotZed@HelixCode.com>

    * providers/local/camel-maildir-summary.c
    (camel_maildir_summary_init): Set the info size's properly, oops!

    * tests/lib/folders.[ch]: Folder testing helpers.

    * tests/folder/test2.c: Test basic message ops on folders.

    * tests/folder/test1.c (main): Test basic folder ops on (local)
    stores.

    * providers/local/camel-local-provider.c
    (camel_provider_module_init): Removed some debug.

    * providers/local/camel-maildir-folder.c
    (camel_maildir_folder_class_init): fix parent class.

    * providers/local/camel-mh-folder.c (camel_mh_folder_class_init):
    Fix parent class (damn cut & paste).

    * providers/local/camel-maildir-store.c (get_folder): Call parent
    impl.
    (camel_maildir_store_class_init): Fix parent class setup.
    (delete_folder): Check the folder exists before trying to delete
    it.
    (delete_folder): Try and make the delete operation atomic/rollback
    failures.  e.g. if one directory isn't empty, then create the
    other empty ones back.  Also clear the tmp directory fully first.

    * providers/local/camel-mbox-store.c (get_folder): Call parent
    impl.
    (camel_mbox_store_class_init): parent class is camel_local_store,
    not camel_folder, oops.
    (delete_folder): Return an error if it doesn't exist, rather than
    covering it up.

    * providers/local/camel-mh-store.c (get_folder): Call parent impl.
    (camel_mh_store_class_init): fix parent class setup.
    (delete_folder): Error if it doesn't exist now.

    * camel-folder.c (camel_folder_move_message_to):
    (camel_folder_copy_message_to): Added warnings as these functions
    are going to be removed later.

    * camel-store.c (camel_store_get_root_folder): Fix for an early
    api change.  We want CAMEL_STORE_FOLDER_CREATE, not TRUE, since
    its a flag.
    (camel_store_get_default_folder): And here too.

    * providers/local/camel-local-store.c (xrename): Handle renaming
    folders differently to renaming files.
    (get_default_folder_name): local stores dont have a default
    folder, so make it so.  Or at least, it doesn't seem to make sense
    to have one.
    (get_root_folder_name): Same for root.
    (get_folder): Added parent implementation, that makes sure the
    service path exists, if we are creating a new folder (but doesn't
    create the folder).

2000-11-27  Not Zed  <NotZed@HelixCode.com>

    * providers/local/camel-local-store.c (xrename): Fixed races.  Use
    link/unlink, rather than rename, to properly detect overwriting
    another file.  And allow some files to be missing.

2000-11-28  Radek Doulik  <rodo@helixcode.com>

    * providers/local/camel-local-summary.c
    (local_summary_decode_x_evolution): add scan = scan->next; to
    avoid infinite loop

2000-11-27  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-command.c (imap_read_untagged): Make
    this gratuitously more complicated. No wait, I mean, fix bugs. Now
    fully handles NULs in the data stream (which "can't happen" but
    do) and also handles responses containing multiple literals. Also
    does less copying than the original code.

    * camel-stream-buffer.c (stream_read): Fix a bug that could make
    it lose sync and/or overrun buffers.

2000-11-27  JP Rosevear  <jpr@helixcode.com>

    * providers/local/.cvsignore: shush

2000-11-27  Not Zed  <NotZed@HelixCode.com>

    * providers/Makefile.am: Removed mh, mbox, added local, to the default.

2000-11-24  Not Zed  <NotZed@HelixCode.com>

    * tests/data/getaddr.pl: little util to scan mailboxes for any and
    every address they contain.

    * tests/message/test2.c (main): Added a bunch of stuff to test
    decoding/reencoding/etc of internationalised addresses.

    * tests/message/lib/address-data.h: Copy of some unicode/other
    testing data.  **Beware** of editing this file in emacs, it'll
    probably try and convert all the characters to something
    unusable.

    * tests/lib/camel-test.c (camel_test_break): Add a debugger hook
    point.

    * camel-mime-utils.c (quoted_encode): Check for space and convert
    to _ separately.
    (header_decode_mailbox): Fixed the 'check comments for realname'
    code, problem was the domain getting code was skipping all
    whitespace/comments before we could get a look-in.  This is
    approximate but fairly robust.
    (header_decode_text): Dont use the c-type isspace func here, we
    want a specific whitespace only.
    (header_decode_text): If we have decoded words next to each other,
    do not insert whitespaces between them, which is what rfc2047 requires.
    (header_decode_text): Make c unsigned too.

    * tests/README: Added at least some explanation of all this stuff.

    * tests/lib/camel-test.h (check_msg): Added a non-gcc version of
    the fail command, we dont get the expression that failed, but no
    matter.  Should be (more) portable now.
    (check, check_msg): Put the file/lineno in the default message.

    * Makefile.am (SUBDIRS): Add tests.

    * camel-mime-filter-basic.c (filter): Well, I'll add the extra
    bytes here too, lathough not strictly needed, might save a
    re-malloc when we get to complete().

    * camel-mime-filter-charset.c (filter): Make sure we have room if
    we only convert very short data.
    (complete): and here too.

    * tests/Makefile.am: Initial test harness & tests.  Requires gcc
    for this.

    * camel-internet-address.c (d): Turn off debug.

    * camel-charset-map.c (camel_charset_step): Oops, & masks for set
    intersection, not | them.  Dunno how this got even close to
    working.

2000-11-23  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-filter-basic.c (filter): For base64 encoding, the
    output size for 0, 1, or 2 bytes of input can exceed input*2, so
    make sure we account for that as well.
    (complete): And here.
    (complete): Similarly for qp encoding, if we have a trailing
    space, we need some extra bytes (not needed for 'filter()', as any
    such bytes are stored in state/save).

    * camel-mime-utils.c (quoted_decode_step): Removed fixme not required.
    (quoted_encode_close): Dont append a trailing afterall.  Otherwise
    a pass through the encode/decode will grow the message each time.

2000-11-22  Radek Doulik  <rodo@helixcode.com>

    * camel-mime-utils.c (header_msgid_generate): check for return
    values

2000-11-21  Dan Winship  <danw@helixcode.com>

    * camel-lock.c: 
    * camel-movemail.c: add #ifdef HAVE_ALLOCA_H

2000-11-21  Not Zed  <NotZed@HelixCode.com>

    * providers/local/camel-mh-summary.c (mh_summary_sync_message):
    Shite, -1 on error, >=0 on success.  So i've just been truncating
    all the messages I touched, good one zed.
    (mh_summary_sync_message): Sigh, and write to the right damn fd as
    well.
    (mh_summary_sync_message): Argh, and we need to compare the length
    of the old xev -1 to the new xev, to check if we can optimise it.

    * camel-folder.c (camel_folder_change_info_new): Init the pool.
    (camel_folder_change_info_add_source): Allocate string in the
    pool.
    (camel_folder_change_info_add_source_list): 
    (camel_folder_change_info_add_update): No longer free the key, as
    it cannot be yet.
    (change_info_add_uid): Add a new arg, copy, telling it whether to
    copy the uid argument or not, and copy using mempool_strdup.
    (change_info_cat): Tell add_uid to copy the string.
    (camel_folder_change_info_add_update): Call add_uid directly.
    (change_info_remove): Call add_uid directly, with no copy, and
    dont free the key.
    (change_info_free_update): No longer required since we dont malloc
    the keys.
    (camel_folder_change_info_add_uid): Fix for add_uid change.
    (camel_folder_change_info_remove_uid): 
    (camel_folder_change_info_change_uid): 
    (change_info_clear): No longer needed, just set the size to 0 on
    the array directly.
    (camel_folder_change_info_clear): Empty the arrays directly, and
    flush the mempool too, and also clear uid_source, incase anyone
    was silly enough to call us in the wrong order.
    (camel_folder_change_info_free): Dont bother clearing the array's
    contents, just free the pool and throw away all the indexes.

    * camel-folder.h: Added a mempool to CamelFolderChangeInfo to
    store the uid's we get.

    * camel-folder-search.c (search_match_all): If we are only
    matching a single info, just use that/do the search.
    (camel_folder_search_match_expression): New function.  Matches a
    single message info against an expression.
    (camel_folder_search_init): Init a hash table used to map the
    returned gptrarrays' to mempools.
    (camel_folder_search_execute_expression): Store all of the string
    data in a mempool, slightly faster, less wasted space (usually),.
    (camel_folder_search_free_result): Check for the mempool that
    stores the data for the list, and free that if we have it,
    otherwise assume we need to use g_free() (which should only happen
    if the list is empty at the moment).
    : commented out the debugging prints.  Got sick of 'executing
    header search' crap.

    * providers/vee/camel-vee-folder.c (camel_vee_folder_init): Init
    changes.
    (camel_vee_folder_finalise): Free changes.
    (vfolder_add_match): Simple helper to add a new matching info
    record.
    (camel_vee_folder_add_folder): Only trigger a changed event if we
    have changes.
    (vfolder_change_match): New function, changes our local vfolder
    info to match the source.
    (vfolder_add_match): Add a new info to the vfolder list.
    (vfolder_remove_match): Remove a no-longer matching info from the
    vfolder summary.
    (message_changed): check if the message still matches, and
    remove/etc as required.
    (camel_vee_folder_finalise, init): init/free search object.
    (vee_folder_build_folder): Build the changes to the folder into
    the changes data, as we go.
    (folder_changed): If the folder gave us an explicit list of
    changes, then process each one separately (unless there's a lot
    added/changed).

    * providers/vee/camel-vee-folder.h: Added a changes field to the
    folder.

    * Makefile.am (libcamel_la_SOURCES): Added
    camel-folder-thread.[ch].

    * camel-folder-thread.c: message-threading algorithm, taken from
    evolutions' mail component, as it is generally more useful than
    just for evolution itself.  Changed to use e-memchunks as well to
    speed it up a little and use less mem.

2000-11-20  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-remote-store.c (remote_recv_line): Fixed to return the
    correct bytecount in all cases which is the real fix to
    imap_parse_nstring.

    * providers/imap/camel-imap-command.c (imap_read_untagged): Again,
    don't use strlen for the post-data, use 'n'.

    * providers/imap/camel-imap-utils.c (imap_parse_nstring): Undo my
    previous temp-fix.

2000-11-20  Not Zed  <NotZed@HelixCode.com>

    * providers/nntp/camel-nntp-utils.c (get_XOVER_headers): Fixes for
    the summary messageid changes.  Hash the messageid and store it.
    (get_XOVER_headers): Use camel_folder_summary_info_new() to create
    the summary item before adding it.

    * camel-folder-summary.h (CamelMessageInfo): Changed the
    messgae-id to be an 8 byte md5 hash, and the references list to be
    an array of these.

    * providers/local/camel-mh-summary.c (mh_summary_sync_message):
    New function, sync out the message info stuff.  Only updates the
    X-Ev header if it can get away with it, otherwise writes out a
    whole new message.
    (mh_summary_sync): Added more functionality.  All summary info is
    now written to the X-Ev header, etc, and new messages re-written
    if required during the sync process.

    * providers/local/camel-local-folder.c
    (local_set_message_user_flag): Set the XEVCHANGE flag.
    (local_set_message_user_tag): And here too.

    * providers/local/camel-local-summary.h: New flag
    CAMEL_MESSAGE_FOLDER_XEVCHANGE to indicate the XEV header has
    probably changed size and needs to be rewritten in whole.

    * camel-folder-summary.c (next_uid_string): Want this static, not
    const.
    (message_info_new): Store the references and message-id values as
    64 bit, binary hashes.
    (message_info_load): fix for message-id/references changes.
    (message_info_save): Likewise.
    (camel_message_info_dup_to): And here.
    (camel_message_info_free): And here too.  No longer free
    message_id, and simple free for references array.
    (CAMEL_FOLDER_SUMMARY_VERSION): Bumped file revision.
    (camel_folder_summary_init): Init memchunk allocators to empty.
    (camel_folder_summary_finalize): Free memchunk allocators if
    there.
    (message_info_new): Use the chunk allocator to allocate message
    info's. 
    (camel_folder_summary_info_new): New helper to allocate the
    message info, and setup the memchunk if required.
    (content_info_alloc): Likewise for content info's.
    (message_info_load): Use summary_info_new_empty.
    (content_info_new): Use content_info_alloc.
    (content_info_load): "
    (content_info_free): Free the content info as a memchunk.
    (message_info_free): Free everything directly and the base as a
    memchunk, rather than calling camel_message_info_free(), which
    assumes a malloc'd array.

    * providers/local/camel-local-summary.c: Include ctype.h, kill a
    warning.
    (local_summary_decode_x_evolution): If we get a NULL message info,
    then dont try and set anything, just check for validity.
    (camel_local_summary_write_headers): New function to write a set
    of headers to an fd.
    (camel_local_summary_check): Added some statistic generation
    stuff for memory profiling.

    * providers/local/camel-mbox-summary.c (header_write): Changed to
    use stdoi functions to write out the header to a buffered stream,
    instead of using writev, which is apparently slow (and writing
    each line separately is slow anyway).
    (mbox_summary_sync_full): New implementation.  Does things
    differently, doesn't use or require the content info stuff.
    (summary_rebuild): Dont return an error if we start scanning at
    the end of file.
    (mbox_summary_sync_full): If we are not writing out new headers,
    make sure we copy the From line as we go, and update frompos
    appropriately.
    (mbox_summary_sync_full): Always copy the From line from the
    existing one, rather than trying to make one up ourselves.
    (mbox_summary_sync): If we can get by with a quick-sync, then try
    it, if that fails, then try a full sync anyway.
    (mbox_summary_sync_quick): Quick sync.  Only update system flags,
    etc.
    (mbox_summary_sync_full): Use the proper local summary encode_xev
    function.
    (header_evolution_decode): Removed, no longer needed.
    (header_evolution_encode): Same.
    (copy_block): No longer needed, removed.
    (header_write): Removed, replaced with
    camel_local_summary_write_headers.
    (mbox_summary_sync_full): Fixed for header_write change.

    * camel-mime-parser.c (folder_scan_step): Implement the new
    optional parser state HSCAN_PRE_FROM, that returns the (currently
    unfiltered) input data.
    (folder_scan_drop_step): Do the right thing for the PRE_FROM
    state.
    (camel_mime_parser_scan_from): Update the doco.
    (camel_mime_parser_scan_pre_from): Ok, make this behaviour
    optional, it simplifies a lot of loops that dont otherwise need to
    know about it.
    (folder_scan_step): Made the PRE_FROM state optional.
    (struct _header_scan_state): Made the bool vars 1 bit.
    (folder_pull_part): Free the from_line buffer if it is there.
    (folder_scan_skip_line): Added a new arg, can save the skpped data
    to a byte_array, as we go.
    (folder_scan_step): Fixed calls to skip_line approrpiately.  Now
    we save the from line as we parse it.
    (camel_mime_parser_read): New function to read from the mime
    parser buffer directly.  Useful if you use the parser to read the
    first/some headers, then need to scan the rest of the data,
    without needing to use a seek(), or allocate your own buffers.

    * camel-mime-parser.h (struct _header_state): Added a new parser state,
    pre-from which returns any data found before a from line during
    parsing (all other data can be retrieved by the caller except
    this).

2000-11-17  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-utils.c (imap_parse_nstring): When
    extracting a literal string, capture up until the end of the last
    line - this we we don't lose any data if the byte count is off.

    * providers/imap/camel-imap-command.c (imap_read_untagged): Use
    the byte-read count to decrement the number of bytes left to read
    rather than using strlen. Not only does this protect against a DoS
    (embedded NUL chars in the literal string would make strlen
    inaccurate) but it also improves performace a little.

    * camel-remote-store.c (remote_recv_line): *Sigh* Return the
    number of bytes read on success rather than 0. Also don't use
    camel_stream_buffer_read_line since we can't get an accurate octet
    count.

2000-11-17  Not Zed  <NotZed@HelixCode.com>

    * providers/local/camel-local-summary.c (local_summary_add): Clear
    the NOXEV/FLAGGED bits, since we do have an xev header.  um m,
    maybe this is right, this assumes a write is following.  Maybe
    this should be done in folder::append() instead ...

    * camel-stream-buffer.c (camel_stream_buffer_gets): We should
    always terminate the string.  No need to check outptr is in range,
    its already been checked.

    * providers/local/camel-mbox-summary.c (mbox_summary_sync): When
    we update the summary, do it from mbox_summary->folder_size, not
    the content info endpos (which isn't any good anymore anyway).

    * providers/local/camel-mbox-folder.c (mbox_append_message): Set
    the frompos from the current folder size, since summary_add wont
    have initialised it to anything useful.

2000-11-16  Not Zed  <NotZed@HelixCode.com>

    * providers/local/camel-local-summary.c
    (local_summary_encode_x_evolution): Check the uid string is all
    digits before trying to write a 'standard' x-ev header.

    * providers/local/camel-maildir-summary.c
    (camel_maildir_summary_info_to_name): Convert an info into a
    maildir name:info filename.
    (camel_maildir_summary_name_to_info): Convert a name:info filename
    into an info, and tell us if it didn't match it.
    (message_info_new): When creating a new filename, gets its info
    from the flags field.  Likewise if creating from an existing file,
    extract the flags.
    (maildir_summary_sync): Remove a small memleak.  Also, if our
    flags and that requires a filename change, perform that here.
    (message_info_new): Get the received date from the filename.
    Also, dont overwirte the uid if we have one.
    (maildir_summary_check): Sort the summary in received order before
    completion.
    (maildir_summary_next_uid_string): Test the name for collusions
    before we give it out.  Retry, and if that fails, well, I guess we
    collide :(

    * providers/local/camel-mbox-folder.c (mbox_lock): Implement mbox
    locking.
    (mbox_unlock): And unlocking.
    (mbox_append_message): Lock the folder for write before doing
    anything.
    (mbox_get_message): Lock the folder for read before doing
    anything.

    * providers/local/camel-local-folder.c (camel_local_folder_lock):
    Implement something here.  We handle the recursive ability but
    pass the locking to the folder itself.
    (camel_local_folder_unlock): Likewise for unlocking.
    (local_lock): Default - do nothing, return success.
    (local_unlock): Same.
    (local_sync): Changed slightly for locking api changes, and also,
    only lock around the sync process itself.

    * camel-lock.c: New file - utility functions for locking using
    different strategies and/or for locking folders safely.

    * Makefile.am (libcamel_la_SOURCES): Adde camel-lock.[ch]

2000-11-15  Radek Doulik  <rodo@helixcode.com>

    * camel-mime-utils.c: mime_guess_type_from_file_name moved back to
    composer as it introduced unwanted VFS dependency
    removed  #include <libgnomevfs/gnome-vfs.h>

2000-11-15  Not Zed  <NotZed@HelixCode.com>

    * providers/Makefile.am: Removed local again, not quite ready.

2000-11-14  Not Zed  <NotZed@HelixCode.com>

    * camel-folder-summary.c (message_info_new_from_message): Use
    message_info_new to create the summary from headers, instead of
    getting directly from the message.
    (format_recipients): No longer required.

    * providers/Makefile.am (SUBDIRS): Added local.

2000-11-11  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-parser.c (folder_push_part): Make sure 'atleast' is
    at least 1, always.  This is possibly a temporary fix for a
    bad failure mode on bad multipart messages.
    (folder_scan_content): Go until inend, not inend+1.  Changed the
    continuation and retry logic to be simpler and more robust.  If we
    can't find a marker within
    the atleast we need, just set it to 1, and try again, rather than
    just going to the next smaller limit (boundary check checks the
    length anyway).
    (header_append): streamline the empty line case.  And strip
    trailing \r's if there are any (\n's already stripped).
    (folder_scan_header): Reordered and cleaned up a lot.  Check for
    continuation only once, and compress lwsp then. Assume the header
    buffer already has end of line's stripped, and simplify some things:
        Only check for end of headers once and easier.
        Dont check to remove end of line character
    Dont bother testing inptr-start if we get a boundary match - it is
    always zero.
    (folder_scan_header): Removed the unused part variable, and a few
    pointless assignments.
    (folder_scan_header): Change the end limit to be 1 higher, to make
    sure we get all content.
    (folder_scan_content): And here too.
    (folder_scan_header): Killed a warning.
    (folder_push_part): Removed a bad comment.  Actually
    boundarylenfinal can be zero for a new message not in a
    multipart.  So we fix that here.

2000-11-09  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (header_decode_param_list): Renamed from
    header_param_list_decode.
    (header_param_list_decode): New external function to decode a
    parameter list.
    (header_param_list_format_append): Made public.
    (header_param_list_format): Another new public helper function for
    formatting just a param list.

    * camel-folder-summary.c (next_uid_string): Default implementation
    is the same as before.
    (camel_folder_summary_class_init): And set it up.

    * camel-folder-summary.h: Make next_uid_string a virtual function.

    * camel-folder.c (camel_folder_change_info_changed): New function
    to return true if the changeset contains any changes.

2000-11-14  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-stream.c (camel_stream_printf): Don't cast an int to a
    ssize_t.

2000-11-10  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_build_from): put a space before a single-digit
    day of the month since it seems some mailers are fantastically
    picky about this. (bugs.gnome.org #27232)

2000-11-10  Radek Doulik  <rodo@helixcode.com>

    * camel-mime-utils.c (header_msgid_generate): fix ids ending with '.'

2000-11-09  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-auth.c (imap_try_kerberos_v4_auth):
    Fix error handling. (Only send a "*" to bail out of authentication
    if the server hasn't already bailed on us.)

2000-11-08  Radek Doulik  <rodo@helixcode.com>

    * camel-mime-utils.c (mime_guess_type_from_file_name): new
    function, moved from composer

2000-11-08  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-message.c (find_best_encoding): Keep track of the
    caller bestenc flags that make sense.
    
    * camel-mime-filter-bestenc.c (filter): Added code to detect when
    we have "^From " lines in the sequence of text.
    (camel_mime_filter_bestenc_get_best_encoding): Added a new flag
    CAMEL_BESTENC_NO_FROM: if set, it will not allow any lines
    matching "^From " to appear in the output - currently forcing
    base64 encoding to achieve this.

    * camel-mime-parser.c (folder_scan_step): Call
    camel_mime-filter_complete() once we're done, rather than
    filter_filter().
    (folder_scan_content): Some fixes for state changing; so that when
    we do find another boundary it is properly flagged.  Since we
    strip the last \n off all data, we must take that into account
    too.  Sigh.  Fixes a rather nasty set of bugs where multipart
    messages could start including following messages as parts, etc.
    (struct _header_scan_stack): Added new parameter,
    boundarylenfinal, which holds the length of the final boundary, if
    it is different (e.g. for From lines, whihc aren't)
    (folder_scan_step): Setup teh boundarylenfinal value when creating
    a new boundary.
    (folder_scan_content): Hmm, if we hit the end-of-buffer sentinal,
    reset the scanner back to leave 'atleast' chars in the buffer
    still, dump that content, and retry again.  Stops us losing a
    check for a boundary on some data we haven't really looked at yet!
    (folder_scan_content): Use boundarylenfinal to calculate
    'atleast'.
    (folder_scan_header): And here too.
    (folder_boundary_check): Use the atleast value directly, dont
    truncate it.  Use the boundarylen/boundarylenfinal values directly
    too.
    (struct _header_scan_stack): Add an atleast parameter to cache the
    atleast info.
    (folder_push_part): Determine/set 'atleast', every time we add a
    new part.
    (folder_scan_header): Get the cached atleast info from the current
    part.
    (folder_scan_content): And here too.
    (folder_scan_header): Fix a problem where a part starting with
    " text" would be interpreted as a followon header wrongly.

    * camel-mime-filter-charset.c (complete): Add some assertions to
    find a bug.

2000-11-07  Ettore Perazzoli  <ettore@helixcode.com>

    * camel-service.c (get_name): Strdup the "???" string you return,
    so that the expected semantics for `::get_name()' is respected.

2000-11-07  Dan Winship  <danw@helixcode.com>

    * camel-stream-filter.c (d): Kill debugging, as it causes lots of
    evolution-mail spewage.

2000-11-07  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-filter-bestenc.c (complete): Implement a complete()
    function, now we need one.
    (filter): Upgraded to match rfrc2045 properly.  Checks also for
    length of line and valid CRLF sequences.
    (camel_mime_filter_bestenc_get_best_encoding): Do the work of
    working out what is the best encoding given what we found about
    the stream.

    * camel-mime-part.c (camel_mime_part_encoding_to_string): Use a
    lookup table to get the encoding naem, and add the binary type.
    (camel_mime_part_encoding_from_string): Likewise for the reverse.

    * camel-mime-part.h: Added the binary encoding type, see rfc2045.

    * camel-mime-utils.c (header_param_list_format_append): Dont put a
    space before ;'s in parameter lists, makes them more
    readable/consistent.

    * camel-mime-message.c (multipart_has_8bit_parts): Cleaned up the
    old stuff, well removed it.
    (camel_mime_message_set_best_encoding): Added another argument
    that lets you select what you want to set the best of.  i.e. for
    smtp transport we only need 7 bit, and dont need to optimise the
    charset (although of course, we should always).
    (find_best_encoding): Implement this feature, if we are not
    getting the best charset, use the one we have.
    (best_encoding): Set the charset on the part appropriately.  Sigh,
    the interfaces for this are nonexistant.
    (find_best_encoding): Tell the bestenc filter that lf should be
    treated as crlf for the purposes of determining encodings.

2000-11-06  Not Zed  <NotZed@HelixCode.com>

    * camel-charset-map.c (camel_charset_init): Init function for an
    iterative charset determinator.
    (camel_charset_step): Iterate another buffer.
    (camel_charset_mask): Removed, since it couldn't have worked.
    (camel_charset_best): Use the iterative interface to do the work.
    (camel_charset_best_name): Get the best name for a charset so far.

    * camel-mime-filter-bestenc.c: New class, a stream
    filter that can be used to memory-efficiently determine the best
    encoding and/or charset to use for a given stream of bytes.

    * Makefile.am (libcamelinclude_HEADERS): Added stream-null*.
    (libcamel_la_SOURCES): Added bestenc*

    * camel-stream-null.c: New class, a null-stream, that always
    succeeds, and never has any contents.

    * camel-stream.c: Minor pointless changes.  Was going to do
    something else but changed my mind.  Added trivial default
    implementations for all callbacks.

    * camel-mime-message.h: Cleaned up some old cruft.

    * camel-folder-summary.c (camel_folder_summary_format_address):
    address_list_format() no longer encodes, so we dont need to decode
    it.

    * camel-address.c (camel_address_unformat): New function, attempts
    to reverse the formatting process on display addresses.
    (camel_address_length): New function to get the number of
    addresses, without having to peek the structure.

    * camel-mime-message.c (camel_mime_message_set_from): Fix a typo.
    (camel_mime_message_finalize): Only unref from/reply_to if we have
    it.
    (camel_mime_message_set_recipients): New function - set the
    recipients as a CamelInternetAddress.  This function effectively
    deprecates the older recipient setting functions.
    (camel_mime_message_add_recipient): What the hell, i'll bite the
    bullet.  Terminate this function.  The old api was ambiguious and
    inefficient and didn't work right anyway.
    (camel_mime_message_remove_recipient_address): And this one.
    (camel_mime_message_remove_recipient_name): And this one too.
    (camel_mime_message_set_recipients): If we set an empty header,
    then remove it from the header list.  Allow a null receipient
    object to clear a header.
    (camel_mime_message_set_from): Likewise, if setting an empty from
    address.
    (camel_mime_message_encode_8bit_parts): Eeek!!
    camel_stream_mem_new_with_byte_array owns the byte_array we give
    it, so make sure we dont free any of it!
    (camel_mime_message_encode_8bit_parts):  Infact, i'll just rewrite
    the whole lot, its a bit of a mess.  Should really rename it and
    make it a little more useful too, lets see ...
    (best_encoding): This has a string interface?  Oh boy.
    (camel_mime_message_foreach_part): New experimental function to
    iterate over all message parts.  Might not remain.
    (camel_mime_message_has_8bit_parts): New implementation using
    foreach_part.  Fixed a couple of problems.
    (find_best_encoding): New function, that finds the best encoding
    for a given part (will probably be moved to camel-mime-part), and
    also the best charset to use if it is a text part.  Since one
    affects the other it is a two pass process, but uses streams and
    not memory to achieve this.
    (camel_mime_message_set_best_encoding): Uses the function above to
    configure an entire message for the best encoding possible given
    transport constraints.
    (camel_mime_message_encode_8bit_parts): Reimplemented to use the
    function above to perform the work.

    * camel-internet-address.c
    (camel_internet_address_format_address): Dont put <> around a lone
    address with no real name.
    (camel_internet_address_encode_address): Similarly.
    (internet_decode): Actually return the count of decoded addresses.
    (internet_unformat): Implement the unformatting routine.

2000-11-05  Not Zed  <NotZed@HelixCode.com>

    * providers/smtp/camel-smtp-transport.c (_send_to): Changed to get
    the internetaddress directly, rather than having to parse it
    itself.

    * camel-address.c (camel_address_format): Added a new function
    which will format address, suitable for display.
    (camel_address_cat): Concatentate 1 camel address onto another.
    It is upto the caller to ensure the addresses are of compatible
    types.
    (camel_address_new_clone): New function to create a new address by
    copying an existing one of the same type.
    (camel_address_copy): New helper function to copy an address.

    * camel-mime-message.h (struct _CamelMimeMessage): Removed cached
    copy of date string.
    (struct _CamelMimeMessage): Added date_received info.

    * camel-mime-message.c (camel_mime_message_get_date_string):
    Removed.  Nothing uses it anyway, and it is redundant.
    (camel_mime_message_finalize): No more date_str.
    (camel_mime_message_init): No more date_str, initialise
    date_received*
    (write_to_stream): Change the check for a date header.
    (process_header): No longer track the date_str.
    (camel_mime_message_get_received_date): Removed.  totally invalid
    anyway.
    (camel_mime_message_get_sent_date): Removed.  Redundant.  The only
    'date' is the sent date, the received date is just made up.
    (camel_mime_message_get_date): Args changed to be more consistent
    with utility functions.
    (camel_mime_message_get_date): Dont set the date when we're asked
    for it (if its not set by the time its written, it'll be set
    then).
    (camel_mime_message_get_date_received): Actually do 'the right
    thing' here, if we have a received header, use that to determine
    the received date.  And return the data in the same format as
    get_date.
    (camel_mime_message_set_from): Changed the api to better match
    what we should be doing.  Pass a camelinternetaddress, etc.
    (camel_mime_message_set_reply_to): Cahnged similarly to take an
    internetaddress.
    (camel_mime_message_get_reply_to): Likewise.
    (camel_mime_message_finalize): Unref the from/reply_to objects.
    (format_address): Removed, no longer needed.
    (process_header): Changed to store the from/reply_to as
    internetaddress's.
    (write_to_stream): Set the from header directly to empty, if we
    dont have one.  Maybe we should just abort, and/or create one
    based on the current user.

    * camel-mime-utils.c (header_address_list_format): Renamed to
    header_address_list_encode, which is what it is actually doing.
    (header_address_list_format_append): Similarly.
    (encoding_map[]): Removed, no longer used.
    (header_address_list_encode_append): Take another arg, do we
    encode the address (for internet), or not (for display - utf8
    only).
    (header_address_list_format): Re-added this function, but now it
    generates a display version only.  Surprise surprise, that is all
    anythign needs to generate anyway.  Sigh.

    * camel-internet-address.c (camel_internet_address_get): Return
    false if we get an invalid index only.
    (camel_internet_address_encode_address): Helper function to encode
    a single address for mailing.
    (internet_encode): Use the above function to format it.
    (camel_internet_address_format_address): Format a single address
    for display.
    (internet_format): Implement the display version.
    (camel_internet_address_class_init): Init the internet_format
    virtual function.
    (internet_cat): Implement virtual function to concatenate
    addresses.

    * camel-folder-summary.c
    (camel_folder_summary_info_new_from_header): new function, only
    build the summary info, dont add it.
    (camel_folder_summary_info_new_from_parser): Likewise, for new
    info from parser.
    (camel_folder_summary_add_from_parser): Cahnged to call function
    above to build info.
    (camel_folder_summary_add_from_header): Changed to call function
    above, to build info.
    (camel_folder_summary_info_free): New function to free the summary
    message info.
    (camel_folder_summary_clear): Changed to clal above to free info.
    (camel_folder_summary_remove): Likewise.
    (camel_folder_summary_add): Cleaned up the clashing uid
    re-assignment logic a little bit.
    (camel_folder_summary_decode_uint32): Fixed a typo, 01 != -1.
    (camel_folder_summary_decode_time_t): Return -1 on error.
    (camel_folder_summary_encode_off_t): New function to encode an
    off_t type.
    (camel_folder_summary_decode_off_t): And likewise for the reverse.
    (CAMEL_FOLDER_SUMMARY_VERSION): Bumped the summary version, since
    we're now encoding time/off_t's right.
    (summary_header_save): Use time_t encoder to save the timestamp.
    (summary_header_load): Likewise for decoding the timestamp.
    (content_info_load): Decode off_t types directly, now we can.
    (content_info_save): And likewise for encoding.
    (camel_folder_summary_add_from_message): New function, create a
    summary item from an existing message and add it.
    (camel_folder_summary_info_new_from_message): New function, create
    a summary item from an existing message.
    (summary_build_content_info_message): New function to do the dirty
    work of building the conent info/indexing, from a message source.
    (format_recipients): Format an internetaddress suitable for the
    summary.
    (message_info_new_from_message): Build a new summary item from a
    mime message.
    (content_info_new_from_message): Build a new conent info from a
    mime part.
    (camel_folder_summary_class_init): Init the new class functions.
    (message_info_new_from_message): Fixed for message api change.

    Added documentation to the functions.
    
2000-11-03  Radek Doulik  <rodo@helixcode.com>

    * camel-mime-utils.c (header_msgid_generate): new function,
    generates simple message/content id

2000-11-04  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Set the
    preface/postface from the parser into the multipart object.

    * camel-multipart.c (camel_multipart_set_postface): Function to
    set the postface text on a multipart.
    (camel_multipart_set_preface): Similarly for preface text.

    * camel-mime-parser.c (folder_scan_content): If we scan until a
    boundary, then we do not include the \n that starts the boundary
    line in the content.
    (struct _header_scan_stack): Added a ByteArray to store the
    multipart pre/post-text as we're scanning.
    (folder_pull_part): Free pre/posttext if they are allocated.
    (folder_scan_step): Build into the pre/posttext arrays as we
    encounter data.
    (camel_mime_parser_preface): REturn the multipart preface text, if
    there is any scanned.
    (camel_mime_parser_postface): Likewise for postface text.
    (byte_array_to_string): helper function for above.

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): Change
    the from line to be "\nFrom ..." always, so no need to
    check/append a \n to messages.
    (mbox_append_message): Open the output stream with append mode
    [assuming this is more efficient than seeking to the end]
    And dont prepend \n  on the From line if its the first in the
    mbox.
    (mbox_append_message): Pass the offset of the real start of the
    "From " line when we perform the update (which may != 'seek')

    * camel-mime-filter-charset.c (complete): Removed the terminating
    NUL 'fix'.

    * camel-stream-filter.c (do_read): Added some debug.
    (do_flush): And here.
    (do_write): And here too.
    (do_write): ARGH!!! ARGH!  Ok, so the filter stream was writing a
    different number of bytes than the requester was asking it to
    write (because of filtering, of course!).  So instead of returning
    the true number of written bytes, we'll return what they asked us
    to write - unless there is an error in which case we return -1.

    * camel-mime-utils.c (base64_encode_close): Sigh, forgot to make
    it unsigned.  I think this is actually a gcc bug as (48 >> 2)
    somehow ended up negative, when it obviously should not, even if
    the data load was signed.

2000-11-03  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-url.c: Undo my incorrect fix - I misunderstood danw -
    sorry!

2000-11-03  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (camel_pop3_store_expunge):
    Unbreak this.

2000-11-03  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-url.c (camel_url_to_string): If show_pass, then base64 the
    password before writing it to the output string.
    (camel_url_new): Assume password has been base64 encoded and
    decode accordingly.

2000-11-03  Dan Winship  <danw@helixcode.com>

    * camel-provider.h: Add an "url_flags" field to CamelProvider.
    Move the CAMEL_SERVICE_URL_* defines here and remove the SERVICE_
    part of the name.

    * camel-service.h: Remove CAMEL_SERVICE_URL_* flags and
    service->url_flags field.

    * camel-service.c (check_url, get_path): Get URL flags from
    service->provider, update for changed flag names.

    * providers/*/camel-*-provider.c: Add URL flags to provider
    structures.

    * providers/*/camel-*-{store,transport}.c, camel-remote-store.c:
    Remove service->url_flags initialization.

2000-11-02  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Quote
    foldernames when sending to the IMAP server because the folder
    name might contain spaces.

2000-11-02  Not Zed  <NotZed@HelixCode.com>

    * Merged in camel-incremental-branch.

2000-11-01  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Remove old
    subbed folders from hash table after freeing them.

    * providers/imap/camel-imap-folder.c (imap_get_full_name): Deal
    correctly with namespace == ""

2000-11-01  Gediminas Paulauskas  <menesis@delfi.lt>

    * camel-charset-map.c, camel-charset-map-private.h: synced all charsets
    with ones found in libunicode. Just include more "iso/*.h" and rebuild
    ...private.h with this.
    
2000-10-31  Dan Winship  <danw@helixcode.com>

    * camel-service.c (service_disconnect): Add a new argument, clean,
    that says whether or not to try to disconnect cleanly.

    * camel-remote-store.c (remote_send_string, remote_send_stream,
    remote_recv_line): disconnect uncleanly on failure to prevent
    infinite loops when providers would normally send commands from
    disconnect(). Remove some unneeded CamelException goo.

    * providers/smtp/camel-smtp-transport.c (smtp_disconnect): 
    * providers/pop3/camel-pop3-store.c (pop3_disconnect): 
    * providers/nntp/camel-nntp-store.c (nntp_store_disconnect):
    * providers/imap/camel-imap-store.c (imap_disconnect): Don't send
    QUIT/LOGOUT if !clean.

2000-10-30  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-auth.c: New file with code for IMAP
    authentication mechanisms. (Currently just krb4, and without
    integrity/privacy protection).

    * providers/imap/Makefile.am: Add camel-imap-auth.[ch] and krb4
    CFLAGS/LDFLAGS

    * providers/imap/camel-imap-store.c (connect_to_server): Split out
    from imap_connect. Just does the basic connect and CAPABILITY
    check. Redo the CAPABILITY code more robustly.
    (query_auth_types_connected): Do this right rather than punting to
    query_auth_types_generic. Check for KERBEROS_V4 if compiled with
    krb4 support.
    (query_auth_types_generic): Mention KERBEROS_V4 if compiled with
    krb4 support.
    (imap_connect): Use connect_to_server().

    * camel-mime-utils.c (base64_encode_step, base64_encode_close):
    Take an additional argument, "break_lines", saying whether or not
    to add '\n's to the output.

    * camel-multipart.c (set_boundary): 
    * camel-mime-filter-basic.c (filter, complete): Update for base64
    api change.

2000-10-30  Peter Williams  <peterw@helixcode.com>

    * providers/imap/camel-imap-store.c (unsubscribe_folder): Correct
    parameters to g_hash_table_lookup_extended.

2000-10-29  Dan Winship  <danw@helixcode.com>

    Improved IMAP namespace handling: leave the namespace in the
    folder names rather than constantly prepending it and stripping it
    off. Also some subscription fixes.

    * camel-store.c (camel_folder_info_build): Fix for the case where
    @top isn't in @folders.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Add
    a "short_name" argument rather than figuring it out ourselves.
    (imap_get_full_name): Implementation of CamelFolder::get_full_name
    that strips off namespace so the user doesn't have to see it.
    (imap_append_message, imap_copy_message_to, imap_move_message_to):
    Use folder->full_name rather than calling
    camel_imap_store_get_folder_path.

    * providers/imap/camel-imap-utils.c (imap_parse_list_response):
    Update this: make @flags a bitmask and @sep a char rather than a
    string. Make all of the out arguments optional. Handle literals in
    the server response.

    * providers/imap/camel-imap-store.c (imap_connect): Do a better
    job of getting the correct dir_sep for the namespace we're using.
    Construct a base_url here that will be used by get_folder_info.
    (camel_imap_store_folder_path): Removed
    (imap_folder_exists): Add an argument to return the short name of
    the folder (parsed out of the LIST response). Update for
    imap_parse_list_response change.
    (get_folder): Update for the various other changes.
    (get_folder_info): Update for the various other changes. Be more
    consistent about the returned layout: put everything underneath
    the "namespace" directory, including INBOX, even if it doesn't
    belong there. Don't destroy the list of subscribed folders until
    we've actually gotten the new list.
    (folder_subscribed, subscribe_folder, unsubscribe_folder): Use
    folder_name directly rather than camel_imap_store_folder_Path.

    * providers/imap/camel-imap-command.c (camel_imap_command): Update
    for folder name changes.

2000-10-29  Dan Winship  <danw@helixcode.com>

    * camel.h: Remove md5-utils.h include since it's not part of Camel
    any more.

    * camel-charset-map.c: Kill some warnings.

    * providers/nntp/camel-nntp-grouplist.c
    (camel_nntp_get_grouplist_from_file, camel_nntp_grouplist_save):
    Clean up warnings about time_t casts.

    * providers/smtp/camel-smtp-transport.c: Remove unused md5-utils.h
    include.

    * providers/pop3/camel-pop3-store.c: Undefine the "_" macro
    defined by krb4's des.h when compiling with krb support.
    Fix md5-utils.h include.

2000-10-27  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_param_list_format_append): Only quote
    Content-type parameters when the quoting is mandatory, and deal
    with embedded quotes/backslashes when quoting.

2000-10-27    <jpr@helixcode.com>

    * providers/pop3/Makefile.am: Tidy up build

    * providers/smtp/Makefile.am: ditto 
    
    * Makefile.am:  Move md5-utils.[hc] to e-util because the 
    addressbook is going to use md5 hashes for pilot syncing.
    Maybe the calendar conduits as well because this is a good idea
    Chris had.

2000-10-26  Kjartan Maraas  <kmaraas@gnome.org>

    * camel-exceptions-list.def: Add newline to kill warnings.
    
2000-10-25  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Fix folder
    listing code infinite loop.

    * camel-store.h: Add a "parent" field to CamelFolderInfo.

    * camel-store.c (camel_folder_info_build): Deal with "parent"
    (camel_store_folder_subscribed, camel_store_subscribe_folder,
    camel_store_unsubscribe_folder): Add g_return_if_fails checking
    that the folder supports subscriptions.

    * providers/imap/camel-imap-store.c (folder_subscribed,
    subscribe_folder, unsubscribe_folder): Remove "+ 1"s since the
    mail subscribe UI won't prepend / to the folder names now.
    (get_folder_info): Clear the "parent" field of the folderinfos
    when removing an empty top level.

    * providers/nntp/camel-nntp-store.c (nntp_store_folder_subscribed,
    nntp_store_subscribe_folder, nntp_store_unsubscribe_folder):
    Remove "+ 1"s since the mail subscribe UI won't prepend / to the
    folder names now.

2000-10-24  Chris Toshok  <toshok@helixcode.com>

    * providers/imap/camel-imap-store.h: add subscribed_folders.

    * providers/imap/camel-imap-store.c (camel_imap_store_class_init):
    fill in vtable entries for subscription functions.
    (camel_imap_store_finalize): new function, so we can free up our
    subscribed_folders hashtable.
    (camel_imap_store_init): set CAMEL_STORE_SUBSCRIPTIONS in the
    CamelStore flags, and create our subscribed_folders hashtable.
    (camel_imap_store_get_type): camel_imap_store_finalize is our
    finalize function.
    (get_folder_info): if we're looking at subscribed_only, clear out
    the subscribed_folders hashtable, use LSUB instead of LIST, and
    insert folder paths (prepended by their namespace if there is one)
    into subscribed_folders.  INBOX subscription support needs work,
    since we always show it, regardless of it's subscribed state.
    (folder_subscribed): new function.  just look up the folder_path
    in the hashtable.
    (subscribe_folder): new function.  use the imap SUBSCRIBE command,
    and if successful add it to the hashtable.
    (unsubscribe_folder): new function.  use the imap UNSUBSCRIBE
    command, and if successful remove it from the hashtable.

2000-10-24  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Fill in the
    message_count and unread_message_count flags (if !fast).

2000-10-23  Dan Winship  <danw@helixcode.com>

    * camel-object.h: #include gnome-i18n.h (and gnome-defs.h since
    the former depends on it.)

    * *: Add lots of _() and N_().

2000-10-23  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/Makefile.am (libcamelnntpinclude_HEADERS): add
    camel-nntp-types.h.

2000-10-23  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-command.c (imap_read_untagged): Fix a
    "how could this have been working before" memory overrun bug
    found by Vlad.

    * camel-op-queue.[ch], camel-thread-proxy.[ch]: These should have
    gone away a long time ago.

2000-10-20  Chris Toshok  <toshok@helixcode.com>

    * providers/Makefile.am (SUBDIRS): re-enable the nntp provider.

2000-10-20  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c (build_folder_info): add
    function to build a tree from the nntp group names (using '.' as a
    heirarchy separator.)  #ifdefed INFO_AS_TREE only.
    (build_folder_info_from_grouplist): if INFO_AS_TREE is selected,
    call build_folder_info instead of appending a new CamelFolderInfo
    to our list.
    (ensure_news_dir_exists): use e_mkdir_hier instead of failing if a
    parent directory (~/evolution/news generally) isn't there.

2000-10-19  Chris Toshok  <toshok@helixcode.com>

    * camel-folder-search.c: #include <sys/types.h> before <regex.h>

2000-10-19  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-utils.c (imap_parse_list_response):
    Fix a bug with "INBOX" (or anything else with NIL hierarchy
    separator) as the namespace.

    * providers/imap/camel-imap-folder.c (imap_refresh_info): Emit
    message_changed and folder_changed as appropriate.

2000-10-19  Dan Winship  <danw@helixcode.com>

    * camel-folder.c (camel_folder_refresh_info): Update comment here
    so refresh_info isn't just for reconnects any more. Make the
    default implementation a no-op rather than an error.

    * providers/nntp/camel-nntp-folder.c: Move refresh_info impl into
    camel_nntp_folder_new, since it would have leaked memory and not
    done anything useful if it was called later.

    * providers/mbox/camel-mbox-folder.c: Remove no-longer-necessary
    refresh_info impl.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Update imap_folder->exists, but don't actually load the new
    messages. This is a temporary workaround to deal with the IMAP
    provider stealing the message list focus at annoying times.
    (imap_copy_message_to, imap_move_message_to): Emit a
    folder_changed by hand, for now.

2000-10-19  Ettore Perazzoli  <ettore@helixcode.com>

    * providers/imap/Makefile.am (libcamelimapinclude_HEADERS): Add
    `camel-imap-stream.h'.

    * Makefile.am (libcamelinclude_HEADERS): Add `camel-charset-map.h'
    and `camel-charset-map-private.h'.

2000-10-18  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-part.c (camel_mime_part_set_description): The correct
    fix this time - the description should be encoded here and not in
    the camel-medium layer.

2000-10-30  Not Zed  <NotZed@HelixCode.com>

    * camel-folder.c (camel_folder_change_info_add_update): Fixed the
    changeset logic, which was completely wrong.

2000-10-27  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (quoted_encode_step): Removed is_blank() stuff.
    (header_decode_init): When we set the 'space' bit, dont clear all
    the others.
    (quoted_encode): Put back the safemask.  Yes we totally need it,
    see rfc 2047 section 5, parts (1) and (3).
    (CHARS_PSPECIAL): Remove '=' and '_' from the list of allowed
    characters (this is an allowed list, not a not-allowed list, like
    the ESPECIAL).
    (camel_mime_special_table): Updated for fixes to definitions.
    (CHARS_ESPECIAL): Added '_' to list of characters that should be
    encoded.

2000-10-26  Not Zed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_update):
    Use the new camel_folder_change_info_* stuff to build the update
    diff, rather than doing it ourselves.

    * camel-folder.c (camel_folder_change_info_add_source): Add a
    'source' list, used to create change lists.
    (camel_folder_change_info_add_source_list): Add a list of uid's,
    convenience function.
    (camel_folder_change_info_add_update): Add a uid to the list of
    uid's in the new updated list.
    (camel_folder_change_info_add_update_list): Add a bunch of uid's
    at once for the same purpose.
    (camel_folder_change_info_build_diff): Take the source list, the
    update list, and find the differences, building on the added or
    removed list as appropriate.

2000-10-20  Not Zed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c (removed_uids): REnamed from
    add_uid.
    (camel_mbox_summary_update): Oops, fix the reversed logic for
    determining the uid changesets.

    * camel-folder.c (message_changed): Oops, we want to change the
    uid, not add it.

2000-10-19  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-summary.c (camel_mh_summary_sync): Added a
    change list argument, and add expunged uid's to it.

    * providers/mh/camel-mh-folder.c (mh_init): Setup the change list.
    (mh_finalize): And free it.
    (mh_sync): Track changes, and send a folder_changed signal as
    appropriate.
    (mh_expunge): Likewise.
    (mh_append_message): Add the new uid to the change list and
    trigger a folder_changed event.

    * providers/mbox/camel-mbox-folder.c (camel_mbox_folder_new):
    Setup a mbox list of changes structure.
    (mbox_finalize): And free it.
    (mbox_expunge): Include the change list with the folder_changed
    event, and clear it off.
    (mbox_sync): And the same for when we are just syncing the folder.
    (mbox_append_message): And do the same here, after we've updated
    the folder.

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_build_from): Use gmtime_r to get the time
    thread-safely.
    (camel_mbox_summary_sync): Added a changeinfo argument.  Add any
    removed or changed messages to the changelists as appropriate.
    (camel_mbox_summary_update): Added a changeinfo argument.
    Genereate a list of added/removed uid's based on the difference
    before and after rebuilding the summary.

    * camel-folder.c (camel_folder_change_info_new):
    (camel_folder_change_info_add_uid): 
    (change_info_add_uid): 
    (camel_folder_change_info_remove_uid): 
    (camel_folder_change_info_change_uid): 
    (change_info_clear): 
    (camel_folder_change_info_clear): 
    (camel_folder_change_info_free):
    (change_info_cat): 
    (camel_folder_change_info_cat):  Bunch of utility functions for
    working with change info lists.
    (camel_folder_init): Init the change info list.
    (camel_folder_finalize): And free it.
    (thaw): Changed to pass through a list of changes, or to get the
    changed message uids from the camelfolderchangeinfo struct, and
    reset it.
    (folder_changed): Add the changed lists to the frozen change list
    if we are frozen.
    (message_changed): Add the message to the changed list if we are
    in the frozen state.

    * camel-folder.h (CamelFolderChangeInfo): New structure to hold
    information for the folder_changed event.

2000-10-18  Ettore Perazzoli  <ettore@helixcode.com>

    * camel-mime-filter-charset.c (complete): Put a zero at the start
    of the outbuf.

2000-10-18  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-part.c (add_header): No, we must not encode the
    headers here.  These interfaces ARE raw interfaces as they are
    defined in camel_medium.  Also removed a bogus/meaningless FIXME.
    (set_header): Likewise here, we must not.
    (process_header): Removed another bogus comment.

    * camel-object.c (shared_is_of_type): Comment out the spitting of
    a big warning when we're trying to determine types from code.

    * providers/mbox/camel-mbox-summary.c
    (message_info_new_from_parser): Only call ibex funcitons if we
    have an index.

    * providers/mh/camel-mh-summary.c (camel_mh_summary_add): Only
    call ibex functions if we have an index.
    (remove_summary): Likewise.
    (camel_mh_summary_check): Likewise.

    * providers/nntp/camel-nntp-store.c (nntp_store_get_folder):
    get_folder -> flags argument.

    * providers/vee/camel-vee-store.c (vee_get_folder): create->flags.

    * providers/pop3/camel-pop3-store.c (get_folder): Changed create
    -> flags.

    * providers/imap/camel-imap-store.c (get_folder): Added flags
    argument.

    * providers/mh/camel-mh-folder.c (camel_mh_folder_new): Added
    flags argument, and fixed code appropriately.

    * providers/mh/camel-mh-store.c (get_folder): Added flags argument.

    * camel-folder-search.c (message_body_contains): Perform a regex
    match on the contents of messages.  This wont quite work yet as
    message contents are encoded when written to a stream.
    (build_match_regex): Converts a number of strings into a regex
    matching pattern, escaping special chars.
    (match_message): match a single message from a folder, by uid.
    Slow.
    (search_body_contains): Changed to support matching where no index
    is supplied.  Matches are performed by retrieving message
    contents, etc.
    () WTF?  camel should not be including any widget headers.
    
    * providers/mbox/camel-mbox-folder.c (camel_mbox_folder_new):
    Added flags argument.
    (mbox_refresh_info): Changed into a NOP, the refresh info code
    moved into the new function.
    (camel_mbox_folder_new): If we have an index requested, build one,
    otherwise, remove an old one, or just dont do anything.

    * providers/mbox/camel-mbox-store.c (get_folder): Changed create
    to flags, changed code to suit.

    * camel-store.c (camel_store_get_folder): Changed create to flags.
    (get_folder_internal): And here.
    (get_folder): And here too.

    * camel-store.h (camel_store_get_folder): Change the create
    argument to be a flags argument.

2000-10-17  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_refresh_info): Remove
    cached info at the end of the summary when the folder shrinks
    between sessions. Also remove an untrue comment.
    (camel_imap_folder_new): Move the summary creation to after the
    folder selection again, since it depends on the uidvalidity
    having been set.

    * providers/imap/camel-imap-store.c (get_folder): Fix up
    summary_file to not include the namespace twice.

2000-10-17  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-part.c (set_header): Encode the header value.
    (add_header): Same.

2000-10-17  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-filter.c: Added some malloc check debugging stuff.

    * camel-mime-parser.c
    (struct _header_scan_state): Removed top_part, top_start, and
    pending.  I can't even remember why they were there, and they're
    not used anymore.

    * camel-mime-filter-basic.c (filter): Forgot to up the space here
    too.

2000-10-14  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-filter-basic.c (complete): Ok, so we hit a fixme, 3x
    just wasn't enough for some sequences.

2000-10-16  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-command.c
    (imap_read_response): Don't imap_next_word(respbuf + 2), instead
    use imap_next_word(respbuf) or else we'll skip over the second
    token.

2000-10-16  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-command.c
    (camel_imap_response_extract): Don't free 'resp' as it doesn't
    point to the beginning of the allocated data, instead free
    response->untagged->pdata[i]. Also, if '*resp' is equal to a space
    character, then set resp = imap_next_word (resp) rather than
    expecting resp++ to work (there's a list broken IMAP daemons that
    like to put extra spaces between tokens).
    (imap_read_response): Don't expect 'respbuf+2' to be where the
    untagged number response to start (see above fix for an
    explanation).

2000-10-16  Chris Toshok  <toshok@helixcode.com>

    * camel-service.c (get_path): when using the construct (flags &
    CAMEL_SERVICE_URL_NEED_*) make sure to do ((flags &
    CAMEL_SERVICE_URL_NEED_*) == CAMEL_SERVICE_URL_NEED_*)
    (check_url): same.

2000-10-16  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_disconnect): Only send
    the LOGOUT command if the store is connected.
    (imap_connect): Set the 'connected' state to TRUE when we
    successfully connect.
    (get_folder_info): if (!topfi), 'topfi' was allocated but then
    'fi' was set. I think Dan meant to set topfi since fi is an
    uninitialized value at this point.

    * providers/imap/camel-imap-command.c (imap_read_response): Check
    for the untagged BYE response and set the 'connected' state to
    FALSE if we receive the BYE response. Return NULL if we get a BYE
    response.

2000-10-16  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_info): Deal with
    the possibility of not getting a LIST response back for the top
    level.

2000-10-12  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-summary.c: Simple subclass of
    CamelFolderSummary that also keeps a UIDVALIDITY value (and
    doesn't, for the moment, build content info).

    * providers/imap/camel-imap-folder.c:
    (various): Use a CamelImapSummary to store/fetch summary info.
    (camel_imap_folder_new): Take a path to a file to use for the
    summary. Set the folder's permanent_flags correctly according to
    the server response. Read in the summary (checking the
    UIDVALIDITY) and update it if it's out of date.
    (imap_refresh_info): Just fetch UIDs and flags. If the UIDs all
    match, update the flags as needed and be done with it. Otherwise,
    delete messages that have been expunged from the server and fetch
    full summary info for any new messages.
    (imap_sync): Save the summary to disk.
    (imap_update_summary): Renamed from imap_get_summary_internal. Can
    now be told to get summary for only a subset of messages. Use
    camel-mime-utils functions rather than rolling our own header
    parsing.
    (imap_get_message_info_internal): Merged into imap_update_summary.
    (imap_set_message_flags): Don't marked the message FOLDER_FLAGGED
    if we're not actually changing the value of any of the flags.
    (camel_imap_folder_changed): Deal with EXISTS rather than RECENT.
    
    * providers/imap/camel-imap-store.c (imap_connect): Call
    camel_session_get_storage_path and save the value.
    (get_folder): Create a local directory to store summary
    information and pass a summary file name to camel_imap_folder_new.
    Don't call camel_folder_refresh_info from here any more since
    camel_imap_folder_new does it again.

    * providers/imap/camel-imap-command.c (camel_imap_command): Add a
    special case to this to make it possible to get the repsonses from
    a SELECT and still have store->current_folder be updated
    correctly.
    (imap_read_response): parse EXISTS rather than RECENT

    * camel-session.c (camel_session_get_storage_path): Use
    e_mkdir_hier.

    * camel-folder-summary.c (camel_folder_summary_remove_index): New
    function.

    * camel-mime-utils.c (header_raw_append_parse): fix this.
    (camel-mime-parser.c doesn't use this code because of the MEMPOOL
    optimization, so nothing was ever actually calling it before.)

2000-10-11  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-part.h (struct _CamelMimePart): Removed
    temp_message_buffer, and content_input_stream fields which seem to
    have come from nowhere, and are unused.

    * camel-mime-utils.c: Added a note about touching this file.
    Nobody is to touch it without asking me first.  That goes for you
    too Jeff.
    (header_decode_text): In what way is this broken?

2000-10-10  Not Zed  <NotZed@HelixCode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary_internal):
    Fix camel_summary_* function rename
    (imap_get_message_info_internal): Likewise.

    * camel-mime-parser.c (camel_mime_parser_finalise): Fixed a spelling mistake.

    * camel-folder-summary.c (camel_summary_format_address): Uh, why
    do we encode and then decode here ... sigh.  This is not the way
    to fix this.
    (camel_folder_summary_format_address): Renamed to a proper name,
    this was only supposed to be a private function.
    (camel_folder_summary_format_string): Likewise.  Oh i see why it
    was made public, code reuse by cut & paste.  Joy.

2000-10-11  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c (nntp_store_unsubscribe_folder): remove the leading '/'.
    (nntp_store_subscribe_folder): same.
    (nntp_store_folder_subscribed): same.

2000-10-11  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_move_message_to): Quote
    the mailbox name as it may contain spaces.
    (imap_copy_message_to): Same.

2000-10-10  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c
    (build_folder_info_from_grouplist): fill in message_count and
    unread_message_count properly.

    * providers/nntp/camel-nntp-newsrc.h: reformat.

    * providers/nntp/camel-nntp-grouplist.c
    (camel_nntp_get_grouplist_from_file): remove spew.

    * providers/nntp/camel-nntp-newsrc.c
    (camel_nntp_newsrc_group_get_num_articles_read): new function.
    (camel_nntp_newsrc_group_get_highest_article_read): robustification.

2000-10-10  Joe Shaw  <joe@helixcode.com>

    * providers/imap/camel-imap-store.c 
    (parse_list_response_as_folder_info): Check before dereferencing the
    sep pointer.

2000-10-10  Jacob "Ulysses" Berkman  <jacob@helixcode.com>

    * camel-*.c: teach camel about "its" vs. "it's"

2000-10-09  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c (finalize): write out the
    newsrc.
    (nntp_store_get_name): if @brief, just return host.

    * providers/nntp/camel-nntp-newsrc.c: robustification and bug
    fixes.

2000-10-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder-summary.c (camel_summary_format_address): Decode
    the resulting string.

2000-10-06  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-grouplist.c: new file.

    * providers/nntp/camel-nntp-grouplist.h: new file.

    * providers/nntp/camel-nntp-types.h: new file.

2000-10-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-utils.c (quoted_encode): Fix so that we don't encode
    every single char in the word. Also, do we need a safemask? I
    don't see why we would.
    (header_encode_string): Don't strip off the last char!!

2000-10-06  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/Makefile.am (libcamelnntpinclude_HEADERS): add
    camel-nntp-grouplist.h
    (libcamelnntp_la_SOURCES): add camel-nntp-grouplist.c

    * providers/nntp/camel-nntp-provider.c: add our own hash functions
    for nntp urls.

    * providers/nntp/camel-nntp-newsrc.c
    (camel_nntp_newsrc_group_is_subscribed): new function.
    (camel_nntp_newsrc_subscribe_group): new function.
    (camel_nntp_newsrc_unsubscribe_group): new function.

    * providers/nntp/camel-nntp-newsrc.h: add prototypes for
    _group_is_subscribed, _subscribe_group, and _unsubscribe_group.

    * providers/nntp/camel-nntp-store.c
    (build_folder_info_from_grouplist): new function.
    (nntp_store_get_folder_info): add subscribed_only_parameter.  if
    it's FALSE, load the grouplist and call
    build_folder_info_from_grouplist.
    (nntp_store_folder_subscribed): implement.
    (nntp_store_subscribe_folder): implement.
    (nntp_store_unsubscribe_folder): implement.
    (camel_nntp_store_init): add CAMEL_STORE_SUBSCRIPTIONS to the
    store's flags.

    * providers/mh/camel-mh-store.c (get_folder_info): add
    subscribed_only parameter.

    * providers/mbox/camel-mbox-store.c (get_folder_info): add
    subscribed_only parameter.

    * providers/imap/camel-imap-store.c (get_folder_info): add
    subscribed_only parameter.

    * camel-store.c (camel_store_supports_subscriptions): new function.
    (camel_store_folder_subscribed): new function.
    (camel_store_subscribe_folder): new function.
    (camel_store_unsubscribe_folder): new function.

    * camel-store.h: add prototypes and virtual functions for the
    subscribe implementation.  also, add a subscribed_only argument to
    camel_store_get_folder_info.

2000-10-05  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-utils.c (header_address_list_format_append): Encode
    the name part of the address and don't quote the name.
    (header_decode_text): Rewrote from scratch, the old code was badly
    broken.

2000-10-05  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-message.c (camel_mime_message_set_reply_to): Use the
    camel_address_encode function again.
    (camel_mime_message_set_from): Same.

2000-10-05  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-utils.c (quoted_encode_step): Modified to not encode
    space chars in the middle of a line.
    (isblank): New macro if we're not on a system with the GNU isblank
    extension.

    * camel-mime-message.c (camel_mime_message_set_from): Reversed my
    changes, don't header_encode_phrase - it generates broken headers.
    (camel_mime_message_set_reply_to): Same.

2000-10-04  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-utils.c (camel_nntp_get_headers):
    revert to old method (only use XOVER if OVER is supported.)

    * providers/nntp/camel-nntp-store.c
    (camel_nntp_store_get_overview_fmt): handle the case where the
    OVER extension isn't listed but LIST OVERVIEW.FMT works (again,
    INN 2.2).  enable the OVER extension in this case.

2000-10-04  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-utils.c (get_XOVER_headers): return a
    gboolean so we can tell if this command worked.  we can't key off
    the OVER extension being present because at least one server (INN
    2.2) doesn't report the OVER extension but implements the XOVER
    command.  This could of course just be because I'm a loser for
    thinking they were related in the first place.
    (camel_nntp_get_headers): always try XOVER first, and if it fails
    revert to the slow method.

2000-10-04  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-store.c (get_folder): Fix a case where
    a variable was free'd and then possibly used in an error message.

2000-10-04  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-provider.c
    (camel_provider_module_init): news: -> nntp:.

2000-10-04  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c (nntp_store_get_folder_info):
    use "nntp:" instead of "news:" since "news:" urls aren't supposed
    to have host/user/port info in them.  also, if there's a user
    defined in the url, put it in the urls for our folders.

2000-10-04  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-auth.c (camel_nntp_auth_authenticate):
    borrow some code from the imap provider to query the user for
    their password, and pass the user/passwd to nntp.  be extra
    paranoid and zero out the password before freeing it.

    * providers/nntp/camel-nntp-store.c (camel_nntp_store_init): add
    ALLOW_USER/ALLOW_PASSWORD/ALLOW_AUTH to the url flags.
    (nntp_store_query_auth_types_generic): return our list of
    auth_types.
    (nntp_store_query_auth_types_connected): broken, return same as in
    query_auth_types_generic.

2000-10-04  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_connect): IMAP4
    (pre-rev1) doesn't support the 'LIST "" ""' idiom, so don't use
    it. Just assume the dir_sep is '/'. Shrug.

2000-10-04  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-message.c (camel_mime_message_set_reply_to): Use
    header_encode_phrase instead.
    (camel_mime_message_set_from): Same.

2000-10-04  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (header_content_type_is): Handle the case
    where ct != NULL, but type and subtype are, and also match that
    against text/plain.

    * camel-folder-summary.c: Bump summary file version.
    (message_info_save): Save the size from the messageinfo.
    (message_info_load): Load the size from the summary file.
    (message_info_load): Fixed up the time_t saving/loading.  There
    was a reason the warning was left there ... obviously nobody could
    read the comment "/* warnings, leave them here */", why do i even
    bother.
    (camel_folder_summary_decode_time_t): Decode a time_t value from
    the summary file.
    (camel_folder_summary_encode_time_t): Encode a time_t value to the
    summary file.

2000-10-03  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-command.c (camel_imap_command): Quote
    the mailbox name when sending a SELECT request otherwise mailboxes
    with spaces in their names will cause problems.

    * camel-mime-message.c (camel_mime_message_set_reply_to): encode
    before setting.
    (camel_mime_message_set_from): Same.

2000-10-03  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-command.c: New file containing
    camel_imap_command and friends. Major camel_imap_command rewrite
    to remove duplicated code, make the parsing of literals be
    more safe/correct, deal with RECENT/EXPUNGE responses more
    consistently, and make it possible to implement the AUTHENTICATE
    command.

    * providers/imap/camel-imap-utils.c (imap_parse_nstring): New
    function, to parse an IMAP "nstring".

    * providers/imap/camel-imap-store.c: Move command stuff to
    camel-imap-command.c. Update for camel_imap_command changes.

    * providers/imap/camel-imap-folder.c: Update for
    camel_imap_command changes.
    (imap_append_message): CRLF filter the message before sending it.

    * providers/imap/Makefile.am: Add camel-imap-command.[ch], remove
    camel-imap-stream.[ch] for now.

2000-10-02  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-message.c (camel_mime_message_has_8bit_parts): New
    convenience function to determine if there are any 8bit mime parts
    in a mime message.
    (camel_mime_message_encode_8bit_parts): New convenience function
    to recursively reencode all 8bit mime parts to either
    quoted-printable or base64 depending on which would be the best
    encoding for that part.

    * providers/smtp/camel-smtp-transport.c (smtp_data): If the mime
    message contains 8bit parts and the server doesn't support 8bit
    transfers, reencode those parts before proceding with the send.
    (smtp_mail): If the mime message contains 8bit parts and the
    server supports the 8BITMIME extension to SMTP, notify the server
    that we'll be sending it 8bit mime parts.
    (_send_to): Find out if the message contains 8bit parts.

2000-10-02  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (_send_to): Use the
    CamelInternetAddress parser.
    (smtp_get_email_addr_from_text): deprecated.

2000-10-02  Dan Winship  <danw@helixcode.com>

    * camel-provider.h: Remove default_ports.

    * camel-remote-store.c (remote_connect): Get default_port from
    CamelRemoteStore rather than CamelProvider.

    * providers/{imap,nntp,pop3}/camel-*-store.c: Initialize
    CamelRemoteStore::default_port

    * providers/*/camel-*-provider.c: Remove default_ports.

2000-10-02  Dan Winship  <danw@helixcode.com>

    * camel-folder.[ch]: Remove
    camel_folder_{get,free}_subfolder_info, as we want to be able to
    scan the whole subfolder tree without having to open any folders,
    so this needs to be in CamelStore. Remove can_hold_folders and
    can_hold_messages flags; things that don't hold messages are no
    longer considered CamelFolders.

    * camel-folder-summary.[ch]: Remove CamelFolderInfo stuff.

    * camel-store.[ch]: Add camel_store_{get,free}_folder_info, as
    well as camel_store_free_folder_info_full and ..._nop for default
    implementations, and camel_folder_info_free and
    camel_folder_info_build as convenience functions. Turn
    CamelFolderInfo into a tree structure and also add an "url"
    member.

    * providers/*/camel-*-folder.c: Remove subfolder_info and can_hold
    stuff.
    * providers/*/camel-*-store.c: Add folder_info stuff.

    * providers/imap/camel-imap-folder.c (imap_summary_free): Free the
    summary elements with camel_message_info_free, not
    camel_folder_info_free. Oops.

    * providers/imap/camel-imap-utils.c: const poison

2000-09-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c: Fixed some memory leaks.
    (camel_smtp_transport_init): Initialize supports_8bit to FALSE.
    (smtp_helo): If server supports 8bit, set supports_8bit to TRUE.

    * camel-transport.h (struct _CamelTransport): Added variable
    gboolean supports_8bit (we'll need this eventually? - see bugzilla
    bug #53)

    * providers/smtp/camel-smtp-transport.c
    (smtp_get_email_addr_from_text): Ugh, no wonder people were
    getting illegal seek warnings *sigh*. I guess I can only blame
    myself for this one though :-(

2000-09-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (_send_to): Don't send the
    recipient data through smtp_get_email_addr_from_text - this is a
    complete waste. In fact, we don't want to have to use that
    function ever.

    * camel-internet-address.c, camel-address.c: Added some gtk-doc
    comments.
    
2000-09-28  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * camel-mime-utils.c (header_encode_string): Make sure to add the
    space char after an encoded word when the encoding is iso-8859-1.

2000-09-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message): When
    getting a literal string response, don't include the \r\n after
    the closing } (as in: "... {798}\r\n...")
    
    * providers/imap/camel-imap-stream.c (stream_read): Same.

2000-09-28  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (header_fold): New function to fold headers.

2000-09-27  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-parser.c (folder_scan_header): If we had an empty
    header, then it must be end of the headers too.
    (folder_scan_init): No we dont need to init the outbuf with a nul
    terminator.

    * camel-folder-summary.c (camel_folder_summary_set_uid): New
    function to reset the uid to a higher value.

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
    "something failed (yo!)" what sort of crap is this?  Fixed all the
    indenting again, what wanker keeps running stuff through indent?
    (message_info_new): Check the uid we loaded off the disk, if it
    existed already, assign a new one.  If it didn't then make sure
    the nextuid is higher.

    * camel-charset-map.c: New file, used to build a large unicode
    decoding mapping table, and use it to determine what is the
    lowest charset a given word can be encoded with.  Uses tables from
    libunicode's source.

    * camel-internet-address.c (internet_encode): Use
    header_phrase_encode to properly encode the fullname, as required.
    refixed indenting.  Who keeps doing that?
    (camel_internet_address_find_address): Changed fatal return/warnings
    into assertions.

    * camel-mime-utils.c (header_raw_append_parse): Check : explicitly
    (removed from is_fieldname() macro).
    (camel_mime_special_table): Changed to short, so we can represent
    more bit types.
    (quoted_encode): Take a mask of the safe chars for this encoding.
    (header_address_decode): Removed a #warning that makes no sense
    anymore.
    (header_decode_date): Fixed the 'broken date' parser code, if it
    ever decoded it it just threw away the result.
    (header_encode_string): Use better charset matching for encoding
    strings as well.

2000-08-31  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-summary.c (camel_mh_summary_sync): Save
    the index if we do a sync.
    (camel_mh_summary_check): Save the index here too.  Probably.

2000-09-27  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_command_extended):
    Return untagged data in a GPtrArray rather than a string, since it
    saves processing time and is much easier to deal with for several
    commands. Update for camel_imap_folder_changed change.
    (camel_imap_fetch_command): Update for camel_imap_folder_changed
    change.
    (imap_connect, imap_folder_exists): Update for
    camel_imap_command_extended change.

    * providers/imap/camel-imap-folder.c
    (imap_get_message_count_internal,
    imap_get_subfolder_info_internal, imap_search_by_expression):
    Update for camel_imap_command_extended change.

    (imap_get_summary_internal, imap_get_message_info_internal): Use
    camel_imap_fetch_command here now to get around the
    camel_imap_command_extended change.

    (camel_imap_folder_changed): turn expunged into a GArray of ints
    rather than a GPtrArray of strings representing ints.

2000-09-26  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_get_message_count_internal): Quote the folder name as it may
    contain spaces.
    (imap_get_subfolder_info_internal): Same.

    * providers/imap/camel-imap-utils.c (imap_parse_list_response): Do
    proper unquoting for folder names.
    (func_get_current_date): Implemented.

    * providers/imap/camel-imap-store.c
    (imap_folder_exists): Quote the folder name as it may have spaces.
    (imap_create): Same.
    (check_current_folder): Same.

2000-09-22  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_get_subfolder_info_internal): The root folder's name is "",
    not the namespace.
    (camel_imap_folder_new): constify folder_name.

    * providers/imap/camel-imap-store.c (get_folder): Create the
    folder with folder_name, not folder_path.
    (camel_imap_command_preliminary): Don't free cmdid here.

2000-09-21  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-utils.c (imap_create_flag_list): New
    function to convert Camel flags to an IMAP flag_list.
    (imap_parse_flag_list): Contrariwise.

    * providers/imap/camel-imap-store.c (camel_imap_command_*): Make
    the @ret arg actually optional, as (mostly) documented.
    (various): Don't pass "&result" to camel_imap_command_* if we're
    just going to immediately free it. Don't record status if we're
    not going to look at it.

    * providers/imap/camel-imap-folder.c: Likewise.
    (imap_summary_free): Use camel_folder_info_free.
    (imap_sync): Use imap_create_flag_list. Clear
    CAMEL_MESSAGE_FOLDER_FLAGGED after syncing so we don't keep
    re-syncing.
    (imap_append_message): Use imap_create_flag_list. Don't leak the
    memstream if the append fails.
    (imap_move_message_to): Use camel_folder_delete_message rather
    than doing it by hand.
    (imap_get_summary_internal, imap_get_message_info_internal): Use
    imap_parse_flag_list and header_raw_clear.
    (camel_imap_folder_changed): Use camel_message_info_free.

2000-09-21  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder_name): INBOX is
    case-insensitive.
    (get_root_folder_name): Make the root folder "" rather than "/".
    (get_folder): Update for root folder name change.
    (camel_imap_store_get_toplevel_dir): Removed. (Unused, unneeded.)
    (camel_imap_store_folder_path): New function to turn a Camel
    folder name into the corresponding namespaced IMAP path.
    (imap_folder_exists): Make this take a store and a path rather
    than a folder.
    (imap_create): Likewise
    (get_folder): Update for camel_imap_store_folder_path and other
    changes.
    (check_current_folder): Likewise.

    * providers/imap/camel-imap-folder.c: Change a bunch of CamelStore
    variables to CamelImapStore (and add a few more) to prevent excess
    gratuitous casting. Use camel_imap_store_folder_path where
    appropriate.
    (camel_imap_folder_new): Update for root folder name change.

2000-09-19  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_data): Use the
    linewrap filter to achieve full RFC0821 compliance.

    * camel-mime-filter-linewrap.[c,h]: New mime-filter to word-wrap.

2000-09-19  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-internet-address.c (internet_encode): When encoding the
    internet address, quote the name as the name may have commas or
    any other token which may later confuse our address parser.

2000-09-19  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_get_subfolder_info_internal): Fix the case where INBOX
    isn't returned in the folder listing.

2000-09-19  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: (init): Removed
    (camel_folder_init, camel_folder_construct): New object init
    function and public object constructor to replace the old init
    method in a more Gtk-like fashion.

    (get_parent_folder, camel_folder_get_parent_folder): Removed. No
    CamelFolder subclass was ever setting the parent_folder member, no
    code has ever needed to look at it, and fixing it would actually
    be pretty hard.

    (get_subfolder_info, camel_folder_get_subfolder_info): Renamed
    from ..._names. Deals in CamelFolderInfo now.
    (free_subfolder_info, camel_folder_free_subfolder_info): Likewise.

    (get_subfolder, camel_folder_get_subfolder): Removed.
    CamelFolderInfo contains the subfolder's full name, so this is
    unnecessary now, and removing it lets us get rid of the
    CamelFolder separator member, which is needed for the default
    implementation of this function, but not otherwise needed for most
    providers.

    Also, lots of code style fixes.

    * providers/*: Update CamelFolder subclasses for changes, although
    none of them fill in the message counts in the CamelFolderInfo
    yet.

2000-09-18  Christopher James Lahey  <clahey@helixcode.com>

    * camel-folder-search.c, camel-folder-search.h,
    camel-remote-store.c, providers/imap/camel-imap-folder.c,
    providers/imap/camel-imap-store.c: Fixed the #include lines to
    deal properly with gal.

2000-09-17  Dan Winship  <danw@helixcode.com>

    * camel-folder-summary.h: update CamelFolderInfo
    * camel-folder-summary.c (camel_folder_info_free): New function to
    free the contents of a CamelFolderInfo

2000-09-15  Dan Winship  <danw@helixcode.com>

    * camel.c (camel_init): Set camel_verbose_debug to TRUE if
    CAMEL_VERBOSE_DEBUG is set in the environment.

    * camel-remote-store.c (remote_send_line, remote_recv_line): only
    log if camel_verbose_debug is TRUE.

2000-09-14  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder): Don't use
    dir_sep as top-level directory, use "/".

    * providers/imap/camel-imap-folder.c (imap_expunge): Get rid of
    unused variable.

2000-09-13  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_expunge): Don't look at
    the response of the command. camel_imap_command_extended()
    processes EXPUNGE responses itself, so if we do it here too we
    remove twice as many summary items as we should.

2000-09-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_folder_exists): Rewrote
    to take a third argument (gboolean *selectable) so that we can
    find out if the folder is selectable or not as we look to see if
    it exists. Also, don't use EXAMINE because that will not work on
    non-selectable folders, so use LIST instead.
    (get_folder): Check to see if the folder exists even vefore
    calling imap_create as this will save time. If the folder does
    exist, find out if it's selectable. Moved the call to refresh_info
    here.

    * providers/imap/camel-imap-folder.c (imap_get_uids): Check for a
    NULL summary.
    (camel_imap_folder_new): Don't call refresh_info here - call it in
    get_folder() because we don't know if this folder even exists on
    the server yet! And even if it does, we don't know if it can hold
    messages or not yet.

2000-09-12  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-parser.c (folder_scan_step): Make sure *datalength is
    > 0 before calling camel_mime_filter_filter otherwise we will get
    a segfault if the filter calls iconv().

2000-09-08  Christopher James Lahey  <clahey@helixcode.com>

    * providers/nntp/camel-nntp-auth.c,
    providers/nntp/camel-nntp-auth.h: Fixed a warning.

2000-09-07  Dan Winship  <danw@helixcode.com>

    * camel-session.c (camel_session_get_storage_path): Make this not
    leak.
    
2000-09-07  Dan Winship  <danw@helixcode.com>

    * camel-session.c (camel_session_new): Make this take a path to a
    directory that Camel can use for its own nefarious purposes.
    (camel_session_get_storage_path): New function to return a path
    that a service can use for its own nefarious sub-purposes.

    * camel-service.c (camel_service_get_path): New method (and
    useful default implementation) to get a (relative) pathname
    corresponding to the service.

2000-09-06  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (connect_to_server): Make KPOP
    work again.

2000-09-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-message.c (camel_mime_message_get_received_date):
    Implemented (someone added these to camel-mime-message.h but never
    implemented them!!) - though it may not be right.
    (camel_mime_message_get_sent_date): Same.

2000-09-05  Dan Winship  <danw@helixcode.com>

    * camel-mime-part.c (camel_mime_part_get_filename): If a MIME part
    has no Content-Disposition, but does have a "name" on the
    Content-Type, return that as the filename.
    (process_header): strstrip the Content-Description

2000-09-05  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-utils.c (get_OVER_headers): care about
    response code.
    (get_HEAD_headers): same.
    (camel_nntp_get_headers): same.

    * providers/nntp/camel-nntp-store.h: get rid of
    CAMEL_NNTP_OK/ERR/FAIL.

    * providers/nntp/camel-nntp-store.c
    (camel_nntp_store_get_extensions): take CamelException arg and
    pass along to camel_nntp_command.
    (camel_nntp_store_get_overview_fmt): same.
    (nntp_store_connect): convert to using constants in
    camel-nntp-resp-codes.h
    (nntp_store_get_folder): make use of camel_nntp_folder_new.
    (camel_nntp_command_send_recv): new function to deal with auth
    challenge.
    (camel_nntp_command): split out most of this function into
    camel_nntp_command_send_recv.  also, return the actual response
    code instead of CAMEL_NNTP_OK/ERR/FAIL.

    * providers/nntp/camel-nntp-resp-codes.h: new file.

    * providers/nntp/camel-nntp-folder.h: prototype for
    camel_nntp_folder_new.

    * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): new
    convenience function.
    (nntp_folder_get_message): care more about the actual response
    code.

    * providers/nntp/Makefile.am (libcamelnntp_la_SOURCES): add
    camel-nntp-auth.c.
    (libcamelnntpinclude_HEADERS): add camel-nntp-auth.h.

    * providers/nntp/camel-nntp-auth.h: new file.

    * providers/nntp/camel-nntp-auth.c: new file.

2000-09-05  Peter Williams  <peterw@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_folder_exists): Don't free the
    result on error; the exception will have the relevant info.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Check for
    exceptions here.

    * providers/imap/camel-imap-store.c (imap_connect): Check the exception
    on the refresh_folders call.

    * providers/imap/camel-imap-store.h: Clean up some now-unused fields.

    * camel.c (camel_init): Call unicode_init again, now that libunicode
    will not initialize itself twice.

2000-09-02  Lauris Kaplinski  <lauris@helixcode.com>

    * camel-folder-search (search_header_contains): Use e_utf8_strstrcase

2000-09-01  Christopher James Lahey  <clahey@helixcode.com>

    * providers/imap/camel-imap-utils.c: Removed some unused
    functions.

2000-09-01  Peter Williams  <peterw@helixcode.com>

    * providers/nntp/camel-nntp-store.c (camel_nntp_command): Initialize
    the statically-allocated CamelException so that it doesn't contain
    junk data that camel_exception_set() may try to free.
    (camel_nntp_store_get_extensions): Same.
    (camel_nntp_store_get_overview_fmt): Same.

    * providers/pop3/camel-pop3-store.c (camel_pop3_command): Typo
    fix (if (*ret) -> if (ret)).

    * providers/pop3/camel-pop3-store.c (pop3_connect): Set the
    port # back to what was specified ASAP, so that the hash of
    the URL doesn't change (which causes a failure in
    service_cache_remove that leads to a segfault).

    * providers/imap/camel-imap-store.c (imap_connect): Clear the 
    exception after a failed LOGIN so that it doesn't pass through
    to the upper level and make mail think that the login failed.

    * providers/pop3/camel-pop3-store.c (pop3_connect): As above.

2000-08-31  Peter Williams  <peterw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (camel_pop3_store_get_type):
    Implement POP3 with the CamelRemoteStore now.
    (connect_to_server): Hack this a bit to get KPOP to work. Obey
    the new connection semantics of the remote store (implicitly).
    (query_auth_types_connected): Clear exceptions after attempts
    to connect; the code at the bottom will catch hard errors.
    Use camel_service_connect.
    (camel_pop3_command): Take a CamelException; now, when an error
    occurs, ret is set to NULL and the exception passes back the
    appropriate information.
    (pop3_get_response): Same as above.
    (pop3_try_authenticate): Give camel_pop3_command its exception
    and handle it properly.
    (pop3_connect): Call the parent classfuncs. Don't disconnect
    on error (done for us).

    * providers/pop3/camel-pop3-folder.c: Obey the camel_pop3_command
    semantics.

    * camel-remote-store.c (remote_query_auth_types_connected): Don't
    warn; just return NULL.
    (remote_query_auth_types_generic): Same.
    (remote_send_string): Filter out passwords in debugging output.

    * providers/pop3/camel-pop3-store.c (camel_pop3_store_init): Also
    set the ALLOW_AUTH flag.

    * providers/imap/camel-imap-store.c (camel_imap_store_init): Same.

2000-08-31  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c (camel_nntp_store_class_init):
    remove get_folder_name.
    (nntp_store_get_folder_name): remove.

2000-08-31  Lauris Kaplinski  <lauris@helixcode.com>

    * camel-mime-part.c (write_to-stream): Use filter only if we have one
    
2000-08-31  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-utils.c (get_OVER_headers): use
    camel_remote_store_recv_line.

    * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
    use camel_remote_store_recv_line to build message.  also, free our
    buffer so we don't leak like mad.

    * providers/nntp/camel-nntp-store.c:
    (camel_nntp_store_get_additional_data) remove.
    (camel_nntp_store_get_extensions): use
    camel_remote_store_recv_line.
    (camel_nntp_store_get_overview_fmt): same.  also, don't rely on
    _get_additional_data anymore since it's easier to parse without.
    (camel_nntp_command): use camel_remote_store_send_string and
    camel_remote_store_recv_line.

    * providers/nntp/camel-nntp-store.h: CamelRemoteStore is the
    parent class now.  remove istream/ostream since CamelRemoteStore
    takes care of that for us.  also remove the prototype for
    camel_nntp_store_get_additional_data.

    * providers/nntp/camel-nntp-newsrc.c (camel_nntp_newsrc_write):
    make sure to clear dirty bit.
    (camel_nntp_newsrc_read_for_server): don't worry about continually
    trying to open the file - if it fails we just return an
    unpopulated .newsrc file.

2000-08-31  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-newsrc.c
    (camel_nntp_newsrc_read_for_server): make this a bit more robust.
    try to create an empty .newsrc file for the server if we can't
    open it for reading.  also, don't allocate everything until we've
    opened the file.

    * providers/nntp/camel-nntp-utils.c (get_OVER_headers): make use
    of our overview field indices.
    (camel_nntp_get_headers): only call get_OVER_headers if the
    extension is present.  warn if it's not - since get_HEAD_headers
    needs work before it works.

    * providers/nntp/camel-nntp-store.c
    (camel_nntp_store_get_extensions): new function - query the server
    for it's extensions.
    (camel_nntp_store_get_overview_fmt): new function - query the
    server for the overview format and build our table of the indices
    we care about.  support the "full" suffix on fields.
    (nntp_store_connect): call camel_nntp_store_get_extensions and
    camel_nntp_store_get_overview_fmt.

    * providers/nntp/camel-nntp-store.h: add codes for extensions
    found on news.mozilla.org.  only one that we care about is OVER.
    also, add CamelNNTPOverField and an enum of the overview fields
    that we care about.

2000-08-31  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-utils.c (imap_translate_sexp):
    Reimplemented. It should now work correctly for most possible
    VFolder rules.

2000-08-31  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_command_extended):
    Don't save any exceptions caused by camel_imap_folder_changed
    (camel_imap_fetch_command): Same.
    
    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Using a new way of calculating the first recent message that seems
    more accurate. Also added code to make sure we don't accidently
    add a duplicate summary.

2000-08-31  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-part.c (write_to_stream): Use the proper type
    checking function to check for text types.
    (write_to_stream): If we have a charset on a text type that
    isn't us-ascii or utf-8, then we need to reencode it, so add a
    filter to do that too.
    (write_to_stream): Fix some warnings/use the right constructor,
    oops.
    (write_to_stream): Rearrange the logic so it always does charset
    conversion, and not just if we have a qp/base64 block.

    * camel-mime-utils.c (append_latin1): New function - even though
    its broken, we'll assume mailers send latin1 headers instead of
    us-ascii.  We just have to encode high chars into utf-8.
    (header_decode_text): Call append_latin1 for appending unencoded
    text segments.
    (append_latin1): Do an additional mask for account for c's
    undefined behaviour for sign extension whilst shifting right.

2000-08-30  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_fetch_command):
    Rewrote to ignore strings that look like server responses until it
    is sure that it has finished reading the literal string response.

2000-08-30  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * camel-remote-store.c (remote_send_string): Don't wrap printed
    strings in quotes, makes things messy
    
    * providers/imap/camel-imap-folder.c (imap_get_message): Updated
    to use the camel_imap_fetch_command
    
    * providers/imap/camel-imap-stream.c (stream_read): Updated to use
    camel_imap_fetch_command

    * providers/imap/camel-imap-store.c (camel_imap_command_extended):
    No longer handles FETCH requests so no longer needs to be
    concerned with checking to make sure that server responses are
    valid (they have to be).
    (camel_imap_fetch_command): New convenience function that handles
    all FETCH requests

2000-08-30  Peter Williams  <peterw@helixcode.com>

    * camel-remote-store.c (remote_connect): Unify with remote_post_connect.
    (remote_disconnect): Unify with remote_pre_disconnect.
    (camel_remote_store_class_init): Don't use the post_connect and
    pre_disconnect classfuncs anymore ; they weren't especially useful.

    * providers/imap/camel-imap-store.c (imap_connect): Use this again
    instead of implementing post_connect.
    (imap_disconnect): Analogous to above.

    * camel-session.c (camel_session_get_service_connected): New function.
    Like camel_session_get_service() but also connects to the service
    if needed. camel_session_get_{store,transport} (defined in the header)
    used this now, preventing annoying when-to-connect problems.

    * camel-service.c (camel_service_new): Revert to the old behavior
    of not connecting until told to do so. Otherwise doing auth
    testing correctly is really hard.
    (camel_service_connect): Fix behavior here (set the connected
    flag).
    (camel_service_disconnect): Unset the connected flag.

2000-08-30  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c: General cleanup / moving
    stuff around to make things easier to follow.

2000-08-30  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * camel-remote-store.c: Prevent exceptions from being overwritten

    * providers/imap/camel-imap-folder.c (imap_expunge): Beautified
    (imap_get_subfolder_names_internal): Removed old code as the
    replacement code has now been tested and proven to work

2000-08-29  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-utils.c: Removed old code that will
    never be needed again

    * providers/imap/camel-imap-store.c: Removed old code for
    try_connect - will never need this code
    (slurp_response): Update to make sure we aren't falsely detecting
    EXPUNGE flags

2000-08-29  Peter Williams  <peterw@helixcode.com>

    * camel-service.c (camel_service_connect): Uncomment this.
    (camel_service_disconnect): Same.

    * camel-remote-store.[ch]: New files. Abstract remote storages
    (IMAP, POP3, NNTP) and hides the lower-level networky stuff.
    
    * camel-service.c (camel_service_new): Take an extra argument, the
    provider that created us, cause it's useful.
    (camel_service_finalize): Unref our new provider member.

    * camel-session.c (camel_session_get_service): Pass the proper number of
    arguments to camel_service_new().

    * camel-imap-store.c: Massive update: 1) use the CamelRemoteService to
    make our life Very Easy (TM). 2) Change the semantics of all 
    camel_imap_command* functions to take exceptions, centralize tons of
    duplicate code, and use the handy RemoteStore utility functions

    * camel-imap-folder.c: Use the new semantics of camel_imap_command*

    * camel-imap-stream.c: Same.
    
2000-08-29  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_command_extended):
    Updated to check for EXPUNGE notifications

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Updated to account for messages which have been expunged (now
    takes a new arg, a GPtrArray of message id's that have been
    expunged)
    (imap_expunge): Updated (we may want to just use the code in
    folder_changed now instead of doing our own summary
    expunging...but that can be fixed later)
    (imap_append_message): Updated.
    (imap_copy_message_to): Updated.
    (imap_move_message_to): Updated.

2000-08-28  Peter Williams  <peterw@helixcode.com>

    * camel-folder.c (camel_folder_refresh_info): New member function,
    refresh_info, used for rereading folder state after its state has
    somehow become unknown. Tries to preserve last-known status of
    messages.

    * providers/mbox/camel-mbox-folder.c (mbox_refresh_info): Implement
    ::refresh_info (split up ::init)

    * providers/mbox/camel-mbox-store.c (get_folder): Call ::refresh_info.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Call
    ::refresh_info once initialized.
    (imap_refresh_info): New member function; reads the summary from
    the server (used to be in camel_imap_folder_new; split out).

    * providers/imap/camel-imap-store.c (imap_connect): Set
    CamelService::connected a little early so that 
    camel_imap_command won't try to connect while already
    connnecting.
    (camel_imap_command*): Try to connect if not connected already.
    
    * providers/pop3/camel-pop3-folder.c (pop3_refresh_info): Same as above.

    * providers/pop3/camel-pop3-folder.c (camel_pop3_folder_new): Same
    as above.

    * providers/pop3/camel-pop3-store.c (pop3_connect): Set 
    CamelService::connected a little early so that
    camel_pop3_command won't try to connect while already
    connecting
    (connect_to_server): Same.

    * providers/nntp/camel-nntp-folder.c (nntp_folder_refresh_info): Same
    as above.

2000-08-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message): Fixed the
    hack around quoted string responses - should now handle them
    according to the specifications in the RFC
    
    * providers/imap/camel-imap-stream.c (stream_read): Updated to
    match the code currently used in camel-imap-folder.c

2000-08-28  Ettore Perazzoli  <ettore@helixcode.com>

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
    Never ever free `tmpname' as it comes from `alloca()'!

2000-08-26  Ettore Perazzoli  <ettore@helixcode.com>

    * camel-mime-utils.c (header_decode_text): Use `g_free()', not
    `free()', to free `decword'.

2000-08-25  Peter Williams  <peterw@helixcode.com>

    * camel.c (camel_init): Don't call unicode_init; code in e-util
    will do it, and if unicode_init is called twice, you get an
    infinite loop when looking up nonexistant encodings (patch
    has been submitted to libunicode's maintainer).
    
    * camel-provider.h: Add a new field, default_ports, which
    helps the configuration code guess about how to make CamelURL's
    from providers.
    
    * providers/*/camel-*-provider.c: Specify default ports.

2000-08-25  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_get_subfolder_names_internal): If the url path is "/" and
    the folder path is "/", just LIST "" "*" (this should fix some
    cyrus imapd problems). Also, INBOX is case insensitive so use
    g_strcasecmp

2000-08-24  Lauris Kaplinski  <lauris@helixcode.com>

    * camel-folder-summary.c (summary_build_content_info):
    Use UTF-8 as default
    * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser):
    Use UTF-8 as default
    * camel-mime-utils.c (rfc2047_decode_word): Use UTF-8
    
2000-08-17  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-folder.c (mh_finalize): And here too.

    * providers/mbox/camel-mbox-folder.c (mbox_finalize): Close index
    on exit.

2000-08-23  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_address_list_format_append): put
    commas between addresses.

2000-08-22  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_protocol_get_summary_specifier): use BODY.PEEK, not BODY, so
    we don't set the message \Seen.

2000-08-22  Christopher James Lahey  <clahey@helixcode.com>

    * providers/pop3/camel-pop3-store.c: Fixed a small warning.

2000-08-22  Peter Williams  <peterw@helixcode.com>

    * camel-service.c (camel_service_new): Connect automatically if the
    URL is not empty.
    (finalize): Disconnect automatically if connected.
    (camel_service_query_auth_types): Split into two functions; one to
    be called if we're connected to an actual server (_connected), one
    to be called if we're just gauging the general authtypes supported
    (_generic).
    (is_connected): Remove.

    * camel-store.c (camel_store_get_folder): Don't connect explicitly to
    the service.

    * providers/nntp/camel-nntp-store.c (query_auth_types_generic): Split
    the query_auth_types function. Hook it up in _new.
    (finalize): Don't try to disconnect here.
    
    * providers/pop3/camel-pop3-store.c (query_auth_types_generic): Same.
    (finalize): Don't try to disconnect here.

    * providers/imap/camel-imap-store.c (query_auth_types_generic): Same.
    (finalize): Don't try to disconnect here.

    * providers/smtp/camel-smtp-transport.c (query_auth_types_generic): Split
    the query_auth_types (dummy, in this case) function. Hook it up in _new.
    (finalize): Don't try to disconnect here.

2000-08-21  JP Rosevear  <jpr@helixcode.com>
    
    * providers/nntp/camel-nntp-folder.c (nntp_folder_get_subfolder_names):
    Make sure newsrc is not null
    (nntp_folder_get_subfolder_names): ditto

    * providers/nntp/camel-nntp-newsrc.c 
    (camel_nntp_newsrc_get_subscribed_group_names): Programming check
    for newsrc == NULL
    (camel_nntp_newsrc_get_all_group_names): ditto
    (camel_nntp_newsrc_write_to_file): ditto
    (camel_nntp_newsrc_write): ditto

2000-08-21  JP Rosevear  <jpr@helixcode.com>

    * providers/nntp/camel-nntp-store.c (camel_nntp_command): 
    Make sure respbuffer is not null before manipulating it.
    If it is null, return CAMEL_NNTP_FAIL and a decent error
    message.
    
2000-08-18  Peter Williams  <peterw@helixcode.com>

    * camel-internet-address.c (internet_encode): If the name is "" we
    weren't outputting anything; output the address at least.

2000-08-16  Peter Williams  <peterw@helixcode.com>

    * camel-internet-address.c (internet_encode): Fix a leak when
    name = "". It's a single-byte leak, but it's the little things
    that count.

    * camel-object.c (camel_type_lock_up): Don't leave the type
    system locked when a bad unlock happens.

    * providers/mbox/camel-mbox-store.c (get_folder): Fix a leak.

2000-08-15  Peter Williams  <peterw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_copy_message_to): Typo fix.

2000-08-14  Peter Williams  <peterw@helixcode.com>

    * camel-folder-search.c (search_get_sent_date): New search function;
    returns the time_t when the message was sent.
    (search_get_receive_date): Same for when it was received.
    (search_get_current_date): Gets the current time for use with the
    above two. Is this in the right place?

    * camel-folder-search.h: Add the new functions above to the class.

2000-08-13  Dan Winship  <danw@helixcode.com>

    * providers/nntp/Makefile.am (libcamelnntpinclude_HEADERS): Add
    camel-nntp-utils.h

    * providers/imap/camel-imap-folder.c
    (imap_get_subfolder_names_internal): do a strcasecmp rather than
    just a strcmp when checking if a folder is "INBOX", since it is
    a case-insensitive name.

2000-08-12  Dan Winship  <danw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary_internal):
    Don't assume the FETCH results will come back in the order they
    were requested.
    (imap_get_subfolder_names_internal): Add "INBOX" to the list as
    g_malloc'ed memory, not a static string.

2000-08-12  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c
    (camel_imap_command_continuation): Now takes a char * parameter
    rather than a stream
    (camel_imap_command_continuation_with_stream): Same function as
    above but takes a stream parameter instead

    * providers/imap/camel-imap-folder.c (imap_append_message): Use
    camel_imap_command_continuation_with_stream

2000-08-12  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): New
    function to do one round of attempted authentication.
    (pop3_connect): Move a bunch of code out into
    pop3_try_authenticate and fix some bugs in the edge cases.

2000-08-12  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (query_auth_types): No longer
    calls try_connect() to get authtypes

2000-08-11  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c
    (camel_imap_command_continuation): Changed param order a bit and
    fixed some logic

    * providers/imap/camel-imap-folder.c (imap_append_message): Use
    the new multi-transactional convenience functions

2000-08-11  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * providers/imap/camel-imap-store.c
    (camel_imap_command_preliminary): New convenience function for
    multi-transactional commands (opening request)
    (camel_imap_command_continuation): New convenience function for
    multi-transactional commands (followup data)

2000-08-11  Christopher James Lahey  <clahey@helixcode.com>

    * providers/mh/camel-mh-folder.c: Fixed a warning.

2000-08-11  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-folder.c
    (camel_nntp_folder_class_init): remove get_name and get_full_name
    assignments, since the camel-folder.c implementation does what we
    need.

2000-08-11  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-store.c
    (camel_nntp_store_get_toplevel_dir): use g_get_home_dir, since
    evolution_dir isn't available in the providers.

2000-08-11  Peter Williams  <peterw@helixcode.com>

    * camel-folder.c (thaw): Fix a bug where the message_changed
    signal wasn't being emitted.

2000-08-11  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-folder.c (mh_set_message_user_tag):
    Implement.
    (mh_get_message_user_tag): Implement.

    * providers/mbox/camel-mbox-folder.c (mbox_get_message_user_tag):
    (mbox_set_message_user_tag): Implement.

    * camel-folder.c (move_message_to): Yay so lets fix an already
    fixed fix, again.
    (copy_message_to): and here too ... update for api change to append().
    And removed another warning.
    (camel_folder_set_message_user_tag): Routine to set message tags.
    (camel_folder_get_message_user_tag): And accessor.

2000-08-10  Christopher James Lahey  <clahey@helixcode.com>

    * camel-folder-search.c, camel-folder-summary.c, camel-medium.c,
    camel-mime-filter-charset.c, camel-mime-filter.c,
    camel-mime-filter.h, camel-mime-message.c, camel-mime-parser.c,
    camel-mime-part-utils.c, camel-mime-part.c, camel-mime-utils.c,
    camel-movemail.c, camel-multipart.c, camel-object.c,
    camel-stream-mem.c, providers/mbox/camel-mbox-folder.c,
    providers/mbox/camel-mbox-summary.c,
    providers/mh/camel-mh-folder.c,
    providers/smtp/camel-smtp-transport.c: Fixed some warnings.

2000-08-11  Not Zed  <NotZed@HelixCode.com>

    * providers/vee/camel-vee-folder.c (vee_folder_build_folder): Free
    the search properly.
    (vee_folder_build): And here too.

2000-08-10  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    If we go over the max number of messages, don't keep requesting
    new message summaries, just break.

2000-08-11  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-parser.c (folder_scan_header): A better way to
    compress leading whitespace.  The code is probably invalid anyway,
    I dont think it will work across buffer boundaries.

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): And
    write out proper format From lines here too.

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_build_from): New function to build a more
    compatible mbox "From " line.
    (camel_mbox_summary_sync): Write From lines in the proper format.

2000-08-10  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-store.c (get_folder): Remove warnin g.

    * providers/mbox/camel-mbox-store.c (xrename): Kill some warnings
    with constification.

    * providers/imap/camel-imap-folder.c (imap_append_message): Fixed
    for append api change.  Eek this routine seriously wastes memory.

    * providers/mh/camel-mh-folder.c (mh_search_free): Impelemnt.
    (mh_append_message): Fix for api change, and include user flags
    and tags in new message.

    * providers/vee/camel-vee-folder.c (vee_search_by_expression): Fix
    for search api change.

    * camel-folder.c (camel_folder_search_free): New function for
    freeing search results.
    (search_free): Changed my mind, implement a default that actually
    does something.  Free as to the old interface.
    (camel_folder_append_message): Changed to accept a
    camelmessageinfo rather than flags, which just doesn't have enough
    info in it.
    (copy_message_to): Change for append_message api change.
    (move_message_to): Likewise.

    * providers/mbox/camel-mbox-folder.c (mbox_search_free):
    Implement.
    (mbox_append_message): Fix for api change, and also copy user
    flags/tags across to new summary.

    * camel-folder-search.c (search_user_tag): A search expression
    that returns the current use flag by name.
    (camel_folder_search_free_result): New function to free the result
    of a search.

    * camel-folder-summary.c: Bump summary version.
    (message_info_new): 
    (message_info_load): 
    (message_info_save): 
    (camel_message_info_dup_to): 
    (camel_message_info_free): Added support for arbitrary tag/value
    pairs (CamelTag's).
    (camel_tag_get): 
    (camel_tag_set):
    (camel_tag_list_size):
    (camel_tag_list_free): Operations for working with CamelTags.

2000-08-09  Peter Williams  <peterw@helixcode.com>

    * camel-store.c (camel_store_get_folder): Connect beforehand, if
    necessary.

    * providers/imap/camel-imap-store.c (camel_imap_store_init): Default
    the dir_sep to "/" so that certain functions can safely assume that
    dir_sep is valid (at least, nonnull).

2000-08-09  Ettore Perazzoli  <ettore@helixcode.com>

    * providers/nntp/camel-nntp-folder.c
    (nntp_folder_set_message_flags): Get rid of an unused variable.

    * providers/nntp/Makefile.am (INCLUDES): Fix includes so that we
    don't use installed headers anymore.  [I copied this over from the
    IMAP provider, that does not seem to have this problem.]

2000-08-09  Not Zed  <NotZed@HelixCode.com>

    * camel-folder-search.c (camel_folder_search_execute_expression):
    Reorder search result in summary order if we searched with a
    summary.

2000-08-08  Dan Winship  <danw@helixcode.com>

    * camel-uid-cache.c: New code to keep an on-disk cache of what
    UIDs have been seen in a folder.

    * camel-provider.h: Add new flags CAMEL_PROVIDER_IS_SOURCE (mail
    can arrive in it by non-Camel means) and CAMEL_PROVIDER_IS_STORAGE
    (you can work with mail directly without needing to copy it local).

    * providers/*/camel-*-provider.c: Add flags as needed: imap and
    mbox are SOURCE and STORAGE. mh and nntp are just STORAGE, pop3 is
    just SOURCE.

    * camel-mime-message.c (process_header): Add another subject
    g_strstrip that fejj's earlier commit missed.

2000-08-08  Peter Williams  <peterw@helixcode.com>

    * camel-provider.h: Remove some GTK stuff that I missed.

    * providers/imap/camel-imap-store.c (imap_noop): Turn this
    back on with the new timeout interface in CamelSession.

    * camel-session.[ch] (camel_session_register_timeout): New
    interface for Camel to register timeouts. Basically the
    GTK timeout interface is copied. We do this because Camel isn't
    allowed to use GTK anymore.
    
2000-08-07  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-folder.c (mh_append_message): Only retry
    another uid if we had a name clash, otherwise fail.

2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_get_subfolder_names_internal): If we are trying to get a
    subfolder listing of the root folder, always make sure INBOX is
    there...

    * providers/imap/camel-imap-utils.c (imap_parse_list_response): 
    Check for NIL as a directory separator.

2000-08-07  Peter Williams  <peterw@helixcode.com>

    * providers/nntp/Makefile.am: Reorder the INCLUDES to pull
    in the camel headers from the local source tree before
    the ones in $(includedir). This was causing compile problems
    because the installed, Gtk-based camel-object.h was included
    before the uninstall Camel-based one.

2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-utils.c (imap_translate_sexp): Strip
    all \n's from the expression

    * string-utils.c (strip): New convenience function to strip
    occurences of a single char from a string

    * camel-mime-message.c (camel_mime_message_set_subject): Do a
    g_strstrip on the subject so we can stop getting those annoying
    leading spaces

2000-08-07  Dan Winship  <danw@helixcode.com>

    * camel-folder.c (camel_folder_free_deep): Fix this to not require
    NULL-termination of the array.

2000-08-04  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_connect): If we fail to
    get a dir_sep, then supply the default of "/".
    (get_folder): Undo changes by Peter

2000-08-04  Peter Williams  <peterw@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder): Prevent a coredump
    when get_folder()ing from a store with dir_sep = NULL.

2000-08-04  Peter Williams  <peterw@helixcode.com>

    * camel-store.h: Include camel-object.h. Ettore said this wasn't
    compiling.

2000-08-04  Not Zed  <NotZed@HelixCode.com>

    * camel-url.c (camel_url_set_protocol): 
    (camel_url_set_host): 
    (camel_url_set_path): 
    (camel_url_set_port): Url editing functions.

2000-08-04  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-folder.c (pop3_set_message_flags): 
    (pop3_sync): Indexes into the flags array are message_number minus
    1, not just message_number.

    * providers/pop3/camel-pop3-store.c: add a debugging macro for
    doing protocol tracing.

2000-08-03  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Only
    call imap_get_summary_internal if the folder can hold messages

    * providers/nntp/camel-nntp-provider.c (camel_provider_module_init): 
    Initialize the service_cache for the news/nntp providers

2000-08-03  Peter Williams  <peterw@helixcode.com>

    * providers/nntp/Makefile.am (INCLUDES): Add -I$(top_srcdir) to
    pull in libibex/ibex.h

2000-08-02  Not Zed  <NotZed@HelixCode.com>

    * providers/mh/camel-mh-summary.c (camel_mh_summary_sync): Expunge
    from the end, so the index isn't messed up when you remove a
    message.

    * providers/mh/camel-mh-folder.c (mh_append_message): Fix a bug
    where it would never open an output file/uid.

    * providers/mbox/camel-mbox-store.c (rename_folder):
    Implementation for mbox as well.

    * camel-store.c (camel_store_rename_folder): New method to rename folders.
    (rename_folder): Default implementation.

    * providers/mh/camel-mh-store.c (delete_folder): Implement this.
    (rename_folder): Implement a rename operation.

2000-08-02  Dan Winship  <danw@helixcode.com>

    * providers/MH: Kill this. It doesn't have any code to do anything
    the new mh provider doesn't do better.

    * providers/Makefile.am: Remove reference to MH subdir, and
    promote nntp to fully-supported status, since it does compile and
    all.

    * camel-mime-message.c (camel_mime_message_set_subject): Trim
    trailing space from the subject. I've now seen replies from two
    different people that tricked the threading code by (a) not having
    References/In-Reply-To, and (b) adding an extra space to the end
    of the subject line so the subject-based threading fails too. Who
    writes these broken mailers anyway?

2000-08-01  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_helo): When forced
    to use the IP, place it in square brackets.

    * providers/imap/camel-imap-utils.c (imap_translate_sexp): New and
    improved sexp parser. An honest try at using e-sexp is wrapped in
    a #ifdef at the bottom of the file but is currently not used

    * providers/imap/camel-imap-folder.c (imap_search_by_expression):
    We want to do a UID SEARCH so we get UIDs back instead of sequence
    numbers

2000-08-01  Not Zed  <NotZed@HelixCode.com>

    * providers/mh: New mh provider implementation.

    * providers/Makefile.am (SUBDIRS): Added mh provider.

2000-07-31  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message_info_internal): 
    Some IMAP servers don't wrap the UID in ()'s so don't depend on that
    (imap_get_summary_internal): Same

    * providers/imap/camel-imap-utils.c (free_sexp_node): Oops, forgot to
    free node->function - not good.

2000-07-31  Peter Williams  <peterw@helixcode.com>

    * providers/vee/camel-vee-folder.c (vee_search_by_expression): Add
    a NULL to the matches pointer array so that g_strfreev knows where
    the end is.

2000-07-31  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-utils.c (imap_translate_sexp): New
    convenience function to translate a Camel sexp into the equivalent
    IMAP sexp.

    * providers/imap/camel-imap-store.c: More places now use
    imap_next_word

    * providers/imap/camel-imap-folder.c (imap_search_by_expression):
    Implemented initial version (this may or may not work quite right)

2000-07-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_expunge): Make sure
    the third word/token (whatever) is "EXPUNGE" and not something
    else like "EXISTS" or "RECENT". When removing the message from
    the summary also make sure to free that data to avoid leakage.
    Also make sure to subtract 1 from the 'id' since IMAP starts
    at 1 and our summary starts at 0 :-)

2000-07-28  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * providers/imap/camel-imap-store.c (camel_imap_status): Cleaned
    up a bit, now uses imap_next_word()
    (camel_imap_command_extended): Now uses imap_next_word(). When
    checking for RECENT, allow the first digit of the recent-count
    be between 0 and 9 inclusive instead of exclusive.

    * providers/imap/camel-imap-folder.c (imap_expunge): Optimized.
    No longer will it need to reload the summary as it now instead
    removes the appropriate message summaries from the cache.
    (camel_imap_folder_changed): If recent == 0 then return. If 
    recent < 0 then just emit the folder_changed signal, don't reload
    summaries.

2000-07-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (imap_get_message_count_internal): Get message count when STATUS
    is not available.
    (imap_init): folder->has_search_capability is required for IMAP so
    should always be set to TRUE (is currently being set to FALSE as
    I've not yet implemented SEARCH support).
    (camel_imap_folder_changed): Seem to have fixed my optimization
    hack

2000-07-28  Jon K Hellan  <hellan@acm.org>

    * providers/imap/camel-imap-store.h (CamelImapServerLevel): New
    enum.
    (CamelImapStore): Added server_level and has_status_capability
    members.

    * providers/imap/camel-imap-store.c (imap_connect): Detect
    IMAP4REV1, IMAP4 and STATUS in capability response.

    * providers/imap/camel-imap-folder.c
    (imap_get_message_count_internal): Use STATUS only if server
    supports it. TODO: Get message count when STATUS not supported.
    (imap_get_message, imap_get_summary_internal,
    imap_get_message_info_internal): Handle IMAP4 as well.
    (imap_protocol_get_summary_specifier): New function: Make a data
    item specifier for the header lines we need, appropriate to the
    server level.

2000-07-27  Peter Williams <peterw@helixcode.com>

    * camel-mime-utils.c (header_decode_lwsp): More
    checks for end of string.

    * providers/imap/camel-imap-store.c:
    (imap_command_extended): Free the elements of our
    array (huge mem leak)

    * providers/imap/camel-imap-folder.c:
    (summary_get_internal): Same as above.
    

2000-07-27  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Fixed my routine to only fetch new headers, my IDs were off by 1
    on the high end, so when it would fetch the last newly arrived
    message it would fail and end up fetching all of the summaries
    because of the corruption.

2000-07-27  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-url.c (camel_url_to_string): If the path doesn't begin
    with a / and there is a host, prepend a / to the path.

2000-07-27  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * providers/imap/Makefile.am: Added camel-imap-utils.[c,h]
    
    * providers/imap/camel-imap-utils.[c,h]: Utilities for parsing
    server responses for use in both camel-imap-store.c and
    camel-imap-folder.c
    
    * providers/imap/camel-imap-folder.c (imap_get_summary_internal):
    Free all the pointers in the headers array.
    (imap_get_subfolder_names_internal): Updated to use
    imap_parse_list_response
    (imap_parse_subfolder_list): Removed in favor of
    imap_parse_list_response

    * providers/imap/camel-imap-store.c (camel_imap_command_extended):
    Free all the pointers in the data array.
    (imap_connect): Updated to use imap_parse_list_response and fixed
    a leak
    (folder_is_selectable): Updated.

2000-07-27  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * providers/imap/camel-imap-folder.c (imap_get_message_info): Now
    uses a hash table for looking up message info rather than a linear
    search :)

2000-07-27  Peter Williams  <peterw@helixcode.com>

    * providers/*/Makefile.am: Don't specify SUBDIRS =
    [nothing]. Messes up distcheck.
    
2000-07-26  Peter Williams  <peterw@helixcode.com>
    
    * camel-mime-parser.c (folder_scan_init): Initialize
    outbuf to be "" -- it's not guaranteed to be zeroed.
    
    * camel-mime-utils.c (header_references_decode): Return
    if the header is NULL -> or "" <-. Don't do our stupid
    mailer trick if we point to \0.
    (header_decode_quoted_string): Don't rip past end of 
    string!
    
2000-07-26  Dan Winship  <danw@helixcode.com>

    * camel-movemail.c (movemail_external): routine to call an
    external movemail program.
    (camel_movemail): Nuke return value, use movemail_external when
    available and useful, and don't delete "dest" on errors, since
    it might have started non-empty.

2000-07-26  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-url.c (camel_url_to_string): Should now always prepend a '/'
    before the path if it doesn't already exist.

    * providers/imap/camel-imap-folder.c: Fixed a few compiler warnings

2000-07-25  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_summary_free): Fixed the
    real problem that Peter was running into.

2000-07-25  Dan Winship  <danw@helixcode.com>

    * camel-mime-message.c (write_to_stream): Don't add a Mime-Version
    header to a message that already has one.

    * camel-internet-address.c (internet_encode): Don't put <>s around
    addresses with no name part.

2000-07-25  Peter Williams  <peterw@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_expunge): Set 
    imap_folder->summary to NULL after calling imap_summary_free,
    so we don't get stuck with a junk summary pointer. Should
    we free it at all?

2000-07-25  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
    Optimized to try and get the new message headers without reloading
    the entire summary from scratch.
    (imap_get_summary_internal): Will now sync() before attempting to
    reload the summary so that flags are set in the reloaded summary
    as well.

2000-07-24  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder): Updated to give
    special attention to the root folder.

    * providers/imap/camel-imap-folder.c
    (imap_get_subfolder_names_internal): Updated to handle the root
    folder
    (imap_get_message_count_internal): return 0 if folder can't hold
    messages
    (camel_imap_folder_new): Change so that root folder gets special
    attention and always gets can_hold_messages set to FALSE

2000-07-24  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: Remove exceptions from a number of methods that
    work on what ought to be static data: get_parent_folder,
    get_parent_store, get_message_count, get_unread_message_count,
    get_permanent_flags, get_message_flags, set_message_flags,
    get_message_user_flag, set_message_user_flag, get_uids,
    get_summary, get_subfolder_names. Turn camel_folder_delete_message
    into a macro. (Mostly a pull-up from the camel-async branch.)

    * providers/{imap,mbox,nntp,pop3,vee}: Update for CamelFolder
    changes

2000-07-24  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message_info): Updated
    to port easily to the new Camel API
    (imap_init): Don't SELECT INBOX, we don't need to do that

2000-07-24  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): 
    Initialize the summary and subfolder listing.
    (imap_summary_free): Now takes a GPtrArray arg rather than a 
    CamelImapFolder as it increases it's usefullness for free()'ing
    temporary summaries.
    (imap_get_message_count_internal): A new convenience function for
    getting the actual message count on a server to be used by 
    imap_get_summary_internal)
    (imap_get_message_count): Since the Camel API is on the move again, 
    the future version of this function will not be able to make a
    call to the store, it must only access previously fetched data (thus 
    the creation of the _internal function)
    (imap_get_subfolder_names_internal): Again, because the future version
    of imap_get_subfolder_names will not take an exception, we must rename
    this function which will be called by camel_imap_folder_new()
    (imap_get_subfolder_names): We now return the previously collected
    subfolder listing that the _internal function fetched previously
    (imap_get_summary_internal): Again, same idea as the previous _internal
    functions...
    (imap_get_summary): Again... now returns a previously aquired summary

    * providers/imap/camel-imap-store.c (imap_noop): This will hopefully
    prevent the imap store from disconnecting.
    (imap_connect): Modified to add a gtk timeout event that will call
    imap_noop() every 10 minutes (we may want to change this time value)
    (imap_disconnect): Modified to remove the NOOP timeout event from the
    store.
    (camel_imap_command_extended): Commented out the code that would try
    and detect if the store was disconnected and then reconnect if it was
    needed.

2000-07-24  Dan Winship  <danw@helixcode.com>

    * camel-folder.[ch]: Remove camel_folder_get_message_uid, which
    was not used, and not implemented by any provider.

    * providers/nntp/camel-nntp-folder.c: Remove get_message_uid
    non-implementation.

    * camel-folder-pt-proxy.[ch], camel-arg-collector.c,
    camel-marshal-utils.[ch]: Bye bye bye.

    * Makefile.am: remove reference to camel-arg-collector.c

2000-07-23  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_disconnect): Made it a
    little more forgiving. Also set current_folder to NULL as there is
    no selected folder after a disconnect.
    (stream_is_alive): Detects whether or not a socket is "alive"
    (camel_imap_command_extended): Use stream_is_alive() to aid in the
    detection of a disconnected state.

2000-07-22  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (get_folder): Clear
    CamelExceptions when appropriate (eg when folder is marked as
    \NoSelect). Still needs some cleanup and perhaps Dan will have a
    better way of doing this as this seems like a messy way of
    handling this.

    * providers/imap/camel-imap-folder.c (imap_get_uids): Took out
    some debug statements as they are no longer needed.

2000-07-21  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_subfolder_names):
    Updated to not strip out subfolders that are marked as \NoSelect
    because this will be correctly handled in store->get_folder from
    now on.

    * providers/imap/camel-imap-store.c (folder_is_selectable): New
    convenience function for use in get_folder().
    (parse_list_response): Now takes a char **flags argument which is
    needed by folder_is_selectable().
    (imap_connect): Updated to reflect changes to
    parse_list_response().

2000-07-21  Jeffrey Stedfast  <fejj@helixcode.com>
    
    * providers/imap/camel-imap-stream.c (stream_read): Updated with
    some of the same fixes I've made to camel-imap-folder.c like
    recalculating message part lengths.

    * providers/imap/camel-imap-store.c (camel_imap_command_extended):
    Rewrote the code to check for "* %d RECENT". Still needs to be
    modified, but should no longer cause an infinite loop by detecting
    mis-detecting RECENT messages.

2000-07-20  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary):
    (imap_get_message_info): Oops. Fix UID parser to allow 0 and 9 to
    be in the range of valid UID chars.

2000-07-20  Peter Williams  <peterw@helixcode.com>

    * camel-object.c (camel_object_unref): Add a new global mutex
    'refcount' held when refcounting operations occur.

2000-07-19  Peter Williams  <peterw@helixcode.com>

    * camel-object.c (camel_type_lock_up): Correct the recursiveness;
    the locklevel is stored as a private, so each thread has its own
    idea of the locklevel. Thus one thread can relock, but a different
    one will think that it's a level 0 and try to lock the type_system
    mutex.

2000-07-19  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c: General cleanup working
    towards getting Actions->Expunge working correctly.

    * providers/imap/camel-imap-store.c
    (cammel_imap_command_extended): Added code to look for "* %d
    RECENT" and to emit the folder_changed signal if there are any
    recent messages. Note: this is a hack and needs to be rewritten
    badly.

2000-07-19  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): If the
    folder's message count is not the same as the number of summaries,
    free the old summary and create a new summary.

2000-07-18  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c
    (camel_imap_folder_class_init): Added in
    imap_[g,s]et_message_user_flag() methods
    (imap_get_message_info): Rewrote to use the more efficient way of
    downloading summary information and also added a UID comparison so
    that if the UID requested doesn't match the UID received, it
    returns NULL.  FIXME: When the mailer gets NULL when it requested
    message info, it seems that it displays a row for that message and
    when you try and select the blank row, it segfaults.

    * providers/imap/camel-imap-store.c (get_folder): Oops, this
    should not be checking against "/", it should be checking against
    dir_sep.

    * providers/imap/camel-imap-folder.c (imap_parse_subfolder_line):
    Updated to trim out the leading namespace.
    (imap_get_subfolder_names): Let the subfolder parser trim the
    namespace off the folder name.

2000-07-17  Peter Williams  <peterw@helixcode.com>

    * camel-object.c (camel_type_lock_up): New function; the
    Camel type_system lock is now fakey-recursive, being controlled
    by a semaphore that goes up and down and is protected by another
    lock. Theoretically all we need is the lock on the semaphore,
    but this we catch exceptions "better" (by deadlocking).
    (camel_type_lock_down): Corresponding to above.
    (all functions): s,G_LOCK,camel_type_lock_up, etc.

2000-07-17  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_disconnect): Send a
    "LOGOUT" command.

    * providers/imap/camel-imap-folder.c (imap_get_message): Hacks to
    get IMAP code to work with CommunigatePro and MS Exchange (and any
    other servers that send back a UID at the end of each FETCH inside
    of the main body of the message part).
    (imap_sync): Un-#if 0 the code that sets the flags on the IMAP
    server for messages that have changed. Oops, don't mask with
    DELETED to find out if the message has been answered ;-)
    (imap_expunge): sync before expunging.

2000-07-16  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c: All SELECT calls now pass
    a NULL folder argument to camel_imap_command_extended() since it's
    not needed.
    (imap_connect): Moved service_class->connect() to the point right
    after a connection is established with the server rather than
    waiting until the end of the function.
    (camel_imap_command): Updated the documentation comment
    (camel_imap_command_extended): Before sending a command, first
    check to make sure we are connected; if we aren't, then reconnect.
    Don't strncmp() command with "SELECT" as it's redundant.

    * providers/imap/camel-imap-folder.c: All SELECT calls now pass
    a NULL folder argument to camel_imap_command_extended() since it's
    not needed. Also s/camel_imap_command/camel_imap_command_extended as
    I will probably be doing away with camel_imap_command() or at least
    only using it for LOGIN and similar commands where the server won't
    notify us of any recent messages.

2000-07-15  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): 
    One last fix to get rid of hard-coded "/" directory separators

2000-07-14  Peter Williams  <peterw@helixcode.com>

    * camel-object.c : Implement 'events', which are suspiciously
    like signals except without all the marshalling baggage, and
    with quasi-thread-safety.
    (camel_object_class_declare_event): New func.
    (camel_object_hook_event): Ditto.
    (camel_object_trigger_event): Ditto.
    (obj_class_init): Declare the "finalize" event.
    (obj_class_finalize): Free the hashtable of events->preps
    (obj_finalize): Free the hashtable of events->hooklists
    (camel_object_unref): Trigger the finalize event (ourselves,
    to prevent massively unpleasant looping things.)
    
2000-07-14  Peter Williams  <peterw@helixcode.com>
    
    * camel-object.c (make_global_classfuncs): Change to return
    a CamelObjectClass. Change parents to a GSList and free it
    when done.
    (camel_object_new): Don't allocate a classfuncs for every object;
    merely give it a reference to the global_classfuncs. Convert
    parents to a GSList and free it when done.
    (camel_object_unref): Don't free the classfuncs. Free the parents
    list, which is changed to a GSList.

2000-07-14  Jeffrey Stedfast  <fejj@helixcode.com>

    * string-utils.c (string_unquote): New convenience function
    to unquote a string if it's encapsulated by "'s
    
    * providers/imap/camel-imap-folder.c:
    * providers/imap/camel-imap-store.c: Made the necessary changes
    to stop using hard coded directory separators.

2000-07-13  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_load):
    If the summary is for a smaller mbox, and rebuilding from the
    last-known end position fails, try rebuilding from the beginning.
    Deals with the case where the user edits the mbox and makes it
    bigger, without adding new messages.

2000-07-13  Peter Williams  <peterw@helixcode.com>

    * camel-object.c: Rewritten to not be based on GtkObject,
    but a tiny threadsafe ripoff thereof. Objects still cannot
    be shared across threads, but ref/unref/destroy/new/etc
    will work. Signals are not implemented because doing it
    robustly would be a major pain in the butt, but class
    functions are. There's a small demonstration that it doesn't
    crash in ./temp-test.c: build it with ./make-test.sh.
    * camel-stream.c, camel-seekable-stream.c, camel-stream-mem.c:
    moved over to CamelObject. Proof of concept: two levels of
    subclass and class functions, all working without coredumps.
    To port to CamelObject:
    - s,GTK_,CAMEL_,g in the cast checks
    - s,gtk_type_new,camel_object_new,g
    - s,GtkType,CamelType,g
    - Change get_type function over to camel_type_declare
    - instead of hooking to finalize function, it goes into the
      type declaration.
    - remove signals.
    - instead of GTK_OBJECT(so)->klass, CAMEL_OBJECT_GET_CLASS(so)
    - s,gtk_type_class,camel_type_get_global_classfuncs,g
    - don't chain finalize handlers; it will be done for you
    
2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c: 
    * providers/imap/camel-imap-store.c: If a SELECT fails, set
    imap_store->current_folder to NULL so a SELECT is forced before
    any message/folder operations are requested. Also, because some
    users don't use a namespace, make sure that if the url->path is 
    "/" we don't use it when creating the folder_path.
    (camel_imap_command[_extended]): Since we allow the passing of
    a NULL folder which we can use to bypass a forced SELECT, no need
    to check for the individual commands that don't require a folder
    to be selected.

2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c: 
    * providers/imap/camel-imap-store.c: Updated to use CAMEL_IMAP_OK, 
    CAMEL_IMAP_NO, CAMEL_IMAP_BAD, and CAMEL_IMAP_FAIL rather than the 
    ones copied from the POP3 provider. 

2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): Oops.
    If the number of messages in the folder is 0, don't fetch
    summaries 1 thru 0, just return an empty summary.
    (imap_copy_message_to): Fixed to use message UID and also send
    the source folder as an arg to camel_imap_command rather than NULL.
    (imap_move_message_to): Same.
    (imap_init): If SELECT is successful, we need to set the current
    folder to the one selected, this was causing problems with move/copy

2000-07-13  Dan Winship  <danw@helixcode.com>

    * camel-service.h: define a set of CAMEL_SERVICE_URL_ALLOW_* flags
    parallel to the _NEED_* flags, and make the _NEED_* flags imply
    the _ALLOW_* ones.

    * providers/imap/camel-imap-store.c (camel_imap_store_init): imap
    urls ALLOW_PATH

2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): New
    and improved approach to fetching an entire folder summary
    that should be much much faster than the old way as it gets
    the entire folder summary in 1 shot rather than requesting
    message by message. As with the last update, this version
    also only fetches the minimum number of header fields.
    (imap_get_summary): Oops, forgot to free the temp 
    GPtrArray *headers

2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): Don't
    fetch the entire RFC822 header, just fetch the fields we want.
    (imap_get_message_info): Same.

2000-07-13  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-filter-basic.c (camel_mime_filter_basic_new_type):
    Reset filter on setup.
    (reset): When resetting qp encoding, set the state to -1, instead
    of 0.

    * camel-mime-utils.c (quoted_encode_step): Actually count the
    characters output sofar (it never counted any).  Bunch of other
    fixes.
    (quoted_encode_close): Also flush out final character, if there's
    one.

2000-07-12  Jeffrey Stedfast  <fejj@helixcode.com>

    Chris forgot to add #include <e-util/e-util.h> to the source files
    
    * providers/imap/camel-imap-store.c (imap_connect): Fixed Peter's 
    fix, we don't want to send a string to a %d.

2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

    * camel-folder-search.c, providers/imap/camel-imap-store.c:
    Changed from strstrcase to e_strstrcase.

    * string-utils.c, string-utils.h: Removed strstrcase (in favor of
    e_strstrcase in e-util/e-util.c.)

2000-07-12  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-folder.c
    (nntp_folder_set_message_flags): get the article num out of our
    uid and mark it read in the newsrc.
    (nntp_folder_get_message): get the message id out of the uid to
    fetch the article.

    * providers/nntp/camel-nntp-utils.c (get_XOVER_headers): the uid
    is now <article-num>,<messageid>
    (get_HEAD_headers): same.

    * camel-mime-parser.c (folder_scan_step): go to HSCAN_MESSAGE
    state when ct->subtype is "news" as well as "rfc822".  this makes
    attachments of type "message/news" display properly.

2000-07-12  Dan Winship  <danw@helixcode.com>

    * camel-folder.c (camel_folder_free_deep,
    camel_folder_free_shallow, camel_folder_free_nop): Useful default
    implementations for free_{uids,subfolder_names,summary}.
    (free_subfolder_names, free_uids): Make these g_warning-ing
    default implementations.

    * providers/*/camel-*-folder.c: Use the new functions where
    appropriate, remove duplicated code.

2000-07-12  Peter Williams  <peterw@helixcode.com>

    * providers/imap/camel-imap-store.c (query_auth_types): Check for
    NULL parameters when setting the exception so as to not crash on
    Solaris (can't handle a %s passed NULL).
    (imap_connect): Same.
    
2000-07-12  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_delete_message): Use
    mbox_set_message_flags () instead of setting the flags by hand. This
    fixes the problem of the "message_changed" signal not being emitted
    at the correct time.

    * providers/imap/camel-imap-folder.c: "folder_changed" signals should
    pass a third argument (which is ignored).

    * camel-folder.c: Undo gtk signal emits done in set_flags and 
    expunge.
    (move_message_to): 
    (copy_message_to): Create info as a const CamelMessageInfo

2000-07-12  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/Makefile.am: don't add test-newsrc to the build
    since it needs libcamel (which isn't built at the time test-newsrc
    needs linking.)

    * providers/nntp/camel-nntp-utils.c (get_HEAD_headers): fill in
    MessageInfo->message_id.
    (get_XOVER_headers): same.

    * providers/nntp/camel-nntp-folder.c (nntp_folder_init): move
    summary loading here.
    (nntp_folder_sync): summary/newsrc changes should be stored here.
    put a comment to that effect.
    (nntp_folder_set_message_flags): don't save the newsrc here.
    (nntp_folder_get_uids): use g_ptr_array_index instead of the
    cast/addition.
    (nntp_folder_get_summary): no need to check if we should generate
    the summary here.  already done.
    (nntp_folder_get_message_info): implement.

    * providers/nntp/camel-nntp-store.c
    (camel_nntp_store_get_toplevel_dir): use evolution_dir instead of
    computing it ourselves.
    (nntp_store_disconnect): call camel_nntp_newsrc_write.
    (ensure_news_dir_exists): new function to create the news/<news
    server> subdir.
    (camel_nntp_store_class_init): hook up connect/disconnect and
    finalize.
    (nntp_store_connect): if ensure_news_dir_exists fails throw an
    exception.

2000-07-12  Peter Williams  <peterw@helixcode.com>

    * camel-folder.c (camel_folder_set_message_flags): Emit a message_changed
    signal once the flags are set on the message.
    (camel_folder_set_user_flag): Ditto.
    (camel_folder_expunge): Emit a folder_changed if no exception.

2000-07-12  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-stream.c: Use size_t and ssize_t for read/write methods
    
    * providers/imap/camel-imap-folder.c (imap_set_message_flags): 
    Updated to emit the message_changed signal.
    (imap_delete_message): Updated to use imap_set_message_flags ().
    (imap_move_message_to): Updated to use imap_set_message_flags ()
    and to emit the folder_changed signal on the destination folder.
    (imap_copy_message_to): Updated to emit the folder_changed signal 
    on the destination folder.
    (imap_append_message): Updated to emit the folder_changed signal 
    on the destination folder.

2000-07-11  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder.c (camel_folder_append_message): Now takes a
    flags argument to specify the flags to be set on the message
    since we might not necessarily want the flags to be wiped clean.
    (move_message_to):
    (copy_message_to): Updated to send a flags argument to 
    append_message (); currently sends the original message's flags.

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): 
    * providers/imap/camel-imap-folder.c (imap_append_message): 
    Updated.

2000-07-11  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: Remove exceptions from a number of methods
    that work on what ought to be static data: get_parent_folder,
    get_parent_store, get_message_count, get_unread_message_count,
    get_permanent_flags, get_message_flags, set_message_flags,
    get_message_user_flag, set_message_user_flag, get_message_uid,
    get_uids, get_summary, get_subfolder_names. Turn
    camel_folder_delete_message into a macro.

    * providers/{mbox,pop3,vee}: Update for CamelFolder changes

    * providers/Makefile.am: Disable imap and nntp for now

2000-07-11  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_search_by_expression): 
    This shouldn't return NULL, it should return g_ptr_array_new ()
    so the mailer gets what it expects.

2000-07-10  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder-summary.c (camel_folder_summary_decode_string): 
    Oops, an unsigned integer can never be < 0

2000-07-10  Dan Winship  <danw@helixcode.com>

    * providers/vee/camel-vee-folder.c (vee_search_by_expression):
    Initialize a variable to make this not crash again. And fix a bug
    so it actually does something.

2000-07-10  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder-summary.c: Cleaned up a bunch of compile warnings

2000-07-10  Dan Winship  <danw@helixcode.com>

    * providers/vee: kill more debugging messages

2000-07-10  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_get_unread_message_count): 
    * providers/vee/camel-vee-folder.c (vee_get_unread_message_count): 
    * providers/imap/camel-imap-folder.c (imap_get_unread_message_count):
    Implemented.

    * camel-folder.c (camel_folder_get_unread_message_count): New
    convenience function to allow the mailer to query the number
    of unread messages in a folder (for displaying message stats
    in a folder tree?).

2000-07-09  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_references_dup): New function to copy
    a header_references structure.

    * camel-folder-summary.c (camel_message_info_dup_to): New function
    to (deep) copy the data from one CamelMessageInfo into another.
    (camel_message_info_free): And free the data.

    * providers/vee/camel-vee-folder.c (vee_sync): Implement. (empty).
    (vee_search_by_expression): belatedly update for
    camel_folder_search change.
    (vee_folder_build): belatedly update for camel_folder_search
    change. Use camel_message_info_dup_to and camel_message_info_free
    (in particular, so that we get message_id and references info so
    vfolders can be threaded).
    (vee_folder_build_folder): Ditto.

2000-07-08  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/nntp/camel-nntp-folder.c: 
    * providers/nntp/camel-nntp-utils.c: 
    * providers/nntp/camel-nntp-store.c: Update to reflect past changes
    in the Camel API. Use gtk macro casts wherever possible and use glib's
    memory functions instead of standard c's (since they are not 
    compatable)

    * providers/smtp/camel-smtp-transport.c: 
    * providers/imap/camel-imap-store.c: Wrap debug print statements
    in a macro

    * providers/imap/camel-imap-stream.c (stream_read): Make sure
    that we get up to and including the last \n of the mime part.

    * providers/imap/camel-imap-folder.c (imap_get_message): Make sure
    that we get up to and including the last \n of the mime part.
    Wrap debug print statements in a macro.

    * providers/imap/camel-imap-stream.c (stream_read): Only cache
    the important data (aka the mime part requested and no extra
    server response stuff)

2000-07-07  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_references_decode): Work around
    In-Reply-To's with unquoted punctuation. So many broken mailers.

    * camel-folder.c (camel_folder_search_by_expression): Make this
    return a GPtrArray rather than a GList.

    * camel-folder-search.c (camel_folder_search_execute_expression):
    * providers/imap/camel-imap-folder.c (imap_search_by_expression):
    * providers/mbox/camel-mbox-folder.c (mbox_search_by_expression):
    * providers/nntp/camel-nntp-folder.c (nntp_search_by_expression):
    Update to return a GPtrArray rather than a GList.

2000-07-07  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (esmtp_get_authtypes): 
    Fixed the parser to actually work

2000-07-06  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_references_decode): Make this deal
    with the full RFC822 References/In-Reply-To format rather than
    just the more-nicely-behaved RFC1036 version. (Needed to parse
    In-Reply-To headers with extra junk in them.)

2000-07-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): Parse for
    more header information to allow message threading in IMAP.
    (imap_get_message_info): Same.

    * camel-folder-summary.c: Renamed summary_format_* to
    camel_summary_format_* and moved them into public scope.

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Oops. Don't
    pass port # as a string in the error code (if it fails to connect).

    * providers/imap/camel-imap-folder.c (imap_append_message): Changed
    over to camel_imap_command_extended as that was the source of the
    problems - apparently appending replies with more than just 1 line.

2000-07-05  Dan Winship  <danw@helixcode.com>

    * camel-folder-search.c (search_header_contains): make header
    matching case-insensitive

    * camel-folder-summary.c:
    * camel-session.c:
    * providers/mbox/camel-mbox-folder.c:
    * providers/mbox/camel-mbox-summary.c: Remove some non-error case
    debugging-type messages.

2000-07-05  Ettore Perazzoli  <ettore@helixcode.com>

    * providers/mbox/camel-mbox-summary.c (d): Define to empty so that
    we get rid of a ton of debugging messages.

2000-07-05  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-utils.h: Added prototype for uudecode_step

    * camel-mime-utils.c (uudecode_step): Cleaned up some junk that
    should have been cleaned up when debugging printf's were taken out.

2000-07-05  Ettore Perazzoli  <ettore@helixcode.com>

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
    Update the X-Evolution: header even if the in-memory UID and the
    saved UID are not the same.  Otherwise mboxes with clashing UIDs
    can never be fixed.

    * camel-folder-summary.c
    (camel_folder_summary_add_from_parser): Add the message to the
    summary before doing any ibex stuff.  In fact, this might also
    have the side effect of reassigning the UID so it needs to be done
    before we start using the UID.

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): Add
    debugging message to keep track of the UIDs we add.

2000-07-05  Dan Winship  <danw@helixcode.com>

    * camel-folder-summary.c: Add "Cc" to summary and bump summary
    version number.

    * camel-folder-search.c (search_header_contains): make "Cc" a
    searchable header.

2000-07-03  Ettore Perazzoli  <ettore@helixcode.com>

    * camel-folder-summary.c (camel_folder_summary_next_uid_string):
    New.
    (camel_folder_summary_add): Use
    `camel_folder_summary_next_uid_string()' instead of recomputing
    the UID manually here.
    (camel_folder_summary_add_from_parser): Likewise.

2000-07-03  Ettore Perazzoli  <ettore@helixcode.com>

    * camel-folder-summary.c (camel_folder_summary_set_uid): Removed.

2000-07-03  Dan Winship  <danw@helixcode.com>

    * camel-folder-summary.c (message_info_new): Parse In-Reply-To
    with header_references_decode, not header_msgid_decode.

    * camel-mime-message.c (camel_mime_message_class_init): message
    headers are case-insensitive.

    * providers/pop3/camel-pop3-store.c (camel_pop3_command): Fix a
    bug in error-setting code.
    (pop3_connect): Don't re-prompt for password in the KPOP case.
    (pop3_get_response): New function, split out from
    camel_pop3_command.
    (connect_to_server): Use pop3_get_response to parse the greeting
    message, and error out appropriately if it's -ERR.

2000-07-02  Dan Winship  <danw@helixcode.com>

    * camel-folder.c (camel_folder_freeze, camel_folder_thaw): New
    functions to freeze and thaw a folder (to prevent message/folder
    changed signals in the middle of a long series of operations).
    (camel_folder_class_init): Change signals to GTK_RUN_FIRST.
    (message_changed, folder_changed): Add default implementations
    that stop the emission and record info for later if the folder is
    frozen.

    * providers/mbox/camel-mbox-folder.c (mbox_sync): leftover fixes
    from the close->sync change: don't destroy the ibex, summary, and
    search when syncing.
    (append_message): emit "folder_changed" on a successful append.

2000-07-02  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-utils.c (uudecode_step): A rather complex uudecoder
    written in the spirit of Zucchi-ness, is it up to par? Only the 
    Z-man can tell us :-)

2000-07-01  Dan Winship  <danw@helixcode.com>

    * camel-service.c (camel_service_get_name): New method, to return
    an end-user-friendly name corresponding to a service. (eg, "POP
    service for danw on trna.helixcode.com").

    * providers/imap/camel-imap-store.c,
    providers/mbox/camel-mbox-store.c,
    providers/nntp/camel-nntp-store.c,
    providers/pop3/camel-pop3-store.c,
    providers/sendmail/camel-sendmail-transport.c,
    providers/smtp/camel-smtp-transport.c: Implement.

    * providers/imap/Makefile.am: remove unneeded
    libcamelimap_la_LDADD.

    * providers/pop3/camel-pop3-store.c (connect_to_server): fix the
    CAPA-parsing code to not get into an infinite loop.

2000-07-01  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message): Fixed
    the bug that would sometimes leave part of the server response
    tacked on to the end of the message.

    * camel-folder.c: Renamed _by_uid methods. Since we no longer
    have get-by-number methods, no need to have the _by_uid 
    extensions. 
    (get_message_by_uid): Renamed to get_message
    (delete_message_by_uid): Renamed to delete_message
    (summary_get_by_uid): Renamed to get_message_info

    * providers/mbox/camel-mbox-folder.c: 
    * providers/pop3/camel-pop3-folder.c:
    * providers/imap/camel-imap-folder.c:
    * providers/vee/camel-vee-folder.c: Updated to reflect
    camel-folder changes.

2000-06-30  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-folder.c (camel_folder_copy_message_to): New function, to
    copy a message from one folder to another. The default
    implementation just uses append_message, but providers can 
    implement more efficient versions for use when both folders are on 
    the same store.

    * broken-date-parser.[c,h]: Utilities for parsing broken
    date strings.
    
    * providers/imap/camel-imap-folder.c (imap_move_message_to): 
    (imap_copy_message_to): Implemented.

    * camel-mime-utils.c (header_decode_date): Wrote some code to try
    and un-mangle broken date formats and then parse that new string 
    instead.

2000-06-30  Dan Winship  <danw@helixcode.com>

    * camel-folder.c (camel_folder_move_message_to): New function, to
    move a message from one folder to another. The default
    implementation just uses append_message and delete_message, but
    providers can implement more efficient versions for use when both
    folders are on the same store.

2000-06-29  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_expunge): Should now
    print a meaningful error message when it doesn't succeed

2000-06-28  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_connect): Changed to
    keep prompting user for a valid password until it either
    authenticates or until Canceled by the user.
    (camel_imap_command_extended): Improved speed (replaced the
    g_strjoinv call with a faster implementation)

    * providers/pop3/camel-pop3-store.c 
    (camel_pop3_command_get_additional_data): Fixed.
    (pop3_connect): Changed to keep prompting the user for a
    password until it either works or until Canceled by the user.

    * providers/mbox/camel-mbox-summary.c: General cleanup
    (camel_mbox_summary_sync): Fixed a memory leak and added
    CamelException handling.

    * providers/mbox/camel-mbox-store.c (delete_folder): Fixed a 
    memory leak

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): 
    Default 'off_t seek' to -1 so as to make sure it's initialized
    before it's used in the case of a bad stat() call.
    (mbox_sync): Updated
    (mbox_expunge): Updated

2000-06-27  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_connect): Move the 
    CAPABILITY command here so we don't have to keep checking
    each time we open a folder.
    (camel_imap_command_extended): If we are doing an EXAMINE,
    don't bother doing a SELECT first.

    * providers/imap/camel-imap-folder.c (imap_init): Update so
    folder->has_search_capability depends on the parent IMAP store
    (since this is really dependant on the IMAP implementation and
    not the folder)

2000-06-27  Christopher James Lahey  <clahey@helixcode.com>

    * providers/smtp/camel-smtp-transport.c: Don't close the filter
    stream when done with it (this causes the source stream to close);
    Instead, just flush it when done.

2000-06-27  Michael Zucchi  <zucchi@zedzone.mmc.com.au>

    * camel-folder-search.c (search_header_contains): Make header
    search 'to' match 'to', and not 'from', small typo, fixes #317.

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

    * providers/mbox/camel-mbox-summary.c: Added debugging
    information.

2000-06-23  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c: 
    * providers/imap/camel-imap-folder.c: Improved folder parsing.
    Not specifying a namespace should no longer list the entire
    filesystem.

2000-06-22  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/.cvsignore: ignore test-newsrc

    * providers/nntp/camel-nntp-store.c,
    providers/nntp/camel-nntp-store.h,
    providers/nntp/camel-nntp-folder.c,
    providers/nntp/camel-nntp-folder.h,
    providers/nntp/camel-nntp-utils.c: Bring the nntp provider up to a
    state where it builds and is usable with the current camel.  there
    are still warts (semi-broken .newsrc file handling, and a lack of
    a subscribe ui -- in fact no way to add a new server, really), but
    it'll display news messages.

    * providers/nntp/Makefile.am (libcamelnntp_la_SOURCES): add
    camel-nntp-newsrc.c
    (libcamelnntpinclude_HEADERS): add camel-nntp-newsrc.h
    also, add test-newsrc stuff.
    
    * providers/nntp/test-newsrc.c: new file that tests the newsrc
    stuff by parsing and regurgitating a .newsrc file for a particular
    server.

    * providers/nntp/camel-nntp-newsrc.c,
    providers/nntp/camel-nntp-newsrc.h: new files, initial support for .newsrc files.

2000-06-22  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message_count): 
    Oops. Now appends the namespace to the folder before querying
    for the number of messages.

    * providers/imap/camel-imap-store.c (imap_folder_exists): New
    convenience function for use by imap_create().
    (get_folder): If folder is specified as "/", we really want
    "INBOX".

    * providers/sendmail/camel-sendmail-provider.c:
    * providers/vee/camel-vee-provider.c:
    * providers/smtp/camel-smtp-provider.c:
    * providers/mbox/camel-mbox-provider.c:
    * providers/pop3/camel-pop3-provider.c:
    * providers/imap/camel-imap-provider.c: Updated
    
    * camel-session.c: Moved service_cache hash table into the
    providers.
    (service_cache_remove): Updated.
    (camel_session_get_service): Updated.

    * camel-url.c (camel_url_hash): Took out the hashing of
    url->passwd. We don't want this anymore.

    * providers/imap/camel-imap-folder.c (imap_init): Took out
    references to 'namespace'
    (camel_imap_folder_init): Same

    * providers/imap/camel-imap-folder.h: No more namespace. We are
    instead going to use url->path as the namespace.

2000-06-21  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (imap_create): Modified to
    use the "namespace" (url->path) if it exists.

    * providers/imap/camel-imap-folder.c (imap_delete_message_by_uid):
    Now just sets the deleted flag on the summary rather than speaking 
    directly to the IMAP server. This is both faster and cleaner.

2000-06-21  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (query_auth_types): Fix dumb
    bug.

2000-06-21  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message_by_uid): 
    We are getting mail in IMAP now!! whoo-hoo!. Stripped out the 
    filtering so messages may have some dot-stuffing, but the 
    filtering can always be added back in later when we know it 
    works and isn't the problem.

2000-06-21  Peter Williams  <peterw@curious-george.helixcode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_init): Use the basename
    of the mailbox so we don't get pathnames like ~/evolution/inbox///movemail.ibex

2000-06-21  Dan Winship  <danw@helixcode.com>

    * camel-folder-summary.c (message_info_new): Set date_received
    based on the first (most recent) "Received" header.

2000-06-20  Dan Winship  <danw@helixcode.com>

    * camel-mime-part.c (write_to_stream): flush the filter stream
    before unreffing it, so it will camel_mime_filter_complete.

    * camel-stream-filter.c (camel_stream_filter_class_init): Fix a
    braino so camel_stream_flush works here.

    * camel-stream-mem.c (stream_seek): Fix a bug that resulted in
    large attachments being silently dropped.

    * providers/pop3/camel-pop3-store.c
    (camel_pop3_command_get_additional_data): Don't use g_strjoinv
    here, since it is O(n^2) on the length of the output string, and
    we can do O(n).

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): add a CRLF decoder
    after the QP/B64 decoder if it's text.

2000-06-20  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): Only
    fetch the summary if the folder summary doesn't already exist.
    When the summary *does* exist, start fetching from 1, not 0.
    (imap_free_summary): Don't do anything here.
    (imap_finalize): Free the summary here instead of in
    imap_free_summary().
    (imap_set_message_flags): Implemented
    (imap_sync): Added code to set flags on messages that have had
    their flags changed (however I #if'd it out until we are more
    confidant in the IMAP code :)
    (imap_summary_get_by_uid): Now parese flags correctly.
    (imap_get_summary): Now parese flags correctly. Also correctly
    parses the UID correctly.

    * camel-url.c (check_equal): No need to check s1 if s2 is NULL
    (camel_url_equal): Don't check the passwd component of the url.

2000-06-20  Dan Winship  <danw@helixcode.com>

    * camel-folder-summary.c (camel_folder_summary_add): mark the
    message info with CAMEL_MESSAGE_FOLDER_FLAGGED if we change the
    uid, so the folder will know that it's dirty.

2000-06-20  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_command_extended): 
    Now returns the last line of data that the server sends back as
    well. This is needed for commands like SELECT (like Peter pointed
    out).
    (camel_imap_command): No longer checks for SELECT (no need)

    * providers/imap/camel-imap-folder.c: Added namespace stuff
    which we will need later on...
    (imap_parse_subfolder_line): Convenience function for use in
    get_subfolder_names()
    (imap_get_subfolder_names): Updated. Also changed it to use LIST
    instead of LSUB (temporary change).

2000-06-19  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (camel_imap_folder_init): Set
    summary equal to NULL.
    (imap_get_summary): Store the summary in the ImapFolder
    (imap_summary_get_by_uid): If we have a summary cache in the
    ImapFolder, first check to see if that message info is in the
    cached summary first, if not fetch it directly from the IMAP
    server and append it to the summary cache.
    (imap_get_message_flags): Don't free the message info that we get
    back from summary_get_by_uid as we don't want to be corrupting our
    cached summary.

2000-06-19  Peter Williams  <peterw@curious-george.helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_command{,_extended}): When
    SELECT'ing a folder for an IMAP command, use _extended to grab the entire
    response (before we just used camel_imap_command and missed the OK codes)

2000-06-18  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_summary_get_by_uid): 
    Now gets the message flags as it should.
    (imap_get_summary): Same as imap_summary_get_by_uid
    (imap_get_permanent_flags): Return the permanent flags stored
    on the folder.
    (imap_get_message_flags): Return message flags associated with
    given uid. Note: we may want to somehow cache summary info so
    that we don't have to keep querying the IMAP provider in
    imap_summary_get_by_uid().

2000-06-17  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_free_summary): We were
    leaking memory - but not anymore!
    (imap_get_summary): We now get the UIDs and the beginnings of the
    code to get the message flags as well.

2000-06-17  Dan Winship  <danw@helixcode.com>

    * camel-mime-parser.c (folder_scan_header): Don't copy newlines
    into the parsed header text, and turn any number of tabs and
    spaces after a newline into a single space.

2000-06-17  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_init): Should now
    correctly do CAPABILITY.

2000-06-17  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-summary.c: Add some debugging printfs
    when rebulding summary to help figure out why people's summaries
    are always being rebuilt.

2000-06-17  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_search_by_expression):
    Began to implement, need to get information on how to
    deconstruct @expression into an IMAP search expression and
    parse the results.
    (imap_init): Now queries the IMAP provider for CAPABILITY to
    determine if SEARCH is implemented or not.

    * providers/imap/imap.c: Removed - no longer a need to have
    this as an example for anyone interesting to help mecode IMAP
    support.
    
2000-06-16  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_sync): Added code
    to expunge if called for (still need to finish coding this).
    (imap_get_uids): Implemented.
    (imap_get_summary): Found a way to get the date
    (imap_summary_get_by_uid): Same.
    (imap_free_summary): Implemented.

    * string-utils.c (strstrcase): Fixed a compile warning

    * providers/imap/camel-imap-summary.c: Removed - we don't
    need a CamelImapSummary structure.

2000-06-16  Dan Winship  <danw@helixcode.com>

    Move flag handling from CamelMimeMessage to CamelFolder. This
    simplifies several flag-handling pieces of code in the mailer, and
    lets you change a message's flags without having to fetch the
    message body. It also means that fully-constructed
    CamelMimeMessages are now essentially constant, which will help
    simplify locking issues later since it means two threads
    interested in the same message can just work with separate copies
    of it.

    * camel-mime-message.h (struct _CamelMimeMessage): Removed flags
    and user_flags (moved to summary). Removed expunged and
    message_number which were unused. Removed message_uid and folder
    which are no longer needed in the new scheme.
    (struct CamelMimeMessageClass): Removed message_changed signal and
    get/set_message_number methods.

    * camel-mime-message.c: Updates for CamelMimeMessage changes.
    (camel_mime_message_get/set_flags,
    camel_mime_message_get/set_user_flag): Replaced with methods in
    CamelFolder.
    (camel_flag_get, camel_flag_set, camel_flag_list_size,
    camel_flag_list_free): Moved verbatim to camel-folder-summary.c
    
    * camel-folder.c (camel_folder_get/set_message_flags,
    camel_folder_get/set_message_user_flag): New methods (and
    corresponding useless default implementations)
    (camel_folder_class_init): add a message_changed signal

    * camel-folder-summary.c (camel_flag_get, camel_flag_set,
    camel_flag_list_size, camel_flag_list_free): Moved here from
    camel-mime-message.c

    * providers/mbox/camel-mbox-folder.c (message_changed): Removed.
    (mbox_get_message_flags, mbox_set_message_flags,
    mbox_get_message_user_flag, mbox_set_message_user_flag): Tweak
    summary bits as appropriate. (Functionality moved here from
    message_changed.)
    (mbox_get_message_by_uid): Update for CamelMimeMessage changes
    (less stuff to initialize).

    * providers/imap/camel-imap-folder.c (message_changed): Remove
    this. It was just copied from the mbox provider and doesn't deal
    with the real IMAP flag stuff anyway. (So there's currently no
    flag support in the IMAP provider.)
    (imap_get_message_by_uid): Update for CamelMimeMessage changes.

    * providers/vee/camel-vee-folder.c: (message_changed): Remove old
    one. Add a new one to listen for message_changed on each folder
    and re-emit message_changed signals that correspond to messages in
    the vfolder.
    (vee_get/set_message_flags, vee_get/set_message_user_flag): Proxy
    flag setting to the underlying real messages.
    (vee_append_message): Removed for now; there's no way to translate
    this into the new CamelMimeMessage/CamelFolder scheme, but (a)
    there's also no code which would ever call it and (b) we're
    probably going want a better interface than append_message for
    message drag and drop to work anyway. To be revisited.

2000-06-16  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (rfc2047_decode_word): 
    * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): 
    * camel-folder-summary.c (summary_build_content_info): 
    KLUDGE! Since neither ETable nor GtkHTML supports UTF-8 yet,
    output ISO-8859-1 instead, so Ettore can read his Italian mail. :)
    This will be reverted later.

2000-06-15  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_summary): Started to 
    implement - may want to use ENVELOPE instead of BODY.PEEK[HEADER]
    (imap_summary_get_by_uid): Started to code, I've got to find a way to 
    get the date in time_t format and also get the flags

    * string-utils.c (strstrcase): Added this convenience function - I
    know about strcasestr() but it's not portable.

2000-06-15  Dan Winship  <danw@helixcode.com>

    * camel-service.c: Remove camel_service_connect_with_url. (URLs
    must be specified when the service is requested from the session,
    so that there can only ever be one service for any URL.)

    * camel-folder.c: (camel_folder_open, camel_folder_is_open,
    camel_folder_get_mode): Kill. Folders are now always open, and
    handle "closing" sorts of operations at sync or finalize time.
    (camel_folder_sync): renamed from camel_folder_close. Syncs state
    to the store but doesn't necessarily close/disconnect.

    * providers/*/camel-*-folder.c: Merge "open" methods into "init"
    methods. Rename close to sync and update appropriately.

    * providers/imap/camel-imap-store.c: Remove camel_imap_store_open
    and camel_imap_store_close, which should not have been copied from
    the POP provider (where the exist to work around limitations of
    the POP protocol).

    * providers/mbox/camel-mbox-summary.c: fix a bug. (don't expunge
    deleted messages if called with expunge == FALSE)
    
    * providers/pop3/camel-pop3-store.c (connect_to_server): Check
    server for various interesting extensions.

    * providers/pop3/camel-pop3-folder.c (get_uids): If the server
    supports UIDL, use real UIDs rather than fake ones.
    (etc): Map uids back to numbers appropriately

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): Fix to
    previous change: make sure the "seek" variable ends up with the
    value it should.

    * providers/mbox/camel-mbox-summary.c (summary_rebuild): Update
    summary mtime as well as size.

2000-06-14  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): if the
    mbox doesn't end with a '\n', write one before appending the new
    message.

2000-06-14  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-filter-crlf.c (filter): Updated the encoder to allocate 
    more memory (since we are also now adding dots). Also updated the
    decoder as we have found that it sometimes passes the end of the 
    buffer.

    * providers/pop3/camel-pop3-folder.c (get_message_by_uid): Took out the
    filter code (we already filter in 
    camel_pop3_command_get_additional_data)

    * camel-folder.c (init): Updated: a separator is now a char* rather 
    than a single char because IMAP can have a string for a directory 
    separator. Also, since IMAP does not begin with a directory separator,
    there is a new argument (path_begins_with_sep) which decides if a 
    directory should begin with a directory separator.

    * providers/imap/camel-imap-store.c (imap_create): Since, on connect,
    Camel tries to create INBOX (which already exists on every IMAP 
    provider) we can return TRUE when the folder name is "INBOX".

    * providers/vee/camel-vee-folder.c (vee_init): Updated.

    * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Updated.

    * providers/mbox/camel-mbox-store.c (get_folder): Updated.

    * providers/mbox/camel-mbox-folder.c (mbox_init): Updated.

    * providers/pop3/camel-pop3-folder.c (camel_pop3_folder_new): Updated.

2000-06-14  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
    Renamed from camel_mbox_summary_expunge. Takes a gboolean saying
    whether to expunge or just sync the mbox file. Change some
    g_errors to g_warning so we don't abort. Make the quick
    X-Evolution updating code lseek around correctly. Update the
    mbox mtime in the summary file even in the quick case.

    * providers/mbox/camel-mbox-summary.h: make
    CAMEL_MESSAGE_FOLDER_NOXEV not conflict with
    CAMEL_MESSAGE_FOLDER_FLAGGED defined in camel-mime-message.h

    * providers/mbox/camel-mbox-folder.c (mbox_close): call
    camel_mbox_summary_sync to save flag state if not expunging.
    (mbox_expunge): Update for camel_mbox_summary_expunge rename.

2000-06-13  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (camel_imap_store_open): 
    (camel_imap_store_close): Added.
    (camel_imap_command_extended): Fixed a segfault and updated
    to use camel_imap_status()
    (camel_imap_command): Updated to use camel_imap_status()
    (camel_imap_status): New convenience function for parsing
    the return status of an IMAP command

2000-06-12  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c (imap_get_message_by_uid): 
    Works like the POP fetch code, should work temporarily until
    we get around to coding it the way it "Should Be".

    * providers/pop3/camel-pop3-folder.c (get_message_by_uid): Now uses
    the camel-mime-filter-crlf decoder when retrieving messages.

    * camel-mime-filter-smtp.c: Deprecated.

    * providers/smtp/camel-smtp-transport.c (smtp_data): Updated to use
    camel-mime-filter-crlf with my 'dot' extension in place of
    camel-mime-filter-smtp

    * camel-mime-part.c (write_to_stream): Updated to reflect changes
    made to camel-mime-filter-crlf.c

    * camel-mime-filter-crlf.c (filter): Modified to be able to
    encode/decode dots ("\n.\n"<->"\n..\n"). Also fixed the decoder
    so that it should no longer get caught in an infinite loop.

2000-06-12  Dan Winship  <danw@helixcode.com>

    * providers/*/Makefile.am: don't pass a second (incorrect) -rpath
    in addition to the (correct) one automatically provided by
    automake.

    * camel-mime-filter-crlf.c: New filter to do CRLF<->LF conversion.
    (Currently only tested in the LF->CRLF direction.)

    * camel-mime-part.c (write_to_stream): if content-type is text,
    and it's QP or B64 encoded, pass through the CRLF filter before
    the other filter to satisfy the "canonical encoding" rules in the
    MIME spec.

2000-06-09  Dan Winship  <danw@helixcode.com>

    * camel-session.c (camel_session_query_authenticator): Add another
    argument, "mode", which can be CAMEL_AUTHENTICATOR_ASK or
    CAMEL_AUTHENTICATOR_TELL, so callers can get the app to un-cache
    bad info.

    * providers/pop3/camel-pop3-store.c (pop3_connect): uncache the
    password if it doesn't work.

2000-06-09  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-stream.c (stream_read): Updated to reflect
    changes made in camel-imap-store.c

    * providers/imap/camel-imap-store.c (imap_create): No longer checks to
    make sure a folder doesn't already exists (as this is no longer needed)
    (camel_imap_command): Now takes a CamelFolder argument so it can detect
    whether or not it needs to SELECT a folder or not
    (camel_imap_command_extended): Same.

    * providers/smtp/camel-smtp-transport.c (smtp_connect): Will now always
    send EHLO first, if that fails it will fall back on HELO.
    (esmtp_get_authtypes): Should now correctly parse authtypes.

2000-06-07  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-summary.c: Now builds (not that it's worth
    much yet).
    
    * providers/imap/camel-imap-folder.c (imap_get_uids): Now uses the 
    correct cast to a CamelImapMessageInfo structure (should get rid of 
    compile warnings).

    * providers/imap/Makefile.am: Added rules to build 
    camel-imap-stream
    
    * providers/imap/camel-imap-store.c (get_folder): Update.
    Moved imap_create here.

    * providers/imap/camel-imap-folder.c (delete_messages): Remove.
    (imap_create): Removed.
    (imap_delete): Removed.
    (imap_exists): Removed.

    * providers/imap/camel-imap-stream.h: Added typedef's for the stream

    * providers/imap/camel-imap-stream.c: Modified to build cleanly

2000-06-07  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (header_msgid_decode_internal): Properly
    dereference warning/debug messages.
    (header_references_decode): Check we actually have msgid stuff
    before trying to decode it ...

2000-06-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-imap-stream.[c,h]: Removed

    * providers/imap/camel-imap-stream.[c,h]: Relocated to this
    location

    * providers/imap/camel-imap-summary.c: Added

2000-06-06  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: Remove exists, create, delete. A CamelFolder
    now always references an existing folder. Remove delete_messages
    too since it wasn't being used. Add a "create" flag to
    get_subfolder saying whether or not to create the subfolder if it
    doesn't yet exist.

    * camel-store.c (camel_store_get_folder): Add a "create" flag to
    say whether or not to create the folder if it doesn't yet exist.
    (camel_store_delete_folder): New method, moved from CamelFolder.
    (cache_folder, uncache_folder): Fix up a bit.
    (get_folder_name): Explain what this is for.

    * providers/mbox/camel-mbox-folder.c: 
    * providers/mbox/camel-mbox-store.c: Update. Remove support for
    hierarchical folders to simplify this for now, since we're not
    using it, and it's not completely clear how they should work in an
    ELocalStorage world. Needs to be revisited.

    * providers/pop3/camel-pop3-folder.c (delete_messages): Remove.
    * providers/pop3/camel-pop3-store.c (get_folder): Update.

    * providers/vee/camel-vee-folder.c (exists): Remove.
    * providers/vee/camel-vee-store.c (vee_get_folder): Update.

2000-06-06  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-*.[c,h]: Started on getting 
    imap to build cleanly (tho some work has not been completed
    so it still won't build until camel-imap-summary is finished
    along with a few methods in camel-imap-folder)

    * camel-stream.[c,h]: Changed the read and write method prototypes
    to return an ssize_t type rather than an int and also changed
    the 'number of bytes' to read or write to a size_t type

    * camel-stream-fs.c: same as above

    * camel-stream-mem.c: again, same as above

    * camel-stream-buffer.c: same

    * camel-imap-stream.[c,h]: Added this new stream, cache's previously 
    read data so each successive call will instead read from the cache
    
2000-06-05  Dan Winship  <danw@helixcode.com>

    * camel-mime-part.c (camel_mime_part_set_disposition): fix
    typo/braino (set "Content-Disposition", not "Content-Description")
    (camel_mime_part_set_filename): const poison

2000-06-02  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (base64_encode_step): Ick, damn signs!  Fix a
    bug with sign extended bytes.

    * camel-mime-filter-smtp.c (filter): Changed layout/logic slightly
    (to match From filter)

2000-06-02  Jeffrey Stedfast  <fejj@helixcode.com>

    * camel-mime-filter-smtp.c (filter): Fixed the filter so that it 
    wouldn't insert garbage under certain conditions.

2000-06-02  Christopher James Lahey  <clahey@helixcode.com>

    * camel-session.c: Don't ref the services in the cache.

2000-06-02  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c: Rearanged where debug
    fprintf statements we placed so that any data the server sends 
    back is printed out before an exception is set and the function
    returns.

2000-06-02  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (header_decode_date): If we get a funny
    result, just throw it out.  Basically a fix for the one true
    broken TradeClient.

2000-06-01  Not Zed  <NotZed@HelixCode.com>

    * camel-folder-summary.c (message_info_free): Free
    references/messsage id.
    (message_info_save): Save them.
    (message_info_load): Load them.
    (message_info_new): And get them from the new message.
    (CAMEL_FOLDER_SUMMARY_VERSION): Bumped for new changes.

    * camel-folder-summary.h: Added references and messageid to
    summary.

2000-06-02  Christopher James Lahey  <clahey@helixcode.com>

    * camel-session.c: Ref and unref objects in the service cache
    properly.

    * camel-store.c: Ref the folder when returning it using
    lookup_folder.  Used the folder's full name for the key for the
    folder cache since that's used to uncache it.

2000-06-02  Dan Winship  <danw@helixcode.com>

    Fun with purify.

    * providers/pop3/camel-pop3-store.c (pop3_connect): free msg on
    success as well as failure.
    (camel_pop3_command_get_additional_data): free buf after reading
    the last line (".").

    * providers/pop3/camel-pop3-folder.c (get_message_by_uid): free
    body data after creating the memstream from it (which will copy
    the data).

    * providers/mbox/camel-mbox-folder.c (mbox_finalize): free summary
    and index paths.

    * camel-data-wrapper.c (finalize): unref the stream, if it exists.

2000-06-01  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-part.c (construct_from_parser): For a message part,
    set the default content-type to message/rfc822.  Maybe needs to be
    done for multiparts too?

2000-05-31  Not Zed  <NotZed@HelixCode.com>

    * camel-mime-message.c (construct_from_parser): Typo in assersion.

    * camel-mime-parser.c (folder_scan_step): Use a default type of
    message/rfc822 for multipart/digest.  Bug Z192.
    (folder_scan_drop_step): Remove warning.

2000-05-30  Not Zed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): Init
    filter_from to NULL, for exception case.
    (mbox_get_message_by_uid): Cast off_t to long int for diagnostics.

    * camel-url.c (camel_url_hash): Hash funciton for using camel
    url's as hash keys.
    (camel_url_equal): equal function for same.

    * camel-session.c (camel_session_finalise): Free cached services.
    (camel_session_init): Init service cache.
    (service_cache_remove): destroy callback to remove a service from
    the cache.

    * camel-store.c (get_folder_internal): Remove the extra ref of the
    folder.  That seems the right behaviour ...?
    (camel_store_get_type): Doh, actually call store init, so the
    cache works.
    (cache_folder): strdup the folder name!  no wonder it never found
    it again.

2000-05-30  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-folder.c: Implemented a few more
    methods like imap_append and 1 or 2 others

2000-05-29  Not Zed  <NotZed@HelixCode.com>

    * camel-store.c (camel_store_init): Move it to here.  If this
    level is going to maintain it, it should set it up.  Lets see what
    caching folders breaks :(

    * providers/pop3/camel-pop3-store.c (camel_pop3_store_init): Dont
    init folder cache here.

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_expunge): Make sure we copy messages which are
    still intact to the new folder.
    (camel_mbox_summary_expunge): Update the frompos as well when
    moving the content.
    (camel_mbox_summary_expunge): Remove some debug, and dont offset
    frompos?

    * providers/vee/camel-vee-folder.c (vee_folder_build): Check the
    searched folder is open before trying to search it.
    (message_changed): Track changes to the source message in the
    summary.
    (folder_changed): Track folder changes, re-query the folder that
    changed, and cascade the changed event as well.
    (camel_vee_folder_finalise): Free subfolder and subfolder summary.

2000-05-29  Dan Winship  <danw@helixcode.com>

    * camel-service.c (camel_service_new): Fix up some glib
    precondition stuff. Try to set the URL in camel_service_new before
    checking whether or not it's "empty" so that you can successfully
    set "sendmail:" as a URL.

2000-05-28  Dan Winship  <danw@helixcode.com>

    * camel-provider.h: Add a domain field to CamelProvider, to say
    what kind of data it provides.

    * providers/imap/camel-imap-provider.c: 
    * providers/mbox/camel-mbox-provider.c: 
    * providers/pop3/camel-pop3-provider.c: 
    * providers/sendmail/camel-sendmail-provider.c: 
    * providers/smtp/camel-smtp-provider.c: Set domain to "mail".

    * providers/nntp/camel-nntp-provider.c: Set domain to "news".

    * providers/vee/camel-vee-provider.c: Set domain to "vfolder". (So
    it doesn't end up being listed as a potential mail source in the
    mail config wizard.)

    * providers/pop3/camel-pop3-store.c: Split apart password and APOP
    auth, since some servers seem to do both, but don't really.
    (connect_to_server): Renamed from try_connect. Now actually does
    the connection up to the point of checking the greeting for APOP
    support.
    (query_auth_types): Return APOP, if appropriate. Call
    pop3_disconnect after connect_to_server since we don't really want
    to be connected.
    (pop3_connect): Use connect_to_server rather than duplicating
    code. Fix a one-byte buffer overrun in the APOP code.
    (pop3_disconnect): Make this able to clean up after a partial
    connect.
    (connect_to_server): Remove port number from error message since
    it's not terribly useful and we were getting it from the wrong
    place anyway.

    * camel-mime-utils.c (header_address_list_format_append): Use
    `foo@bar' rather than `"" <foo@bar>' for email addresses with no
    name component.

2000-05-27  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c: Removed 
    camel_imap_command_get_additional_data() as it was
    completely useless, replaced with 
    camel_imap_command_extended() which may eventually replace
    camel_imap_command() as well.

    * providers/imap/camel-imap-store.h: Modified to reflect
    changes made to camel-imap-store.c

    * providers/imap/camel-imap-folder.c: Wrote the first of many
    methods: camel_imap_init(), imap_open(), imap_expunge(), 
    imap_get_message_count(), and imap_get_subfolder_names()

2000-05-26  Dan Winship  <danw@helixcode.com>

    * camel-multipart.c (camel_multipart_init): Don't set a default
    boundary. Require the caller to do that.
    (set_boundary): if boundary is NULL, generate a "random" boundary.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Add a call to
    camel_multipart_set_boundary after creating a new multipart.

2000-05-25  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap/camel-imap-store.c (try_connect): Removed
    Exception code - Pop doesn't seem to set exceptions

    * providers/imap/camel-imap-folder.c: Initial code, mostly
    just a template for future code

    * providers/imap/imap.[c,h]: Source code from my personal
    mailer - for reference only!

2000-05-25  NotZed  <NotZed@HelixCode.com>

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Replace simple
    data wrapper here too, oops.

    * Makefile.am (libcamel_la_SOURCES): Removed
    camel-simple-data-wrapper again.  Less code to maintain == better
    code.
    
    * camel-data-wrapper.c (construct_from_stream): Fixes for bug
    where text attachments dont work.  Made data-wrapper concrete for
    the second time.

2000-05-23  NotZed  <NotZed@HelixCode.com>

    * providers/vee/camel-vee-folder.c (vee_folder_build_folder):
    Update the vfolder details for a single folder.

2000-05-25  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (_send_to): Took out code
    that had been there to reconnect to the server if it was not
    already connected - Mailer code was fixed so that this should not
    be needed.

    * providers/imap/camel-imap-store.[c,h]: Initial code.

2000-05-24  Dan Winship  <danw@helixcode.com>

    * camel.h: Re-add camel-simple-data-wrapper.h, which was removed
    for some reason.

2000-05-24  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.[c,h]: Moved global
    variables into struct CamelSmtpTransport to make SMTP
    thread-safe

    * providers/imap/camel-imap-*.h: Stolen from Mbox. Rough structure
    for Imap.
    
2000-05-23  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/imap: Added some initial code to the camel tree
    for IMAPv4

    * providers/imap/.cvsignore: Added to repository

    * providers/smtp/camel-smtp-transport.c: Added debug fprintf's
    so that testers can provide more information. Tested with simple
    messages and a reply to the hello@helixcode.com default message
    but should really be tested more.
    (smtp_data): Fixed to use data_wrapper_write_to_stream.

    * camel-mime-filter-smtp.c (filter): Modified to escape all lines
    beginning with a '.' and to place a \r before each \n if one did
    not previously exist. Removed code to escape "From " as it was
    found to not be needed for SMTP.

2000-05-22  Jeffrey Stedfast  <fejj@helixcode.com>

    * providers/smtp/camel-smtp-transport.c (smtp_data): Fixed the 
    filtered stream. Fixes for stream changes, updated to use 
    camel-mime-filter-smtp.

    * Makefile.am: Added camel-mime-filter-smtp.c
    
    * camel-mime-filter-smtp.[c,h]: Added to camel tree
    Smtp filter used to change \n into \r\n, escape lone dots,
    and escape "From "'s.

2000-05-19  NotZed  <NotZed@HelixCode.com>

    * camel-simple-data-wrapper.c (construct_from_stream): If we
    already have been constructed, unref our content.
    (write_to_stream): Check we've been constructued, and change for
    stream api changes.

    * camel-mime-parser.c: Removed exception stuff.

    * md5-utils.c (md5_get_digest_from_stream): repaired.

    * camel-mime-message.c: Remove exception from write_to_stream, and
    fix, and fix formatting.

    * providers/sendmail/camel-sendmail-transport.c (_send_internal):
    Fix for stream changes.

    * providers/pop3/camel-pop3-store.c (camel_pop3_command): Fixes
    for stream changes.

    * providers/mbox/camel-mbox-folder.c, and elsewhere, fix all
    stream api changes.
    (mbox_append_message): Use stream_close() now its back.
    (mbox_append_message): unref the from filter.

    * camel-stream-mem.c: And here.

    * camel-stream-fs.[ch]: Here too.

    * camel-stream-filter.c: Likewise.  This is getting tedious.

    * camel-stream-buffer.c (stream_write): Fix a few little problems.
    (stream_close): Reimplement.
    (camel_stream_buffer_read_line): Slightly more efficient version,
    that also only allocates the right amount of memory for strings.

    * camel-seekable-substream.c: Likewise.

    * camel-seekable-stream.[ch]: Remove exceptions, fix formatting,
    changes for stream (re)fixes.  set_bounds returns an error.

    * camel-stream.[ch]: Remove exceptions.  Make flush and reset return
    an error code, repair all the screwed up formatting, and put back
    close.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): And here.

    * camel-mime-part.c (camel_mime_part_set_content): And this too.
    (write_to_stream): Fixed for stream changes.

    * camel.h: Fixed.

    * providers/vee/camel-vee-folder.c (vee_search_by_expression):
    Implement.  Performs an intersection of the two searches.
    (camel_vee_folder_finalise): Unref search folders.
    (vee_append_message): Implement append.

2000-05-18  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: remove message_number_capability and require uid
    capatibility.
    (camel_folder_list_subfolders, camel_folder_get_uid_list,
    camel_folder_get_subfolder_info, camel_folder_get_message_info):
    removed
    (camel_folder_get_subfolder_names,
    camel_folder_free_subfolder_names): new subfolder interfaces.
    (camel_folder_get_uids, camel_folder_free_uids): new uid
    interfaces
    (camel_folder_get_summary, camel_folder_free_summary): new summary
    interfaces

    * providers/mbox/camel-mbox-folder.c,
    * providers/nntp/camel-nntp-folder.c:
    * providers/vee/camel-vee-folder.c: Update for changes

    * providers/pop3/camel-pop3-folder.c: Implement get_uids, update
    for other changes.

2000-05-18  NotZed  <NotZed@HelixCode.com>

    * providers/vee/camel-vee-folder.c: Guess!

    * camel-folder-search.c (search_user_flag): Implement user_flag
    search term.

    * camel-folder-search.h: Added user_flag search capability
    (user-flag "blah")

    * providers/mbox/camel-mbox-folder.c (mbox_init): Set USER flag in
    permanent flags for the folder.

2000-05-17  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: Remove unused async open/close and
    copy_message_to functions.
    Rename functions without initial _. Fix glib preconditions and
    gtk-doc comments.

2000-05-17  Dan Winship  <danw@helixcode.com>

    * camel-data-wrapper.c: remove get/set_output_stream operations.
    They're redundant with write_to_stream, and CamelMimePart and
    CamelMimeMessage only implement the latter, meaning that trying to
    get_output_stream on a CamelMimeMessage that was built from pieces
    rather than being parsed from a stream doesn't work. Anything that
    uses get_output_stream can be rewritten to use write_to_stream, so
    we'll standardize on that.
    (camel_data_wrapper_new): remove this: CamelDataWrapper is
    supposed to be an abstract class.
    (write_to_stream): remove default implementation. (Moved to
    CamelSimpleDataWrapper)
    
    * camel-simple-data-wrapper.c: resurrect, although it's not really
    the same thing it was before. A simple data wrapper, which is
    backed by a CamelStream.

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Use
    construct_from_stream rather than set_output_stream.
    (camel_mime_part_construct_content_from_parser): Change
    camel_data_wrapper_new to camel_simple_data_wrapper_new.

    * camel-mime-part.c (camel_mime_part_set_content): Change
    camel_data_wrapper_new to camel_simple_data_wrapper_new.
    

2000-05-17  Darin Adler  <darin@eazel.com>

    * camel-folder-summary.c: (message_info_load):
    Quick fix to get it to compile. I hope I don't get into trouble.

2000-05-17  Dan Winship  <danw@helixcode.com>

    * camel.h: Don't include the no-longer-distributed
    possibly-to-be-removed headers.

    * providers/smtp/camel-smtp-transport.c
    (smtp_get_email_addr_from_text): fix an off-by-one error in
    address parsing
    (smtp_data): use camel_data_wrapper_get_output_stream rather than
    data_wrapper->output_stream

2000-05-17  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (message_changed): Snoop
    changes to user flags on the message into the summary as well.

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_init):
    Changed version init to include the parent class version info
    (i.e. add it not overwrite it).

    * camel-folder-summary.c (message_info_new): Initialise user_flags
    to empty.
    (message_info_load): And load user flags.
    (message_info_save): And save user flags.
    (message_info_free): And free them.
    (CAMEL_FOLDER_SUMMARY_VERSION): Bumped file revision.

    * camel-folder-summary.h: Added user-flags to summary.

    * camel-mime-message.c (camel_mime_message_set_user_flag): Dont
    use a hashtable for user flags.
    (camel_mime_message_get_user_flag): And changed here too.
    (camel_flag_get): New interface to get a flag from a flag
    list.  Flag lists are easier to work with than hash tables, and
    save memory too.
    (camel_flag_set): And set.
    (camel_flag_list_free): And free.
    (free_key_only): Discard.
    (finalize): Remove the flag list.

2000-05-17  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: (smtp_helo): Error
    checking on gethostbyaddr() eliminating a possible segfault.

2000-05-16  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_delete_message_by_uid):
    Implement.

2000-05-12  NotZed  <NotZed@HelixCode.com>

    * camel-movemail.c (camel_movemail): Open the destination with
    O_APPEND, so we dont blow away a partially transferred mbox.
    (camel_movemail): Loop if we get errno=INTR, and not fail.

2000-05-11  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c (summary_rebuild): Update
    the summarised file size, if everything went ok.
    (camel_mbox_summary_expunge): Clear header flags after updating.

2000-05-16  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-folder.c:
    * providers/nntp/camel-nntp-folder.h:
    * providers/nntp/camel-nntp-provider.c: 
    * providers/nntp/camel-nntp-store.c: 
    * providers/nntp/camel-nntp-utils.c: 
    * providers/nntp/camel-nntp-utils.h: 
    get things working with new camel summary stuff.

    * providers/nntp/camel-nntp-summary.c: 
    * providers/nntp/camel-nntp-summary.h: 
    removed files since camel-folder-summary does all we need.

2000-05-15  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: Added some preliminary
    AUTH support.

2000-05-15  Dan Winship  <danw@helixcode.com>

    * camel-folder.h: Remove camel_folder_get_summary, which no longer
    exists.

2000-05-11  Dan Winship  <danw@helixcode.com>

    * Makefile.am: remove some cruft that we're not currently using.

    * camel-stream-mem.c (camel_stream_mem_new_with_buffer): Change
    to match prototype (size_t vs unsigned int) so it works on 64-bit
    machines. Noted by msw.

2000-05-11  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (message_changed): Indicate
    the summary changed also.

2000-05-11  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: (smtp_helo): 
    Updated to more closely comply with RFC 821 standards

2000-05-11  NotZed  <NotZed@HelixCode.com>

    * camel-mime-part.c (write_to_stream): Unref the filter after
    adding it to the filtering stream.

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_finalise): Free the folder path.
    (camel_mbox_summary_update): Also save summary when done.
    (camel_mbox_summary_expunge): Unindex items when deleting them.
    (camel_mbox_summary_expunge): Save the index as well as the
    summary.

    * camel-folder-summary.c (camel_folder_summary_finalise): Free the
    summary path.
    (camel_folder_summary_touch): New function, indicate the summary
    info changed.
    (camel_folder_summary_remove): Dirty here.

    * camel-internet-address.c (internet_decode): Free multiple entry
    addresses properly.

    * camel-mime-utils.c (header_decode_mailbox): Plugged another
    memleak, free text after converting it.
    (header_decode_addrspec): More leaks plugged.

    * camel-mime-message.c (finalize): Free message_uid.
    (finalize): Free the recipients hashtable.

2000-05-11    <notzed@helixcode.com>

    * camel-folder-summary.c (camel_folder_summary_finalise): Free
    summary items and charset filters.

2000-05-10    <notzed@helixcode.com>

    * camel-folder-summary.c (camel_folder_summary_finalise): Don't
    free stuff in p, after we've free'd p.

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): Unref
    the stream we created for appending.

2000-05-10  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: (camel_smtp_transport_class_init):
    Added initialization for service_class

2000-05-10  Dan Winship  <danw@helixcode.com>

    * camel-multipart.c (write_to_stream): fix a stupid typo. Thank
    you, C.

    * camel-mime-part.c (write_to_stream): don't ref the stream before
    wrapper a filter around it, since nothing will ever unref it.

2000-05-10  Christopher James Lahey  <clahey@helixcode.com>

    * Makefile.am: Added camel-types.h, camel-folder-pt-proxy.h, and
    camel-thread-proxy.h.

2000-05-09  Dan Winship  <danw@helixcode.com>

    * providers/sendmail/camel-sendmail-transport.c (_send_internal):
    Bleah. Can't fsync a pipe. As a quick kludge, just don't
    stream_flush it. The right fix will require bringing back
    stream_close though.

2000-05-09  Jeffrey Stedfast  <fejj@stampede.org>
    * camel-internet-address.[c,h]: Undid my changes (moved
    struct _address back into came-internet-address.c)
    * providers/smtp/camel-smtp-transport.c: (_send): changed
    from using it's own address manipulation (using struct _address)
    to using camel_internet_address_get(). Also some format changes
    to keep consistant with the rest of Camel

2000-05-09  Jeffrey Stedfast  <fejj@stampede.org>

    * camel-internet-address.[c,h]: Moved struct _address from
    camel-internet-address.c to camel-internet-address.h
    (hopefully this doesn't break anything...)
    * providers/smtp/camel-smtp-transport.c: (_send): now
    populates the recipient list with To, Cc, and Bcc addresses.
    Should now be able to use this module.

2000-05-09  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-folder.c (mbox_get_message_by_uid):
    one more refcounting fix I missed before.

2000-05-08  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: no longer frees memory it
    shouldn't, updated to reflect camel-stream changes involving
    CamelException (perhaps it should use a different CamelException
    variable than is passed to the camel smtp module?)

2000-05-08  Dan Winship  <danw@helixcode.com>

    * camel-stream.c (camel_stream_read, camel_stream_write,
    camel_stream_flush, camel_stream_reset, camel_stream_printf,
    camel_stream_write_to_stream): Use CamelException to signal
    failure.
    (camel_stream_write_strings): Remove. camel_stream_printf is more
    useful in most of the places that used this.
    (camel_stream_write_string): Change from macro to function to
    prevent problems with double-evaluation.

    * camel-seekable-stream.c (camel_seekable_stream_seek,
    camel_seekable_stream_set_bounds): Use CamelException.
    (reset): Update.

    * camel-seekable-substream.c, camel-stream-buffer.c,
    camel-stream-filter.c, camel-stream-fs.c, camel-stream-mem.c:
    Update.

    * camel-stream-fs.c: Remove the virtual init functions and move
    the code into the creator functions. Add CamelExceptions to
    creation functions that could fail.

    * camel-data-wrapper.c (camel_data_wrapper_write_to_stream): Use
    CamelException.
    * camel-mime-message.c, camel-mime-part.c, camel-multipart.c
    (write_to_stream): Update.

    * camel-mime-parser.c: add an exception to the mime parser private
    data and pass that to stream functions as needed.
    
    * gmime-content-field.c, md5-utils.c: Update (badly) for stream
    changes.
    
    * camel-exception.h (camel_exception_is_set): convenience macro.

    * providers/Makefile.am: disable SMTP for now

    * providers/mbox/camel-mbox-folder.c (mbox_append_message): Pass
    CamelException to the functions that now need it. Check the
    exception after calling camel_stream_flush, and fail if it fails.
    (mbox_get_message_by_uid): More updates.

    * providers/pop/camel-pop3-folder.c,
    providers/pop/camel-pop3-store.c,
    providers/sendmail/camel-sendmail/transport.c: Update.


2000-05-08  NotZed  <NotZed@HelixCode.com>

    * camel-mime-message.c (process_header): Format From and Reply-To
    to at least a decoded string.  Should probably store them as an
    camelinternetaddress.

    * Merged NEW_SUMMARY branch back to trunk, and resolved conflicts.
    
    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_update):
    Return status.
    (camel_mbox_summary_expunge): Force an update of the summary
    before we do anything.
    (camel_mbox_summary_expunge): Build new xev line in xevnew, and
    free that, and consify xev.
    (camel_mbox_summary_load): If we are rebuilding from scratch, make
    sure we clear the summary content.

    * camel-stream-filter.c (do_close): We NEED a stream close.

2000-05-07  Dan Winship  <danw@helixcode.com>

    Make camel not leak like a sieve.

    * camel-object.c: New subclass of GtkObject which is now the base
    of the Camel object hierarchy. Currently the only difference
    between CamelObject and GtkObject is that CamelObjects don't start
    out floating.

    * *.h: Move a bunch of typedefs to camel-types.h. Standardize on
    using <camel/foo.h> in header files rather than <foo.h>, "foo.h",
    or "camel/foo.h". Remove some unneeded includes.

    * camel-address.c, camel-data-wrapper.c, camel-folder-search.c,
    camel-folder-summary.c, camel-folder.c, camel-mime-filter.c,
    camel-mime-parser.c, camel-service.c, camel-session.c,
    camel-stream.c: These are now subclasses of CamelObject.

    * camel-data-wrapper.c (set_output_stream):
    * camel-medium.c (set_content_object):
    * camel-seekable-substream.c
    (init_with_seekable_stream_and_bounds):
    * providers/mbox/camel-mbox-folder.c (mbox_get_message_by_uid): 
    remove gtk_object_sink calls.

    * camel-stream-buffer.c (init_vbuf): 
    * camel-stream-filter.c (camel_stream_filter_new_with_stream):
    ref the original stream.

    * camel-folder-summary.c (camel_folder_summary_finalise): unref
    the filters when finalizing.

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser,
    camel_mime_part_construct_content_from_parser):
    * camel-mime-part.c (camel_mime_part_set_content): Unref objects
    that are created only to be handed off to other objects. If
    they're going to be needed later, they will have been additionally
    ref'ed by the object that needs them.

    * providers/pop3/camel-pop3-folder.c (get_message_by_number):
    unref the message stream after creating the data from it.

    * camel-stream.c, camel-stream-buffer.c, camel-stream-filter.c,
    camel-stream-fs.c, camel-stream-mem.c: Remove camel_stream_close,
    since its semantics are dubious (what happens when you close a
    stream other people still have references on?).

    * providers/nntp/camel-nntp-store.c:
    * providers/smtp/camel-smtp-transport.c:
    * providers/pop3/camel-pop3-store.c:
    replace camel_stream_close calls with gtk_object_unref.

    * providers/mbox/camel-mbox-folder.c:
    * providers/nntp/camel-nntp-folder.c:
    * providers/sendmail/camel-sendmail-transport.c:
    replace camel_stream_close with camel_stream_flush +
    gtk_object_unref

2000-05-06  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (query_auth_types): A machine
    which serves neither POP nor KPOP is not a POP server.

    * providers/smtp/camel-smtp-provider.c: Note in the description
    that this provider is not yet tested.

2000-05-08    <notzed@helixcode.com>

    * camel-mime-part.c (write_to_stream): Free the filter stream when
    done.

    * camel-mime-parser.c (folder_seek): Make sure we add the \n
    terminal when we seek as well (frob!).

    * camel-mime-utils.c (header_decode_addrspec): Plug minor memleak.

    * camel-mime-part.c (finalize): Free header tables once finished.

    * camel-folder-summary.c (camel_folder_summary_remove): Dont try
    to access info after its free'd.

2000-05-07  NotZed  <NotZed@HelixCode.com>

    * camel-mime-part.c (write_to_stream): Apply encoding to content
    part, when writing to a stream *sigh*.

    * camel-stream-filter.c (do_write): implement write for the
    filtering stream.  Writes shouldn't be mixed with reads.
    (do_flush): Implemented flush.  Again write/flush shouldn't be
    mixed with reads.  Only flushes if the last op was write.
    (do_close): Force flush on close.

    * camel-mime-filter.c (filter_run): Oops, make sure we include the
    backlen in the total length before passing onto the filter.

    * camel-mime-filter-from.c: New filter, munges 'From ' lines into
    '>From ', for mbox.

    * camel-mime-parser.c (camel_mime_parser_header_remove): New
    function to remove the parser's raw header, rather than
    manipulating the header directly (wich doesn't work with
    mempools).

    * camel-mime-utils.c (header_address_list_clear): Fixed some
    broken(tm) logic, which would leak entries on multivalued lists.

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_load):
    Use ibex_save() to save the ibex.  Makes a big difference to
    startup times for very large mailboxes.
    (camel_mbox_summary_expunge): Dum de dum, reimplemented.  Designed
    to be much more robust, and to stop immediately if anything awry
    happens.
    (copy_block): Utility function to copy n bytes from one fd to
    another.
    (header_write): Utility function to write out raw headers to an
    fd.
    (camel_mbox_summary_update): Incremental summary updater.

    * providers/mbox/camel-mbox-folder.c (mbox_get_message_by_uid):
    Dont unref the stream, because of the broken(tm) ref model of gtk
    widget that for some odd reason is being perpetuated in camel.  
    (mbox_expunge): Reenable expunge again.
    (mbox_append_message): Removed the optimised mbox append.  If its
    an issue, it can go back later.  Cleaned up a lot, checks error
    returns, and automagically translates 'From ' into '>From' as
    necessary.

2000-05-07    <notzed@helixcode.com>

    * camel-mime-filter.c (filter_run): Oops, forgot to add the
    backlen to the pre-buffer (*poof*).

2000-05-07  NotZed  <NotZed@HelixCode.com>

    * camel-mime-message.c (construct_from_parser): Allow
    HSCAN_FROM_END to terminate the processing of a message.

    * camel-folder-summary.c (perform_content_info_load): Ick, dont
    try and append a node onto its own list.
    (camel_folder_summary_clear): Actually clear the indexes after
    we've removed the messages.
    (camel_folder_summary_clear): Set dirty if it changes.
    (camel_folder_summary_load): Clear dirty.
    (camel_folder_summary_save): Only save if dirty.

    * providers/mbox/camel-mbox-summary.c (summary_header_load): Oops,
    remember to call that parent class first ...
    (summary_header_save): Here too.
    (camel_mbox_summary_load): Do more checking to verify the index
    contents as well as teh summary contents, against the mbox
    contents.
    (camel_mbox_summary_load): Removed some fo that checking, it needs
    more code to work reliably.

2000-05-07    <notzed@helixcode.com>

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_load):
    Set the size and mtime of the mbox we indexed once done.

    * camel-folder-summary.c (camel_folder_summary_set_index): Dont
    write the index if it changes - let the claler fix it (uh, kind of
    impacts performance).
    (camel_folder_summary_load): close in.

    * camel-folder-summary.c (summary_format_string): Check header
    exists before trying to strip its leading spaces.

2000-05-06  NotZed  <NotZed@HelixCode.com>

    * camel-folder.h: Removed summary info from here, and include
    camel-folder-summary.h as well.
    
    * camel-mime-parser.c (camel_mime_parser_step): Allow it to accept
    a NULL databuffer.

    * providers/mbox/camel-mbox-summary.c: Totally new file, now
    subclasses camel-folder-summary.

    * camel-folder-summary.c (message_info_load): Load the uid as a
    string.
    (message_info_save): And save too.
    (camel_folder_summary_clear): New function, clears the contents of
    the summary.

    * providers/mbox/camel-mbox-folder.c: Fixes for summary changes.
    (mbox_get_message_by_uid): Completely redone.  Now cross-checks
    the summary information to make sure we get a real message.
    (mbox_append_message): Disabled the copy version of append for
    now.
    (mbox_expunge): Temporarily disabled the expunge function, until
    it is put back in camel-mbox-summary.c

2000-05-05  NotZed  <NotZed@HelixCode.com>

    * camel-folder-summary.c: And same here ...
    (camel_folder_summary_encode_fixed_int32): Ugh, fwrite doesn't
    return -1 on error ..
    (camel_folder_summary_decode_fixed_int32): Neither deos fread.
    (camel_folder_summary_encode_token): Fix here too.
    (summary_build_content_info): Use start-headers to get the pos of
    the message, not parser_tell(), which might not be what we
    expected because of parser_unstep().
    (camel_folder_summary_encode_token): Use bserch() to tokenise the
    values, rather than a linear search.

    * camel-mime-utils.c: Defined out some memory profiling stuff I
    left there by mistake.
    (header_decode_mailbox): Dont try to append the word part of a
    local address if we ran out of words.

    * camel-mime-parser.c (folder_scan_content): Apply the fix from
    the header scanner to here too.
    (folder_scan_header): Only check for end of header if we have
    space for it (didn't end the read with a newline)
    (folder_scan_header): inptr is the only real thing we need
    registerised for performance.  Try to help the compiler be smart
    about it ..
    (folder_scan_header): Simplified the save header case a tad.

    Commented out some memory profiling stuff.

2000-05-05    <notzed@helixcode.com>

    * camel-mime-utils.c (header_decode_mailbox): Plug a memory leak.
    (header_decode_text): Fixed memory leaks with g_string_append().
    (header_encode_string): And here too, and a few other places.  The
    glib api is so awful ...
    (header_content_type_decode): More memory leaks.

2000-05-05    <notzed@helixcode.com>

    * camel-mime-parser.c (folder_scan_init_with_fd): Make sure we
    init the end of buffer sentinal!
    (folder_scan_init_with_stream): And here too ...

2000-05-04  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (summary_get_message_info):
    Maxcount is minimum of the max and the requested count, not the
    maximum :)

    * camel-mime-parser.c (folder_scan_content): Properly set midline,
    so we dont falsely catch offset boundary markers (i.e. From inside
    content).
    (folder_read): Set a sentinal on the end of the read data (\n) so
    we dont have to check the buffer boundary in the inner loop.
    (mempool_*): New experimental memory management routines, speed
    up simple structure parsing by about 25% ... not compiled in by
    default.  Something similar may be needed for camel-mime-utils to
    address performance issues with g_malloc and friends.

    * camel-mime-utils.c: Added a macro w(x) used to wrap all warnings
    about mime/rfc violations, so they can be turned off.

    * camel-folder-summary.c (summary_build_content_info): Step after
    the end of a message ...
    Turn into a stand-alone program for testing and profiling.

2000-05-04  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (pop3_connect): Don't fall
    back to plaintext passwords if APOP fails, since it should also
    fail.

2000-05-04  Dan Winship  <danw@helixcode.com>

    * camel-session.c (camel_session_list_providers): New function to
    replace camel_provider_scan. Returns a list of either (a) all
    currently-loaded providers, or (b) all available providers.

    * camel-url.[ch]: Add an "empty" flag to CamelURL (indicating that
    it contains only a protocol).

    * camel-service.c (camel_service_query_auth_types): Make this take
    a CamelException (since it may have to try to connect to the
    server, and it might not able to.)

    * providers/pop3/camel-pop3-store.c: add KPOP (Kerberized POP)
    support. This is mostly so I have two kinds of authmech to play
    with instead of just one. (But it does actually work.)

    * providers/smtp/camel-smtp-transport.c (query_auth_types): update
    for prototype change, but disable the functionality, since it
    doesn't really support any auth types yet.
    (camel_smtp_transport_get_type): add an object init function to
    set the service url_flags.

2000-05-04  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c: Yes, and anotherone.

    * camel-mime-utils.c: And another one.

    * camel-mime-part.c: And another one.

    * camel-mime-part-utils.c: And another one.

    * camel-folder-search.c: And another one.

    * camel-mime-parser.c: Reverted a change wihtout a ChangeLog entry.

2000-05-04  NotZed  <NotZed@HelixCode.com>

    * camel-folder-summary.[hc]: Yes, CamelFolderSummary is back ...
    ... re-usable class to summarise and index any stream or message
    and to manage/load/save the created summaries.
    
    * camel-folder.c: Include string.h to kill a warning.

2000-05-03  Jason Leach  <leach@wam.umd.edu>

    * Makefile.am (INCLUDES): add $(UNICODE_CFLAGS) to the INCLUDES,
    people who installed libunicde in non-standard include paths need
    this.

2000-05-03  NotZed  <NotZed@HelixCode.com>

    * camel-folder.h: Added pos/bodypos/endpos to the basic message
    content info object.  Size to be removed?  Moved the
    messageconentinfo and messageinfo back to camel-folder-summary.h.

    * camel-mime-filter-index.c (camel_mime_filter_index_set_ibex):
    New function to (re)set the index to use on a filter.

    * camel-mime-parser.c (camel_mime_parser_scan_from): Whole bunch
    of inline docs.
    (camel_mime_parser_drop_step): New function to drop a state from
    the parser.  Needs more testing.

    * camel-mime-utils.c (rfc2047_decode_word): If the iconv handle is
    -1, then dont try and convert (crashes unicode_iconv?).
    (rfc2047_decode_word): Use alloca for variables instead of
    g_malloc - by the rfc they should always be short.
    (rfc2047_decode_word): If we can't do the charset conversion, undo
    the quoted-printable/base64 at least?  Should probably convert
    unknown characters to the utf-8 unknown character.

2000-05-02  Larry Ewing  <lewing@helixcode.com>

    * camel-mime-utils.c (header_decode_date): fix typo when
    dereferencing saveoffset.

2000-05-02  NotZed  <NotZed@HelixCode.com>

    * camel-folder-search.c: Added some header doco.

    * camel.h: REmove gmime-utils.h from here.

    * providers/mbox/camel-mbox-search.[ch]: Removed.  Functionally
    redundant.

    * providers/mbox/camel-mbox-folder.c (mbox_search_by_expression):
    Use the new CamelFolderSearch class to do the actual searching,
    just setup the search here.

    * camel-folder-search.[ch]: A helper class that providers may
    subclass to provide their own search functionality, or they can
    simply use as is, it supports body searches if an ibex is
    supplied, and header searches if a summary is supplied.

2000-05-02  Matt Loper  <matt@helixcode.com>

    * Makefile.am: set G_LOG_DOMAIN.
    * providers/MH/Makefile.am: same.
    * providers/maildir/Makefile.am: same.
    * providers/mbox/Makefile.am: same.
    * providers/nntp/Makefile.am: same.
    * providers/pop3/Makefile.am: same.
    * providers/sendmail/Makefile.am: same. 
    * providers/smtp/Makefile.am: same.     

2000-05-02  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-search.c
    (camel_mbox_folder_search_by_expression): Dont store/remove
    current search from the search list.
    
    * providers/mbox/camel-mbox-folder.h: Removed searches list,
    searches are all sync now.

    * gmime-utils.[ch]: What the hell, remove it.  This will break the
    nntp provider.  The mime parser can be used instead though.
    Removed from all code including it (but none were using it).

    * gmime-utils.c (_store_header_pair_from_string): Removed bizarre
    string_dichotomy version of this.  This code is somewhat redundant
    now, and is headed for death anyway.

    * gstring-util.c (g_string_dichotomy): Same with this one.
    (g_string_clone): Removed a memory leak, g_string_new() allocates
    its own memory.
    (g_string_append_g_string): Allow to append an empty gstring onto
    another gstring, dont abort()!

    * string-utils.c (string_dichotomy): Removed this incredibly weird
    function.

    * camel-folder.c (_create): Replaced the rather obtuse use of
    "string_dichotomy" function with a simple strrchr().  Still not
    sure it'll work.

    * camel-folder-summary.c: cvs removed a long-removed file.

    * camel-mime-parser.c (folder_scan_header): Fix the previous
    overflow problem properly (can happen in 2 places).
    (header_append): A new macro to include the code changed above, so
    it only appears in one place.
    (folder_scan_step): Change the content type to text/plain if the
    multipart is broken.  Doesn't actually change the header though.
    (header_append): Also move the header-start tracking stuff here.
    Could be a static function to save code.

2000-05-02    <notzed@helixcode.com>

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Dont use autofill on
    these fucking long function anmes!!!!!!

2000-05-02  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_expunge): Fix the offset for the summary when
    an item is expunged to take account of the From line.

2000-05-01  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.h (CamelMboxFolder): Removed
    search_id.

    * providers/mbox/camel-mbox-search.c
    (camel_mbox_folder_search_cancel): Remove.d
    (camel_mbox_folder_search_complete): Removed.
    (camel_mbox_folder_search_by_expression): Changed back to sync
    api.
    (struct _searchcontext): Removed cancelled flag.
    (find_context): Removed.
    (func_header_contains): Debug out some search stuff.

    * providers/mbox/camel-mbox-search.h
    (camel_mbox_folder_search_by_expression): Moved back to sync api.

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_set_flags_by_uid): New function to update the
    flags in the summary.
    (camel_mbox_summary_expunge): Expunge messages from a folder.
    (offset_content): Re-align offsets of summary when messages
    added/removed to an existing summary.
    (camel_mbox_summary_remove_uid): Remove a message summary entry by
    uid.
    (index_folder): Restore flags from X-Evolution header, if they are set.
    (index_folder): Make sure we index using a decimal uid, since
    thats what everything else indexes off (oops).
    Upped SUMMARY_VERSION as a result.
    (camel_mbox_summary_expunge): Oops, my wrong, use the string uid
    to unindex on.

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid):
    Connect to the message_changed signal.
    (_init): Set permanent flags to something reasonable.  No user
    flags yet ...
    (message_changed): If the flags of the message change, update the
    flags in the summary.
    (mbox_expunge): Implement the expunge.
    (camel_mbox_folder_class_init): Renamed all leading _'s to mbox_'s
    (mbox_expunge): Emit a folder_changed signal on expunge (uh, even
    if it didn't ...)

    * camel-folder.c (_finalize): Uh, dont free permanent_flags
    anymore (this wouldn't failed anyway, it was a GList !!!)
    (camel_folder_search_complete): Removed.
    (camel_folder_search_cancel): Removed.
    (camel_folder_expunge): Changed to only allow expunge on an open
    folder.  It doesn't make sense for mbox, otherwise (?)
    (camel_folder_class_init): Added a folder_changed signal.

    * camel-folder.h (struct _CamelFolder): Change permanent_flags to
    a bitfield.
    (list_permanent_flags): Renamed to get_permanent_flags, and
    returns a bitfield.
    (camel_folder_expunge): Changed expunge to a void type.  The
    messages would no longer be useful after they have been removed
    ...
    (CamelFolderClass): New function summary_get_by_uid() to get a single
    summary.
    (*search*): Moved back to synchronous search api ... *sigh*
    
    * camel-folder.h: Removed CamelSearchFunc.

    * camel-mime-message.c (set_flag): Removed.
    (camel_mime_message_set_flag): Removed.
    (get_flag): Removed.
    (camel_mime_message_get_flag): Removed.
    (add_flag_to_list): Removed.
    (get_flag_list): Removed.
    (camel_mime_message_get_flag_list): Removed.
    (camel_mime_message_get_flags): New interface to get system flags.
    (camel_mime_message_set_flags):  " to set ".
    (camel_mime_message_get_user_flag): To get a user flag.
    (camel_mime_message_set_user_flag): To set a user flag.
    (finalize): Hmm, the old one free'd the key and data, not good
    when the data is a boolean ...

2000-04-30  Dan Winship  <danw@helixcode.com>

    * camel-provider.h: Tweak the definition of CamelProvider. Among
    other things, a provider may now be both a store and a transport.

    * camel-provider.c: Remove a lot of code we had no intention of
    using. This now only contains two functions: camel_provider_init
    to read the installed .urls files, and camel_provider_load to
    load and register a new provider.

    * camel-session.c: Remove more unused code and simplify some of
    the remaining code. The list of available provider modules is now
    stored in the session, and it handles calling camel_provider_load
    to load them as needed. Provider registration is now done by
    calling back from the module init routine, which allows a single
    module to register providers for multiple URL types.

    * providers/*: Update provider structures and init routines for
    the new stuff. Add a .urls file to each provider specifying what
    urls it handles, and install that with the library.

    * providers/nntp/camel-nntp-provider.c: Add hints towards
    supporting both news: and nntp: URLs, and using nntp as both a
    store and a transport.

2000-04-29  Dan Winship  <danw@helixcode.com>

    * camel-internet-address.c (camel_internet_address_get): const
    poison

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser):
    camel_mime_parser_tell() returns an offset from where it started
    parsing, not necessarily from the start of data. Since we're
    parsing a bounded seekable_stream, we need to add the stream's
    starting bound to camel_mime_parser_tell's return value to
    create the substream in the right place.

    * camel-seekable-substream.c
    (camel_seekable_substream_new_with_seekable_stream_and_bounds):
    say CAMEL_STREAM_UNBOUND rather than -1 in doc.

    * camel-seekable-stream.c (camel_seekable_stream_seek): Add more
    info to docs.

2000-04-28  Dan Winship  <danw@helixcode.com>

    * camel-mime-parser.c (folder_scan_header): fix a bug that would
    cause corruption with very long headers.

2000-04-27  Ettore Perazzoli  <ettore@helixcode.com>

    * providers/pop3/Makefile.am (INCLUDES): Add `-I$(srcdir)/../../..'
    to pick the Camel includes.
    * providers/sendmail/Makefile.am (INCLUDES): Likewise.

    * camel.h: Don't #include <camel/data-wrapper-repository.h> anymore.

2000-04-27  NotZed  <NotZed@HelixCode.com>

    * camel-mime-utils.c (check_header): Dont try and check a NULL
    header.

    * camel-recipient.[ch]: Dead.  Its not pining.

    * camel-mime-message.h: Dont include recipients.h anymore.

    * camel-mime-message.c (camel_mime_message_add_recipient): Accept
    name/address separately, and store in an CamelInternetAddress.
    (add_recipient): Removed.
    (remove_recipient): Removed.
    (remove_recipient_address): Renamed from remove_receipient, works
    via address.
    (camel_mime_message_remove_recipient_name): New function to remove
    by name.
    (get_recipients): Removed.
    (camel_mime_message_get_recipients): Return a camel-internet-address.
    (write_to_stream): No longer write receipients directly.
    (write_recipients_to_stream): Removed.
    (write_one_recipient_to_stream): Removed.
    (camel_mime_message_init): Setup recipients hashtable, rather than
    usign the recipients stuff.
    (set_recipient_list_from_string): Killed, a violent and lengthy
    death.
    (process_header): Simplified recipient handling code a lot.
    (received_date_str, sent_date_str, reply_to_str, subject_str,
    from_str): Removed some oddly-defined global statics.
    (camel_mime_message_class_init): Dont initialise above variables
    anymore.
    (init_header_name_table): Removed, use a table to init this, and
    do it in class init (2 lines of code ...).

    * camel-news-address.c: Class to represent news addresses -
    currently empty, and not built.

    * camel-internet-address.h: Class to represent internet (email)
    addresses.

    * camel-address.h: Abstract class to represent (lists of)
    addresses.

2000-04-27  Dan Winship  <danw@helixcode.com>

    * camel-mime-part.c (write_to_stream): Revert previous change. I
    was confused.

    * camel-url.[ch] (camel_url_encode, camel_url_decode): expose
    these routines.

2000-04-26  Dan Winship  <danw@helixcode.com>

    * camel-mime-part.c (write_to_stream): Only write a newline
    between the headers and the content object if the content object
    is not a CamelMedium. (If the content is a medium, it may have its
    own headers, which then need to go before the blank line.)

    * camel-mime-body-part.[ch]: Remove. We weren't using the fields
    that made this different from camel-mime-part, so it basically
    just forced us to do lots of gratuitous typecasting.

    * camel-multipart.[ch]: Use CamelMimePart. Remove the multipart
    parent stuff, since we weren't using that either.

    * etc: update for CamelMimeBodyPart -> CamelMimePart

2000-04-26  Dan Winship  <danw@helixcode.com>

    * camel-medium.c (set_content_object): sink the content object
    after referencing it.

    * camel-mime-part.c: fix various little things in the handling
    of CamelMedium methods. Change camel_mime_part_set_text to the
    more generic camel_mime_part_set_content.

    * camel.h: sync to current reality

    * camel-folder-utils.[ch]: removed

    * camel-mime-utils.c (header_format_date): fix format specifier
    for time zone. Fix typo in month names array.

2000-04-26  NotZed  <NotZed@HelixCode.com>

    * camel-seekable-substream.c (stream_seek): Changed to have
    absolute seek semantics, not relative to the bounds.

    * camel-seekable-stream.c (reset): When we reset, seek to the
    start of the bound, if there is one.
    (stream_tell): Make tell virtual.

    * camel-stream-filter.c (do_available): Removed.

    * camel-stream-buffer.c: Remove leading _'s from static functions.
    (stream_read): Renamed from read().  Fancy that conflicting!  (my
    boo!)  Others too.

    * providers/pop3/camel-pop3-folder.c (get_message_by_number):
    Changed to stream_mem interface.

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid): Fixed
    for streamfs interface changes, and implement a failure case.
    (_append_message): Changed for fs stream interface change.

    * camel-multipart.c (print_part): Iterate rahter than callback.  I
    hate glists's interface (hence, move this to write_to_stream).
    (write_to_stream): Return an error (yuck, this is a royal PITA to
    do with the stream write interface).

    * camel-mime-message.c: Removed leading _ from static names.

    * camel-mime-part.h: construct_from_parser() now returns an error
    code.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Changed to use a
    camel-data-wrapper instead of a camel-simple-data-wrapper (no
    change needed elsewhere?).
    (simple_data_wrapper_construct_from_parser): Fixes for stream-mem
    interface changes.

    * camel-simple-data-wrapper.[ch],
    camel-simple-data-wrapper-stream.[ch],
    camel-stream-data-wrapper.[ch], removed.  Fixed including of these
    files.
    
    * camel-mime-part.c (camel_mime_part_set_text): Remove the use of
    the camel-simple-data-wrapper-stream, just use a mem stream.
    (write_to_stream): Renamed from my_*
    (construct_from_stream): Return an error on error.

    * camel-stream-mem.c (camel_stream_mem_new*): Remove mode
    parameter.

    * camel-stream-mem.h (enum CamelStreamMemMode): Removed.  It
    wasn't used at all.

    * camel-data-wrapper.h: Add camel_data_wrapper_new() to create
    these.
    (write_to_stream, construct_from_stream): Return an error
    indicator for success.  Fixed all methods to match (ICK).

    * Makefile.am (libcamel_la_SOURCES): Remove
    camel-simple-data-wrapper.c, camel-simple-data-wrapper-stream.c,
    camel-stream-data-wrapper.c.  Obsoleted by code re-use!

    * camel-data-wrapper.c (construct_from_stream): Change the default
    implementation to just set the output stream == construction
    stream.  Well, this lets me get rid of both simple-data-wrapper
    and stream-data-wrapper (unused anyway), and
    simple-data-wrapper-stream in one hit.  CamelDataWrapper is now
    also a concrete class.
    (write_to_stream): Use camel_stream_write_to_stream() to
    calculate/return values (and save code).
    Include <errno.h> for obvious reasons.

    * camel-stream.c (eos): Provide a default implementation of .eos().
    (camel_stream_write_to_stream): Make it return an error code on
    error.
    (camel_stream_printf): Changed to return the number of bytes
    written/error.
    (camel_stream_available): Removed.

    * camel-stream-fs.h (enum CamelStreamFsMode): Removed.  Changed to
    use unix modes and so forth (wasn't used for anything but new file
    creation and didn't work well either).

    * camel-stream-fs.c: Removed leading _'s for names.  And removed
    some virtual method 'documentation'.
    (destroy): Dont try and close a closed/error fd.  Only report
    error if close returns -1.  Moved all the code to finalise(), and
    killed this function.
    (init_with_fd): Properly setup the seek offset, if it is a
    valid and seekable file descriptor.
    (init_with_fd_and_bounds): Use off_t for bounds, set bounds on the
    seekable stream.
    (init_with_name): Return error codes.
    (init_with_name_and_bounds): Ditto.
    (camel_stream_fs_new_with_name): REturn NULL object if it failed.
    (camel_stream_fs_new_with_name_and_bounds): Return NULL object on
    failure.  Changed with_name* api's to take unix open style args
    and flags.
    (read): The bounded stream bounds checking seemed off, simplified
    code a bit.
    (write): Implement bounds checking for writing, the comment was
    wrong, it could make sense to bound writing.  Cleaned up a little.
    (available): Gone.
    (eos): Removed.  Use CamelStream's implementation now.
    (close): Reset the fd to -1, provide a warning for bad usage.
    (seek): Cleaned up.  Changed the behaviour a little, the returned
    offset is the absolute position in the file, even in bounded
    streams.    
    (seek): Seek from end mirrors lseek() behaviour (reverse seeking).

2000-04-25  NotZed  <NotZed@HelixCode.com>

    * camel-stream-fs.h (struct _CamelStreamFs): Moved bounds and eof
    indicator to other parent classes.

    * camel-stream.c (camel_stream_printf): New utility
    function.  Obvious use.

    * camel-stream-mem.c: Removed leading _'s from static func's.
    (camel_stream_mem_new_with_byte_array): Fixed for api changes, set
    the owner for the byte array to us.
    : Removed A bunch of gtk doc stuff for static (implementation) functions.
    (available): Removed.
    (write): Fixed the write implementation so that seek() works on a
    seekable memory stream, as expected.  Seeking past the end of the
    buffer has unix semantics (filling with 0).
    (available): Removed.
    (write): Implement seekable stream bounded stream.
    (read): Implement seekable stream bounded stream.
    (close): Dont free the stream_mem if we're not the owner.
    (seek): Allow to seek beyond the end of memory area,
    implement bounds checking.
    (seek): Set errno on bad policy.

    * camel-stream-mem.h (struct _CamelStreamMem): Changed position to off_t.
    (new_with_buffer): Changed len to be a size_t.
    (set_buffer, set_byte_array): New interface functions.
    (struct _CamelStreamMem): Removed position, it is stored in the
    superclass.

    * camel-stream.h: Removed some of the seemingly random
    whitespace.  Removed the available method (its not
    impelemented/useful enough).

    * camel-seekable-substream.c
    (init_with_seekable_stream_and_bounds): Remove the data_available
    stuff, it hasn't been properly implemented/finished, and may never
    work (unfortunately *sigh).
    (reemit_parent_signal): Removed part of the above change.
    (set_bounds): Removed (moved to seekable-stream).
    : Fixed up some of the generally unreadable indenting (sorry,
    wrapping at 80 characters with
    camels_really_long_function_names()
    just_doesnt_work_very_well_does_it().
    (available): Removed.
    (stream_seek): Fixup for object changes.  Make sure we return -1
    if the parent stream can't seek.

    * camel-seekable-stream.c (ccamel_seekable_stream_set_bounds): New
    function to bound any seekable stream.
    : Removed _'s.
    (camel_seekable_stream_class_init): Implement an init function, to
    setup the stream bounds to unbound.

    * camel-seekable-stream.h (CamelSeekableStreamClass): New virtual
    method set_bounds for seekable streams.
    (CAMEL_STREAM_UNBOUND): New define for no bound.

    * camel-seekable-substream.h (struct _CamelSeekableSubstream):
    Removed sup_bound and inf_bound, moved to CamelSeekableStream (and
    renamed, and changed to off_t's).
    (new_with_seekable_stream_and_bounds): Use off_t as the bounds.
    (CamelSeekableSubstreamClass): Uh, why was the intialiser virtual?
    Removed.

    * camel-seekable-stream.[ch] (CamelSeekableStreamClass): Changed seek
    to accept an off_t as the offset.
    (struct _CamelSeekableStream): Renamed cur_pos to position and
    changed it to an off_t type.
    (enum CamelStreamSeekPolicy): Set to match the SEEK_* constants
    from lseek().
    (get_current_position): Renamed to tell().

    * camel-stream-buffer.h: Commented out set_vbuf - never implemented.

2000-04-25  Dan Winship  <danw@helixcode.com>

    * camel-stream-buffer.c (_eos): only return TRUE if the parent is
    at eos AND the buffer has been exhausted

    * camel-mime-message.c: fix some incorrect macro usage that
    resulted in bogus casts

2000-04-24  Dan Winship  <danw@helixcode.com>

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): fix a cut-and-pasto.

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid): ref
    (and sink) the message stream if we're going to unref it later.
    Otherwise it could get destroyed while there are still substreams
    attached to it. This needs a cleaner solution.

    * camel.h: remove data-wrapper-repository.h include(s)

2000-04-24  NotZed  <NotZed@HelixCode.com>

    * camel-mime-message.c (construct_from_parser): Allow MESSAGE_END
    _or_ EOF as valid termination conditions.

    * providers/mbox/camel-mbox-summary.c (message_struct_new): Decode
    and then re-encode the addresses, so they are consistently
    formatted.

    * camel-mime-utils.c (header_decode_mailbox): Store the address in
    a _header_address.  And try to get a comment-stored name if there
    is one.
    (header_decode_address): Actually return an address.
    (header_to_decode): Renamed to header_address_decode()
    (header_mailbox_decode): New function to get a single mailbox.
    (header_mime_decode): Return the major/minor value, as
    appropriate.
    (header_address_new, and friends): Whole bunch of utility
    functions for working with the address thingies.
    (header_decode_domain): Free the string header, and dont expand
    '.' into ' . '.

    * camel.c (camel_init): No longer call
    data_wrapper_repository_init.

    * camel-medium.c (write_to_stream): Moved (back) to
    camel-mime-part.
    (add_header):
    (set_header):
    (remove_header): 
    (get_header): Make all these abstract, and spit warnings if
    called.  I guess it could manage the list, but well, it doesn't.

    * camel-medium.h (struct _CamelMedium): Dont store headers here,
    the implementor is the only one who knows their format.
    (CamelMediumClass): Changed header values to be void *'s.  They
    need not be strings?

    * camel-simple-data-wrapper.c (construct_from_stream): And we're
    back.  Set the output stream.
    (construct_from_parser): Moved to camel-mime-part-utils.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_parser): Create the
    contents of multipart and simple messages.
    (camel_mime_part_construct_content_from_parser): Oops, this was
    totally screwed up, try creating the right cotnent on the right
    object.

    * camel-multipart.c (construct_from_parser): Moved to
    camel-mime-part-utils.
    (separate_part): Removed.

    * camel-mime-part.c (construct_from_stream): Back again!  This now
    switches over to using a mime parser for any mime parts, only.
    (my_write_to_stream): Write our headers and so forth here.
    (add_header): Add header directly, parent class is abstract.
    (remove_header): Ditto.
    (set_header): Ditto.

    * camel-data-wrapper.c (camel_data_wrapper_construct_from_stream):
    Remade abstract.
    (camel_data_wrapper_construct_from_parser): Moved to
    camel_mime_part.

    * camel-data-wrapper.h: Put back construct_from_stream.

    * camel-mime-part.h: Put construct_from_parser in here, the
    data-wrapper shouldn't know about mime.  Ok, so now to undo half
    of the last hours changes ... duh.
    
2000-04-23  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (header_to_decode, header_mime_decode): fix
    some obvious minor bugs noted by -Wall.

2000-04-23  NotZed  <NotZed@HelixCode.com>

    * providers/pop3/camel-pop3-folder.c (get_message_by_number): Use
    construct_from_stream instead of set_input_stream().

    * camel-simple-data-wrapper-stream.c
    (camel_simple_data_wrapper_stream_construct): REmoved the destroy
    callback code.
    (wrapper_destroy_cb): Removed.

    * camel-simple-data-wrapper.h: Add prototype for _construct()
    method.

    * camel.c: Include unicode.h to kill a warning.

    * camel-data-wrapper.h (CameldataWrapperClass): Removed
    construct_from_stream virtual method.
    Removed get/set input stream.

    * data-wrapper-repository.[ch]: Removed&from build.  Obsoleted?
    The justification as is follows: It is mixing storage
    protocol/format with message architecture.  It really just doesn't
    serve any purpose, as each medium implementor will have to have its
    own type->handler mapping, and the only current implementor,
    mimepart has a very simple structure and no need for this.

    * camel-medium.c (write_to_stream): Moved here from most of the
    stuff in camel-mime-part.  Well, the MEDIUM is the one that knows
    what the headers are, and the content is, let it write it out.

    * camel-mime-part-utils.c (camel_mime_part_construct_content):
    Copied from camel-mime-part.c, removed handling of message
    followon state (moved to camel-mime-message).
    (camel_mime_part_construct_content_from_parser): Renamed from
    construct_content.
    (camel_mime_part_construct_headers_from_stream):
    (camel_mime_part_construct_content_from_stream):
    (camel_mime_part_store_stream_in_buffer): Removed.  Replaced by
    the new construct from parser stuff.

    * camel-mime-message.c (construct_from_parser): Do
    construct_from_parser for mime-message.
    (_write_to_stream): Set the mime-version header for medium to
    write out, rather than writing it out ourselves.

    * camel-data-wrapper.c (set_mime_type_field): Ref the
    content_field when we get it?
    (construct_from_stream): Removed.
    (camel_data_wrapper_construct_from_stream): Changed to a helper
    function, creates a mime_parser, and constructs from that.
    (set_input_stream): Removed.
    (camel_data_wrapper_set_input_stream): Removed.
    (get_input_stream): Removed.
    (camel_data_wrapper_get_input_stream): Removed.

    * camel-mime-parser.c (camel_mime_parser_unstep): New function.
    Cause a subsequent call to mime_parser_step() to return the same
    state over again.

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid):
    Initial test code using the mime parser to construct the message.
    (_get_message_by_uid): Use construct_from_stream() instead of
    creating our own parser.

    * camel-mime-part.c (construct_from_parser): part constructor.
    (camel_mime_part_construct_content): Basically a simpler
    replacement for the datawrapper repository.
    (camel_mime_part_init): Set the default type to text/plain.
    (camel_mime_part_construct_content): Removed to
    camel-mime-part-utils.c
    (my_get_output_stream): Removed.  The streeam is in the
    data-wrapper.
    (my_get_content_object): Removed.  The content object is stored in
    the medium.  If none is there, the object wasn't created properly.
    (my_write_content_to_stream): Removed.  The content object is the
    one that knows how to write itself out!!!!!!!!
    (my_write_to_stream): Remove the base header writing stuff - has
    been moved to camel-medium, where it belongs.  This can just be
    used to check for mandatory headers.
    (my_construct_from_stream): Removed.
    (my_set_input_stream): What the hell, i'll remove this too.
    Nobody seems to understand how it differs from create from stream,
    and they both seem to serve the same purpose ...

    * camel-simple-data-wrapper.c (construct_from_parser): Initial
    implementation of a content constructor.
    (construct_from_stream): Removed!  Job taken over by
    construct_from_parser.

    * camel-multipart.c (construct_from_parser): Multipart
    construction routine.
    (camel_multipart_init): Set the default multipart type to
    multipart/mixed.  Duh, no subtype is not allowed anyway.
    (set_input_stream): REmoved.  Replaced by construct_from_parser.

2000-04-22  Dan Winship  <danw@helixcode.com>

    * camel-multipart.[ch]: clean, document, etc.
    (camel_multipart_init): pick a prettier default boundary. Still
    need to deal with the larger problem

2000-04-22  NotZed  <NotZed@HelixCode.com>

    * camel-mime-message.h (struct _CamelMimeMessage): Removed
    send_date, and received_date, and replaced it with a time_t
    'date' (this is what the header is called), and date_offset to
    store the GMT offset of the date.

    * camel-mime-message.c (camel_mime_message_set_from): Update raw
    header as we go.
    (_set_from): Removed.
    (_get_from): Removed.
    (camel_mime_message_get_from): Moved implementation here.
    (camel_mime_message_get_subject): Move implementation here.
    (_get_subject): Nuked.
    (camel_mime_message_set_subject): Handle utf-8 input, and also
    update raw header when changed.
    (_set_subject): Removed.
    (_set_received_date): Removed.
    (camel_mime_message_set_received_date): Removed.
    (_get_received_date): Removed.
    (camel_mime_message_get_received_date): Removed.
    (_get_sent_date): Removed.
    (camel_mime_message_get_sent_date): Removed.
    (camel_mime_message_get_date): New function to get the date as a
    time_t/offset.
    (camel_mime_message_set_date): Set the date as a time_t/offset.
    (camel_mime_message_get_date_string): Get the date as a string.
    (camel_mime_message_init): Initialise the current date as
    'CMAEL_MESSAGE_DATE_CURRENT'.
    (_set_reply_to): Removed.
    (camel_mime_message_set_reply_to): Moved implementation here.
    This is still broken, reply-to can have multiple addresses.
    (_get_reply_to): Removed.
    (_set_field): Removed, no longer used anywhere.
    (_get_field): Also removed.
    (_init_header_name_table): Add the Date header.
    (process_header): Also handle snooping of Date header here.

    * camel-stream-filter.c (finalise): Unref the source stream on
    finalise, and also call the parent class (oops).

    * camel-mime-parser.c (camel_mime_parser_state): New function to
    get the current parser state.
    (camel_mime_parser_stream): Allow you to get the stream back from
    the mime_parser.
    (camel_mime_parser_fd): Alternative to allow you to get the fd
    back from the mime_parser.
    (folder_scan_init_with_stream): Properly ref/unref the stream.
    (folder_scan_close): Properly unref the stream/close the fd on
    exit.
    (folder_scan_init_with_fd): Close the old fd if there is one.

    * camel-data-wrapper.c (camel_data_wrapper_construct_from_parser):
    New method, construct a data wrapper from an initialised parser.
    (construct_from_parser): Empty implementation.
    
    * providers/mbox/camel-mbox-summary.c (message_struct_new):
    Convert subject line to unicode, before storing in the summary.
    (strdup_trim): Removed, no longer needed.

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid): Ref
    the folder after setting it in the new message.

    * camel-mime-part.c (my_set_content_object): Have the headers
    follow the content-type change here too.
    (my_write_to_stream): Dont write content-type here, automatically
    stored in the headers ...
    (my_write_to_stream): Use header_disposition_format() to format
    the content-disposition header.
    (my_write_to_stream): Removed old code, all headers are now stored
    in the camel-medium level, always.  Need to do the same with
    camel-mime-message i suppose ...
    (my_write_to_stream): Write the content using the parent class,
    not some weird function.
    (camel_mime_part_class_init): Dont override get_output_stream.
    (camel_mime_part_encoding_from_string): Bleh, make it
    case-insensitive.

    * camel-mime-utils.c (header_content_type_is): Handle empty types.
    (header_encode_string): Start of an implementation of the rfc2047
    encoder.  It does iso-8859-1, and us-ascii, and utf-8 (others get
    tricky *sigh*)
    (rfc2047_encode_word): Convert a single word/string into rfc2047
    encoding.
    (quoted_encode): Different quoted-printable encoding for rfc2047
    encoding of headers.

    * gmime-content-field.c (gmime_content_field_write_to_stream): Use
    header_content_type_format() to format it.

2000-04-21  NotZed  <NotZed@HelixCode.com>

    * camel-mime-utils.h: Add prototype for header_param_list_free.

    * camel-recipient.c: New function to remove all the types of a
    recipient list.  I think this whole object needs a major review.

    * camel-mime-message.c (camel_mime_message_class_init): Removed
    parse_header_pair override, override add_header instead.
    (_parse_header_pair): Renamed to add_header.
    (remove_header): Add this method, to make sure we keep upto date
    with removed headers too.
    (_set_field): If given a NULL value, clear it out.
    (_set_recipient_list_from_string): Constify.
    (set_header): Override set_header from camel_medium.
    (process_header): Local function to handle set/add/remove of each
    header we know about.

    * camel-mime-part.c (camel_mime_part_class_init): Removed
    parse_header_pair setup.
    (my_parse_header_pair): Moved into add_header(), removed.
    (my_set_disposition): Allow a NULL disposition to clear it.
    (my_set_content_id): Allow NULL content id to clear it.
    (remove_header): Track removed headers.
    (my_set_description): Allow NULL description to clear it.
    (my_set_content_MD5): Make sure we copy the md5 value, and allow a
    NULL value to reset it.
    (my_set_filename): Copy the filename.
    (my_set_header_lines): Removed.  Nothing uses it, it doesn't
    actually serve any purpose.
    (camel_mime_part_set_header_lines): Ditto.
    (my_get_header_lines): Ditto.
    (camel_mime_part_get_header_lines): Ditto.
    (camel_mime_part_class_init): Remove *_header_lines setup.
    (camel_mime_part_init): Remove header_lines init.
    (my_finalize): Remove header_lines finalise.
    (my_write_to_stream): Write the headers here.  This is just WRONG,
    camel_medium should be doing this.
    (my_get_output_stream): Kill a warning.
    (camel_mime_part_encoding_to_string): Ditto.
    (camel_mime_part_set_description): Unvirtualiase, use add_header()
    to do the processing.
    (my_set_description): Removed.
    (set_disposition): Renamed from my_set_disposition.
    (camel_mime_part_get_description): Get the descriptionf rom the
    get_header method.
    (my_get_description): Removed.
    (my_set_filename): Removed.
    (camel_mime_part_get_filename): Get the parameter from the
    disposition.
    (camel_mime_part_encoding_from_string): Handle NULL string.
    (camel_mime_part_init): Remove reference to filename.
    (my_finalize): Dont free filename.

    * camel-mime-part.h (CamelMimePartClass): Removed
    parse_header_pair() method, it doesn't add anything that
    add_header() can't be used for.
    (CamelMimePartClass): Remove *_header_lines methods.
    (struct _CamelMimePart): Remove header_lines list.
    (struct _CamelMimePart): Removed filename attribute.

    * camel-medium.c (camel_medium_init): Init headers to null, not a
    hashtable.
    (add_header): Append the headers as a list.
    (remove_header): Remove headers as a list.
    (get_header): Likewise for lookup.
    (free_header): Removed, no longer needed.
    (finalize): Free headers using header_raw_clear().
    (camel_medium_set_header): New function, to reset and override all
    values of a header with a new value.

    * camel-medium.h (struct _CamelMedium): Changed to use a
    header_raw struct rather than a hash table, to store headers
    (many headers can occur multiple times).

    * camel-mime-utils.c (header_raw_find_next): New function, allows
    you to find multi-valued header fields.
    (header_disposition_format): New function to format/create
    content-disposition header string.
    (header_param_list_format_append): Function to format parameter
    lists into a GString.
    (header_content_type_format): Function to format content-type into
    a usable format.
    (header_set_param): allow NULL value to remove the parameter.
    (decode_token): Renamed from header_decode_token.
    (header_decode_token): New interface for external use.
    (quoted_decode): Made static to kill annoying warnings.
    (g_strdup_len): Killed, replaced with calls to g_strndup().
    (rfc2047_decode_word): Made static to kill warnings.
    (decode_coded_string): Terminated.
    (g_string_append_len): Made static to kill warnings.
    (header_decode_text): Made static to kill warnings.
    (header_decode_text): Constify.
    (rfc2047_decode_word): Constify.
    (header_param): Constify.
    (header_content_type_new): Copy the type/subtype strings.
    (header_param_list_decode): Made static.
    (header_param_list_format_append): Made static.
    (quoted_decode): Constify.
    (g_string_append_len): Constify.
    (header_token_decode): New function to decode a single token.

    * providers/mbox/camel-mbox-summary.c (header_write): Append a
    trailing \n when writing headers.
    (strdup_trim): Killed a warning.
    (camel_mbox_summary_set_uid): Make sure the next uid is at least 1
    higher than any existing one.
    (header_evolution_decode): Use header_token_decode to get the
    token.

    * camel-mime-parser.c (folder_scan_header): Strip the trailing \n
    of the end of all header lines.

2000-04-20  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-utils.[ch]: Removed.

    * providers/mbox/camel-mbox-parser.[ch]: Removed.  Removed
    references to it.

2000-04-20  Dan Winship  <danw@helixcode.com>

    * camel-mime-utils.c (rfc2047_decode_word): use libunicode iconv
    functions rather than libc ones (since libc might not have them).
    (header_decode_date): add autoconfiscation on timezone code

    * camel.c (camel_init): call unicode_init ()

2000-04-20  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c (message_struct_new): Trim
    leading/trailing spaces off the raw headers.

    * MERGE NEW_PARSER branch into HEAD, fixed conflicts.
    
    * gmime-content-field.c (_print_parameter): Duh, removed again
    (@@#$@ cvs merge).

    * camel-mime-utils.c (header_content_type_is): Constify.
    (header_content_type_unref): Killed a couple warnings.

    * camel-folder.c (_init): Removed more log crap.

    * providers/Makefile.am (SUBDIRS): Removed nntp, pending fixes for
    summary changes.

    * providers/mbox/camel-mbox-folder.c (_get_message_by_number):
    Fixed for new summary interface.  Added a warning for using this
    broken api.
    (_get_message_by_uid): Fixed for message new with session
    vanishing.

2000-04-19  Dan Winship  <danw@helixcode.com>

    * camel-simple-data-wrapper-stream.c
    (camel_simple_data_wrapper_stream_get_type): This is a subtype of
    CamelSeekableStream, not CamelStream.

    * camel-seekable-substream.c: clean up a lot.
    (eos): When testing for end-of-stream, reset the parent position
    before testing if it is at end-of-stream, since either (a) it may
    have been seek'ed to eos by someone else, or (b) we may have been
    seek'ed away from eos and it hasn't been synced yet.

    * camel-medium.[ch] (camel_medium_add_header): const poison.
    (Belatedly goes with my change of 2000-02-23.)
    (camel_medium_init): Use g_strcase_{hash,equal} on the header
    array.
    
2000-04-18  Dan Winship  <danw@helixcode.com>

    * camel-mime-part.c (my_set_input_stream): 
    * camel-data-wrapper.c (set_input_stream, set_output_stream): do
    better reference counting of streams so they actually go away
    when they should.

    * camel-log.[ch], *: Nuke camel log stuff. Replace calls to
    CAMEL_LOG_WARNING with calls to g_warning.

    * camel-data-wrapper.[ch]:
    * camel-simple-data-wrapper.[ch]:
    * camel-medium.[ch]: Clean, polish, document. Most of the gtk-doc
    comments added to camel-data-wrapper.c note serious problems that
    need to be fixed.

2000-04-17  Dan Winship  <danw@helixcode.com>

    * camel-mime-message.[ch]: Remove the "session" field from
    CamelMimeMessage. Nothing uses it, about half of the existing
    calls to camel_mime_message_new_with_session pass NULL, and
    there's no obvious reason for it to be there.

    * providers/MH/camel-mh-folder.c:
    * providers/maildir/camel-maildir-folder.c:
    * providers/mbox/camel-mbox-folder.c:
    * providers/mbox/camel-mbox-utils.c:
    * providers/nntp/camel-nntp-folder.c:
    * providers/pop3/camel-pop3-folder.c: Use camel_mime_message_new
    instead of camel_mime_message_new_with_session.

    * camel-session.c (get_store_for_protocol_with_url): Set the
    exception if no provider is found.

    * camel-url.c: Add code to encode and decode %-escapes in URLs,
    and do some additional correctness-checking on URL syntax. From
    Tiago Antào with modifications by me.

2000-04-14  Chris Toshok  <toshok@helixcode.com>

    * providers/Makefile.am (SUBDIRS): add nntp

2000-04-14  Christopher James Lahey  <clahey@helixcode.com>

    * providers/mbox/camel-mbox-folder.c: Fix switch statement.

2000-04-14  Chris Toshok  <toshok@helixcode.com>

    * providers/nntp/camel-nntp-folder.c (_exists): always return TRUE
    for now.  we need to check the server response to make sure the
    group exists.
    (_get_message_by_uid): make sure to account for the \n we add to
    the string after every line.

    * providers/nntp/camel-nntp-utils.c (get_XOVER_headers): function
    to get the headers using the XOVER command.
    (get_HEAD_headers): function to get the headers using the HEAD
    command on each message. slooooooow.
    (camel_nntp_get_headers): make this function use either XOVER or HEAD
    versions depending on whether or not the server extension is present.

2000-04-14  Dan Winship  <danw@helixcode.com>

    * camel-formatter.[ch]: This didn't belong in Camel. Move to mail/

    * Makefile.am, camel-types.h: remove references to
    camel-formatter.

2000-04-12  Matt Loper  <matt@helixcode.com>

    * camel-folder-pt-proxy.c (_folder_open_cb): Print warning message
    for broken function.
    (_folder_close_cb): Same.

2000-04-12  Miguel de Icaza  <miguel@gnu.org>

    * Makefile.am (pthread_SRC): Use correct names for the pthread
    source variables.

2000-04-10  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (pop3_connect): fix various
    bugs in APOP code (still untested) and some of the error cases.

    * camel-provider.h: Clarify what provider.protocol, provider.name,
    and provider.description should be.

    * providers/mbox/camel-mbox-provider.c: 
    * providers/pop3/camel-pop3-provider.c: 
    * providers/sendmail/camel-sendmail-provider.c: 
    * providers/smtp/camel-smtp-provider.c: update protocols, names,
    and descriptions

    * providers/mbox/camel-mbox-folder.c (_get_message_by_number):
    implement get_message_by_number for the mail fetch code.

2000-04-09  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: reformatted to fit
    the standard indent format used by helix code

2000-04-09  Dan Winship  <danw@helixcode.com>

    * camel-movemail.c: New file with new function to dot-lock an mbox
    file and copy it to a safe private directory.

2000-04-08  Christopher James Lahey  <clahey@helixcode.com>

    * providers/smtp/.cvsignore: Added a .cvsignore file.

2000-04-08  Dan Winship  <danw@helixcode.com>

    * providers/sendmail/camel-sendmail-transport.c (_send_internal):
    actually record the pid returned by fork(). Noticed by clahey.

    * providers/smtp/camel-smtp-transport.c: #include <sys/param.h>
    for MAXHOSTNAMELEN. (This is a stopgap: some of the uses of
    MAXHOSTNAMELEN are wrong anyway...)

2000-04-07  Jeffrey Stedfast  <fejj@stampede.org>

    * providers/smtp/camel-smtp-transport.c: fixes to numerous bugs;
    should now build fine.
    * providers/Makefile.am: Readded smtp now that smtp builds without
    error.

2000-04-20  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.c
    (camel_mbox_summary_next_uid): Public function to get the next
    uid, makes sure its saved to disk too.

    * camel-mime-part.c (my_finalize): Fix disposition crap with a
    real disposition.
    (my_set_disposition): Likewise.
    (my_get_disposition): And here.
    (my_write_to_stream): And here, needs more cleanup.

    * providers/mbox/camel-mbox-folder.c (_append_message): Assign a
    new uid at this point.

    * gmime-content-field.c (gmime_content_field_write_to_stream):
    Make something up if we have an invalid/missing content type
    (i.e. text/plain).

2000-04-19  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (_delete): Fixed completely
    broken switch() syntax, only compiled because errno is a macro on
    some systems.
    (_list_subfolders): Likewise.

2000-04-18  NotZed  <NotZed@HelixCode.com>

    * camel-mime-parser.c (folder_scan_init): init stream to null.

    * providers/mbox/camel-mbox-summary.c
    (CAMEL_MBOX_SUMMARY_VERSION): Moved to .c file, incremented.
    (index_folder): Changed to have index passed via the summary.
    (decode_string): Do a sanity check on the string size, so we dont
    visit g_malloc()'s friendly abort().

    * camel-folder-pt-proxy.c (camel_folder_pt_proxy_class_init):
    Removed reference to set_name.
    (_set_name): Removed.

    * providers/mbox/camel-mbox-utils.c
    (parsed_information_to_mbox_summary): Removed.  Most of this file
    is about to be binned.

    * providers/mbox/camel-mbox-search.c (func_header_contains): Fixes
    for changes to summary interface.
    (struct _searchcontext): Remove pointer to message info, get it
    straight from the mboxsummary.
    (camel_mbox_folder_search_by_expression): New summary interface.
    (camel_mbox_folder_search_by_expression): Uh, the summary is not
    an object anymore (well not yet).

    * providers/mbox/camel-mbox-folder.c
    (camel_mbox_folder_class_init): Removed set_name init.
    (_set_name): Removed.
    (_open): Call new summary interface.
    (_close): Use new summary interface.
    (_create): Removed a summary object leak.
    (_get_message_count): New summary interface.
    (_get_uid_list): Use new summary interface. FIXME: this is leaky.
    (_get_message_by_uid): Use the new summary interface, some
    cleanup.
    (_append_message): Totally changed, basically just appends the
    message directly, ignores the summary (for now), the summary will
    fix itself up if it needs to.
    (_check_get_or_maybe_generate_summary_file): Bye bye old code.
    (summary_get_message_info): Implement get_message_info again, for
    folder.

    * camel-folder.c (camel_folder_class_init): Removed set_name
    setup.
    (_set_name): Moved contents into _init.
    (_init): Perform the old functions of set_name here.

    * camel-folder.h: Removed the set_name internal interface.

2000-04-14  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-summary.[ch]: Completely replaced with
    new code.

    * Makefile.am (libcamel_la_SOURCES): Removed
    camel-folder-summary.[ch].

    * camel-folder.h (struct _CamelFolder): Removed summary.
    (struct _CamelFolder): Changed flags to be 1 bit bitfields.

    * camel-folder-summary.[ch]: Class removed entirely.

    * camel-folder.c (camel_folder_get_summary): Removed.
    (camel_folder_summary_get_message_info): Moved from
    camel-folder-summary.c
    (camel_folder_summary_get_subfolder_info): Moved from
    camel-folder-summary.c

    * camel-mime-parser.c (folder_scan_step): Store the start of
    headers and start of from in the scan state.
    (camel_mime_parser_tell_start_headers): Query the start of the
    headers.
    (camel_mime_parser_tell_start_from): Query the cached start of
    from marker.

2000-04-13  NotZed  <NotZed@HelixCode.com>

    * gmime-content-field.c (gmime_content_field_free): Removed this
    function.  If its too dangerous to use, it shouldn't be here.
    (gmime_content_field_ref): Also ref the embedded content-type.
    (gmime_content_field_unref): Ditto to unref it.

    * camel-mime-utils.h: Add a refcount for content-type header.

    * camel-mime-utils.c (header_content_type_unref): Implement unref
    for content-type.
    (header_content_type_ref): Implement ref for header content type.

2000-04-12  NotZed  <NotZed@HelixCode.com>

    * gmime-content-field.h: Changed to use a _header_content_type.
    Added type/subtype back for compatability with clients.
    
    * gmime-content-field.c: Basically a total rewrite, and now just a
    thin wrapper ontop of header_content_type.
    (_free_parameter): Got rid of it.
    (gmime_content_field_new): Use header_content_type_* functions.
    (gmime_content_field_set_parameter): Likewise.
    (_print_parameter): Blow away.
    (gmime_content_field_write_to_stream): Get details from the
    content_type field.  Should check if it needs to escape chars in
    the paramter value.
    (gmime_content_field_get_mime_type): Likewise.
    (___debug_print_parameter): Get rid of this rather annoyingly
    named function.
    (gmime_content_field_get_parameter): Simplified function.
    (gmime_content_field_construct_from_string): Fixed this to use a
    real parser.
    (gmime_content_field_is_type): New function to test if a type matches.
    (gmime_content_field_construct_from_string): Track type/subtype
    from subordinate content_type header struct.

    * gmime-rfc2047.[ch]: Removed.  Unused.

    * camel-stream-b64.[ch]: Blown away more duplicated code.

    * Makefile.am: Removed camel-stream-b64.[ch], and
    gmime-base64.[ch].

    * camel-mime-part.c (my_get_content_object): Replaced
    camel-stream-b64 with camel-stream-filter/camel-mime-filter-basic.
    (my_write_content_to_stream): Replaced camel-stream-b64 with the
    camel-stream-filter with an encoder.
    (my_get_content_object): Also implement quoted-printable decoding.
    (my_write_content_to_stream): Also implement quoted-printable
    encoding.
    (my_get_output_stream): Took out stream-b64 code (nothing's being
    executed yet anyway).

    * gmime-base64.[ch]: Blown away.  Not used, dont need it.

    * camel-mime-utils.h: Added offset for this header.  Records where
    it is in the source.

    * camel-mime-utils.c (header_raw_append_parse): Add offset
    parameter, to store where the header is stored in the stream.
    (header_raw_append): Added offset param.
    (header_raw_find): Return offset, if a pointer supplied for it.
    (header_raw_replace): Add offset param.
    (header_content_type_new): New function, to create an empty
    content type.
    (header_content_type_set_param): Set a parameter in the
    content-type.
    (header_set_param): Generic header parameter setting function.
    (header_decode_string): Handle NULL input.

    * camel-mime-parser.c (camel_mime_parser_headers_raw): New
    function to get access to all the raw headers.
    (folder_scan_header): Keep track of the header start position, and
    store it when saving the header.

2000-04-11  NotZed  <NotZed@HelixCode.com>

    * camel-mime-utils.c: Moved a bunch of printf's to debug.

    * camel-mime-parser.c: Moved a bunch of printf's to debug.
    (folder_scan_header): Detect end of each header line using the
    last scanned char, and not the last scanned position.

    * camel-mime-filter-index.[ch]: Indexing filter.  Indexes unicode
    sequences into ibex files.

2000-04-09  NotZed  <NotZed@HelixCode.com>

    * camel-mime-part.c: Dont include gmime-base64.h

    * camel-mime-filter-charset.c (complete): Implement the completion
    function.

    * camel-mime-parser.c (folder_scan_step): If we get to the end of
    the body data, check any filters for outstanding completion data.
    (camel_mime_parser_scan_from): Set whether we scan for "From "
    headers or not.

    * camel-stream-filter.c (do_read): If we get to end of stream on
    the source, then call the filtering completion function to see if
    we have any more data to return.

    * camel-mime-filter-basic.c (filter): Implement quoted printable
    encoding and decoding filters.
    (complete): And the complete function as well.

    * camel-mime-utils.c (base64_encode_close): Also take an input
    buffer, allow closing of filters.
    (quoted_encode_step): First cut, simple quoted-printable encoder.
    Doesn't handle trailing spaces/tabs on end of line properly yet.
    (quoted_encode_close): Complete a quoted-encoding.
    (is_qpsafe): New type check, for quoted-printable safe characters
    (that do not need encoding).  Thats all bits used in the type
    table!  Rebuilt the types table.
    (header_content_type_is): Checks a content type against at
    type/subtype match.
    (header_content_type_param): Handle NULL content type pointer.

2000-04-08  NotZed  <NotZed@HelixCode.com>

    * camel-mime-filter-basic.c (filter): Implement the base64
    encoder.  Problem is, there is no way to know when to close it.
    Close/Reset will have to provide the same args as filter, so it can
    flush remaining data *sigh*

    * camel-mime-utils.c (base64_encode_step): A rather complex base64
    encoder, fast?
    (base64_step_close): Companion function to finish off the base64
    sequence.

    * camel-mime-part.c (my_write_content_to_stream): Changed to use
    camel_stream_write_to_stream().

    * camel-stream.[ch] (camel_stream_write_to_stream): From
    camel_stream_b64_write_to_stream().  Fixed some infinite loop
    bugs with error conditions.

    * camel-stream-b64.[ch] (camel_stream_b64_write_to_stream): Removed.
    This has nothing to do with stream-b64, so i've moved it to
    CamelStream.

    * camel-mime-utils.h: Add a comment about refcounting
    header_content_type struct.

    * Makefile.am: Added camel-stream-filter*.[ch].

    * camel-stream-filter.[ch]: Class to implement a generic
    (multipass) filter ontop of a stream.  Only implements a read-only
    stream.

    * camel-mime-parser.c (camel_mime_parser_filter_add): Ref the
    filter we just added.

    * Makefile.am: Added camel-mime-filter*.[ch].

    * camel-mime-filter-charset.[ch]: A filter to preform character set
    conversion (uses unicode_iconv).

    * camel-mime-filter-save.[ch]: A simple filter which will save all
    data directly to a file or file descriptor.

    * camel-mime-filter-basic.[ch]: Implements the basic mime filters,
    base64 and quoted-printable decoding (encoding not implemented yet).

    * camel-mime-filter.[ch]: A filtering class, which can filter streams
    of data without having to copy them.  Simpler than stream classes,
    and can be plugged into a single stream class (when i write it).

2000-04-07  Dan Winship  <danw@helixcode.com>

    * providers/pop3/camel-pop3-store.c (pop3_connect): Clarify error
    messages.
    (finalize): fix a bug in camel_exception usage
    (pop3_connect): Remember the password after asking for it the
    first time.

2000-04-07  NotZed  <NotZed@HelixCode.com>

    * Makefile.am: Added camel-mime-parser/camel-mime-utils.

    * camel-mime-parser.c: Fast mime parser.

    * camel-mime-utils.c: Mime utility functions, and email header
    parsers.

2000-04-07  NotZed  <NotZed@HelixCode.com>

    * providers/Makefile.am: Removed smtp for now, its a long way from
    building.
    * providers/smtp/Makefile.in: Removed file that shouldn't have been
    checked in.

2000-04-06  Matt Loper  <matt@helixcode.com>

    * camel-folder-pt-proxy.c (_get_full_name): Remove exception param
    from get_full_name() called, since get_full_name() was changed to
    not have an exception in the last param (see dan's notes below).
    (_get_name): same.

2000-04-06  Dan Winship  <danw@helixcode.com>

    * camel-store.[ch]: Reorganize the folder-fetching methods and
    implement a folder cache so that multiple requests for the same
    folder will yield the same CamelFolder object (as long as it
    remains active). Includes some code to remove no-longer-active
    folders from the cache, but it doesn't get used since nothing is
    ever unref'ed in Camel right now...
    
    * providers/mbox/camel-mbox-store.c:
    * providers/pop3/camel-pop3-store.c: update for CamelStore
    changes.

    * camel-folder.[ch]: Remove the (unused) CamelException argument
    from camel_folder_get_name and camel_folder_get_full_name.
    (camel_folder_set_name): make this go away since changing a
    folder's name after it has been created could result in it
    conflicting with a separately-issued folder.
    
2000-04-05  Dan Winship  <danw@helixcode.com>

    * g_url_new really wanted to take a CamelException. So, rename
    Gurl to CamelURL, g_url_* to camel_url_* (with camel_url_new
    taking an exception), and url-util.[ch] to camel-url.[ch]. Also
    force url->port to be numeric and remove camel_service_getport. (I
    was confused before: the URL RFC says the port must be numeric, so
    we don't want to do getportbyname.)

2000-04-01  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-folder.c
    (_check_get_or_maybe_generate_summary_file): Compare
    mbox_file_size and mbox_modtime to the results of stat()ing the
    mbox file, not the summary file. Duh.
    (_close): Update the summary's mbox_file_size and mbox_modtime
    before writing it to disk.

    * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_save,
    camel_mbox_summary_load): Wow. I must have been tired when I wrote
    this code. First, the comparison bug above. Second, it was using
    ntohs and htons instead of ntohl and htonl. Third, I was reading
    the status flag byte in two different places and thus getting out
    of sync. Fourth, it was writing out field_length bytes of each
    header field after having converted field_length to network byte
    order, resulting in lots of random crap being appended, and the
    summary files being huge. (Fortunately, since the size/modtime
    comparison was biffed, the garbage summary read from disk was
    always immediately discarded.)

    * providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): fix
    an off-by-one error that caused the last-used UID to be reused if
    the summary file was regenerated. (That one wasn't my fault. :-)

2000-03-31  Dan Winship  <danw@helixcode.com>

    * camel-stream-mem.c: implement unimplemented methods

    * gmime-content-field.c
    (gmime_content_field_construct_from_string):
    * data-wrapper-repository.c
    (data_wrapper_repository_get_data_wrapper_type):
    * camel-simple-data-wrapper.c (my_write_to_stream):
    * camel-mime-part.c (my_set_input_stream):
    remove debugging printf()s that no longer seem useful.

2000-03-31  Matt Loper  <matt@helixcode.com>

    * camel-formatter.c (text_to_html): Added "convert_newlines_to_br"
    boolean param, to give the option of not converting '\n's to <br>
    tags. This way, when we stick stuff in a <pre> tag, newlines stay
    newlines.

2000-03-30  Matt Loper  <matt@helixcode.com>

    * camel-formatter.c (handle_text_plain): Use <pre> tag to force
    the use of monospaced fonts.

2000-03-30  Dan Winship  <danw@helixcode.com>

    * camel-service.c (camel_service_getport): Add a htons in the
    default_number case, and document the fact that the function
    returns the port in network byte order.

    * providers/pop3/camel-pop3-store.c (pop3_connect): Revert
    Miguel's change. The port number bug was actually somewhere
    else, and the IP address copying code was fine already.
    
2000-03-29  Miguel de Icaza  <miguel@gnu.org>

    * providers/pop3/camel-pop3-store.c (pop3_connect): Add htons
    (port), and only copy 4 bytes for the IP address to prevent a DNS
    attack. 

2000-03-28  Dan Winship  <danw@helixcode.com>

    * camel-seekable-substream.c
    (camel_seekable_substream_new_with_seekable_stream_and_bounds):
    make this return a CamelStream rather than a
    CamelSeekableSubstream, because that's the way Gtk objects tend to
    work.

    * camel-service.c (camel_service_gethost,
    camel_service_getport): convenience functions to canonicalize
    the host and port values of a service's URL.
    * providers/pop3/camel-pop3-store.c: use them

    * providers/mbox/camel-mbox-folder.c
    (_check_get_or_maybe_generate_summary_file): Make this work when
    the inbox file doesn't yet exist.

2000-03-27  Dan Winship  <danw@helixcode.com>

    * providers/mbox/camel-mbox-folder.c (_append_message): uncomment
    the call to unlink the temp file: there's no way to tell
    camel_stream_fs to truncate a file, so reusing the same file was
    resulting in junk at the ends of messages.

    * camel-folder.[ch]: add delete_message_by_{number,uid}.

    * providers/pop3/camel-pop3-folder.[ch]: implement
    delete_message_by_uid. Add a close method to do expunging
    of deleted messages if requested.

    * providers/pop3/camel-pop3-store.[ch]: support for
    CamelPop3Folder::close. (You have to close the connection
    in order to expunge the folder, thus the store may be
    connected in the CamelService::is_connected sense when it
    is not actually connected to the server.) Also some bugfixes.

2000-03-27  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-folder.c (_append_message): Unref the
    output_stream when done, close doesn't do it.
    (_append_message): Clear all uid's from the appending messages, so
    they are reassigned proper unique id's.

    * gmime-utils.c (get_header_array_from_stream): Actually free the
    header, it is copied elsewhere.

2000-03-26  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Added
    folder parameter to function.  Fixed callers.
    (index_message): Index a message as it is assigned a unique id.

    * camel-mime-part.c (my_set_content_id): Make sure we malloc and
    copy the content_id, otherwise *poof*

2000-03-25  NotZed  <NotZed@HelixCode.com>

    * camel-medium.c (_finalize): Another leak, unref the content if
    finished with it.

    * camel-recipient.c (camel_recipient_table_free): Plug another
    memory leak - actually free the recipient table.

    * camel-mime-message.c (_finalize): Plugged a memory leak with the
    flags table.

    * gmime-utils.c (_store_header_pair_from_string): A simpler, more
    debuggable and functionally identical header extraction function.

2000-03-24  NotZed  <NotZed@HelixCode.com>

    * gmime-content-field.c (gmime_content_field_set_parameter):
    Remove the hash table entry before freeing its key and data.

2000-03-27  Dan Winship  <danw@helixcode.com>

    * providers/Makefile.am (SUBDIRS): Add pop3.

    * providers/pop3/camel-pop3-store.c: keep separate input and
    output streams so the output doesn't end up being buffered.

    * providers/pop3/camel-pop3-folder.c (get_message_by_number):
    finish implementing this.

2000-03-27  Michael Meeks  <michael@helixcode.com>

    * camel-mime-part.c (my_set_disposition): fix so less broken.
    (my_finalize): remove dodgy disposition free.

    * camel-data-wrapper.c (my_set_mime_type_field): unref instead of
    free on mime_type.

2000-03-27  Dan Winship  <danw@helixcode.com>

    * camel-service.c (camel_service_free_auth_types): new routine to
    free the data allocated by camel_service_query_auth_types.

    * providers/pop3/camel-pop3-store.c (free_auth_types): implement

    * camel-stream-mem.c (camel_stream_mem_new_with_buffer): rename
    camel_stream_mem_new_with_buffer to ..._with_byte_array and add a
    new ..._with_buffer that takes a char * rather than a GByteArray.

    * Remove CamelStreamBufferedFs, since CamelStreamBuffer makes it
    redundant.

2000-03-25  Dan Winship  <danw@helixcode.com>

    * camel-folder-summary.[ch]: change the CamelFolderSummary
    interfaces to allow partial summary queries (for dealing
    with very large folders). Remove the "extended_fields" from
    CamelFolderInfo and CamelMessageInfo: this is better dealt
    with by subtyping.

    * providers/mbox/camel-mbox-summary.[ch]: Make CamelMboxSummary a
    subclass of CamelFolderSummary. Update interfaces for that. Remove
    the internal/external summary distinction. Remove the (unused) md5
    checksum in the folder summary. Change the summary file format
    (primarily to make it no longer byte-order dependent) and add a
    version number to it so it will be easier to change in the future.
    
    * providers/mbox/camel-mbox-folder.[ch]
    * providers/mbox/camel-mbox-search.c
    * providers/mbox/camel-mbox-utils.c: update for summary changes

    * camel-exception-list.def: add
    CAMEL_EXCEPTION_FOLDER_SUMMARY_INVALID
    
2000-03-23  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-provider.c: Added flag to provider
    initialisation, to match changed structure.

2000-03-22  NotZed  <NotZed@HelixCode.com>

    * camel-folder.[ch]: Added async search api.

    * providers/mbox/camel-mbox-search.c
    (camel_mbox_folder_search_by_expression): Changed to use an
    asynchronous interface.
    (camel_mbox_folder_search_cancel): Cancel function for async
    interface.

2000-03-23  Dan Winship  <danw@helixcode.com>

    * camel-stream-buffer.c (camel_stream_buffer_read_line): Function
    to read one line of any size from a stream and return it in
    allocated memory.

2000-03-22  Dan Winship  <danw@helixcode.com>

    * camel-service.c (camel_service_query_auth_types): New function
    to query a service for the authentication protocols it supports.
    * providers/pop3/camel-pop3-store.c (query_auth_types): implement

    * camel-provider.c (camel_provider_scan): New function to
    scan the provider dir and return a list of all providers.

    * providers/pop3/camel-pop3-folder.c: fill this in partially
    * providers/pop3/camel-pop3-store.c: make camel_pop3_command
    return the text after "+OK"/"-ERR" and add a separate
    camel_pop3_get_additional_data to get the message body or
    whatever. Also make them take a CamelPop3Store rather than
    a CamelStreamBuffer.

2000-03-22  Matt Loper  <matt@helixcode.com>

    * camel-formatter.c (debug): Disabled some useless debug
    messaging.

2000-03-21  Dan Winship  <danw@helixcode.com>

    * providers/pop3: some initial bits of the POP3 provider, to
    make Matt happy. Incomplete, untested, etc.

2000-03-21  bertrand  <bertrand@helixcode.com>

    * providers/mbox/camel-mbox-summary.c 
    (camel_mbox_summary_append_internal_to_external): copy the size field

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid): initialize 
    message_info to NULL

    * camel-folder-summary.h: added the size field.

    * providers/mbox/camel-mbox-summary.h: 
    added the received_date field.

    * providers/mbox/camel-mbox-summary.c:
    documented all functions.

    * camel-folder-summary.h: name change and 
    new fields.

    * providers/mbox/camel-mbox-search.c: update to 
    conform to name change in the summary fields.

2000-03-10  bertrand  <bertrand@helixcode.com>

    * camel-service.h: cosmetic changes.

2000-03-09  Dan Winship  <danw@helixcode.com>

    * s/HelixCode/Helix Code, Inc./ in the copyrights

2000-03-07  bertrand  <bertrand@helixcode.com>

    * camel-formatter.c (handle_mime_part): 
    plug mem leaks due to bad documentation
    of camel_content_field_get_mime_type
    (print_camel_body_part): idem
    (handle_multipart_alternative): idem

    * gmime-content-field.c (gmime_content_field_get_mime_type): 
    documentation fix.


    * camel-mime-part.c (my_finalize): unref the 
    content_input_stream if any. 

2000-03-06  bertrand  <bertrand@helixcode.com>

    * camel-stream-fs.c (_seek): fix a bogus calculation
    in the return position.

2000-03-05  bertrand  <bertrand@helixcode.com>

    * camel-session.h: cosmetic fixes.

    * camel-stream-fs.c (_read): 
    (_seek): fixed the current position so that it refers
    to the current position in the stream, not in its parent.

2000-03-04  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-search.c
    (camel_mbox_folder_search_by_expression): Ref the summary
    after we have got it.

2000-03-04  bertrand  <bertrand@helixcode.com>

    * camel-mime-part.c (my_write_content_to_stream): 
    stream the raw content instead of nothing if the encoding
    is not supported.

    * camel-stream-fs.c (_seek): handle eos more
    properly.

    * camel-formatter.c (get_bonobo_tag_for_object): 
    bonobo-goad-id is the good key to look for. 
    (get_bonobo_tag_for_object): close the <object> tag.
    (get_bonobo_tag_for_object): the correct syntax for the
    to set a parameter inside an <object> tag is :
    <object classid="..."> <param name="uid" value="..."> <param ...>
    </object>

2000-03-03  bertrand  <bertrand@helixcode.com>

    * providers/mbox/camel-mbox-folder.c (_get_message_by_uid): 
    use set_input_stream instead of construct_from_stream
    to feed the message object. 

    * camel-data-wrapper.c (my_write_to_stream): reset output stream.
    (my_set_input_stream): unref the previous input stream.
    use the set_output_stream for default behaviour.
    (my_set_output_stream): unref previous output stream.

    * camel-mime-part.c (my_write_content_to_stream): reset content
    object output stream.

2000-03-03  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Make
    sure we open with create with a creation mask.

2000-03-01  NotZed  <NotZed@HelixCode.com>

    * camel-mime-part-utils.c
    (camel_mime_part_construct_content_from_stream): DO NOT assert on
    content type, we have fallback code 4 lines below it ... *sigh*

2000-02-29  NotZed  <NotZed@HelixCode.com>

    * Makefile.am (libcamelinclude_HEADERS): Added camel-stream-buffer
    to build.

    * camel-stream-buffer.[ch]: Generic buffer which can be applied to
    any stream.

2000-03-03  bertrand  <bertrand@helixcode.com>

    * camel-formatter.c (handle_image): in the case
    of images, put the content object output stream
    in the url. This allows the message browser
    to show inline images.

    * camel-stream-b64.c (my_read_encode): fixed state
    0 keep value. 

2000-03-02  bertrand  <bertrand@helixcode.com>

    * camel-stream-b64.c (my_read_encode): don't forget to 
    set the state to 0 after 3.
    (my_read_encode): don't forget to encode, even in state 3.

    * camel-simple-data-wrapper.c: static functions are prefixed 
    with my_ instead of _
    * camel-multipart.c: static functions are prefixed 
    with my_ instead of _
    (my_write_to_stream): commented.
    (my_write_to_stream): warning in case the boudary is set
    but is a zero length string.

    * camel-mime-part.c (camel_mime_part_encoding_from_string): 
    remove debug trace. 
    
    * camel-mime-part.c: Replaced all static functions
    with name begining with _ by the same name begining
    with "my_" to prevent the possible conflicts 
    with system symbols Dan warned us about. 
    
    * camel-stream-b64.c (camel_stream_b64_write_to_stream): 
    use CamelStreamB64 type for the input stream.

    * camel-mime-part.c (_get_content_object): remove 
    debugging trace
    (_write_content_to_stream): implement the b64 
    encoding the new way (that is using camel_stream_b64)

    * camel-data-wrapper.c (my_write_to_stream): 
    fix implementation so that it writes properly
    to the output stream even.

    * camel-stream-b64.c (camel_stream_b64_write_to_stream): 
    fix implementation. 

2000-02-29  bertrand  <bertrand@helixcode.com>

    * camel-stream-b64.c (camel_stream_b64_write_to_stream): new
    utility function. 

    * camel-data-wrapper.c (_write_to_stream): default
    implementation. 

    * gmime-utils.c (_store_header_pair_from_string): 
    revert strange changes. 

    * camel-stream-b64.c (my_read_decode): set eos to true when we
    have read the whole input stream. 
    (my_reset): set eos to FALSE.

2000-02-28  NotZed  <NotZed@HelixCode.com>

    * camel-mime-part.c (_parse_header_pair): Dont free this either.

    * camel-medium.c (_remove_header): Ugh, dont free the header
    before we actually remove it.
    (_add_header): Ugh, dont free hashtable entries which may be
    duplicated (hash_insert _will_ reference that memory).

    * string-utils.c (string_trim): Trimming a 0-length string is not
    an error.

    * camel-mime-message.c (_parse_header_pair): Fixed very broken
    memory handling of header_name/value.

    * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
    Initialise end_of_last_message always.
    (camel_mbox_copy_file_chunk): Stop trying to read if we run out of
    data, rather than looping forever.
    (camel_mbox_write_xev): Use an open flag when opening with create.

    * camel-folder.c (camel_folder_search_by_expression): No, its not
    a fatal error to search on a non-searchable folder, you just dont
    get any matches.
    (_open): Dont open an opened folder (i dont see why this is really
    a bug, but what the hell ...)

    * providers/mbox/camel-mbox-folder.c (_init): Set search cap on.
    (_open): Call parent class to perform open.  Remove folder-open
    check to parent instead.
    (_create): open takes a creation mask, dont use umask to try and
    set the open mode.
    (_delete): Dont bother checking folder==NULL, its already been
    checked on the external interface (changed to an assertion, this
    would have to be a camel bug).
    (_delete_messages): Likewise.
    (_create): Ditto.
    (_init): Dont go and clear all the paths and shit that the parent
    open just setup for us.
    (_delete_messages): Get rid of more umask stuff.
    (_append_message): Make sure we pass file mode to open with create.
    (_append_message): Cleaned up some indenting to make it readable.

    * camel-stream-b64.c (my_read_encode): Fixed a typo.

    * providers/mbox/camel-mbox-search.c: Changed to use e-sexp,
    rather than filter-sexp.

2000-02-28  bertrand  <bertrand@helixcode.com>

    * camel-stream-b64.c (my_read_encode): encoding
    filter.

2000-02-23  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel-stream-b64.c: changed the __static 
    suffix into a my_ prefix. 
    (camel_stream_b64_set_mode): reset the persistent
    status. 
    (my_read_decode): remove superfluous %
    
    * providers/mbox/camel-mbox-utils.c (camel_mbox_copy_file_chunk): 
    fix exception description message.

2000-02-24  Dan Winship  <danw@helixcode.com>

    * camel-session.c: Add camel_session_get_transport_for_protocol.

    * camel-transport.h:
    * camel-transport.c: Add an abstract CamelTransport class.

    * providers/sendmail/*: A CamelTransport that uses sendmail
    to deliver mail.

2000-02-24  Dan Winship  <danw@helixcode.com>

    * camel-folder.c: use CamelExceptions for run-time errors, not
    incorrect code. Don't bother validating that an object exists from
    inside one of its methods, since you couldn't have gotten there if
    it didn't. Fix some code style bugs.

    (_init): Rename init_with_store to init and add parent_folder,
    separator, and name arguments.
    (_set_name): Get separator from self, not parent_store now.

    * camel-store.h:
    * camel-store.c: Remove get/set_separator.

    * providers/mbox/: Update for above.

2000-02-23  Dan Winship  <danw@helixcode.com>

    * camel-medium.c (_finalize): Free the data in the headers hash
    table.
    (_add_header): g_strdup the header name and value when adding it.

    * camel-mime-part-utils.c
    (camel_mime_part_construct_headers_from_stream): Free the header
    data after calling camel_medium_add_header, since it will have
    g_strdup()ed it itself.

2000-02-22  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-search.c: Dont compile by default.

    * providers/mbox/Makefile.am: Fuck off the filter code.

2000-02-22  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel-stream-b64.c (read_decode__static): 
    don't read the char if we reached the length
    of the output buffer. Hours lost on this
    %$!@# bug : 3.5

    * camel-folder.c (camel_folder_get_subfolder): 
    (camel_folder_create): 
    (camel_folder_delete): 
    (camel_folder_delete_messages): 
    (camel_folder_list_subfolders): 
    (camel_folder_expunge): 
    (camel_folder_get_message_by_number): 
    (camel_folder_get_message_count): 
    (camel_folder_append_message): 
    (camel_folder_copy_message_to): 
    (camel_folder_get_summary): 
    (camel_folder_get_message_uid): 
    (camel_folder_get_message_by_uid): 
    (camel_folder_get_uid_list): 
    Check folder state (open/close) and raise an
    exception if it is not ok. 
    
    * providers/mbox/camel-mbox-folder.c (_create): 
    create the file and the path with two different
    names.

    * camel-folder.c (_create): handle the case 
    when the folder name starts with '/'

    * camel-exception.c (camel_exception_new): use 
    (void) instead of () in decl.

    * camel-exception.h: cosmetic fixes.

    * camel-exception.c (camel_exception_init): new routine.
    Fix a bug in mail/message-list.c
    

    * camel-folder.h: cosmetic changes.

    * camel-stream-b64.c (reset__static): added a
    reset method. Thanks message-browser to find
    so much bugs :)

    * providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): readd
    Unicode libs.

2000-02-21  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel-formatter.c (lookup_unique_id): 
    awful hack to test get_output_stream.
    * camel-stream-b64.[ch] :
    b64 encoding/decoding is now implemented as
    a stream. 
    

2000-02-21  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel-seekable-substream.c (_reemit_parent_signal): 
    emit "data_available" when parent stream emits it. 


2000-02-21  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/Makefile.am: Uh, fixed LIBADD again.  What was
    there was never ever going to work, wasn't it tested?


2000-02-21  Dan Winship  <danw@helixcode.com>

    * camel-session.h: (struct _CamelSession): Add authenticator.

    * camel-session.c (camel_session_new): Add authenticator.
    (camel_session_query_authenticator): New function to query the
    session authenticator for password, etc, information.

2000-02-21  Dan Winship  <danw@helixcode.com>

    * camel-session.c: add CamelExceptions to several functions. Use
    camel_session_new to initialize the session and URL fields of
    created CamelStores as appropriate.

    * camel-store.h:
    * camel-store.c
    * camel-service.h:
    * camel-service.c: Move the session and url (and associated
    functions) from CamelStore to CamelService. Add url_flags to
    CamelService so subclasses can specify which URL components
    are mandatory for them. Add camel_session_new for
    camel_session_get_store* to use.

    * providers/mbox/camel-mbox-folder.c:
    * providers/mbox/camel-mbox-store.c:
    * providers/mbox/camel-mbox-store.h: Update for above changes.

    * camel-exception-list.def: Once camel is being used for real,
    exceptions won't be renumberable. So renumber them now to make
    more room to add exceptions to the various categories later, and
    add a big warning message.

2000-02-20  Dan Winship  <danw@helixcode.com>

    * providers/mbox/Makefile.am: add libibex back to
    libcamelmbox_la_LIBADD

2000-02-18  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/camel-mbox-search.h
    (camel_mbox_folder_search_by_expression): Added exception to call,
    and fixed caller.

    * providers/mbox/camel-mbox-search.c
    (camel_mbox_folder_search_by_expression): Major changes, to use
    the sexp evaluator from filter/filter-sexp.c to implement the
    searching.
    (func_body_contains): Changed to support multiple strings in 1
    command (results or'd together)

    * url-util.c (g_url_new): Fixed a typo (colon == 0 isn't right),
    and made it so full url's are absolute pathed (Dan, this is how it
    has to work!).  Also, always include a path part, even if it is an
    empty string.

2000-02-18  Dan Winship  <danw@helixcode.com>

    * camel/camel-types.h: New header with the typedefs for all camel
    classes. Now the class headers can just include this and the
    header for the parent type. This makes it possible for
    CamelService to include a CamelSession without creating an
    #include loop.

    * camel/*:  
    * composer/e-msg-composer-attachment-bar.h:
    * mail/folder-browser.c:
    * mail/message-list.c: frob #includes to match the new reality

2000-02-17  Dan Winship  <danw@helixcode.com>

    * camel/camel-service.h:
    * camel/camel-service.c: Make camel-service us a Gurl internally.
    Remove the login/password interfaces and instead provide
    camel_service_connect_with_url. Add CamelExceptions

2000-02-17  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel/camel-formatter.c (handle_text_plain): 
    (handle_text_html): use camel_stream_reset instead
    of seek. The formatter should be able to work 
    with all streams, not only seekable streams. 
    In the case where some provider implementation
    would not be able to provide a reset method 
    to their stream, implementors would have
    to find a workaround.

    * camel/camel-session.c (camel_session_new): use
    (void) instean of () in function decl.

    * camel/camel-folder.c: ifdef async operation 
    related code. 

    * camel/camel-seekable-stream.c (_seek): added a warning.
    (_reset): default implementation of reset for seekable
    stream.

    * camel/camel-mime-message.h: set_received_date declaration fix.
    cosmetic changes.

    * camel/providers/mbox/camel-mbox-provider.c (camel_provider_module_init): 
    use (void) instead of ().

    * camel/camel-stream.c (camel_stream_reset): 
    new method for CamelStream.

2000-02-17  Dan Winship  <danw@helixcode.com>

    * camel/url-util.c (g_url_to_string): New function to convert
    a Gurl back into a char *.

2000-02-17  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel/camel-formatter.c (handle_text_plain): 
    revamped so that it uses the output stream
    of the data wrapper
    (handle_text_html): ditto.
    
    
    * camel/camel-simple-data-wrapper.h: 
    * camel/camel-simple-data-wrapper.c (camel_simple_data_wrapper_new): 
    use (void) instead of ().
    (_get_output_stream): simple implementation. 

2000-02-16  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel/camel-data-wrapper.c (_set_input_stream): ref input stream
    (_set_output_stream): ref output stream
    (_finalize): unref input and output streams

    * camel/camel-seekable-substream.c (_set_bounds): don't
    seek the begining of the substream.
    (_eos): fix eos condition testing. 
    (_finalize): unref parent stream
    (_init_with_seekable_stream_and_bounds): ref parent stream

    * camel/gstring-util.c (g_string_equal_for_hash): 
    (g_string_equal_for_glist): return type is int.

    * camel/camel.h: 
    * camel/camel.c (camel_init): use (void) 
    instead of ().
    
2000-02-16  NotZed  <NotZed@HelixCode.com>

    * providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Added
    libfilter to link line (temporarily?).  Required for
    filter-sexp.

2000-02-15  bertrand  <bertrand@helixcode.com>

    * camel/camel-multipart.c (_localize_part): 
    this routine replaces the _read_part routine
    and does not store the part in a buffer. 
    (_set_input_stream): use the set_input_stream
    instead of the construct_from_stream.
    each bodypart is given an input stream. 

    * camel/camel-mime-part-utils.c: 
    include the data-wrapper-repository header. 
    (camel_mime_part_construct_content_from_stream): 
    use the set_input_stream instead of the 
    construct_from_stream method. 

    * camel/camel-seekable-substream.c (_set_bounds): 
    cur position is set to 0 not to inf_bound.

2000-02-15  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel/camel-mime-part.c: include gmime-base64.h
    various compilation and runtime fixes.
    (_set_input_stream): store the input substream 
    for the content object.

    * camel/camel-data-wrapper.h: declare the 
    set/get function on input/output stream.

    * camel/camel-mime-part.c (_get_content_object): 
    don't use a temporary mem stream.   

    * camel/camel-seekable-substream.c (_seek): 
    (_eos): 
    (_read): the substream can be unlimited in length

    * camel/camel-data-wrapper.c (camel_data_wrapper_class_init): 
    set the get/set_input/output_stream methods.    

    * camel/camel-multipart.c (_construct_from_stream): 
    camel_stream_seek -> camel_seekable_stream_seek

2000-02-14  Miguel de Icaza  <miguel@gnu.org>

    * camel/providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Add
    the unicode libraries as well.

    * camel/camel-provider.c (camel_provider_register_as_module): Add
    error reporting here.  Desire to use Solaris increases.  Hair loss
    in the last two hours: 5,400.

    * camel/providers/mbox/camel-mbox-provider.c
    (camel_mbox_get_provider): Renamed function.

    * camel/camel.h: All include files use camel/ now here.

    * camel/providers/mbox/Makefile.am: Drop all the dynamism from
    Camel, and make this a standard library.

2000-02-14  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel/gmime-utils.c (get_header_array_from_stream): use the 
    eos stream method. 
    (gmime_read_line_from_stream): ditto.

    * camel/camel-stream-fs.h (struct ): add the eof field
    cosmetics changes. 

    * camel/camel-stream-fs.c (camel_stream_fs_init): set eof.
    (_read): set eof on end of file.
    (_eos): implemented.

    * camel/gmime-utils.c (get_header_array_from_stream): 
    make a blocking version of the header parser. 
    When the fs stream uses gnome-vfs, this should
    be changed. 
    (gmime_read_line_from_stream): ditto. 

2000-02-11  bertrand  <Bertrand.Guiheneuf@aful.org>

    * camel/camel-stream-fs.c: 
    everywhere, when using the cur_pos field, do it
    on the CamelSeekableStream object.
    (_seek): small fix. 

    * camel/camel-seekable-stream.c (camel_seekable_stream_seek): 
    s/camel_stream_seek/camel_seekable_stream_seek/g

    * camel/camel-seekable-stream.h: 
    (struct ): added a field to store the
    current position.

    * camel/camel-seekable-stream.c (camel_seekable_stream_get_current_position): 
    New function. Allows to get the current position 
    of a seekable stream.
    

2000-02-13  NotZed  <notzed@zedzone.helixcode.com>

    * providers/mbox/camel-mbox-search.c: New file, implements the
    search api for mbox folders.

    * providers/mbox/Makefile.am: Link with ibex.

    * camel-folder.c (camel_folder_has_search_capability): Api
    additions.
    (camel_folder_search_by_expression): Ditto.

2000-02-12  NotZed  <notzed@zedzone.helixcode.com>

    * providers/mbox/camel-mbox-folder.c (_set_name): Setup index
    filename as well.
    (_init_with_store): Init index filename.  Hmm, none of these
    names ever seem to get free'd (FIXME?)

    * providers/mbox/camel-mbox-folder.h: Add index file name.

2000-02-12  NotZed  <notzed@helixcode.com>

    * camel-folder.h: Add folder search functions.

    ** Created ChangeLog just for camel **
     - refer to ../ChangeLog for changes prior to this date.