ChangeLog
157 KB
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
2001-10-24 Alain Magloire
* configure.in: Check for getdelim().
* lib/getline.c: change the return values from int to ssize_t
to follow GNU LibC.
2001-10-23 Alain Magloire
The message_t object makes no guaranty about the size and the lines
that it returns, if it is pointing to non-local file messages,
i.e POP3, IMAP4, the entire message may not have been dowloaded yet.
IMAP is very susceptible on the size, example:
A003 APPEND saved-messages (\Seen) {310}
Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
From: Fred Foobar <foobar@Blurdybloop.COM>
Subject: afternoon meeting
To: mooch@owatagu.siam.edu
Message-Id: <B27397-0100000@Blurdybloop.COM>
MIME-Version: 1.0
......
(1) If the IMAP4 server does not get the right size advertise in the
string literal, it will misbehave.
(2) Since we are assuming that the message will be in (unix)native
file system format meaning ending with NEWLINE, we will have
to do some calculations about the RFC822.SIZE of the message.
(3) As pointed above, it is not possible to rely on message_size()
nor message_lines() to return the right count and even missing by
one can be deadly.
So we download the message to a floating message to guaranty that
we know the exact size when transmitting it back the IMAP server,
this is the only sane thing to do IMHO. We could always
be smart; check if the message is local (i.e from the local file
system: mbox, mh, etc ..) and was not modified. If those two
requirements are true we can assume that the sizes/lines are right.
But for now do it simple, and create a temporary file/message_t.
* mailbox/mbx_imap.c (imap_append_message): If the message
is from the same IMAP server optimize by doing COPY. If not
call imap_append_message0() save the original message to a
floating message i.e. file, and use that floating message for
the append. Temporary message is destroyed when finish.
The drawback is this function is no long nonblocking safe.
2001-10-23 Alain Magloire
* mailbox/body.c: body_lines () nd body_size () were not
properly overriden given the wrong size and line number, fixed.
* mailbox/mbx_imap.c (mailbox_imap_close): Not to send another SELECT
but rather just close the mailbox if not selected.
(imap_scan0): If there is no messages in the mailbox no need to
send the FETCH 1:*.
* mailbox/message.c (message_is_modified): Protect against null
pointer.
* mailbox/mutil.c: Add <errno.h> if we use errno directly.
(mu_get_user_email): size not used, nuked.
* TODO: Some stuff todo 8).
2001-10-23 Sergey Poznyakoff
* mailbox/mutil.c: New function mu_get_user_email.
* include/mailutils/mutil.h: Prototype for mu_get_user_email.
* mail/alt.c: Determine full user email address (mail_set_my_name).
* libmu_scm/mu_address.c: New function mu-username->email, deduces
user's email from his username.
* libmu_scm/mu_message.c: New function mu-message-destroy.
mu_scm_message_free(): Destroy the underlying message if its owner
is NULL.
* guimb/scm/sieve-core.scm: Use mu-username->email to initialize
sieve-my-email.
* guimb/scm/redirect.scm: Use close-pipe instead of close-output-port.
Use mu-message-destroy.
* guimb/scm/reject.scm: Delete message after sending reject
notification.
MH: Implemented user profiles.
* mh/mh.h: New prototypes.
* mh/mh_argp.c: Honor `progname:' entries in the user's profile.
* mh/mh_init.c: Read user's profile. Use values from there instead
of hardcoded ones.
* mh/inc.c: Do not call mh_init() explicitly.
* mh/scan.c: Likewise.
2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
* doc/texinfo/Makefile.am: Remove version.texi, it's implied.
* libmu_scm/Makefile.am: Clean @GUILE_PROCEDURES_TXT@
* guimb/Makefile.am: Clean @GUILE_PROCEDURES_TXT@
2001-10-21 Sergey Poznyakoff
Changes for compatibility with automake 1.5:
* guimb/Makefile.am: Restored -I.
* mh/Makefile.am: Renamed ALL_LDADD to mh_LIBS.
2001-10-20 Alain Magloire
* configure.in: Set to 0.0.9c.
* doc/texinfo/mbox.texi: Updated the docs for mbox(Unix).
* doc/texinfo/pop.texi: Updated the docs for pop3.
* imap4d/expunge.c: Bug: Expunge was not sending the
untag "* %d EXPUNGED" for message deleted. Call imap4d_sync ()
which will do the right thing.
* imap4d/noop.c: Bug: It should call imap4d_sync () to notify
the client of any changes.
* imap4d/sync.c (notify_deleted): Typo should be EXPUNGED
with a D.
(imap4d_sync): Bug: Checked also if the number of messages changed.
* mailbox/folder_imap.c (imap_flags): Bug: Rewrite it to be generic
and sets the flags for the attribute.
(imap_fetch_flags): Call imap_flags().
(imap_permanentflags): Call imap_flags().
* mailbox2/include/mailutils/mbox.h: Update prototypes.
* mailbox2/include/mailutils/sys/mbox.h: Update prototypes.
* mailbox2/include/mailutils/pop3.h: Update prototypes.
* mailbox2/mbox/mbox_expunge.c (mbox_expunge): Calls mbox_expunge0 ().
(mbox_save): Calls mbox_expunge0().
* mailbox2/mbox/mbox_scan.c (mbox_scan): Calls mbox_scan0 ().
(mbox_count): Calls mbox_scan0().
* mailbox2/pop3/pop3_capa.c: Provide a special iterator.
* mailbox2/pop3/pop3_lista.c: Provide a special iterator.
* mailbox2/pop3/pop3_uidla.c: Provide a special iterator.
2001-10-19 Sergey Poznyakoff
MH inc is fully functional:
* mh/inc.c: Implemented -audit.
* mh/mh_init.c: New functions mh_audit_open(), mh_audit_close().
* mh/mh.h: Protos for new functions.
* mh/mh_format.c: Minor bugfix in builtin_mbox().
* guimb/Makefile.am: Removed superfluous -I.
2001-10-19 Sergey Poznyakoff
Implemented saving of MH context.
* mh/inc.c: Fixed truncate option. Implemented -changecur. The only
feature inc lacks so far is -audit.
* mh/mh_format.c: Minor fix in builtin_match().
* mh/mh_getopt.c: Fixed option recognition heuristics.
* mh/mh_init.c: New globals: ctx_name -- keeps full context file
name, ctx_header -- keeps current context (as a MU header).
mh_init(): Use new globals.
New functions: mh_save_context, mh_write_context_file, mh_check_folder,
mh_getyn.
* mh/mh.h: Prototypes for new functions.
2001-10-17 Sam Roberts
* README-alpha : Update cvs repository path.
2001-10-17 Sergey Poznyakoff
After discussion with Jeff, removed maintainer-mode quirks
and introduced --enable-debug switch.
* configure.in: Use MU_DEBUG_MODE.
* m4/maintainer.m4: removed.
* m4/debug.m4: (new) Handle --enable-debug option. When
the option is specified, adds -ggdb to the invocation of
gcc, and removes any optimization directives from CFLAGS.
* m4/Makefile.am: Removed maintainer.m4, added debug.m4
and regex.m4 (committed earlier, but apparently forgotten
to add).
* guimb/Makefile.am: Removed MAINTAINER_MODE conditionals.
* libmu_scm/Makefile.am: Likewise.
* mail/Makefile.am: Likewise.
* imap4d/imap4d.h: Added proto for strtok_r.
* .cvsignore: Updated (config.sub, ltconfig, etc.)
2001-10-16 Alain Magloire
According to rfc2060 the minimum timeout is 30 minutes. But
it is not unusual to see server with a shorter timeout. When
the timeout occurs, the server sends a BYE. To catch this
all functions in folder_imap.c and mbx_imap.c use a proloque
folder_open() or imap_messages_count to check if the server
timedout and reconnect. This is not bullet proof since the
"* BYE" will be act upon on the second request, the first
is where we catch "* BYE". On mailbox2 this behaviour will
be disable/enable with a property and make more reliable,
so client set the property "AUTORECONNECT".
* mailbox/folder_imap.c: Prologue to must functions calling
folder_open().
* mailbox/mbx_imap.c: Proloque to must functions calling
folder_open() or imap_messages_count.
(section_name): Buglet passed the wrong argument to sizeof().
For debugging purposes, to see the traffic
* mailbox/folder_imap.c:
Print to stderr the command sent to the IMAP server.
#define DEBUG_SHOW_COMMAND 1
Print to stderr the responses received from the IMAP server.
#define DEBUG_SHOW_RESPONSE 1
Print to stderr the literal/quoted string received from the IMAP
server. #define DEBUG_SHOW_DATA 1
2001-10-16 Sergey Poznyakoff
* doc/texinfo/mailutils.texi: Eliminated overfull \hboxes in printed
output.
* doc/texinfo/programs.texi: Likewise. Use @ref instead of @xref
wherever appropriate.
2001-10-15 Alain Magloire
* mailbox/sendmail.c: Use vfork() instead of fork(). In a
multithreaded environment, fork () may not be supported.
Since we do fork()/exec(), vfork() will do fine.
This was trigger by QNX/Neutrino, where fork()ing is not
supported after threads have been created.
2001-10-15 Sam Roberts
* doc/texinfo/programs.texi: Typo and semantics corrections.
2001-10-15 Alain Magloire
* mailbox/mbx_imap.c (imap_message_readline imap_body_readline):
Bad analysis on my part. Functions removed.
* configure.in: Bump to 0.0.9b
* TODO: Put a note apropos mailbox2.
2001-10-14 Alain Magloire
* mailbox/mbx_imap.c(imap_message_readline imap_body_readline):
The buffer was not null terminated if no newline was found.
2001-10-14 Alain Magloire
The code for IMAP, is a pain, the rewrite should clean all those
hacks. Something to remember for the mailbox2 is to do some
smart caching, the current buffered stream is not good enough.
* configure.in: VERSION is set to 0.0.9a for the alpha.
* frm/frm.c: Protype for usage(). get_personal() should use
const char *.
* mail/mail.c (main): Use mailbox_scan() instead of
mailbox_messages_count () it is faster for IMAP.
* mailbox/mbx_imap.c(imap_get_message0): Remove the
stream_setbufsiz() it is no longer used.
(imap_message_readline imap_body_readline):
Bug fix, readline will only consume up to '\n' even though the
buffer is bigger. So we have to adjust the offset/lines/size
to reflect what we consume. This is not very good for example
doing:
{
off_t offset = 14;
char buffer[512];
stream_readline (stream, buffer, sizeof buffer, offset, NULL);
...
}
Will send to the impap server.
C: g445 FETCH 4 BODY.PEEK[2]<0.2048>
S: * 4 FETCH (BODY[2]<0> {739}
S: g445 OK FETCH completed
This is waste since the first line is only 37 bytes. We will
have to come up on the second API with some smart caching.
* mailbox/memory_stream.c (_memory_write): Nasty bug
was not updating the stream size.
* mailbox/stream.c(stream_readline): Take care of known
case where the buflen is 0 or 1.
2001-10-14 Alain Magloire
The code for property.c has been changed for a more simple approach,
it is the same approach as mail/util.c(environment) settings.
The old code was simply overkill, property_t was seldomly used,
if at all, no need for heavy hash table and all that jazz.
* mailbox/property.c: New code, the same as mail/util.c environment.
* mailbox/mbx_mbox.c (_mbx_init): Remove property_add_defaults() etc ..
no longer in use in the initialisation code.
* mailbox/mbx_imap.c: Likewised
* mailbox/mbx_pop.c: Likewised
* mailbox/mbx_mh.c: Likewised
* mailbox/header.c: Removed property code.
* mailbox/body.c: Removed property code.
* mailbox/message.c: Removed property code.
* mailbox/filter.c: Changed the code according to the new property_t.
* mailbox/filter_rfc822.c: Changed the code according to the new
property_t structure.
* include/mailutils/header.h: Removed property.
* include/mailutils/body.h: Removed property.
* include/mailutils/message.h: Removed property.
* include/mailutils/property.h: Removed property_add_defaults()
property_set_valued () takes one more argument for overwrite.
* mailbox/include/header0.hy: Removed property field.
* mailbox/include/body0.hy: Removed property field.
* mailbox/include/message0.hy: Removed property field.
* mailbox/mailbox.c(mailbox_get_property mailbox_set_property):
Changed Property code.
* mailbox/mailer.c(mailer_set_property mailer_get_property):
Changed Property code.
* mailbox/folder_imap.c (imap_search imap_expunge imap_status): Stubs
SEARCH is not implemented yet, STATUS neither and EXPUNGE is not used.
* mailbox/list.c: Renamed variable index to indx to shutup
gcc whos confusing with index() when warning level was high.
* mailbox/md5-rsa.c: Likewised.
* mailbox/mailbox.c (mailbox_get_debug mailbox_set_debug):
The debug object was being set on the folder not the mailbox.
* mailbox/mbx_imap.c (imap_messages_count): Attempt to reconnect
if the connection timeout. Is this wise?
(imap_scan0): Moved gut of imap_scan() code here.
(imap_scan): Stub calling imap_scan0() with notification enable.
(imap_expunge): After CLOSE, call imap_scan0() wiht notification
disable.
Memory leak in parse822, this was a real pain to trace, because
of the recursive nature of the algorithm. Sam should buy me
a beer for this.
* mailbox/parse822.c: Used more assert to catch errors.
(parse822_group): phrase was not free() in case of failure.
(parse822_mail_box): Dead "else if" branch removed and free phrase.
(parse822_route): accumulator was not being freed.
(parse822_local_part): Moved down st_free(more).
(parse822_domain): Moved down st_free(more).
2001-10-14 Sergey Poznyakoff
Small fixes:
* frm/frm.c: Do not output extra newline when running with
--field option.
* mail/reply.c: Do not prefix subject line with Re: if it
already starts with it
* mail/send.c: Handle ~x escape properly.
* mail/table.c: Removed entry for ~x: it is handled by send.c
* mail/var.c: Delimit addresses with space (~t, ~c and ~b escapes).
Removed var_exit().
* guimb/main.c: Fixed typo in --help output.
* guimb/scm/README: (new).
Reorganized /doc. Added some documentation (primarily, program.texi)
* configure.in: Added doc/*/Makefile
* doc/*.texi, doc/*.rfc: removed.
* doc/Makefile.am: Reorganized doc structure
* doc/.cvsignore: Likewise.
* doc/texinfo: New directory
* doc/texinfo/Makefile.am: (new)
* doc/texinfo/.cvsignore: (new)
* doc/texinfo/.ispell_english: (new) User dictionary for spell-checking
docs.
* doc/texinfo/address.texi: Moved from ..
* doc/texinfo/attribute.texi: Likewise.
* doc/texinfo/auth.texi: Likewise.
* doc/texinfo/body.texi: Likewise.
* doc/texinfo/c-api.texi: Likewise.
* doc/texinfo/encoding.texi: Likewise.
* doc/texinfo/envelope.texi: Likewise.
* doc/texinfo/ex-address.texi: Likewise.
* doc/texinfo/ex-url.texi: Likewise.
* doc/texinfo/folder.texi: Likewise.
* doc/texinfo/framework.texi: Likewise.
* doc/texinfo/headers.texi: Likewise.
* doc/texinfo/imap4.texi: Likewise.
* doc/texinfo/iterator.texi: Likewise.
* doc/texinfo/locker.texi: Likewise.
* doc/texinfo/mailbox.texi: Likewise.
* doc/texinfo/maildir.texi: Likewise.
* doc/texinfo/mailer.texi: Likewise.
* doc/texinfo/mailutils.texi: Likewise.
* doc/texinfo/mbox.texi: Likewise.
* doc/texinfo/message.texi: Likewise.
* doc/texinfo/mh.texi: Likewise.
* doc/texinfo/mime.texi: Likewise.
* doc/texinfo/nntp.texi: Likewise.
* doc/texinfo/parse822.texi: Likewise.
* doc/texinfo/pop3.texi: Likewise.
* doc/texinfo/programs.texi: Likewise.
* doc/texinfo/sendmail.texi: Likewise.
* doc/texinfo/sfrom.c.texi: Likewise.
* doc/texinfo/smtp.texi: Likewise.
* doc/texinfo/stream.texi: Likewise.
* doc/texinfo/url.texi: Likewise.
* doc/texinfo/version.texi: Likewise.
* doc/rfc: New directory
* doc/rfc/Makefile.am: (new)
* doc/rfc/.cvsignore: (new)
* doc/rfc/rfc1731.txt: Moved from ..
* doc/rfc/rfc1734.txt: Likewise.
* doc/rfc/rfc1738.txt: Likewise.
* doc/rfc/rfc1939.txt: Likewise.
* doc/rfc/rfc1957.txt: Likewise.
* doc/rfc/rfc2045.txt: Likewise.
* doc/rfc/rfc2046.txt: Likewise.
* doc/rfc/rfc2047.txt: Likewise.
* doc/rfc/rfc2049.txt: Likewise.
* doc/rfc/rfc2060-errata: Likewise.
* doc/rfc/rfc2060.txt: Likewise.
* doc/rfc/rfc2088.txt: Likewise.
* doc/rfc/rfc2111.txt: Likewise.
* doc/rfc/rfc2192.txt: Likewise.
* doc/rfc/rfc2193.txt: Likewise.
* doc/rfc/rfc2221.txt: Likewise.
* doc/rfc/rfc2245.txt: Likewise.
* doc/rfc/rfc2298.txt: Likewise.
* doc/rfc/rfc2342.txt: Likewise.
* doc/rfc/rfc2368.txt: Likewise.
* doc/rfc/rfc2384.txt: Likewise.
* doc/rfc/rfc2449.txt: Likewise.
* doc/rfc/rfc2821.txt: Likewise.
* doc/rfc/rfc2822.txt: Likewise.
* doc/rfc/rfc3028.txt: Likewise.
* doc/rfc/rfc821.txt: Likewise.
* doc/rfc/rfc822.txt: Likewise.
2001-10-13 Alain Malgoire
* mail/mail.c: Possibility to enable debuging output.
It should probably be a runtime option via set debug=1 or something
for now it is disable between if (0) {...}.
More cleanup in the IMAP code. A memory stream buffer is
use to save the string literal sended by the IMAP server.
The allocation is handle by the memory_stream which simplifies
the code.
* folder_imap.c (folder_imap.c): Create a memory stream to
hold the literal or quoted string send by the IMAP server.
(folder_imap_list folder_imap_lsub): There is no callback
field the struct folder_list is in struct _f_imap now.
(imap_literal_string imap_quoted_string imap_string): Use the
memory string stream to save the result.
(imap_body): Still need to be clean, but creates the cache
header when doing the scan.
(imap_parse): Do not use alloca().
2001-10-13 Jeff Bailey
* guimb/Makefile.am: Remove GNU Makeism.
* libmu_scm/Makefile.am: Remove GNU Makeism.
2001-10-12 Jeff Bailey
* libmu_scm/Makefile.am: Fixes for RO srcdir.
* guimb/Makefile.am: Fixes for RO srcdir.
2001-10-11 Alain Magloire
A small cleanup of the IMAP code.
* mailbox/folder_imap.c (imap_body): Destry the cache header
if it was previously set on a SCAN.
* mailbox/mbx_imap.c (delete_to_string): New function, to generate
a string of IMAP message numbers.
(imap_expunge): use delete_to_string;
(attribute_string): Removed.
(flags_string): Removed.
(flags_to_string): Replace attribute_string() and flags_string().
(message_operation): Rename to fetch_operation.
* mailbox/include/imap0.h(struct _f_imap): field func and id
removed, never used.
2001-10-11 Alain Magloire
* mailbox/folder_imap.c (imap_quoted_string): Free the buffer.
(imap_string): Free the buffer.
(imap_body): Check if we already have the fheader header.
(imap_scan): Forgot the break in the switch.
2001-10-11 Alain Magloire
In order to boost performance, when doing the scan, we use
the approach of downloading a subset of the header from all
of messages. The way it was done before was that the headers
were requested one by one per message. This was causing performance
issues because we were doing a lot of small transactions on
the TCP/IP stack. By bundling the entire thing in one request
"a0000 FETCH 1:* (FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS(..)])\r\n"
there were less transcations and the speed was increase
by a factor of 100+.
The Imap code folder_imap.c and mbx_imap.c is now messy.
The rewrite in mailbox2 should clean this up though.
* mailbox/folder_imap.c (imap_quoted_string): Allocated the
memory instead.
(imap_body): If we were doing the scan free the memory and create
the cache header.
(imap_fetch): Create the message if was not done, important for
the scan.
* mailbox/mbx_imap.c (imap_scan): Bundle one big request to
fetch as much information as possible.
(message_operation): Free the buffer when done.
* mailbox/include/imap0.h: Add IMAP_SCAN states.
* mailbox/file_stream.c (_file_readline): It seems that fgets() can
not handle binary data. Try to do our best.
2001-10-11 Alain Magloire
* mailbox/header.c (header_get_fvalue): When it fails set the number
of byte written to 0.
(header_get_value): Likewised.
* mailbox/mbx_imap.c (imap_envelope_sender): Go through
header_get_value() to fetch the "Sender" field, it may be cache.
(imap_header_get_fvalue): Put parenthesies around the FETCH, the
WU-IMAPD likes it that way.
2001-10-10 Alain Magloire
* mailbox/mbx_pop.c (_mbox_pop_init): Authority is set on the folder.
For pop this a little hackish, since there is no proper folder.
As a hack we set for the pop folder the actual mailbox as data pointer.
(pop_user): the owner of the authority is the folder.
2001-10-08 Alain Magloire
* mailbox/mbx_mbox.c (mbox_expunge0): New function.
Move all the previous mbox_expunge() to mbox_expunge0()
with a new argument deciding whether or not to remove
messages set deleted.
(mbox_save_attributes): Stub calling mbox_expunge0().
(mbox_expunge): Stub calling mbox_expunge0()
* mailbox/mbx_mh.c: Provide a prototype for mh_message_number()
there is no provision for it in the current Mailbox API.
* mailbox/mbx_imap.c (imap_message_lines): If the message_size
is not set fallback on body_lines and header_lines.
* mail/print.c: Lines number are not always known for
example for POP or IMAP, it is not known until the mail
is dowloaded so take a guess base on the size.
2001-10-08 Sergey Poznyakoff
* mail/z.c: Bugfix: Did not display the last message when the
number of lines in last page was less than pagelines.
* mailbox/mbx_pop.c: Use ENOSYS instead of ENOTSUP.
* mh/mh_format.c: Fixed memory leak in strobj_free().
2001-10-05 Alain Magloire
* mailbox/folder_imap.c (imap_flags): Bailout at the matching
LPAREN.
* mailbox/header.c (header_get_fvalue): Return 0 as the
number of byte returned by the last argument, even when no header
field matched.
(header_get_value): Likewised.
* mailbox/mbx_imap.c (imap_header_get_fvalue): Also cache
the message size and the FLAGS.
(imap_message_size): If we already have the size do not request
it again.
2001-10-05 Sergey Poznyakoff
* guimb/scm/Makefile.am: Added reject.scm.
* mailbox/parse822.c: (parse822_word): Additional check
for qstr != NULL: parse822_quoted_string() sometimes returns
EOK and does not fill qstr (e.g. when parsing empty string: "")
2001-10-04 Alain Magloire
* imap4d/select.c(imap4_select_status): According to RFC2060
There is no parenthesis when we send the UIDVALIDITY/UNSEEN.
* mailbox/header.c (header_free_cache): New function.
(fill_blurb): Call header_free_cache to release memory.
(header_destroy): Move the code to header_free_cache().
(header_set_fvalue): Accept a NULL value, it will permanent
failure i.e. the header does not exist.
(header_get_value): Check the cache provided by the header object
then the cache from _get_fvalue() and fall back to downloading
the entire header.
* mailbox/mbx_imap.c (imap_hader_get_fvalue): Implement a cache
in IMAP for the most use headers like "FROM, SUBJECT ....".
* mailbox/include/imap0.h: New field in _m_imap to hold the
header cache.
* mailbox/mapfile_stream.c: signed and unsigned cast.
2001-10-03 Alain Magloire
* mailbox/mbx_imap.c (imap_attr_set_flags): Do not send
the \\Delete flag and just keep it locally. The expunge
will take care of resending it.
(imap_attr_unset_flags): Likewised.
2001-10-03 Sergey Poznyakoff
* mailbox/attribute.c: Fixed funny bug in
attribute_{set,clear}_modified.
2001-10-01 Alain Magloire
* mailbox2/attribute.c: Add user flags.
* mailbox2/dattribute.c: Add user flags.
To be compatible with the old mailbox, all stream read
and write take an offset. Removed stream_seek () and add
stream_is_seekable() instead.
* mailbox2/stream.c: Likewised.
* mailbox2/bstream.c: Likewised.
* mailbox2/fdstream.c: Likewised.
* mailbox2/fstream.c: Likewised.
* mailbox2/mapstream.c: Likewised.
* mailbox2/memstream.c: Likewised.
* mailbox2/tcpstream.c: Likewised.
* mailbox2/include/mailutils/error.h: Add EBADFD.
* mailbox2/include/mailutils/mbox.h: New prototypes.
* mailbox2/include/mailutils/sys/mbox.h: New prototypes.
* mailbox2/mbox/*.c: Finish implementation.
2001-09-26 Alain Magloire
* mailbox2/mbox/mbox_append.c: Implemented, first draft.
2001-09-23 Alain Magloire
First draft of the mailbox/mbox2. Not functional.
Changes are too numerous to enumarate.
* mailbox2/mbox/*.[ch]: First mbox implementation.
* mailbox2/mbox/Makefile.am: New file.
2001-09-22 Alain Magloire
In order to provide inheritance, it is necessary to make
the base functions/methods visible so the extended object
could reuse some base methods if necessary. Inheritance
is possible because we always add to the end of the vtable
structure new functions.
For example, mime_t object will be also a message_t.
and it will be possible to do
{
mime_t mime;
header_t header;
...
message_get_header ((message_t)mime, header);
}
Another example is tcpstream(socket stream) extends
fdstream(file descriptor stream);
Also the name of the functions have change to match there purpose.
* mailbox2/Makefile.am: lockfile.c added.
* mailbox2/bstream.c: Reoganisation to make the
functions visible.
* mailbox2/dattribute.c: Likewise.
* mailbox2/dotlock.c: Likewise.
* mailbox2/fdstream.c: Likewise.
* mailbox2/fstream.c: Likewise.
* mailbox2/mapstream.c: Likewise.
* mailbox2/memstream.c: Likewise.
* mailbox2/pticket.c: Likewise.
* mailbox2/sdebug.c: Likewise.
* mailbox2/tcpstream.c: Likewise.
* mailbox2/include/mailutils/Makefile.am: lockfile.h added.
* mailbox2/include/mailutils/attribute.h: Add the new prototypes.
* mailbox2/include/mailutils/mbox.h: Add the new prototypes.
* mailbox2/include/mailutils/stream.h: Add the new prototypes.
* mailbox2/include/mailutils/sys/Makefile.am: dattribute.h lockfile.h
mapstream.h pticket.h added.
* mailbox2/include/mailutils/sys/bstream.h: Add new prototypes.
* mailbox2/include/mailutils/sys/fdstream.h: Likewise.
* mailbox2/include/mailutils/sys/fstream.h: Likewise.
* mailbox2/include/mailutils/sys/mbox.h: Likewise.
* mailbox2/include/mailutils/sys/memstream.h: Likewise.
* mailbox2/include/mailutils/sys/sdebug.h: Likewise.
* mailbox2/include/mailutils/sys/tcpstream.h: Likewise.
2001-09-20 Sergey Poznyakoff
* frm/frm.c: Print newline not depending on the presence
of Subject header.
* mh/mh_fmtgram.y: Builtin functions return their values
in arg_num,arg_str. reg_num,reg_str gets set only when reducing
to pitems.
Fixed if-blocks to save the result of the last evaluated conditional
to reg_num.
* mh/mh_format.c: Builtin functions return their values
in arg_num,arg_str.
Compress whitespace only in component escapes.
* mh/mh_init.c: mh_read_formfile(): Handle end-of-line comments
and '\' line continuation.
2001-09-19 Alain Magloire
* mailbox2/debug.c: Remove mu_debug_printv() and only keep
mu_debug_print().
* mailbox2/sdebug.c (mu_debug_stream_create): New function
replace mu_debug_stdio_create().
* mailbox2/fdstream.c (_fds_desroy): Do not close the stream
when destroying, it should have been done explicitely with
stream_close ();
* mailbox2/fstream.c (_fs_desroy): Do not close the stream
when destroying, it should have been done explicitely with
stream_close ();
* mailbox2/mapstream.c (_map_desroy): Do not close the stream
when destroying, it should have been done explicitely with
stream_close ();
* mailbox2/memstream.c (_memory_desroy): Do not close the stream
when destroying, it should have been done explicitely with
stream_close ();
* mailbox2/tcpstream.c (_tcp_desroy): Do not close the stream
when destroying, it should have been done explicitely with
stream_close ();
2001-09-18 Sam Roberts
* mailbox/mbx_pop.c: Check url authentication type at
initialization to trap invalid ones early.
* mailbox/: mbx_mbox.c, mbx_mh.c: The pthread headers seem to
define things that make the system headers not prototype some
non-POSIX but essential APIS, so I moved them (on QNX6).
* mailbox/url.c: Set zero-length strings to NULL.
* mailbox/: url_imap.c, url_pop.c: Check harder for URLs that are
not invalid for the particular scheme.
* mailbox/auth.c: authority_authenticate() was returning success if
authority was NULL, this is an error for all the other authority_*
APIs, now it is here, as well.
2001-09-18 Sergey Poznyakoff
* mh/mh.h: Changed proto of mh_read_formfile(). Thanks to Alain
for noticing.
* mh/inc.c: Likewise.
* mh/scan.c: Likewise.
* mh/mh_init.c: Likewise.
2001-09-18 Sergey Poznyakoff
* mailbox/mbx_mh.c: Optimized for speed.
_mh_message_save(): scan the message while saving it. If expunge==0,
do not create temporary, operate directly on the message file instead.
mh_append_message(): Do not rescan appended message.
mh_scan_message(): Do not rescan the message if it's not changed
since last scan.
* mh/.cvsignore: Updated.
* mh/mh_argp.c: Pass '+' key when handling +folder option.
* mh/mh_getopt.c: Handle +folder.
* mh/inc.c: Handle '+' key.
* mh/scan.c: Likewise.
2001-09-17 Alain Magloire
Pop3 now has a debug object, mu_debug_t, to follow the protocol
exchanges between the library and the server.
* mailbox2/pop3/*: Add debug prints in all.
* mailbox2/sdebug.c: New entry.
* mailbox2/debug.c: New entry.
* mailbox2/Makefile.am: Add debug object
* mailbox2/include/mailutils/Makefile.am: Add debug.h
* mailbox2/include/mailutils/sys/Makefile.am: Add debug.h and sdebug.h
* mailbox2/include/mailutils/debug.h: New file.
* mailbox2/include/mailutils/sys/debug.h: New file.
* mailbox2/include/mailutils/sys/sdebug.h: New file.
* mailbox2/fdstream.c: Bug in fdstream do not call FD_SET if
the file descriptor is -1;
* mailbox2/tcpstream.c: Bug in fdstream do not call FD_SET if
the file descriptor is -1;
2001-09-17 Sergey Poznyakoff
* mail/mailline.c: fixed declaration of ml_reread, it did not
match the changed proto.
* acconfig.h: Added HAVE_OBSTACK
* mailbox/mbx_mbox.c: _mh_next_seq(): add 1 to the last used
sequence number. mh_append_message(): missed assignment to
mhd member of struct _mh_data.
mh_message_number(): new function. It is the only way to get
the message sequence number.
Further changes to mh/: Implemented inc command. Added missing
options to scan.
* mh/Makefile.am: Added inc.c. Restructured .*_LDADD assignments.
* mh/mh.h: Extern declarations for current_folder, current_message,
mh_list_format, etc.
* mh/mh_format.c: builtin_msg(): return sequence number of the
message, not its ordinal number in mailbox.
builtin_cur(): implemented.
* mh/mh_init.c: New globals: current_folder, current_message,
mh_list_format, etc.
mh_init(): initialize current_folder and current message.
mh_read_context_file(), mh_read_formfile(): new functions.
* mh/scan.c: Changed initialization of format_str. Removed
scan_folder: use current_folder instead. Implemented
-form and -header options. Use \f to clear screen if
stdout is not a tty.
* mh/inc.c: (new) Implementation of inc command.
2001-09-16 Alain Magloire
* doc/mbox.texi: Starts to document the concrete Unix mbox
API.
* doc/pop3.texi: Typos.
* mailbox/mbx_mh.c: Initialised variables. Typecast to void
expunge since it is never used.
* mail/delete.c : Typo.
2001-09-16 Alain Magloire
This is after a exchange with Dave Inglis and Sam Roberts.
Basically they recommand to drop the XX_release() functions
and only to keep XX_create (), XX_destroy (). We have simple
reference count strategy for memory management.
* mailbox2/* : Way too much to enumerate.
* mailbox2/refcount.c: New file
* mailbox2/include/mailutils/refcount.h: New file
* mailbox2/include/mailutils/sys/refcount.h: New file
* mailbox2/fdstream.c: stream_fd_create ().
2001-09-15 Alain Magloire
The exercise is to crank up the warnings from gcc and cleanup
the code based on the hints generated by the compiler. The usual
errors:
- signed vs unsigned, signedness or unsignedness problems.
- printf() wrong formats
- wrong prototypes declarations
- and different buglets
- "const char *" vs "char *"
- unused variables
- unused arguments. Tell the compiler by typecasting to void
(void)var.
- Some variable when shadowed, meaning in another block variable
of the same name where reused.
- atoi() is not an ANSI C function, we should use strtol().
Changes to comply to GNU coding standards, and nuke trailing spaces.
* mail/alias.c (alia_lookup): No prototypes and scope static.
(hash_num, max_rehash, aliases): Scope static and unsigned.
(hash): unsigned.
(alias_rehash): i unsigned.
(alias_lookup_or_install): slot variable unused.
(alias_destroy): unsigned.
* mail/copy.c (mail_copy0): fprintf wrong format.
* mail/decode.c: dislay_message change prototype.
(mail_decode): Cast when calling util_msgset_iterate().
(display_message): Prototype change.
(display_headers): unsigned issues.
* mail/delete.c: Buglet was caling mail_delete0() instead of
mail_delete.
* mail/eq.c: Unused arguments.
* mail/exit.c: Unused arguments.
* mail/folders.c: Unused arguments.
* mail/followup.c: Unused variables.
* mail/from.c (mail_from): variable buffer was shadowing use variable
name instead. snprintf() formatting issues.
* mail/headers.c: Unsigned issues.
* mail/if.c: Unused arguments.
* mail/inc.c: Unused arguments.
* mail/list.c: Use const char *.
* mail/mail.c: options[], argp[] initialised all elements.
(mail_cmdline): Unused arguments.
(main): Unsigned issues.
(mail_warranty): Unused arguments.
* mail/mail.h: function_t with complete prototype this necessary
to let the compiler do proper checks.
struct mail_command_entry rearrange the fields and a new field
int (*escfunc) __P ((int, char **, struct send_environ *));
Indentation rearrangements.
* mail/mailline.c (ml_getc): Scope is static now.
typecast for const char *.
(ml_reread): Typecast.
* mail/msgset.y: Declare yyerror() and yylex().
(msgset_select): Change of prototpe to let the compiler do checks.
(selec_sender): Unsused arguments.
* mail/pipe.c: Rename variable pipe to tube.
* mail/print.c: Unsigness and some shadow variables.
* mail/quit.c: Shadow variables.
* mail/send.c: Typecast when necessary. Use the second (escfunc)
field now. Some shadow variables.
* mail/shell.c: Unsigned.
* mail/table.c: Readjust the table to correspond to the signature
change in mail.h.
* mail/tag.c: Prototype change.
* mail/util.c (util_msglist_esccmd): New function.
(util_find_entry): Prototype change. And check return value
of getenv().
(util_screen_lines): Change atoi() to strtoul().
(util_screen_columns): Change atoi() to strtoul().
(util_find_env): Signedness.
(util_fullpath): Prototype changed(const).
(util_slist_to_string):Protorype changed (const).
(util_strcat) :Protorype changed (const).
(util_tempfile): const.
* mail/var.c: Unsignedness, Unused arguments.
(var_quote): Use new function util_msglist_esccmd().
* mail/version.c: Unused arguments.
* mail/write.c: printf formats.
* mail/z.c: Signedness.
2001-09-14 Sergey Poznyakoff
* mailbox/mbx_mh.c: Properly handle messages with null body.
Fixed bug in cyclic stream pool. Lowered MAX_OPEN_STREAMS
limit. It probably should be configurable.
A framework for porting MH utilities. Scan utility is in
working order, except that it ignores -form and -header
options.
* configure.in: Check for presense of GNU obstack functions.
* lib/Makefile.am: Added obstack.[ch]
* lib/obstack.c: (new)
* lib/obstack.h: (new)
* mh: (New directory) Implementation of MH commands.
* mh/Makefile.am: (new)
* mh/.cvsignore: (new)
* mh/mh.h: (new) Main header for mh functions.
* mh/mh_argp.c: (new) Coexistence between GNU long options,
traditional UNIX-style short options and traditional MH long options.
* mh/mh_error.c: (new) Diagnostic output.
* mh/mh_fmtgram.y: (new) Parser for format strings.
* mh/mh_format.c: (new) Run-time execution of format strings.
* mh/mh_getopt.c: (new) MH-style options parsing.
* mh/mh_getopt.h: (new) Its prototypes.
* mh/mh_init.c: (new) Initialization module.
* mh/scan.c: (new) Implementation of scan command.
2001-09-10 Sergey Poznyakoff
* mailbox/mbx_mh.c: Implemented append. Disabled reading of deleted
messages when doing mailbox scan.
* mail/summary.c: Do not set first_unread or first_new to the
message which is marked as deleted.
* mail/z.c: Do not count deleted messages into the total number
of lines output.
2001-09-09 Alain Magloire
This was done when cranking the number of warning generated
by gcc (-Wall, etc ...)
* mailbox/mbx_mh.c: Add include for pthread.
seq_number is size_t.
(_mh_message_name): The problem here is that asprintf()
is a GNU extension. We want libmailbox to be as independent
as possible, so it will not be required for program to be
link with libmailutils(it is not even install). Default to
snprintf ().
(mh_close): return an int.
(_mh_message_insert): n should be size_t.
2001-09-09 Alain Magloire
* doc/pop3.texi: Update the doc.
* doc/sfrom.c.texi: Line too long.
* doc/stream.texi: Line too long.
For the new mailbox, one of the short coming with the old stream_t
object was that select() was not cover, meaning it was not possible
to check if a stream was {read,write} ready. The old was to get
the fd (stream_get_fd()) and do the select. Providing,
stream_is_readready (stream_t, int timeout);
stream_is_writeready (stream_t, int timeout);
stream_is_exceptionpending (stream_t, int timeout);
stream_is_open (stream_t);
Takes care of it. It will work specially for tcp stream.
* mailbox2/stream.c: New functions for the select calls:
(stream_is_readready): New function.
(stream_is_writeready): New function.(stream_t, int timeout);
(stream_is_exceptionpending): New function.
(stream_is_open): New function.
* mailbox2/bstream.c (_bs_readline): Bug was truncating the string
to early.
(_bs_is_readready): New file.
(_bs_is_writeready): New file.
(_bs_is_exceptionpending): New file.
(_bs_is_open): New file.
* mailbox2/fstream.c: stubs for the select functions.
* mailbox2/memstream.c: stubs for the select functions.
* mailbox2/mapstream.c: stubs for the select functions.
* mailbox2/tcpstream.c: stubs for the select functions.
* mailbox2/include/mailutils/stream.h: Adjust the prototypes
* mailbox2/include/mailutils/sys/stream.h: Adjust the prototypes
It is better not to put threading (Pthread) code in the low level
API. But instead in mailbox_t framework, where it can be control.
* mailbox2/include/mailutils/pop3.h: Adjust the prototypes.
* mailbox2/pop3/*.c: Remove threading code.
2001-09-09 Sergey Poznyakoff
* mailbox/mbx_mh.c: Bug fix: both pool_first and pool_last must
be biased by MAX_OPEN_STREAMS;
2001-09-08 Sergey Poznyakoff
Initial implementation of MH mailbox format. It is functional
in read-only mode. In read-write, it is able to delete and
undelete messages but lacks `append message' functionality.
Expunge does not unlink message files but rather renames them
prepending ',' to a filename, after MH fashion.
* mailbox/mbox_mh.c: (new)
* mailbox/url_mh.c: (new)
* mailbox/folder_mh.c: (new)
* mailbox/Makefile.am: Added mh-related sources.
* mail/mail.c: Register mh_record.
* mailbox/include/registrar0.h: Added mh-related declarations.
* include/mailutils/registrar.h: Declare mh_record.
* mailbox/mbx_mbox.c: Check for MU_ATTRIBUTE_DELETED in
mbox_expunge.
* libmu_scm/mu_mailbox.c: mu_scm_mailbox_print(): handle
mailbox == #f case.
* libmu_scm/mu_message.c: mu_scm_message_print(): handle
message == #f case.
2001-09-06 Alain Magloire
* mailbox/folder_mbox.c (folder_mbox_open): Implemeted.
2001-09-05 Sergey Poznyakoff
* MySql/MySql.h: New defines MHOST, MPORT, etc.
* MySql/MySql.c: Improved error logging. Fixed memory leak due
to absence of mysql_close() calls (noticeable on imap4d when
doing multiple login attempts).
Provide configurable parameters to mysql_real_reconnect to
allow connecting to the remote database and/or non-standard
ports.
2001-09-04 Alain Magloire
* mailbox/mbx_imap.c (message_operation): Check if the
imap server went away(f_imap->isopen) and flag an error.
2001-09-03 Alain Magloire
* mailbox/folder_imap.c (imap_use): Check return value.
* mailbox/mailbox.c (mailbox_get_debug): Get the mu_debug_t
object from the folder if available.
* mailbox/mbx_imap.c (imap_append_message): Check for
EAGAIN.
(imap_header_get_value): If the operation return 0, set
error to ENOENT.
2001-09-03 Alain Magloire
* configure.in: AC_REPLACE_FUNCS(fgetpwent);
* include/mailutils/parse822.h: Add a prototype for
parse822_skip_nl().
* lib/Makefile.am: add fgetpwent.c
* lib/fgetpwent.c: New file.
* mail/from.c (mail_from): Use the cover functions
attribute_is_xxxx() instead of getting the flag.
* mailbox/attribute.c: Cleanup the mess.
attribute_set_{read,delete,seen,flagged,answered}.
attribute_unset_{read,delete,seen,flagged,answered}.
attribute_is_{read,delete,seen,flagged,answered}
should be no more then cover functions calling
attribute_set_flags(), attribute_get_flags() and
attribute_unset_flags().
* mailbox/folder_imap.c: MU_ATTRIBUTE_READ, is not
part of IMAP protocol use \\Seen.
* mailbox/mbx_imap.c: Remove the hack trying to reconnect,
it does not work.
* mailbox/mbx_pop.c(pop_get_messages): Set the new
functions for the attribute.
(pop_get_attribute): New functions.
(pop_set_attribute): New functions.
(pop_unset_attribute): New functions.
(pop_attr_flags): Removed.
* mutil.c (mu_hex2ul): GNU coding std.
(parse822_time): Do not use tzname as a variable name tzname
is global variable in libc, better clear away.
(parse822_date_time): Likewised.
* pop3d/Makefile.am: add virtual.c
* pop3d/pop3d.c (main): register getpwnam_ip_virtual,
getpwnam_host_virtual
* pop3d/pop3d.h: declare,
getpwnam_ip_virtual(), getpwnam_host_virtual().
* pop3d/virtual.c: New file.
2001-09-02 Alain Magloire
* mailbox/mutil.c (getpwma_virtual): Memory overrun, did not
reserve enough space to accomodate the extra slash, when
doing the sprintf().
Include <string.h>, since we use strdup().
2001-08-31 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* imap4d/list.c (list_file): don't show INBOX if virtual
2001-08-31 Sergey Poznyakoff
* mailbix/mutil.c: Fixed declaration of _app_getpwnam.
Moved mu_virtual_domain out of #ifdef guard. Fixed typo
in getpwnam_virtual: erroneously returned NULL instead of
p.
2001-08-31 Sergey Poznyakoff
Generalized mu_getpwnam interface. mu_register_getpwnam allows
to register several functions which will be tried in turn in
order to obtain struct passwd*. Changed virtual domain code
in pop3d and imap4d to use this approach.
* mailbox/mutil.c: _app_getpwnam is a list of getpwnam functions.
mu_getpwnam calls each function in succession until it finds one
which returns non-NULL value.
* include/mailutils/mutil.h: Fixed mu_.*getpwnam declarations. Added
declaration for mu_virtual_domain and getpwnam_virtual()
* mailbox/Makefile.am: Add -DSITE_VIRTUAL_PWDDIR to CFLAGS.
* configure.in: New option --with-virtual-pwddir allows to configure
the path to domain passwd files. Defaults to <sysconfdir>/domain.
* imap4d/copy.c: Use mu_virtual_domain instead of is_virtual.
* imap4d/select.c: Likewise.
* imap4d/status.c: Likewise.
* imap4d/imap4d.c: Register getpwnam_virtual for handling virtual
domains.
* pop3d/pop3d.c: Likewise.
* imap4d/login.c: Removed imap4d_virtual. Its functionality passed
to getpwnam_virtual.
* pop3d/pop3d.h: Include mutil.h
* pop3d/user.c: Removed pop3d_virtual. Its functions are performed
by getpwnam_virtual. Renamed is_virtual to mu_virtual_domain.
* mail/alias.c: Use linear hash ordering.
2001-08-30 Alain Magloire
In the virtual code, change the chdir() and build the full
pathname in a buffer. For a daemon, it is better to stay
in "/" the root. Moving in subdirecteris, will not permit
the volume to be unmounted. But we do not follow the
same rule for imap4d, it should be fix.
* pop3d/signal.c: Shutup unused parameter warrning from gcc.
* pop3d/user.c: Define macro VIRTUAL_PWDDIR. use sprintf()
to build filename instead of chdir().
(PAM_gnupop3d_conv): Shutup unused parameter warrning from gcc.
Make sure variable mailbox_name is initialized.
* include/mailutils/mutil.h: Typo "struct password" instead of
"struct passwd". Use const appropriately in the declaration
of mu_register_getpwnam() and mu_getpwnam().
* mailbox/mutil.c: Use const appropriately in the definition
of mu_register_getpwnam() and mu_getpwnam(). Typo "struct password"
instead of "struct passwd".
2001-08-30 Sergey Poznyakoff
More changes to better integrate mysql support. Introduced
mu_getpwnam function. The function first calls system getpwnam,
if it fails, it calls application-defined getpwnam function.
mu_register_getpwnam can be used to register such a function.
* configure.in: Add -lm to AUTHLIBS when configured with
--enable-mysql.
When checking for PAM: Append to AUTHLIBS instead of just
assigning to it.
* imap4d/Makefile.am: Moved @AUTHLIBS@ before libmailutils.
Needed when using mysql.
* pop3d/Makefile.am: Likewise.
* imap4d/imap4d.c: use mu_register_getpwnam.
* pop3d/pop3d.c: Likewise.
* pop3d/user.c: Use mu_getpwnam.
* imap4d/login.c: Likewise.
* mailbox/mbx_default.c: use mu_getpwnam. Removed inclusion
of MySql.h.
* mailbox/mutil.c: new functions: mu_getpwnam() and
mu_register_getpwnam().
Removed inclusion of MySql.h
* include/mailbox/mutil.h: Prototypes for the new functions.
2001-08-30 Sergey Poznyakoff
* MySql/MySql.c: Use asprintf instead of sprintf, use xmalloc
instead of malloc.
Return values were allocated dynamically but never freed, this
caused memory leaks if authentication functions were called more
than once. Made them static, so that they get reallocated at each
new invocation of getM functions, thus reclaming lost storage.
Made <config.h> the first file to be included and guard it with
#ifdef HAVE_CONFIG_H
Reindented text to conform to GNU coding style.
* MySql/Makefile.am: Use @BUILD_LIBMYSQL@ substitution instead
of direct assignment to noinst_LIBRARIES, so the subdir gets
distributed properly.
* configure.in: New substitution variable BUILD_LIBMYSQL. Append
linker flags to AUTHLIBS, since modifying LIBS effectively
breaks compilation.
2001-08-29 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* imap4d/select.c (imap4d_select0):
* imap4d/copy.c (imap4d_copy0):
* imap4d/status.c (imap4d_status): treat INBOX differently if virtual
* imap4d/login.c (imap4d_virtual): new function
(imap4d_login): call imap4d_virtual
* imap4d/imap4d.h: add is_virtual variable
* configure.in (USE_VIRTUAL_DOMAINS): add virtual domain option
* pop3d/user.c (pop3d_virtual): new function for "virtual domains"
(pop3d_user): call pop3d_virtual
2001-08-28 Alain Magloire
* mailbox2/include/mailutils/list.h: the typedef list_t
is rename mu_list_t, as a suggestion from Sam R.
* mailbox2/list.c: All the function names are prefix with "mu_".
2001-08-27 Alain Magloire
* mailbox/folder_imap.c (imap_list): When \NoSelect, it is
also mean that the file is a directory.
2001-08-27 Jakob 'sparky' Kaivo
* mail/send.c (mail_send0): change readline (NULL) to readline
(" \b") so there is really no prompt
2001-08-24 Jim Hull
* Makefile.am:
* acconfig.h: Added support for new MySql addition to mailutils
* configure.in:
* MySql/Makefile.am:
* MySql/MySql.c: Mini lib to link to when mysql support
* MySql/MySql.h: enabled (with --enable-mysql)
* doc/Readme.mysql: Readme file for setup.
* imap4d/login.c:
* mailbox/mbx_default.c: The Patch pretty much works the same
* mailbox/mutil.c: all around. if getpwnam() returns null
* mailbox2/mutil.c: then your db is checked for the user,
* pop3d/apop.c: and the struct is filled if found,
* pop3d/user.c: returns null if not. If shadow support
is used, then the same is done with getspnam().
* examples/mail.MysqlMailer.c: Simple sendmail backend support.
2001-08-24 Alain Magloire
* sieve/Makefile.am: To EXTRA_DIST add md5-rsa.{c,h}.
* mailbox2/header.c(header_aget_value): Base on discussion with Sergey
if the call fails no memory should be allocated and the return status
should be return i.e. status != 0.
* imap4d/fetch.c (fetch_bodystructure0): Check for sp != NULL.
* imap4d/fetch.c (send_parameter_list): Check for sp != NULL.
2001-08-23 Sergey Poznyakoff
* mail/msgset.y: Fixed erroneous call to msgset_select
(second arg should have been a pointer). Added :t (tagged)
and :T (untagged) selection criteria.
* mail/tag.c: (new) Implementation of tag command.
* mail/table.c: Added entries for "tag" and "untag".
* mail/Makefile.am: Added tag.c
* mail/from.c: Display tagged messages.
* mail/mail.h: Added protos and defines for mail_tag().
2001-08-22 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* imap4d/fetch.c (bodystructure): check sp != NULL before using
2001-08-18 Sergey Poznyakoff
* libmu_scm/mu_mime.c: (new) Scheme primitives for handling
mime messages.
* libmu_scm/mu_message.c: mu_scm_message_add_owner() - add new
object to the owner chain of the message.
* libmu_scm/mu_scm.h: Prototypes for new functions.
* libmu_scm/mu_scm.c: Call mu_scm_mime_init().
* guimb/scm/reject.scm: (new) Implementation of Sieve "reject"
action.
* guimb/scm/redirect.scm: Moved sieve-message-bounce to
sieve-core.scm
* guimb/scm/sieve-core.scm: New function sieve-message-bounce.
2001-08-16 Sergey Poznyakoff
* mail/msgset.y: Implemented :/expr/ -- search in the message
body. Fixed memory leak in select_header (missed regfree).
2001-08-14 Sergey Poznyakoff
* mail/msgset.y: Extended regexp syntax: IDENT:/EXPR/ fetches
all messages whose header IDENT matches given EXPR. The match
is case-sensitive if IDENT starts with a capital letter and
is case-insensitive otherwise.
2001-08-12 Alain Magloire
* mailbox2/*: Move more code from the original mailbox
To much to enumarate.
2001-08-07 Alain Magloire
* m4/regex.m4: New file to check for GNU regex.
* lib/regex.c: New file, GNU regex implementation.
* lib/regex.h: New file.
* lib/posix: New directory.
* lib/posix/Makefile.am: New file.
* lib/posix/regex.h: New file.
* lib/Makefile.am: Add SUBDIRS=posix and regex.c dependencies.
* mail/msgset.y: Remove HAVE_REGEX macro and check variable
"noregex" before using regex.
* configure.in: Check for GNU regex.
2001-08-07 Alain Magloire
* mail/msgset.y: Draft implementation of a proposition
to allow regular expressions.
(REGEXP): Passing the address of the pointer instead of the pointer.
(INDENT): Likewised.
* mail/Makefile.am: Add in EXTRA_DIST msgset.c to force its
generation when doing the distribution, having yacc should
not be required.
* mailbox/mutil.c (mu_hexstr2ul): Properly cast the expression
before doing the comparison.
2001-08-06 Sergey Poznyakoff
* mail/msgset.y: (new) A parser for message set specifications
of arbitrary complexity. Returns a singly linked list of
message specifications that can be iterated without need
for recursion.
* mail/mail.h: Prototypes for msgset_ functions. Removed proto
for util_expand_msglist.
* mail/Makefile.am: Added msgset.y
* mail/{copy.c, followup.c, headers.c, next.c, pipe.c,
previous.c, util.c, write.c}: Use msgset_parse instead of
util_expand_msglist.
* mail/util.c: Added util_msgset_iterate() to iterate over a
message set. Added util_get_content_type() and
util_get_hdr_value() (from decode.c).
* mail/decode.c: Use util_msgset_iterate(). Moved get_content_type()
and get_hdr_value() to util.c
* mail/table.c: Fixed synopsis for decode.
* libmu_scm/Makefile.am: Removed .x and .doc files from EXTRA_DIST.
Thanks to Alain.
* guimb/Makefile.am: Likewise.
* m4/Makefile.am: Added maintain.m4
2001-08-06 Alain Magloire
* sieve/{exitcodes.h hmac-md5.h md5.c md5.h md5global.h}: Removed.
* sieve/md5-rsa.c: New file, clearly identify that the algo.
is from RSA and not GNU md5.
* sieve/md5-rsa.h : New file.
* sieve/Makefile.am: added md5-rsa.[ch].
* sieve/message.h: lcase() change for strlower ().
* sieve/script.c: Include md5-rsa.h.
* sieve/sieve-gram.y: lcase changed for strlower ().
* sieve/util.c: Remove all the unnecassary code and
only implement strlower() and strupper().
* sieve/util.h: Only export strlower and struppper ().
* messages/messages.c: Also include pop_record
amd imap_record.
2001-08-05 Sergey Poznyakoff
* mailbox/mbx_mbox.c: Added mbox_stream_size().
* mailbox/message.c: Added message_stream_size().
* mailbox/stream.c: Fixed some comments.
* libmu_scm/mu_port.c: (new) I/O port functions. This allows to
write and read mailboxes/messages using usual scheme primitives
and thus effectively obsoletes mu_body interface, but I'll keep
it for a while.
* libmu_scm/mu_scm.c: Call to mu_scm_port_init().
* libmu_scm/mu_scm.h: Prototypes for port functions.
* libmu_scm/mu_message.c: Added mu-message-get-port.
mu-message-set-header: don't bail out if third argument is boolean,
to allow for constructs like
(mu-message-set-header
m1 "From"
(mu-message-get-header m2 "To"))
* libmu_scm/mu_maibox.c: Added mu-mailbox-get-port.
* guimb/scm/sieve.scm: Documented some obscure data structures.
* guimb/scm/sieve-core.scm: Use sieve-mailbox-open instead of
mu-mailbox-open. The former searches the list of open mailboxes
and returns one if found. All the mailboxes get closed at once
when the sieve program finishes execution. This saves memory and
speeds up the execution (fewer calls to gc, if any).
sieve-regexp-to-posix: escape special characters.
action-reject: Use ports instead of mu-body- interface.
* examples/reply.scm: Use ports instead of mu-body- interface.
* mail/var.c: Added checks for missing arguments.
2001-08-04 Sergey Poznyakoff
* mailbox/header.c: Return value of header_aget_value() was always
0. Made it consistent with that of header_get_value(). Same for
header_aget_field_value().
* guimb/main.c: Fixed handling of default mailbox in the absence of
other mailbox arguments.
* guimb/collect.c: Likewise.
* guimb/guimb.h: Removed unused declarations.
* libmu_scm/mu_message.c: Changed mu-message-get-header-fields
to allow for second optional argument. The argument is a list
of header names to narrow output to.
* guimb/scm/sieve-core.scm: Changed action-keep: it couldn't be just
#f. Fixed and tested action-stop, action-redirect and test-exists.
Fixed handling of null-length keys in sieve-str-str.
test-address and test-header: use mu-message-get-header-fields
to speed the things up.
Implemented "envelope" test.
* guimb/scm/sieve.scm: Add final #t to the generated code, so the
empty scripts work.
2001-08-03 Sergey Poznyakoff
* libmu_scm/mu_logger.c: (new) Interface to syslog functions.
* libmu_scm/mu_mailbox.c: Added mu-mailbox-get-url.
* libmu_scm/mu_message.c: Added mu-message-get-size,
mu-message-get-lines.
* libmu_scm/mu_address.c: Provide mu_scm_address_init() function.
* libmu_scm/mu_scm.c: Call mu_scm_address_init(), mu_scm_logger_init().
Added mu-package and mu-version variables.
* libmu_scm/mu_scm.h: Prototypes for mu_scm_address_init() and
mu_scm_logger_init().
* libmu_scm/Makefile.am: Added mu_logger.c
* guimb/main.c: Added --mailbox and --user options. Added escape for
Scheme arguments (-{ and -}).
* guimb/run_scm.c: Call collect_output() before dropping mailbox.
Added exception handling. Added user-name variable.
* guimb/collect.c: Added collect_output().
* guimb/guimb.h: Added prototypes.
* guimb/Makefile.am: Added SUBDIRS.
* guimb/scm: (new) Directory containing guimb modules and scripts.
* guimb/scm/Makefile.am: (new)
* guimb/scm/sieve.scm: (new) Sieve to Scheme translator.
* guimb/scm/sieve-core.scm: (new) Sieve core functions for scripts
generated by sieve.scm.
* guimb/scm/redirect.scm: (new) Implementation of sieve "redirect"
action.
* configure.in: Output guimb/scm/Makefile.
* mail/mail.c: Use mailbox_create_default for --file=MBOX.
Some calls to exit() were placed *before* issuing diagnostics.
Fixed.
* mailbox/folder_imap.c: Changed ENOTSUP to ENOSYS.
2001-08-02 Sam Roberts
* folder_imap.c: don't pretend to be authorized if we are not, it
only leads to confusion
* mailbox.c: mailbox created the folder, it should set it's
folder's debug object when it's is set, otherwise there is no way
to get debug messages from a mailbox's folder (I was getting all
the pop protocol traces but not the imap ones)
* TODO: updated
* sieve/: script.c, sieve.c: Fixed bug, I was deleting a message
after a fileinto, which was wrong. Tweaked the logging, it's
little cleaner and more useful.
* sieve/COPYING: Removed the RCS keyword in the imported copyright
notice.
* sieve/: sieve-gram.y, sieve-lex.l: Now using xmalloc() from
../lib.
* examples/mbox-explode.c: Don't mkdir unless the mailbox can be
opened, and better cleanup on error detection.
* sieve/examples/: Test, test.out: Commiting my example/test sieve
scripts so I can maintain them with cvs (I use them at work and
home).
* mail/util.c: Not all systems have <sys/fcntl.h>, changed to use
HAVE_FCNTL_H.
* mailbox/mbx_pop.c: imap logged the passwd in protocol traces, pop
didn't, so I made them both be the same (the way that is most
useful when debugging protocol traces)
* sieve/examples/: INBOX.orig, Makefile, box.sv, ex-1.10.2.sv,
ex-2.3a.sv, ex-2.5.1.sv, ex-2.7.3.sv, ex-3.1a.sv, ex-3.1b.sv,
ex-3.2.sv, ex-4.1.sv, ex-4.2.sv, ex-4.4a.sv, ex-4.4b.sv, ex-4.5.sv,
ex-5.1.sv, ex-5.7.sv, ex-9.sv, ex-null.sv, ex-save-all.sv,
example.sv, exn-2.3b.sv, exn-5.4.sv, t-exists.sv, t-fileinto.sv,
t-mailutils.sv: Commiting my example/test sieve scripts so I can
maintain them with cvs (I use them at work and home).
2001-08-01 Alain Magloire
* mailbox2/header.c: Put the stubs.
* mailbox2/include/mailutils/header.h: Prototypes.
* mailbox2/include/mailutils/sys/header.h: Prototypes.
2001-07-31 Alain Magloire
More intelligence was put in decode to detect mime messages.
This temporary until we articulate how to present mime messages.
decode will probably replace print.c. Parsing of mailcap is
not yet done.
* mail/decode.c: Aware of the content_type and the encoding
for mime message, will superced [Pp]rint.
* mail/mail.c: Set the columns variable at startup.
* mail/mail.h: Prototype fpr util_screen_columns().
* mail/mailline.c: Reset COLUMNS on SIGWINCH.
* mail/util.c: New function util_screen_columns();
* sieve/Makefile.am: Remove gcc specific flags.
* sieve/xmalloc.c: Removed, use lib/xmalloc.c instead.
* sieve/xmalloc.h: Removed.
* sieve/sysexists.h: Removed.
2001-07-31 Alain Magloire
* mailbox2/Makefile.am: add new files.
* mailbox2/fstream.c (_fs_write): n uninitialize.
(_fs_open): Use S_ISREG() macro.
* mailbox2/include/mailutils/base.h: Remove superfluous.
* mailbox2/iterator.c: Define struct _iterator.
* mailbox2: New files: observer.c observable.c
address.c parse822.c list.c attribute.c envelope.c
2001-07-30 Sergey Poznyakoff
* guimb/main.c: Set g_argv[0] to the program file name for consistency
with guile.
* libmu_scm/mu_message.c: Added new primitives:
mu_message_copy
mu_message_delete
mu_message_get_flag
mu_message_set_flag
mu_message_get_user_flag
mu_message_set_user_flag
* libmu_scm/mu_scm.c: Define MU-ATTRIBUTE- constants.
* libmu_scm/mu_address.c: (new) Address-related functions.
* libmu_scm/Makefile.am: Added mu_address.c
2001-07-27 Sergey Poznyakoff
* lib/xmalloc.c: call mu_error() instead of error().
* lib/malloc.c,lib/realloc.c: (new) Provide rpl_malloc() and
rpl_realloc() (required by m4/malloc.m4, m4/realloc.m4)
* lib/Makefile.am: Added malloc.c, realloc.c.
* mail/mail.h: Include <xalloc.h>
* mail/util.c: Removed util_[mc]alloc() in favor of x[mc]alloc().
* mail/alias.c: Use x[mc]alloc() instead of util_[cm]alloc().
* mail/alt.c: Likewise.
* mail/mail.c: Likewise.
* mail/mailline.c: Likewise.
* mail/shell.c: Likewise.
* mail/unset.c: Likewise.
* mail/var.c: Likewise.
* TODO: updated.
2001-07-25 Alain Magloire
Based on Jakob's idea, an implementation for decode.
But it is clearly not flexible enough:
decode [msgno] [part]
? decode 28 2
IF message 28 is a multipart(mime) with two parts, the second part
will be decoded and sent to stdout.
* mail/decode.c: First implementation behind Jakob's proposal.
2001-07-23 Sergey Poznyakoff
* configure.in,libmu_scm/Makefile.am,guimb/Makefile.am : Fixed to
compile properly on systems with missing/incomplete guile.
* include/mailutils/Makefile.am: Added mailutils.h to
pkginclude_HEADERS.
2001-07-23 Alain Magloire
* libmu_scm/mu_scm.h: Remove HAVE_LIBGUILE_H guard.
* guimb/guimb.h: Remove HAVE_LIBGUILE_H guard.
2001-07-23 Alain Magloire
* util.c (util_msglist_command): Check for interruption here
also and that will permit interruption on long commands like
"from *"
2001-07-23 Alain Magloire
The reason the interrupt code did not work for me, is that
by default using signal will make function calls restartable,
at least on my default RH5.1, when read() was interrupted
it did not return EINTR inside ml_getc().
* mail.c (main): Use sigaction if available to set SIGPIPE.
* mailline.c (sig_handler): Reset "lines" variable.
Recall signal() if we did not have sigaction.
(ml_readline_init): Use sigaction to set SIGWINCH and SIGINT.
* libmu_scm/mu_scm.h: Guard with HAVE_LIBGUILE_H.
* guimb/guimb.h : Guard with HAVE_LIBGUILE_H.
2001-07-22 Sergey Poznyakoff
Renamed debug_.* symbols to mu_debug_.* to avoid nameclashes.
Files affected:
* examples/mbox-dates.c, mbox-explode.c;
* from/from.c;
* include/mailutils/{debug.h,folder.h,mailbox.h,mailer.h};
* libmu_scm/mu_message.c;
* mail/send.c;
* mailbox/{debug.c,folder.c,mailbox.c,mailer.c};
* mailbox/include/{debug0.h,folder0.h,mailbox0.h,mailer0.h};
* mailbox2/include/mailutils/base.h;
* readmsg/readmsg.c;
* sieve/sieve.c;
* configure.in: Added --without-guile. Uncommented making
libmu_scm and guimb. Added check for -ldl before
checking for -lpam: both FreeBSD and OpenBSD lack libdl, but
have working libpam.
* messages/Makefile.am: Added missing @ARGP.*@ substitutes.
2001-07-21 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* mail/Makefile.am (mail_SOURCES): add decode.c
* mail/mail.h: add mail_decode protoype
* mail/decode.c (mail_decode): new file, new function
* mail/table.c: add decode command
* mail/util.c (util_expand_msglist): insert placeholder for
attachment operations
2001-07-20 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* messages/messages.c: new file, implement of elm messages command
(parse_opt): add --silent and --quit options
(messages_count): new function
2001-07-20 Alain Magloire
* mailbox/misc.c: Removed, _cpystr() function move in mutil.c
and rename to util_cpystr().
* mailbox/include/misc.h: Removed.
* include/mailutils/mutil.h: Added prototype for util_cpystr().
* mailbox/mutil.c (util_cpystr): New function, move
the _cpystr() from misc.c and move here.
* mailbox/Makefile.am: Removed misc.c in dependencies.
* mailbox/include/Makefile.am: Removed misc.h in dependencies.
* mailbox/address.c: Use util_cpystr() instead of _cpystr().
Added <mailutils/mutil.h> prototype.
* mailbox/auth.c: Likewised.
* mailbox/url.c: Likewised.
* mailbox/folder.c: Likewised.
2001-07-19 Sergey Poznyakoff
Added guile interface library.
* Makefile.am: Added scripts libmu_scm guimb.
* configure.in: Checks for presence of Guile components.
Making libmu_scm and guimb commented out until we solve
debug_print name clash
(libguile/debug.h vs. mailutils/debug.h).
* scripts: (new) Contains scripts for preparing guile
documentation strings from C sources. The reason for
their presence is that guile-doc-snarf scripts distributed
with guile up to version 1.4 do not work. The comment at
the beginnig of scripts/guile-doc-snarf describes why. We'll
have to use these until next version of guile fixes the bug.
* scripts/{Makefile.am,guile-doc-snarf,guile-func-name-check,
guile-snarf.awk: (new)
* scripts/.cvsignore: (new)
* libmu_scm: (new) Guile interface library:
* libmu_scm/Makefile.am: (new).
* libmu_scm/mu_scm.c: (new) Main module.
* libmu_scm/mu_mailbox.c: (new) Mailbox primitives.
* libmu_scm/mu_message.c: (new) Message primitives.
* libmu_scm/mu_body.c: (new) Message body primitives.
* libmu_scm/mu_scm.h: (new) Library prototypes.
* libmu_scm/.cvsignore: (new)
* guimb: (new) Process mailbox(es) using Guile program or
expression.
* guimb/Makefile.am: (new)
* guimb/main.c: (new) Main functions.
* guimb/collect.c: (new) Collect input.
* guimb/util.c: (new) Some utilities.
* guimb/run_scm.c: (new) Initialization of libguile and libmu_scm
* guimb/guimb.h: Prototypes.
* guimb/.cvsignore: (new)
* examples/reply.scm: Automatic mail responder for use with guimb.
2001-07-18 Sam Roberts
* include/mailutils/url.h: New api functions for parsing.
* doc/: Makefile.am, framework.texi, url.texi: Updated and
corrected URL documentation.
* doc/ex-url.texi: The url api example. Derived from
../example/url-parse by a perl script.
* mailbox/url.c: Added a function to do generalized URL parsing.
* mailbox/: url_imap.c, url_pop.c: Use the url_parse() function to
parse the URL.
* mailbox/mbx_pop.c: Added checks for low-memory conditions, and
look for passwd in url before prompting user.
* mailbox/folder_imap.c: Look for passwd in the url before
prompting.
* examples/: .cvsignore, Makefile, Urls, url-parse.c: Added example
of URL parsing, and test for parsing.
* examples/Urls.good: Added test for % decoding.
* mailbox/mbx_mbox.c: Needed <stdlib.h> on QNX6.
* mailbox/include/: registrar0.h, url0.h: Comment on schemes, and
removed comment on encoding.
2001-07-18 Alain Magloire
* mailbox/mbx_mbox.c (mbox_messages_count): This function does
not call the observers, the callback function, on the mbox_scan()
does.
* frm/frm.c (main): call mailbox_scan () instead of
mailbox_messages_count () since we want to be notified.
2001-07-12 Sam Roberts
* examples/mbox-dates.c: Added pop and imap records.
* include/mailutils/mutil.h, mailbox/mutil.c: New functions -
mu_hex2ul(), mu_hexstr2ul().
* mailbox/message.c: unistd.h needed on QNX6
* TODO: Added Sergey's todo items and mine for sieve.
2001-07-12 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* include/mailutils/mailutils.h: new "catchall" header, includes
all mailutils headers
2001-07-10 Sam Roberts
* examples/Addrs.good: Now mapping ENOENT to EPARSE in error
reporting, its clearer.
2001-07-09 Sergey Poznyakoff
* configure.in: check for termios.h termio.h sgtty.h
Added MU_MAINTAINER_MODE.
* m4/maintain.m4: (new) Settings specific to maintainer-mode.
* m4/Makefile.am: Added maintain.m4.
* mailbox/attribute.c: Fixed flags_to_string(): MU_ATTRIBUTE_SEEN
and MU_ATTRIBUTE_READ were swapped: the former produced 'R',
and the latter 'O'.
* mail/file.c: run "summary" after opening new mailbox.
Issue diagnostics if mailbox cannot be opened.
Display summary when called without arguments.
* mail/from.c: Changed flags display.
* mail/mailline.c: Provide ml_reread() when compiled without
readline.
Check for interrupt in (both versions of) ml_reread().
Use util_[cm]alloc() instead of [cm]alloc().
* mail/{print.c,visual.c}: set READ instead of SEEN attribute on
read messages.
* mail/z.c: case D_FWD missed break; Fixed typos in the comment
to D_NONE.
* mail/version.c: display options with which the program is
compiled.
* mail/util.c: Added util_malloc(), util_calloc().
* mail/mail.h: Protos for the above;
* mail/alias.c: use util_[cm]alloc() instead of library functions
wherever appropriate.
* mail/alt.c: Likewise.
* mail/mail.c: Likewise.
* mail/shell.c: Likewise.
* mail/unset.c: Likewise.
* mail/var.c: Likewise.
Implemented ~A (read signature from file).
* mail/quit.c: Raise hold flag when not closing system mailbox (%).
2001-07-06 Alain Magloire
* mail/mailline.c: "interupt" is actually a key word
for some C compiler i.e. Watcomm C, rename it to "interrupted".
* mail/util.c: The macros O_CREAT etc needs <sys/fnct.h>.
2001-07-06 Alain Magloire
* mail/mail.c: Be a little more verbose when mailbox_{create,open}()
fails at startup.
* doc/Makefile.am: Add the missing *.texi in the list of EXTRA_DIST.
2001-07-06 Sergey Poznyakoff
* imap4d/fetch.c: imap4d_fetch0(): return RESP_OK on success.
* imap4d/bye.c: split imap4d_bye() into imap4d_bye() and imap4d_bye0().
* imap4d/logout.c: call imap4d_bye0() instead of imap4d_bye().
Reason: rfc 2060 requires that the server send a BYE untagged response
before the (tagged) OK response. With our implementation it was
vice-versa.
* imap4d/imap4d.h: proto for imap4d_bye0().
* mail/mail.c: changed startup banner.
* mail/mailline.c: handle SIGWINCH.
* mail/util.c: Include <termios.h> when present.
* configure.in: test for the presence of <termios.h>
2001-07-05 Alain Magloire
* mail/send.c(mail_send0): Put the mailer in debug mode
if util_find_env("verbose")->set, good for debuging.
2001-07-05 Alain Magloire
According to the man page:
"sendmail contains a command, possibly with options, that mailx
invokes to send mail. You must manually set the default for this
environment variable by editing ROOTDIR/etc/mailx.rc to specify the
mail agent of your choice. The default is sendmail, but it can be any
command that takes addresses on the command line and message contents
on standard input."
* mail/mail.c (main): Register smtp_record too as a mailer.
Set variable sendmail to _PATH_SENDMAIL as the default mailer.
* mail/mail.h: New proto util_setenv(), util_find_env()
change to be const char *.
* mail/send.c (msg_to_pipe): New function, open a pipe()
and write a message to it.
(mail_send0): Now create the mailer according to
util_find_env("sendmail")->value. Use a pipe() if mailer_create()
fails.
* mail/set.c (mail_set): After free(entry->value) set the value
to NULL.
* mail/util.c (util_find_env): Change the prototype to be const.
Remove hack about need_free and use a static variable to hold
"asksub".
* mail/util.c (util_setenv): New function to set environment
model on libc call setenv().
* mailbox/message.c (message_sender): Set the default sender base on
the passwd entry.
2001-07-05 Alain Magloire
We can send a message and if the address starts with '|'
the message is pipe to the cmd and if starts with '/' it is
save to a file.
mailx ghislaine '|cat >save'
mails a message to ghislaine and also copies the message into a file
called save.
* mail/mail.h: Change struct send_environ to contain
two new fields char **outfiles and int nfiles.
* mail/send.c: Look for '/' and '|' when parsing the addresses
and add them to struct send_environ outfiles.
(mail_send0): Memory overflow, we were free(buf) twice.
made char *buf local where it is needed. Save the message
to outfiles when set.
(isfilename): New function.
* mail/followup.c: Initialise the struct send_environ new fields.
* mail/reply.c: Initialise the struct send_environ new fields.
* lib/argcv.c: Add support to consider string between
single quote like one word(same as double quotes).
2001-07-04 Alain Magloire
* mailbox2/stream.c: stream_read() and stream_write()
change prototype to be "void *" instead of "char *".
* mailbox2/bstream.c: Adjust bstream_{read,write} to the
new prototypes.
* mailbox2/pop3/pop3_stream.c: Likewised.
* mailbox2/Makefile.am: New file.
* mailbox2/pop3/Makefile.am: New file.
* mailbox2/mstream.c: Mapfile stream Implementation.
* mailbox2/fstream.c: File stream implementation.
* mailbox2/include/mailutils/sys/fstream.h: New file.
* mailbox2/include/mailutils/sys/mstream.h: New file.
* mailbox2/tcp.c: rename to tcpstream.c.
* mailbox2/include/mailutils/sys/tcp.h: Rename to tcpstream.h
* mailbox/mapfile_stream.c (_mapfile_write): Make sure
the size is not zero before making the memcpy().
2001-07-03 Alain Magloire
* mail/headers.c: Catch the overflow in the calculation by
reseting the number of lines to default screen lines.
* mail/mail.c (main): Add a "summary" call also for the
initial commands on startup(in interactive).
* mail.h: Proto for mail_summary() and mail_version().
* table.c: Add mail_summary() and mail_version() in the cmd table.
* util.c (util_getcols): First try an ioctl(TIOCGWINSZ,..) call
not all shells set the COLUMNS environ.
(util_getlines): Likewised. Also take to account the prompt
in the lines number.
* z.c (mail_z): Change the behaviour of "z." to show a screenfull
when the lastpage is reach. This is very practical when starting
mail, since "z." is the initial command to show the header summary.
* mail/version.c: New file, show mail version, mail_version().
* mail/summary.c: New file, display a short summary of the mailbox.
mail_summary().
* mail/Makefile.am: add summary.c and version.c
* mailbox2/include/mailutils/mbox.h: Proto for Unix-Mbox.
2001-07-03 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* README-alpha: note that INSTALL is generated
2001-07-03 Sergey Poznyakoff
* configure.in: --with-mail-rc option: set path to system-wide
mail.rc file.
* mail/Makefile.am,mail/mail.c: Likewise.
* mail/send.c: check for "dot" variable. Implemented "~.",
"appenddeadletter".
* mail/inc.c: (new) inc[orporate] command.
* mail/{mail.c,mail.h,table.c}: Ditto.
* mail/print.c: Handle interrupts when fetching message body.
* mail/followup.c: insert ',' between recepients' addresses.
* mail/quit.c: use mailbox_save_attributes(). Implemented
"hold" variable. Raise MU_ATTRIBUTE_READ on every message with
MU_ATTRIBUTE_SEEN bit set (compatibility with existing mails).
* mail/from.c: Changed order of checking message attribute bits to
be compatible with existing implementations.
* mail/z.c: removed break from the loop.
* mailbox/attribute.c: added attribute_set_modified() function.
Fixed attribute_unset.* functions to raise MU_ATTRIBUTE_MODIFIED bit.
* include/mailutils/attribute.h: Proto for attribute_set_modified().
2001-07-02 Alain Magloire
* mailbox2/tcp.c: make it thread-safe.
* mailbox2/bstream.c: Implement buffered stream.
* mailbox2/pop3_stream.c: Use a buffered stream.
2001-07-02 Alain Magloire
Feedback from Sergey for the need of saving the attribute flags
without expunging. Note, this is a hack, the code is taken from
mbox_expunge(mbx_mbox.c) and there is lot of duplication. But
since we are moving toward a new mailbox API, the code will be
rewritten more cleanly in the new API.
* include/mailutils/mailbox.h: Add proto mailbox_save_attributes()
* mailbox/include/mailbox0.h: New field in struct _mailbox
_save_attributes (mailbox_t);
* mailbox/mailbox.c: New function mailbox_save_attributes ().
* mailbox/mbx_mbox.c: New function mbox_save_attributes (),
implement saving the attribute flags in header field "Status:"
* imap4d/bye.c: call mailbox_save_attributes() when exiting.
it will save the attribute flags.
* imap4d/close.c: Typo.
* imap4d/logout: Remove the mailbox_close() and mailbox_destroy()
it is being call imap4d_bye ().
* imap4d/select.c (imapr3d_select0): call mailbox_save_attributes()
if a mailbox was already selected.
2001-07-01 Alain Magloire
* mail/util.c (util_strupper): The first implementation was
buggy, corrected.
2001-07-01 Alain Magloire
* mailbox2/pop3/*: Pop3 functions are thread-safe and cancel-safe.
The problem is monitor.h, we will probably end up doing a monitor.h.in
and set at compile time if threading is enable or not.
2001-07-01 Alain Magloire
* mail/util.c (util_expand_msglist): Cleanup the expand by pattern
by moving some code in util_strupper(), the comparison must be
case insensitive.
(util_strupper): Convert the string to uppercase.
2001-07-01 Sergey Poznyakoff
* mailbox/attribute.c: set MU_ATTRIBUTE_MODIFIED bit in the underlying
structure when setting the flags.
* mail/mail.c: Initialize readline and set user name before
determining working mode.
For an empty mailbox output diagnostics and quit.
Read system-wide mail.rc file.
Implemented "set ignoreeof".
* mail/send.c: Implemented "set ignore", "set ignoreeof", "set nosave".
Use doubled escape character to insert a single escape to the
message body.
* mail/delete.c: Implemented "set autoprint"
* mail/dp.c: removed util_do_command("next"): delete does this anyway.
2001-06-30 Sergey Poznyakoff
* configure.in:
define READLINE_LIBS instead of linking libreadline
to every binary.
AC_CHECK_LIB(pthread) was missing comma before
ACTION_IF_NOT_FOUND, thus have_libpthread was always no.
* mail/Makefile.am: Use READLINE_LIBS
* lib/argcv.[ch]: Treat a sequence of whitespace characters as
a single whitespace. Break string on given delimiters. Do not
split quoted arguments.
* mail/set.c: Modified to use new argcv_get() syntax.
* mail/delete.c: After deleting move realcursor to the next
non-deleted message.
* mail/alt.c: Honour "metoo" variable. Try to determine users
full email address.
* mail/mail.c: do not put empty or comment lines into readline
history. Handle keyboard interrupts properly.
Implemented `warranty' command. Warn user about arrival of a new
mail.
* mail/send.c: Handle keyboard interrupts. Use util_tempfile().
* mail/{send.c,reply.c}: change args in call to mail_send0(): packed
all header strings into one structure to facilitate escape handling.
Warn user about null message body.
* mail/mailline.c: (new) readline-related functions.
* mail/var.c: (new) Functions for escape variable handling.
* mail/util.c: added extra argument to util_find_entry(): a pointer
to the table where to look up. Added util_error(), util_help(),
util_tempfile().
* mail/*.c: use util_error() instead of printing diagnostics to ofile.
* mail/{source.c,if.c}: removed mail_is_terminal(),
mail_set_is_terminal(): `interactive' is used instead.
* mail/mail.h: in struct mail_command_entry changed `isflow' field
to `flags'. It contains information about semantics of the command.
* mail/table.c: Initialize `flags' field.
2001-06-29 Alain Magloire
* mail/util.c (util_expand_msglist): Implement expansion of
:d All deleted messages
:n All new messages
:o All old messages
:r All messages that have already been read
:u All unread messages
/string All messages with string in the subject line
(the case of characters in string is ignored)
2001-06-27 Alain Magloire
* configure.in: We were not checking for thread support
at all because the test was faulty.
* readmsg: New directory.
* readmsg/readmsg.c: New file.
* readmsg/readmsg.h: New file.
* readmsg/msglist.c: New file.
This is base on a old testing program Dave inglis wrote
to test the mime parsing code. It is still work in progress
but a good base for the readmsg(1) elm utility clone.
Not enable yet in the TOP Makefile.
2001-06-26 Alain Magloire
* mail/from.c: Use address_get_personal() for a more
pretty print when showing the headers.
2001-06-26 Sergey Poznyakoff
* mail/util.c:
Added extra argument to util_msglist_command(), controlling
whether it should move the cursor to the last message
processed.
* mail/delete.c,mail/dp.c,mail/edit.c,mail/from.c,mail/hold.c,
mail/mbox.c,mail/print.c,mail/reply.c,mail/size.c,mail/top.c,
mail/undelete.c,mail/util.c,mail/visual.c: Likewise.
* mail/util.c: util_screen_lines() function.
util_outfolder_name().
util_save_outgoing()
* mail/z.c: removed z_lines() in favor of util_screen_lines().
* mail/headers.c: use util_screen_lines().
* mail/touch.c: Initial implementation. Simply calls mail_mbox.
Maybe the table.c entry should point to mail_mbox instead?
* mail/write.c: use util_fullpath().
* mail/send.c: call util_save_outgoing() to preserve sent message.
Set umask 077 before calling mkstemp().
* mail/folders.c: Use $LISTER.
* mail/followup.c: Implemented.
* mail/from.c: Changed output format.
* mail/mbox.c: move mail_mbox_commit to quit.c.
* mail/quit.c: Likewise. Honour "keepsave" variable.
2001-06-25 Alain Magloire
* mail/header.c: We were looping forever in here. The loop
is not need it, header only prints one page that includes
the message specified i.e. the header command only takes
a message number as an argument that will serve as a reference
to display a screen full.
* mail/help.c: Use the pager code, the help is long.
2001-06-25 Alain Magloire
* doc/Makefile.am: add {c-api,framework,programs}.texi EXTRA_DIST
* imap4d/imap4d.c (imap4d_usage): Cut and paste typo.
* pop3d/pop3d.c (pop3d_usage): Cut and paste typo.
* include/mailutils/Makefile.am: add mutil.h to the list.
* lib/strisignal.c: Define __P if not set.
* m4/Makefile.am: Added tm_gmtoff.m4 tm_isdst.m4 tm_zone.m4
2001-06-25 Sergey Poznyakoff
* mail/if.c: Removed confusing comment.
* mail/copy.c: Split off mail_copy0. It is shared between mail_copy
and mail_save. Implemented Copy command.
Use mailbox_open_default() instead of mailbox_open().
Fixed possible memory leaks.
* mail/write.c: Implemented Write. Fixed memory leaks.
* mail/Makefile.am: removed discard.c
* mail/discard.c: removed. Implemented in retain.c.
* mail/retain.c: Implemented retain/ignore. It is more convenient
to keep them in one module so they can share static data.
* mail/alias.c: Implemented.
* mail/unalias.c: Implemented.
* mail/alt.c: Implemented.
* mail/file.c:
Check number of arguments.
Display current mailbox name when called without args.
Honour %, &, and + in mailbox names (possibly should
be implemented in mailbox_open_default ?).
Use mail_mbox_close(). After opening new mailbox,
run "z." instead of "from *".
* mail/folders.c: A (very rudimentary) implementation.
* mail/headers.c: Removed if (num) clause: util_expand_msglist()
now returns at least 1.
* mail/pipe.c: Likewise.
* mail/hold.c: Implemented.
* mail/mail.c: Escape % signs in the command line before passing
it to util_do_command().
* mail/mail.h: Protos for implemented functions. Proto for
readline() if libreadline is not linked in.
Definition for MAIL_ATTRIBUTE_MBOXED.
* mail/mbox.c: Implemented.
* mail/print.c: Print only header fields allowed by retain/ignore
settings.
* mail/quit.c: mail_mbox_close() shared between this module and
file.c.
Print statistics information on closing the mailbox (number
of messages held and saved in mbox).
* mail/reply.c: Implemented.
* mail/save.c: Use mail_copy0().
* mail/send.c: Split off mail_send0(). It is used by mail_send()
and mail_reply().
* mail/util.c:
util_expand_msglist(): return 1 and set msglist[0]=cursor
if argc == 1.
util_do_command(): Added missing va_end().
util_get_sender(): Returns sender email for the given msgno.
Optionally strips off domain part.
util_slist_.*(): "string lists" used by alias,alt,retain,
ignore.
util_strcat(): Concat two strings, reallocating first
to the necessary length.
util_escape_percent(): Excape % signs in a string, so
it can be used as format in .*printf calls.
2001-06-22 Sergey Poznyakoff
* mailbox/mutil.c: added mu_get_homedir() and mu_tilde_expansion();
* include/mailutils/mutil.h: protos for new mu_ functions
* imap4d/util.c: use mu_tilde_expansion().
* mail/z.c: implemented.
* mail/if.c: implemented.
* mail/mail.c: A read-eval loop function shared between mail.c and
source.c. Quits gracefully upon reading EOF.
Expand '~' in pathnames.
Upon startup in read mode, display first screenfull of from
lines, instead of listing the whole mailbox. This is
compatible with existing implementations.
Do not display prompt when not reading from a terminal.
* mail/source.c: Use common read-eval loop.
* mail/mail.h: Protos for new functions.
struct mail_command_entry: added isflow field, needed
for if/else/endif flow control.
* mail/table.c: changes due to addition of isflow field.
* mail/send.c: removed unconditional #include <paths.h>: it already
was included from "mail.h".
* mail/util.c: Added util_get_homedir() and util_fullpath().
2001-06-21 Sergey Poznyakoff
* mailbox/mutil.c: Fixed error introduced in the initial
implementation of mu_mktime (now mu_tm2time). The comment
on mu_tm2time() describes it.
Revert the sign of the return value of mu_utc_offset(), so it
agrees with the accepted timezone rules (+ for eastern
hemisphere, - for western).
2001-06-19 Sam Roberts
* include/mailutils/debug.h, mailbox/debug.c: New function:
debug_printv() to complement debug_print().
* examples/mbox-dates.c: parse822_date_time now takes a timezone
argument. We don't actually use the arguments, though.
* include/mailutils/parse822.h: parse82_date_time() now uses the
mu_timezone structure for portability.
* include/mailutils/mailbox.h: Prototyped mailbox_destroy_folder().
* mailbox/mu_mktime.c: Moved mu_mktime to mutil.c as mu_tm2time,
and removed mu_mktime.c
* include/mailutils/mutil.h, mailbox/Makefile.am,
mailbox/mbx_imap.c, mailbox/mutil.c, mailbox/parse822.c: Moved some
generically useful date/time handling functions to mutil.c, fixed
problems with portability of timezone information in struct tm, and
created a new structure to hold timezone information, since
struct tm doesn't do so reliably.
* imap4d/: append.c, fetch.c, imap4d.h, namespace.c, search.c,
util.c: Moved date/time parsing utility functions to
mailbox/mutil.c. Added braces to initializers and removed unused
variables prototyped shared functions, made functions that didn't
return return void. (to quiet gcc -Wall),
2001-06-17 Sam Roberts
* sieve/Makefile.am: More fixes to the packaging structure by
Sergey.
* acconfig.h, configure.in, m4/tm_gmtoff.m4, m4/tm_isdst.m4,
m4/tm_zone.m4: Added tests for isdst, gmtoffset, and zone in struct
tm.
* mailbox/folder_pop.c: Confusing typo in comment.
2001-06-16 Sergey Poznyakoff
* mailbox/mu_mktime.c(added): a wrapper around system mktime()
function that honours the timezone.
* mailbox/Makefile.am: add mu_mktime.c.
* imap4d/fetch.c: date conversion in fetch_internaldate.
get_timezone() not used anymore, removed.
* imap4d/search.c: removed confusing comment.
* imap4d/util.c: changed mktime() calls to mu_mktime(), this
solves the timezone problem.
use imap_parse_date_time() in util_parse_internal_date0().
(Proposed by Sam).
* imap4d/imap4d.h: Added missing declarations.
* mailbox/mbx_imap.c: Patch from Sam: added imap_parse_date_time().
imap_parse_date_time() returns tm/timezone pair.
* mailbox/folder_mbox.c: added #include <sys/types.h>. It is needed
on FreeBSD before inclusion of <dirent.h>
* sieve/sieve.c: swapped arguments in a call to va_start().
2001-06-15 Sergey Poznyakoff
Bunch of patches provided by Sam Roberts:
* imap4d/util.c: Fixed format bugs in util_parse.*_date functions.
Use parse822_date_time() in util_parse_header_date().
Some changes to pacify gcc -Wall.
* imap4d/util.c,imap4d/search.c,imap4d/imap4d.h:
Rename the confusing functions:
util_parse_header_date -> util_parse_822_date
util_parse_rfc822_date -> util_parse_ctime_date
include <ctype.h>
2001-06-14 23:01 Sam Roberts
* mailbox/parse822.c: I think timezone info is now placed in struct
tm correctly.
* include/mailutils/parse822.h: Prototypes for functions to parse
rfc822 date-time.
* sieve/: Makefile.am, test.c: Patches from Sergey to make the
auto* stuff work, now uses lex/yacc portably, and puts all the
necessary files into the distribution.
* sieve/ylwrap: Portable wrapper for lex/yacc invocations, by Tom
Tromey <tromey@cygnus.com>, modified by Sergey Poznyakoff
<gray@farlep.net> to replace yy prefixes, so multiple grammers can
co-exist.
* sieve/sieve.c: Define EOK ifndefed.
* examples/showmail.c: No longer relevant to the current APIs.
* examples/mbox-dates.c: GNU indented.
* examples/addr.c: GNU indented
* examples/.cvsignore: Added example executables.
* examples/mbox-explode.c: Made so it now saves all the attachments
from all the messages in a folder. Also GNU indented.
* doc/envelope.texi: Added some text to the envelope docs, still
incomplete.
* doc/url.texi: Noted the IMAP url syntax.
* doc/mailutils.texi: Some of the RFCs were missing, or
miscategorized in the references sect.
* doc/.cvsignore: Ignoreing files.
* doc/rfc1939.txt: Was checked in with DOS line terminators,
converted to Unix.
2001-06-11 Alain Magloire
* imap4d/util.c (util_msgset): When '*' was define in the
set it was not added to the count.
Bug reported by Jakob Kaivo.
2001-06-09 Alain Magloire
* mailbox2/pop3/pop3_open.c: Remove for pop3_connect.c
* mailbox2/pop3/pop3_close.c: Remove for pop3_disconnect.c
* mailbox2/pop3/pop3_connect.c: New.
* mailbox2/pop3/pop3_disconnect.c: New.
* mailbox2/include/mailutiils/error.h: New macro
MU_ERROR_OPERATION_CANCELED
* mailbox2/include/mailutils/pop3.h: Move the enum state in sys/pop3.h
2001-06-09 Sam Roberts
* rfc1738.txt, rfc2045.txt, rfc2046.txt, rfc2047.txt, rfc2049.txt,
rfc2088.txt, rfc2111.txt, rfc2192.txt, rfc2193.txt, rfc2221.txt,
rfc2298.txt, rfc2342.txt, rfc2368.txt, rfc2384.txt, rfc2821.txt,
rfc2822.txt, rfc3028.txt, rfc821.txt, rfc822.txt: These RFCs are
relevant to mailutils, and many (all?) are referenced in the
mailutils documentation.
2001-06-09 Alain Magloire
* examples/mbox-explode.c: message_save_attachment, should take
the part. Continue if the message does have a Date or Subject field.
* mailbox/mapfile_stream.c (_mapfile_open): Identation.
2001-06-09 Alain Magloire
* mailbox/tcp.c (_tcp_get_fd): Buglet, comparing fd against EINVAL
instead of -1.
* mailbox2/pop3/pop3_apop.c: New.
* mailbox2/pop3/pop3_capa.c: New.
* mailbox2/pop3/pop3_close.c: New.
* mailbox2/pop3/pop3_create.c: New.
* mailbox2/pop3/pop3_dele.c: New.
* mailbox2/pop3/pop3_destroy.c: New.
* mailbox2/pop3/pop3_iterator.c: New.
* mailbox2/pop3/pop3_list.c: New.
* mailbox2/pop3/pop3_lista.c: New.
* mailbox2/pop3/pop3_noop.c: New.
* mailbox2/pop3/pop3_open.c: New.
* mailbox2/pop3/pop3_pass.c: New.
* mailbox2/pop3/pop3_quit.c: New.
* mailbox2/pop3/pop3_readline.c: New.
* mailbox2/pop3/pop3_response.c: New.
* mailbox2/pop3/pop3_retr.c: New.
* mailbox2/pop3/pop3_rset.c: New.
* mailbox2/pop3/pop3_sendline.c: New.
* mailbox2/pop3/pop3_stat.c: New.
* mailbox2/pop3/pop3_stream.c: New.
* mailbox2/pop3/pop3_timeout.c: New.
* mailbox2/pop3/pop3_top.c: New.
* mailbox2/pop3/pop3_uidl.c: New.
* mailbox2/pop3/pop3_uidla.c: New.
* mailbox2/pop3/pop3_user.c: New.
* mailbox2/tcp.c: New.
* mailbox2/iterator.c: New.
* mailbox2/stream.c: New.
* mailbox2/pop3/pop3client.c: Test case should probably somewhere else
in example/ perhaps?
2001-06-09 Alain Magloire
* mailbox2/*: First attempt to define the new API.
POP3 was implemented.
2001-06-07 Sam Roberts
* .cvsignore, AUTHORS, COPYING, Makefile.am, NEWS, README,
addr-lex.l, addr.y, comparator.c, comparator.h, exitcodes.h,
hmac-md5.h, imparse.c, imparse.h, interp.c, interp.h, md5.c, md5.h,
md5global.h, message.c, message.h, parseaddr.c, parseaddr.h,
script.c, script.h, sieve-gram.y, sieve-lex.l, sieve.c,
sieve_err.c, sieve_err.h, sieve_interface.h, svfield.c, svfield.h,
sysexits.h, test.c, tree.c, tree.h, util.c, util.h, xmalloc.c,
xmalloc.h: Initial commit of the port of CMU's sieve engine. It
builds, and some actions work, but has seen very little use.
2001-06-03 Sam Roberts
* mailbox/file_stream.c,mailbox/mapfile_stream.c: Return EINVAL
for meaningless combination of MU_STREAM_READ + WRITE.
2001-06-03 Alain Magloire
* doc/*; Bunch of typos corrected.
Patch from Thomas Fletcher.
2001-06-02 Sam Roberts
* mailbox/parse822.c,include/mailutils/parse822.h: functions
to parse rfc822 date-time.
* examples/mbox-explode.c: example of saving all mime attachments
for messages in a mailbox.
* examples/mbox-dates.c: example of using the date-time parser, it
prints all the dates in a mailbox that it can't parse.
* examples/Makefile: makes the mbox-* examples.
2001-06-01 Alain Magloire
* mailbox/mbx_pop.c (pop_writeline): if buffer is NULL noop.
2001-06-01 Sergey Poznyakoff
* imap4d/search.c: case-insensitive comparison for text fields.
Error checking for stray symbols at the end of criteria.
* imap4d/util.c: util_strcasestr() function. Functions for
converting between text and integer representation of
attributes. Split util_parse_internal_date: the helper
function util_parse_internal_date0 also returns the
pointer to the location in the string where parsing
stopped.
* imap4d/util.h: protos for util_strcasestr() and
util_parse_.*_date() functions.
* imap4d/imap4d.c: force ofile to be line-buffered, so command
continuation requests are immediately visible.
* imap4d/append.c: implemented. Currently this needs the
helper function mailbox_destroy_folder(), so that
mailbox_set_stream does its work. Also the situation
with message attributes needs to be cleared.
2001-06-01 Alain Magloire
* mailbox/debug.c(debug_print): Noop is format is NULL;
* mailbox/mbx_imap.c (imap_messages_count): Hack! Force a
reconnect if the server timeout on us. This is not the right
approach and does not work well, fix later.
(message_operation): Check if selected is not null, first.
* mailbox/folder_imap.c (folder_imap_create): Wrong state.
* mailbox/mime.c: Pass down the return value if not ENOENT.
2001-05-30 Dave Inglis
* mailbox/mbx_pop.c (CHECK_ERROR): Force the mailbox to call connect
again when an error occured. For example the QPopper(Qalcomm) POP3
server timeout very quickly, 30 seconds violating the RFC. So when
Readin the stream again we reconnect.
2001-05-30 Dave Inglis
* mailbox/filter_trans.c (base64_decode): The variable should
be unsigned char not signed char. By default gcc treats a
declaration of "char*" like "signed char*", CC Watcom did not.
(base64_encode): Likewised.
* mailbox/mime.c: Read 'itl the end of the stream.
2001-05-29 Sergey Poznyakoff
* imap4d/uid.c, imap4d/search.c: support for UID SEARCH command;
* imap4d/util.c: forgotten fix to util_msgset().
2001-05-27 Sergey Poznyakoff
* imap4d/search.c: Added missing <message set> condition.
2001-05-27 Sergey Poznyakoff
* imap4d/imap4d.c, imap4d/capability.c, imap4d/copy.c,
imap4d/create.c, imap4d/delete.c, imap4d/imap4d.h,
imap4d/list.c, imap4d/rename.c, imap4d/select.c,
imap4d/status.c, imap4d/namespace.c (added):
implemented NAMESPACE (rfc2342) support
* imap4d/util.c:
added util_normalize_path() function.
util_msgset() bailed out at 1:1 -- fixed.
Added util_parse_internal_date(), util_parse_header_date(),
util_parse_rfc822_date().
* imap4d/bye.c: typo in diagnostic output
* imap4d/noop.c: issue unsolicited response (as per rfc2060)
* imap4d/select.c: ditto
* imap4d/store.c: set MU_ATTRIBUTE_MODIFIED on a message, so
expunge will know it was modified.
* imap4d/search.c: implemented. Charsets other than US-ASCII are
not supported, though.
2001-05-27 Sam Roberts
* mailbox/address.c: removed unfolding of lines at a NL before parsing.
* mailbox/parse822.c: consider LF and CRLF equivalent for purposes
of unfolding lines.
2001-05-23 Alain Magloire
* mailbox/mbx_default.c (mailbox_create_default): Check
for URL in the mailbox name.
2001-05-23 Dave Inglis
* mailbox/mime.c (_mimepart_body_read): Use stream_is_seekable()
to detect if the stream is POP for example and read 'til the end.
(mime_get_part): Reuse the stream the original stream flags on the
newly created message.
Fix and patches provided by Dave Inglis.
2001-05-23 Sergey Poznyakoff
* pop3d/user.c: check for NULL return from getpwnam()
* imap4d/login.c: Likewised.
2001-05-21 Alain Magloire
GNU md5 is GPL, but we agreed that the libraries should
fall under LGPL.
Same goes for basename() and pretty much everything under
lib/*.[ch]
* mailbox/message.c (message_get_uidl): Remove the dependency
from GNU md5.
* mailbox/md5-rsa.c: New File.
* mailbox/md5-rsa.h: New File.
* mailbox/attachment.c (message_create_attachment): Remove
the dependency from lib/basename.c
* mailbox/mbx_mbox.c (mbox_tempfile): Remove
the dependency from lib/basename.c
* lib/signame.c: Replace in favor of the wellknown strsignal().
* lib/strsignal.c: New file, use the mu_signame() written by
Sergey.
* pop3d/signal.c: Use strsignal() unconditionnaly.
* imap4d/signal.c: Use strsignal() unconditionnaly.
* configure.in: autoconf-2.50 is having difficulty parsing
a long AC_CHECK_LIB, break it in two.
Check for strsignal()
* doc/auth.texi: Bug fixes in texinfo.
* doc/Makefile.am: Commented the ex-address.texi generation.
* doc/ex-address.texi: New file.
2001-05-21 Alain Magloire
* configure.in, imap4d/signal.c, pop3d/signal.c:
sys_siglist is not defined on some systems (namely, Solaris).
* lib/signame.c: (added) Provide mu_signame() function to convert
signal number to string representation.
* lib/strtok_r.c: bugfix
2001-05-19 Alain Magloire
* AUTHORS: Update to reflect Sergey and Sam contributions.
2001-05-20 Sergey Poznyakoff
* mailbox/mbx_mboxscan.c:* Bug in mailbox/mbx_mboxscan.c made the
stuff coredump upon encountering more than one subject in the header.
* pop3d/pop3d.c: Typo.
2001-05-19 Sam Roberts
* mailbox/parse822.c: parse822 is a little smarter in the way
it handles CRLF.
2001-05-19 Alain Magloire
* mailbox/mbx_default (mailbox_create_default): Base on a
suggestion/patch by Sam Roberts to provide tilde, plus and equal
(~ + = ) expansion.
* mailbox/address.c: Unfold field-bodies with NL.
* mailbox/parse822.c (parse822_field_body): New function.
(parse822_field_name): New function.
* pop3d/user.c: Use mailbox_create() now instead of
mailbox_create_default.
* pop3d/apop.c: Likewise.
2001-05-16 Dave Inglis
* mailbox/mime.c (_mime_parse_mpart): Better check for the
boundary.
2001-05-14 Sergey Poznyakoff
* pop3d/user.c: After unsuccessful authorization frees cmd twice,
2001-05-13 Alain Magloire
* imap4d/fetch.c: Lots of bug fixing. To many to enumerate.
* imap4d/imap4d.h: New prototypes.
* imap4d/login.c: syslog() the user.
* imap4d/select.c: Remove the call to mailbox_create_default.
* imap4d/util.c (util_getitem): New function.
(util_send_qstring): New function.
(util_send_literal): New function.
* mailbox/address.c: Parse822 can not handle '\n' inside
the buffer, prune them out before.
* mailbox/mime.c (_mime_parse_mpart_message): The mime->stream
was destroy when doing mime_get_part () better get it every time.
(_mime_body_fd): Likewised.
* mailbox/smtp.c: Do not close the stream on destroy.
2001-05-11 Alain Magloire
* imap4d/fetch.c: More cleanup in the bodystructure code,
arrange response indentation etc ...
* impa4d/utils.c (util_send_string): New helper function.
2001-05-10 Alain Magloire
* imap4d/fetch.c: Implemented INTERNALDATE.
* mailbox/mbx_imap.c (imap_envelope_date): ctime() always
append a newline, nuke it.
* mailbox/stream.c (stream_read): If the amount requested is bigger
then the buffer cache size, bypass the buffering mechanism.
2001-05-09 Alain Magloire
Take the missing pieces from the pop3d and make the
imap4d a standalone daemon.
* imap4d/fetch.c: Remove fetch_body_peek().
and use fetch_body() instead.
(fetch_operation): Malloc the entire message... not good.
* imap4d/bye.c: New file.
* imap4d/imap4d.c: Put the networking code taken from
pop3d.c.
* imap4d/lsub.c: Implemented.
* imap4d/subscribe.c: Implemented.
* imap4d/unsubscribe.c: Implemented.
* pop3d/pop3d.c: pop3d_usage() move from extra.c
* pop3d/signal.c: pop3d_signal () move from extra.c
* mailbox/url_imap.c: It was not checking for the port number.
* mailbox/filter_rfc822.c: Check for the lines if available.
2001-05-07 Alain Magloire
Now we can have multiple access to the mailbox and the server
will update the mailbox and send the unsollicited responses.
This is implemented in imap4d/sync.c.
* imap4d/copy.c: Move the code into imap4d_copy0() to allow
the use of UID COPY.
(imaprd_copy0): New function.
* imap4d/fetch.c: Define a new structure command for FETCH.
(fetch_getcommand): New function.
(imap4d_fetch0): New function to allow the use of UID COPY.
(fetch_envelope0): New function to permit to reuse the function
in bodystructure.
(fetch_bodystructure): Implemented.
(fetch_bodystructure0): The implementation.
(bodystructure): The helper function for fetch_bodystructure.
* imap4d/imap4d.c (imap4d_mainloop): call imap4d_sync() in the
mainloop. Now use FILE *ifile.
* imap4d/imap4d.h: Update prototypes. Define ERR_NO_MEM and
ERR_NO_OFILE.
* imap4d/select.c (imap4d_select0): Call imap4d_sync() to update.
* imap4d/store.c (ima4d_store): Cal imap4d_sync_flags() to
update the flags in the uid_table.
* imap4d/uid.c: Implemented.
* imap4d/util.c (imap4d_readline): Use fgets() and deal
with literals send from the client.
* imap4d/sync.c: New file.
* include/mailutils/header.c: Added some new headers.
* mailbox/attribute.c (attribute_copy): Do a shalow copy.
* mailbox/file_stream.c: Check if FILE * is null in all functions.
* mailbox/mailbox.c (mailbox_is_updated): Should not return ENOSYS
but rather 1.
2001-05-07 Sam Roberts
* mailbox/parse822.c: Now allow a unix mailbox in an address.
* include/mailutils/parse822.h: Declare the function to parse them.
* doc/address.texi: Document the fact.
* doc/Makefile.am: Automatically build the example code from addr.c.
* examples/addr.c: And update the parser test.
* examples/Addrs.good: Update the parser test.
2001-05-03 Sam Roberts
* mail/mail.c: Typo
2001-05-03 Alain Magloire
* argp/argp-help.c (hol_entry_help): Some compiler like Watcomm
can not initialize a local structure struct .. = { .. }. Do it
explicitely field by field.
* argp/arpg-parse.c: Watcomm choke on N_() macro.
(parser_init): Watcomm does not like operation on a void * pointer.
* imap4d/login.c: Cast the return of crypt(), since some platforms
do not provide a prototype in <unistd.h>
* pop3d/user.c: Cast the return of crypt(), since in may not be
declare in <unistd.h>.
* lib/snprintf.c: Use only __STDC__ to detect <stdarg.h>
* lib/snprintf.h: Use only __STDC__.
* mail/mail.h: The global variable should be declare extern.
* mail/pipe.c: Use 512 buffer instead of BUFSIZ, go easy on the stack.
* mail/print.c: Use 512 buffer instead of BUFSIZ, go easy on the stack.
* mail/write.c: Use 512 buffer instead of BUFSIZ, go easy on the stack.
* mailbox/folder_imap.c: Declare strtock_r ().
2001-05-03 Sergey Poznyakoff
* pop3d/user.c: Misplace parentheses around the mailbox_xx() calls.
Do not free (buf) since it is now static storage. Unfortunately most
of the pam modules do openlog() on their own, thus after
authentication all logging output flows to where the last pam module
has directed it, which is usually `auth' facility.
Put back closelog()/openlog().
* pop3d/pop3d.h: ifile is now FILE *.
pop3d_realine () take FILE * as a prototype.
* pop3d/pop3d.c (pop3d_mainloop): Refresh lock, pop3d_touchlock().
Register SIGALRM in the child.
Do not free (buf) since it is now static storage.
* pop3d/extra.c (pop3d_readline): Change to use
fgets () and alarm ().
With small modification from Alain.
(pop3d_signal): ofile will be NULL in the *child* process:
whereas in the parent one, ofile will always be NULL, since it lives
in the BSS (FILE *ofile;) and gets initialized only in the child
process. Thus, when the parent receives any signal, SIGTERM for
example, it does pop3d_abquit(ERR_SIGNAL) and dies doing
fprintf(ofile, ...)
2001-05-02 Alain Magloire
Some of the Makefile.am contain gcc specific options
like -Wall, -pedantic or -ansi remove them.
* configure.in: Check for stdarg and sysconf.
* mailbox/mime.c (_mime_set_content_type): Delayed the
creation of the header-field content-type until the message
is requested via mime_get_message().
* pop3d/lock.: new File to implement the locking.
* pop3d/apop.c: Rearrange the code around the #ifdefs
to be clearrer.
Make sure that when we use strncpy() that the buffer is
null terminated. Added the locking propose by Sergey to apop.
* pop3d/capa.c: Announce we support PIPELINING.
* pop3d/extra.c (pop3d_abquit): Remove ERR_DEAD_SOCK.
Remove the extra fflush(), the call to exit() always
flush the buffers.
(pop3d_readline): Implement PIPELINING.
* pop3d/pop3d.c: Remove the typedef struct sockaddr SA
for more clarity since it is not use that often.
port is not longer a global variable.
children should have the volatile qualification.
2001-04-29 Alain Magloire
* pop3d/extra.c (pop3d_readline): Modify the loop to be able
to support PIPELINING.
* pop3d/capa.c: Advertise that we support PIPELINING.
2001-04-29 Sergey Poznyakoff
Return values of all signal handlers are changed to RETSIGTYPE
and configure.in is modified accordingly. This is more portable.
* configure.in: New Macro AC_TYPE_SIGNAL.
* mailbox/locker.c (locker_lock): while trying to read pid value
from the pidfile passed wrong buffer length to read() call, namely:
read(fd, buf, sizeof (pid_t)).
2001-04-29 Sergey Poznyakoff
I have modified locker.c to implement reference count. The
struct _locker is now:
struct _locker { int fd; int refcnt; char *fname; int flags; };
The refcnt member gets incremented each time locker_lock is called and
decremented each time locker_unlock is called. Actual locking is
performed only if refcnt == 0 on entry to locker_lock. Similarly,
unlocking is performed only when refcnt gets decremented to 0 by
locker_unlock. Also I have added basic support for NFS-secure
locking.
* mailbox/locker.c: Reference count implementation.
2001-04-25 Alain Magloire
* imap4d/store.c: First implementation.
* mailbox/attribute.c (attribute_unset_flags): New function.
2001-04-23 Sergey Poznyakoff
* mailbox/mbx_mbox.c (mbx_expunge): It assumes that mbox_get_message()
will place the pointer to message into mum->message member. But
mbox_get_message() relies on 1-based message numbers, whereas `mum'
pointer is obtained using 0-based indexing.
2001-04-23 Alain Magloire
Sergey Poznyakoff noted: When the user's mailbox has zero size, mmap
fails on Solaris. On GNU/Linux it return NULL buf subsequent munmap
fails.
* mailbox/mapfile_stream.c: To take care of this, mfs->ptr is set
to NULL for len == 0;
*mailbox/mbx_mbox.c (mbox_is_updated): Should I have return 0 (FALSE)
when size change.
2001-04-23 Sergey Poznyakoff
Several sources from mailbox subdirectory call fprintf(stderr,...)
to issue error messages. As the stderr usually gets connected to
the output socket, the client program receives all these error
messages and gets confused, since they do not start with
rfc-compliant +OK, -ERR keywords. So I have added a module
error.c and changed all these fprintf's to error()'s. Actual
function that ouputs the messages can be supplied by the
application using error_set_print() call.
2001-04-23 Alain Magloire
* pop3d/*.[ch]: Rename all the pop function pop3d_xx()
instead of pop3_xx() to be consistent with imap4d/*.
* mailbox/mbx_pop.c (pop_user): This is sudden death; for many pop
servers, it is important to let them time to remove locks or move
the .user.pop files. This happen when we do BUSY_CHECK(). For
example, the user does not want to read the entire file, and wants
start to read a new message, closing the connection and immediately
contact the server again, and we'll end up having
"-ERR Mail Lock busy" or something similar. To prevent this race
condition we sleep 2 seconds.
2001-04-23 Sergey Poznyakoff
It is often convenient to separate log outputs from POP and SMTP
servers. --with-log-facility flag which allows to specify to which
log facility the loggin output should be directed.
System administrators often prefere to have more information about
unsuccessfull authentications. I have added more verbose logging
to pop3d/user.c. Both failed attempts and possible account probes
(USER immediately followed by QUIT) are logged.
Made pop3d to be less verbose about its WELCOME prompt. When the
symbol TERSE_MODE is defined, pop3d introduces itself just as
+OK POP3 ready <apop_hash>
insead of divulging its type and version. This is a bit paranoid,
but it is better to be on the safe side...
* configure.in: ARGPINC gets assigne a relative path, due
to which the compilation fails if the package is configure with
--srdir=<path> option.
* configure.in: --with-log-facility new option.
* acconfig.h: LOG_FACILITY
* doc/mailutils.texi: Typo.
* mailbox/mapfile_stream.c: Define MAP_FAILED.
* pop3d/extra.c (pop3_abquit): new case ERR_MBOX_SYNC.
(pop3_signal): Syslog the reason.
* pop3d/pop3d.c (pop_mainloop): Syslog the hostname of
the user on connect.
(pop3_daemon): Log to many children. Lacks call to exit(), so if
pop3d is run as a daemon, any child after exiting from
pop3_mainloop tries to accept() from already closed socket
and issues spurious error messages.
(pop3_mainloop): Check if the mailbox is uptodate if not
and the size shrink, bail out. Do not send version number.
* pop3d/pop3d.h: ERR_MBOX_SYNC define. WELCOME removed.
* pop3d/signal (pop3_sigchld): Lacks signal() call, due to which
the signal handler gets cleared after first SIGCHLD and all
subsequent children, when finished, just hang around like zombies.
* pop3d/user.c: Log to LOG_FACILITY all the errors.
2001-04-23 Alain Magloire
Sergey Poznyakoff pointed out that errno changes depending
if _REENTRANT is set or not. So for enable thread we take
the approach of always defining _REENTRANT.
He also noted that when in standalone the child was not exiting.
* acconfig.h: Define _REENTRANT.
* configure.in: Check for sigaction().
* configuire.in: AC_DEFINE(_REENTRANT).
* doc/Makefile.am: add rfc2060-errata.
* doc/rfc2060-errata: New File.
* imap4d/copy.c: First Implementation.
* imap4d/status.c: First implementation.
* mailbox/file_stream.c (_file_open): For CREAT, close
the fd if we failed.
* mailbox/folder_imap.c: Remove the _REENTRANT.
* mailbox/mbx_mbox.c: Remove the _REENTRANT.
* mailbox/monitor.c: Remove the _REENTRANT.
* pop3d/pop3d.c (main): maxchildren boosted to 20.
(pop3_daemon_init): Use sigaction() for SIGCHLD,
the sematics of signal() is unreliable on some platforms.
* pop3d/signal.c: Save errno.
2001-04-22 Alain Magloire
* imap4d/create.c: First implementation.
* imap4d/delete.c: First implementation.
* imap4d/list.c: First implementation.
* imap4d/rename.c: First implementation.
* imap4d/util.c: New functions.
(util_tilde_expansion): expand ~.
(util_unquote): Remove surrounding double quotes.
(util_getfullpath): Expand the path to absolute.
* imap4d/fetch.c: Did not cycle throught the items.
(fetch_send_address): Patch from Sam Roberts, did not
use the index.
* mailbox/attachement.c (message_unencapsulate): Little buglet
strncasemp() passing the wrong size.
2001-04-19 Alain Magloire
* mailbox/smtp.c(smtp_readline): Because of the buffering mechanism,
we must maintain the offset.
* imap4d/list.c: partially implemented the LIST command.
* imap4d/imap4d.c: homedir new global variable.
* imap4d/login.c: same ${HOME} in homedir.
* imap4d/util.c (util_getword): Be aware of the quotes.
* lib/fnmatch.c: New replacement file.
* lib/fnmatch.h: New replacement file.
* configure.in: Check for fnmatch().
2001-04-18 Alain Magloire
Finally took time to put the code in from Jakob first draft, in
an email excerpt:
states is the valid states for a command (eg. LOGIN is only valid in
non-authenticated state, SELECT is valid in authenticated or
selected). success is the state to enter when the command completes
successfully (STATE_NONE means no change) and failure is the state to
enter when the command fails.
* imap4d/*.c: All the commands check there state.
* imap4d/fetch.c: Cleanup the fetch code, and broke
the fetch_operation() routine in multiple routines.
(fetch_message): New function.
(fetch_header): Likewised
(fetch_content): Likewised
(fetch_io): Likewised
(fetch_header_fields): Likewised
(fetch_header_fields_not): Likewised
(fetch_send_address): Likewised
* mailbox/header.c: Some functions were usefull while
programming the imap server, put them here.
(header_aget_value): New function.
(header_aget_field_name): New function.
(header_aget_field_value): New function.
* mailbox/memory_stream.c: New file, implemented a
malloc() buffer that you can access via the stream interface.
* mailbox/file_stream.c: Remove spurious checks.
* mailbox/mapfile_stream.c: Remove spurious checks.
(_mapfile_read): check if there is no newline left.
2001-04-16 Alain Magloire
To get things to compile on Solaris, change configure to check
for -lpthread since in libc the thread functions are defined
but all return ENOSYS, you need to explicitely link with -lphtread.
the ctype functions is*() arguments should be explicitely cast
since Solaris use them as indexes. __REENTRANT as to be define
if compile with support for threads. Never realize this but
setenv() is a BSD/GNU thing, so took a variant from libiberty
to cope.
* configure.in: Check for setenv. First check if -lphtread is ok.
* lib/setenv.c: New functions.
* lib/Makefile.am: add setenv.c in EXTRA_DIST.
* imap4d/imap4d.h: Include <alloca.h>
* mailbox/attachment.c: Include <alloca.h>
* (_header_get_param): isspace() cast argument.
* mail/mail.h: check if <paths.h> is available if not
define _PATH_SENDMAIL=/usr/lib/sendmail.
* mailbox/folder_imap.c: if pthread available, define _REENTRANT.
Include <alloca.h>.
(imap_bodystructure0): isdigit() cast argument.
* mailbox/mbx_mbox.c: if pthread available, define _REENTRANT.
Include <alloca.h>.
* mailbox/parse822.c: isdigit() cast argument unsigned.
2001-04-15 Alain Magloire
The FILE* stream "stdout" is not an lvalue so it is an error to
attempt to assign to it. To be able to redirect at will stdout
we need to assign it. In GNU lib C, it was not error since stdout
stderr, and stdin are variables, but to be portable we can not
assume this. The way out is to always use fprintf () and have
a global varialbe "ofile" pointing to stdout.
* mail/*: All the files under mail been change to use fprintf()
and ofile as the default stdout.
Copyright updated.
2001-04-15 Alain Magloire
Create a argp directory, it contains the necessary
files to build a standalone libargp.a
* argp: New directory.
argp-ba.c, argp-eexst.c, argp-fmtstream.c, argp-fmtstream.h
argp-fs-xinl.c, argp-help.c, argp-namefrob.h, argp-parse.c
argp-pv.c, argp-pvh.c, argp-xinl.c, argp.h, pin.c.
* mail/mail.c: Comment out the code that use readline
specifics WITH_READLINE.
* mail/mail.h: Likewised.
* mail/util.c: Likewised.
2001-04-15 Alain Magloire
* Makefile.am: Add argp in the list of subdirs.
* configure.am: Check for argp.h and look for
argp_parse().
* lib/strchrnul.c: New function.
* lib/strndup.c: New function.
* lib/strnlen.c: New function.
* lib/vasnprintf.c: New function.
* lib/getopt.c: Updated.
* lib/getopt1.c: Updated.
* lib/getopt.h: Updated.
* frm/Makefile.am: Remove -DTESTING in CFLAGS.
* from/Makefile.am: Remove -DTESTING in CFLAGS.
Add AUTOMAKE_OPTIONS.
* imapd/Makefile.am: Likewised.
* pop3d/Makefile.am: Likewised.
* mail/Makefile.am: Likewised. Added ARGPLIB macro
2001-04-14 Sam Roberts
* examples/{Makefile,Addrs,addr.c,Addrs.good}: address test f/w.
* include/mailutils/address.h,mailbox/{address.c,parse822.c}: now
stuff a group name into an _address, and added a function to do
a quick check if it is a group.
* mailbox/parse822.c: fixed bug where ",sam@foo.bar" wasn't valid.
2001-04-14 Alain Magloire
* mailbox/folder_imap.c: When calling imap_writeline () the
cookie for the tag should be unsigned %d --> %u.
(imap_send) : The number of bytes in memmove was wrong.
* mailbox/mbx_imap.c: Some duplicate degug calls MAILBOX_DEBUG0()
removed.
(attribute_string): IMAP does not have a \\Read flag it should be
the same as \\Seen so attribute_read() == attribute_seen().
(flag_string): New function.
(imap_attr_set_flags): Use flag_string(), instead.
* mailbox/include/imap0.h: CLEAR_STATE() should also deselect
the current mailbox.
* mailbox/mbx_pop.c (pop_write): The number of bytes in the memmove
was wrong.
* imap4d/imap4d.h: Add HAVE_SECURITY_PAM_APPL_H.
* imap4d/login.c: PAM_ERROR wrongly define.
* imap4d/expunge.c: Initialise variable sp.
* imap4d/logout.c: Initialise variable sp.
* imap4d/noop.c: Initialise variable sp.
* mailbox/attachement.c (message_create_attachment): Use base_name().
* mailbox/mbx_mbox.c (mbox_tmpfile): Use base_name().
* configure.in: AC_REP_FUNC(vasprintf strcasecmp strncasecmp).
* include/mailutils/Makefile.am: Add property.h, parse822.h.
* lib/vasprintf.c: Taken from libit.
* lib/basename.c: Taken from libit/fileutils.
* lib/Makefile.am.c: Always use our basename(base_name).
(AM_INIT_AUTOMAKE): Change version to 0.0.9
2001-04-13 Sam Roberts
QNX needed to include <strings.h> for many of the useful string
functions also to define _QNX_SOURCE so <sys/time.h> doesn't have
an internal warning.
* configure.in: Check for libgen.h.
* imap4d/imap4d.h: Define __QNX_SOURCE.
* mailbox/mime.c: wasn't including config.h
* mailbox/attachment.c: QNX needed libgen.h for basename(),
include <strings.h> if define.
* mailbox/filter.c: Include <strings.h>.
* mailbox/mbx_mbox.c: Include <strings.h>.
* mailbox/folder_imap.c: Include <strings.h>.
* mailbox/header.c: Include <strings.h>.
* mailbox/property.c: Include <strings.h>.
* mailbox/registrar.c: Include <strings.h>.
* mailbox/url.c: Include <strings.h>.
* mailbox/url_pop.c: Include <strings.h>.
* pop3d/user.c: QNX says getspnam(char* n), I cast away the error.
2001-04-13 Sam Roberts
* mailbox/parse822.c, include/mailutils/parse822.h: now can
quote the local-part of and addr-spec, and a string.
2001-04-13 Sam Roberts
* doc/address.texi: updated docs, now they match the parse822.
* mailbox/parse822.c: small tweaks to the new parser, the changes
made during the tidying over the last month were:
- use C comments only.
- don't use C++ reserved words.
- fix is_digit() to be like the other is functions
- Changed return codes to:
. no mem (ENOMEM)
. function wasn't called correctly, usually a missing
argument (EINVAL)
. invalid syntax found during parsing (ENOENT)
. success == 0
- const-corrected the APIs
- removed unnecessary (in C) casts.
- mailbox_t* removed in favor of address_t.
- fix handful of memory leaks detected by Alain.
2001-04-10 Alain Magloire
* pop3d/retr.c (pop3_retr): Typo.
* pop3d/top.c (pop3_top): No need to reallocate when sending the
headers.
* doc/mailbox.texi: Put the functions in alphabetic orders.
2001-04-10 Alain Magloire
* mailbox/Makefile.am: filter_trans.c added, trans_stream.c deleted.
* mailbox/attachment.c (message_create_attachment): use
filter_create().
(message_save_attachment): use filter_create().
* mailbox/body.c (body_set_lines): Wrong comparison for the owner.
* mailbox/mbx_mbox.c: Do not count the line separtor of part
of the mailbox.
* mailbox/url.c (url_is_same_sheme): New function.
(url_is_same_user): New function.
(url_is_same_path): New function.
(url_is_same_host): New function.
(url_is_same_port): New function.
* mailbox/folder.c : Moved the is_same_*() functions in url.c
they can be generally usefull.
(is_same_sheme): Removed.
(is_same_user): Removed.
(is_same_path): Removed.
(is_same_host): Removed.
(is_same_port): Removed.
* mailbox/folder_imap.c (folder_imap_create): New function,
CREATE a new mailbox.
(folder_imap_open): Calls folder_imap_create when the MU_STREAM_CREAT
flag is set.
* mailbox/mbx_imap.c: Appending messages implemented, if the message
comes from the same imap folder, it is COPY otherwise APPEND.
(is_same_folder): New function.
(imap_append_message): Implemented.
(attribute_string): New functions.
(imap_copy_message): New function.
* mailbox/include/imap0.h: New enum, IMAP_APPEND, IMAP_APPEND_ACK,
IMAP_APPEND_CONT, IMAP_APPEND_SEND, IMAP_COPY, IMAP_COPY_ACK,
IMAP_CREATE, IMAP_CREATE_ACK.
2001-04-06 Alain Magloire
* mailbox/parse822.c: New parser.
* include/mailutils/parse822.h: New file.
* mailbox/address.c (address_create): Remove the old parsing and use
parse822 as the underlying engine.
(address_parse): Removed.
(gettoken): Removed.
(quotes): Removed.
(address_get_personal): Remove the code to unquote, parse822 takes
care if it. Return value when no field is ENOENT.
(address_get_comments): Return value when no field ENOENT.
(address_get_local_part): Return value when no field ENOENT.
(address_get_domain): Return value when no field ENOENT.
(address_get_email): Return value when no field ENOENT.
(address_get_route): Return value when no field ENOENT.
* mailbox/message.c (message_sender): Use parse822 to retrieve
the email from the From: field.
(message_set_mailbox): New function.
* mailbox/misc.c : Removed the old parsing code.
(gettoken): Removed.
(parseaddr): Removed.
* mailbox/include/misc.h : Removed parseaddr() prototypes.
From Sam Roberts, the new parse822 parser..
2001-04-04 Alain Magloire
Introduction of the notion of filter_t object takes a stream and
perform some filtering on it. All the decoding streams will move
to this i.e. quoted-printable, base64 etc .. This scheme will also
permit users to add to the list new filters. Still work in progress.
* mailbox/Makefile.am : Add filter.c filter_rfc822.c.
* mailbox/body.c : When creating a floating body i.e creating
a temporary file, the stream was not "own" by the body_t.
(_body_get_fd): Likewised.
(_body_read):_ Likewised.
(_body_readline): Likewised.
(_body_write): Likewised.
(_body_truncate): Likewised.
(_body_size): Likewised.
(_body_flush): Likewised.
* mailbox/folder_imap.c (imap_literal_string): Check if the
callback.buffer is NULL.
(imap_body): Do no set the callback.type if "FIELDS" is part of the
string.
* mailbox/header.c: Remove the support for RFC822 it will be part
of the filter_t object.
* mailbox/mbx_mbox.c: Likewised.
* mailbox/mailbox.c (mailbox_size): Rename to mailbox_get_size().
* mailbox/stream.c (stream_is_seekable): New function.
(stream_set_property): New function.
(stream_get_property): New function.
* mailbox/trans_stream.c: Beautify.
* include/mailutils/filter.h: new file.
* doc/mailbox.texi: Updated.
More changes to come.
2001-03-20 Alain Magloire
* mailbox/folder_imap.c (imap_readline) : If the server goes away
suddenly return an error.
* mailbox/smtp.c (smtp_readline) : If the server goes away
suddenly return an error.
* mailbox/mbx_pop.c (pop_readline) : If the server goes away suddenly
return an error.
* mailbox/mbx_pop.c (pop_open) : The ticket comes from the folder.
2001-03-17 Vesselin Atanasov
* configure.in: AC_REQUIRE is not .. required. Just call
jm_FUNC_MALLOC and jm_FUNC_REALLOC.
2001-03-17 Alain Magloire
Clean the property object, mailbox and mailer have property object
that you can examine. Still a draft: the value of objects are ints.
This feature was put in to help the imap4d server, in this protocol
you can get a substring of the message starting from a certain offset.
To make the coding of imap4d simpler the complexity was move to the
* mailbox/smtp.c(smtp_readline): Because of the buffering mechanism,
we must maintain the offset.
* imap4d/list.c: partially implemented the LIST command.
* imap4d/imap4d.c: homedir new global variable.
* imap4d/login.c: same ${HOME} in homedir.
* imap4d/util.c (util_getword): Be aware of the quotes.
* lib/fnmatch.c: New replacement file.
* lib/fnmatch.h: New replacement file.
* configure.in: Check for fnmatch().
2001-04-18 Alain Magloire
Finally took time to put the code in from Jakob first draft, in
an email excerpt:
states is the valid states for a command (eg. LOGIN is only valid in
non-authenticated state, SELECT is valid in authenticated or
selected). success is the state to enter when the command completes
successfully (STATE_NONE means no change) and failure is the state to
enter when the command fails.
* imap4d/*.c: All the commands check there state.
* imap4d/fetch.c: Cleanup the fetch code, and broke
the fetch_operation() routine in multiple routines.
(fetch_message): New function.
(fetch_header): Likewised
(fetch_content): Likewised
(fetch_io): Likewised
(fetch_header_fields): Likewised
(fetch_header_fields_not): Likewised
(fetch_send_address): Likewised
* mailbox/header.c: Some functions were usefull while
programming the imap server, put them here.
(header_aget_value): New function.
(header_aget_field_name): New function.
(header_aget_field_value): New function.
* mailbox/memory_stream.c: New file, implemented a
malloc() buffer that you can access via the stream interface.
* mailbox/file_stream.c: Remove spurious checks.
* mailbox/mapfile_stream.c: Remove spurious checks.
(_mapfile_read): check if there is no newline left.
2001-04-16 Alain Magloire
To get things to compile on Solaris, change configure to check
for -lpthread since in libc the thread functions are defined
but all return ENOSYS, you need to explicitely link with -lphtread.
the ctype functions is*() arguments should be explicitely cast
since Solaris use them as indexes. __REENTRANT as to be define
if compile with support for threads. Never realize this but
setenv() is a BSD/GNU thing, so took a variant from libiberty
to cope.
* configure.in: Check for setenv. First check if -lphtread is ok.
* lib/setenv.c: New functions.
* lib/Makefile.am: add setenv.c in EXTRA_DIST.
* imap4d/imap4d.h: Include <alloca.h>
* mailbox/attachment.c: Include <alloca.h>
* (_header_get_param): isspace() cast argument.
* mail/mail.h: check if <paths.h> is available if not
define _PATH_SENDMAIL=/usr/lib/sendmail.
* mailbox/folder_imap.c: if pthread available, define _REENTRANT.
Include <alloca.h>.
(imap_bodystructure0): isdigit() cast argument.
* mailbox/mbx_mbox.c: if pthread available, define _REENTRANT.
Include <alloca.h>.
* mailbox/parse822.c: isdigit() cast argument unsigned.
2001-04-15 Alain Magloire
The FILE* stream "stdout" is not an lvalue so it is an error to
attempt to assign to it. To be able to redirect at will stdout
we need to assign it. In GNU lib C, it was not error since stdout
stderr, and stdin are variables, but to be portable we can not
assume this. The way out is to always use fprintf () and have
a global varialbe "ofile" pointing to stdout.
* mail/*: All the files under mail been change to use fprintf()
and ofile as the default stdout.
Copyright updated.
2001-04-15 Alain Magloire
Create a argp directory, it contains the necessary
files to build a standalone libargp.a
* argp: New directory.
argp-ba.c, argp-eexst.c, argp-fmtstream.c, argp-fmtstream.h
argp-fs-xinl.c, argp-help.c, argp-namefrob.h, argp-parse.c
argp-pv.c, argp-pvh.c, argp-xinl.c, argp.h, pin.c.
* mail/mail.c: Comment out the code that use readline
specifics WITH_READLINE.
* mail/mail.h: Likewised.
* mail/util.c: Likewised.
2001-04-15 Alain Magloire
* Makefile.am: Add argp in the list of subdirs.
* configure.am: Check for argp.h and look for
argp_parse().
* lib/strchrnul.c: New function.
* lib/strndup.c: New function.
* lib/strnlen.c: New function.
* lib/vasnprintf.c: New function.
* lib/getopt.c: Updated.
* lib/getopt1.c: Updated.
* lib/getopt.h: Updated.
* frm/Makefile.am: Remove -DTESTING in CFLAGS.
* from/Makefile.am: Remove -DTESTING in CFLAGS.
Add AUTOMAKE_OPTIONS.
* imapd/Makefile.am: Likewised.
* pop3d/Makefile.am: Likewised.
* mail/Makefile.am: Likewised. Added ARGPLIB macro
2001-04-14 Sam Roberts
* examples/{Makefile,Addrs,addr.c,Addrs.good}: address test f/w.
* include/mailutils/address.h,mailbox/{address.c,parse822.c}: now
stuff a group name into an _address, and added a function to do
a quick check if it is a group.
* mailbox/parse822.c: fixed bug where ",sam@foo.bar" wasn't valid.
2001-04-14 Alain Magloire
* mailbox/folder_imap.c: When calling imap_writeline () the
cookie for the tag should be unsigned %d --> %u.
(imap_send) : The number of bytes in memmove was wrong.
* mailbox/mbx_imap.c: Some duplicate degug calls MAILBOX_DEBUG0()
removed.
(attribute_string): IMAP does not have a \\Read flag it should be
the same as \\Seen so attribute_read() == attribute_seen().
(flag_string): New function.
(imap_attr_set_flags): Use flag_string(), instead.
* mailbox/include/imap0.h: CLEAR_STATE() should also deselect
the current mailbox.
* mailbox/mbx_pop.c (pop_write): The number of bytes in the memmove
was wrong.
* imap4d/imap4d.h: Add HAVE_SECURITY_PAM_APPL_H.
* imap4d/login.c: PAM_ERROR wrongly define.
* imap4d/expunge.c: Initialise variable sp.
* imap4d/logout.c: Initialise variable sp.
* imap4d/noop.c: Initialise variable sp.
* mailbox/attachement.c (message_create_attachment): Use base_name().
* mailbox/mbx_mbox.c (mbox_tmpfile): Use base_name().
* configure.in: AC_REP_FUNC(vasprintf strcasecmp strncasecmp).
* include/mailutils/Makefile.am: Add property.h, parse822.h.
* lib/vasprintf.c: Taken from libit.
* lib/basename.c: Taken from libit/fileutils.
* lib/Makefile.am.c: Always use our basename(base_name).
(AM_INIT_AUTOMAKE): Change version to 0.0.9
2001-04-13 Sam Roberts
QNX needed to include <strings.h> for many of the useful string
functions also to define _QNX_SOURCE so <sys/time.h> doesn't have
an internal warning.
* configure.in: Check for libgen.h.
* imap4d/imap4d.h: Define __QNX_SOURCE.
* mailbox/mime.c: wasn't including config.h
* mailbox/attachment.c: QNX needed libgen.h for basename(),
include <strings.h> if define.
* mailbox/filter.c: Include <strings.h>.
* mailbox/mbx_mbox.c: Include <strings.h>.
* mailbox/folder_imap.c: Include <strings.h>.
* mailbox/header.c: Include <strings.h>.
* mailbox/property.c: Include <strings.h>.
* mailbox/registrar.c: Include <strings.h>.
* mailbox/url.c: Include <strings.h>.
* mailbox/url_pop.c: Include <strings.h>.
* pop3d/user.c: QNX says getspnam(char* n), I cast away the error.
2001-04-13 Sam Roberts
* mailbox/parse822.c, include/mailutils/parse822.h: now can
quote the local-part of and addr-spec, and a string.
2001-04-13 Sam Roberts
* doc/address.texi: updated docs, now they match the parse822.
* mailbox/parse822.c: small tweaks to the new parser, the changes
made during the tidying over the last month were:
- use C comments only.
- don't use C++ reserved words.
- fix is_digit() to be like the other is functions
- Changed return codes to:
. no mem (ENOMEM)
. function wasn't called correctly, usually a missing
argument (EINVAL)
. invalid syntax found during parsing (ENOENT)
. success == 0
- const-corrected the APIs
- removed unnecessary (in C) casts.
- mailbox_t* removed in favor of address_t.
- fix handful of memory leaks detected by Alain.
2001-04-10 Alain Magloire
* pop3d/retr.c (pop3_retr): Typo.
* pop3d/top.c (pop3_top): No need to reallocate when sending the
headers.
* doc/mailbox.texi: Put the functions in alphabetic orders.
2001-04-10 Alain Magloire
* mailbox/Makefile.am: filter_trans.c added, trans_stream.c deleted.
* mailbox/attachment.c (message_create_attachment): use
filter_create().
(message_save_attachment): use filter_create().
* mailbox/body.c (body_set_lines): Wrong comparison for the owner.
* mailbox/mbx_mbox.c: Do not count the line separtor of part
of the mailbox.
* mailbox/url.c (url_is_same_sheme): New function.
(url_is_same_user): New function.
(url_is_same_path): New function.
(url_is_same_host): New function.
(url_is_same_port): New function.
* mailbox/folder.c : Moved the is_same_*() functions in url.c
they can be generally usefull.
(is_same_sheme): Removed.
(is_same_user): Removed.
(is_same_path): Removed.
(is_same_host): Removed.
(is_same_port): Removed.
* mailbox/folder_imap.c (folder_imap_create): New function,
CREATE a new mailbox.
(folder_imap_open): Calls folder_imap_create when the MU_STREAM_CREAT
flag is set.
* mailbox/mbx_imap.c: Appending messages implemented, if the message
comes from the same imap folder, it is COPY otherwise APPEND.
(is_same_folder): New function.
(imap_append_message): Implemented.
(attribute_string): New functions.
(imap_copy_message): New function.
* mailbox/include/imap0.h: New enum, IMAP_APPEND, IMAP_APPEND_ACK,
IMAP_APPEND_CONT, IMAP_APPEND_SEND, IMAP_COPY, IMAP_COPY_ACK,
IMAP_CREATE, IMAP_CREATE_ACK.
2001-04-06 Alain Magloire
* mailbox/parse822.c: New parser.
* include/mailutils/parse822.h: New file.
* mailbox/address.c (address_create): Remove the old parsing and use
parse822 as the underlying engine.
(address_parse): Removed.
(gettoken): Removed.
(quotes): Removed.
(address_get_personal): Remove the code to unquote, parse822 takes
care if it. Return value when no field is ENOENT.
(address_get_comments): Return value when no field ENOENT.
(address_get_local_part): Return value when no field ENOENT.
(address_get_domain): Return value when no field ENOENT.
(address_get_email): Return value when no field ENOENT.
(address_get_route): Return value when no field ENOENT.
* mailbox/message.c (message_sender): Use parse822 to retrieve
the email from the From: field.
(message_set_mailbox): New function.
* mailbox/misc.c : Removed the old parsing code.
(gettoken): Removed.
(parseaddr): Removed.
* mailbox/include/misc.h : Removed parseaddr() prototypes.
From Sam Roberts, the new parse822 parser..
2001-04-04 Alain Magloire
Introduction of the notion of filter_t object takes a stream and
perform some filtering on it. All the decoding streams will move
to this i.e. quoted-printable, base64 etc .. This scheme will also
permit users to add to the list new filters. Still work in progress.
* mailbox/Makefile.am : Add filter.c filter_rfc822.c.
* mailbox/body.c : When creating a floating body i.e creating
a temporary file, the stream was not "own" by the body_t.
(_body_get_fd): Likewised.
(_body_read):_ Likewised.
(_body_readline): Likewised.
(_body_write): Likewised.
(_body_truncate): Likewised.
(_body_size): Likewised.
(_body_flush): Likewised.
* mailbox/folder_imap.c (imap_literal_string): Check if the
callback.buffer is NULL.
(imap_body): Do no set the callback.type if "FIELDS" is part of the
string.
* mailbox/header.c: Remove the support for RFC822 it will be part
of the filter_t object.
* mailbox/mbx_mbox.c: Likewised.
* mailbox/mailbox.c (mailbox_size): Rename to mailbox_get_size().
* mailbox/stream.c (stream_is_seekable): New function.
(stream_set_property): New function.
(stream_get_property): New function.
* mailbox/trans_stream.c: Beautify.
* include/mailutils/filter.h: new file.
* doc/mailbox.texi: Updated.
More changes to come.
2001-03-20 Alain Magloire
* mailbox/folder_imap.c (imap_readline) : If the server goes away
suddenly return an error.
* mailbox/smtp.c (smtp_readline) : If the server goes away
suddenly return an error.
* mailbox/mbx_pop.c (pop_readline) : If the server goes away suddenly
return an error.
* mailbox/mbx_pop.c (pop_open) : The ticket comes from the folder.
2001-03-17 Vesselin Atanasov
* configure.in: AC_REQUIRE is not .. required. Just call
jm_FUNC_MALLOC and jm_FUNC_REALLOC.
2001-03-17 Alain Magloire
Clean the property object, mailbox and mailer have property object
that you can examine. Still a draft: the value of objects are ints.
This feature was put in to help the imap4d server, in this protocol
you can get a substring of the message starting from a certain offset.
To make the coding of imap4d simpler the complexity was move to the
library. It is possible now by setting a property of the mailbox
to make it output rfc822 stream i.e. "\r\n" terminated stream, the
offset and the size are also in term of rfc822.
* mailbox/property.c (property_set_int): Removed.
* mailbox/property.c (property_set_long): Removed.
* mailbox/property.c (property_set_double): Removed.
* mailbox/property.c (property_set_set_value): Removed.
* mailbox/property.c (property_set_get_value): Removed.
* mailbox/property.c (property_add_propety): New function.
* mailbox/property.c (hash): Renamed poperty_hash.
* include/mailutils/property.h (struct property_list): New structure.
* mailbox/include/mailbox0.h: new fields properties, properties_count.
* mailbox/mailbox.c (mailbox_get_property): The function will create
the proprety and add the default properties.
(mailbox_destroy): The default poperties and property are freed.
(mailbox_is_updated): Return ENOSYS if the argumets are wrong.
(mailbox_scan): Return ENOSYS if the argumets are wrong.
(mailbox_uidvalidity): Return ENOSYS if the argumets are wrong.
(mailbox_uidnext): Return ENOSYS if the argumets are wrong.
* mailbox/mbx_mbox.c (mbx_init): Set its default properties.
(mbx_header_get_fvalue): Return the len, even if buffer is null.
(mbx_body_read): If property rfc822 is set call
mbx_body_readstream_rfc822 to the conversion.
(mbx_body_readstream_rfc822): New function, do the conversion.
(struct _mbox_message): Remove the stream field.
added struct rfc822.
(mbox_get_header_readstream): Removed.
(mbox_header_size): Do the conversion if rfc822 set.
(mbox_body_size): Do the conversion if rfc822 set.
(mbox_get_message): Set the property on the header_t.
* mailbox/mbx_pop.c (pop_init): Set its default properties.
(pop_open): Remove MU_STREAM_POP flag obsolete.
(pop_readline): Do the converstion if rfc822 is set.
* mailbox/mbx_imap.c (mbx_imap_init): Set its default properties.
* mailbox/folder_imap.c (folder_imap_open): Remove MU_STREAM_IMAP,
no longer pertinent.
(imap_readline): If propety rfc822 is set don't strip '\r'.
* mailbox/header.c (header_set_property): New functions.
(header_get_property): New functions.
(header_destroy): Destroy property object.
(header_get_value): If property rfc822 is set
convert all "\n" to "\r\n".
(header_read): If property rfc822 is et convert to \n to \r\n.
(header_readline): If property rfc822 is et convert to \n to \r\n.
(fill_blurb): Clear the function overloading, when the blurb is fill.
* mailbox/include/header0.h: New field property.
* include/mailutils/header.h: Added prototypes for
header_set_property and header_get_property.
* include/mailutils/stream.h: Remove the identification macros;
MU_STREAM_IMAP, MU_STREAM_FILE, MU_STREAM_POP, it is part of the
properties of each object.
* mailbox/mailer.c (mailer_destroy): Free the properties.
* mailbox/mailer.c (mailer_get_poperty): New function, return the
property of the mailbox.
* mailbox/smtp.c (_mailer_smtp_init): Set its default properties.
* mailbox/sendmail.c (_sendmail_init): Set its default properties.
* mailbox/include/Makefile.am: Add property0.h.
2001-03-09 Sam Roberts
* include/mailutils/address.h: api for new parser,
address_create0(), and to get route, local-part, and domain.
* mailbox/address.c: implementation of 3 new get functions, first
cut, needs cleanup
* mailbox/include/address0.h: new members of _address, deleted
one that looked unused.
* mailbox/parse822.c: implementation of address_create0(),
which handles groups, routes, and the hoary old comment phrase
* addr/addr.c - parses addresses from its command line or
stding using create() or create0().
* mailbox/mbx_imap.c: need strings.h on some systems, like Nto
2001-03-12 Sam Roberts
* frm/frm.c (main): Changed to only print subject if
header_get_value(SUBJECT) returned success, otherwise I assume
it would print the stack.
(usage): Corrected a tiny typo in usage message.
(long_options): Added an option -f,--field that prints the named field
in the mailbox, and nothing else.
2001-03-09 Alain Magloire
* mailbox/Makefile.am: add property.c in the src list.
* doc/mailutils.texi: add Sam to the list of acknowlegment.
2001-03-09 Sam Roberts
* doc/address.texi: documented all the functions in address.h
* doc/url.texi: corrected location or url.h header
2001-03-08 Sam Roberts
* README-alpha: Be clearer on how to configure.
* doc/address.texi : New File, description of address_t object.
* doc/mailutils.texi : add include address.texi.
2001-03-03 Alain Magloire
* imap4d/fetch.c (fetch_operation) : HEADER.FIELDS.NOT implemented.
fetch_opertaion() take a new argument.
* imap4d/util.c (util_upper) : New function string upper.
* mailbox/heder.c: Added new functionnalities to help the imap4d
fetch command.
(header_get_field_count) : New function returns the number of header
fields in the header.
(header_get_field_name): New function returns the field name.
(header_get_field_value): New function returns the field value.
2001-03-03 Alain Magloire
* include/mailutils/address.h: s/_cplusplus/__cplusplus/g
(include/mailutils/auth.h): Likewised.
(include/mailutils/body.h): Likewised.
(include/mailutils/debug.h): Likewised.
(include/mailutils/header.h): Likewised.
(include/mailutils/iterator.h): Likewised.
(include/mailutils/list.h): Likewised.
(include/mailutils/mailer.h): Likewised.
(include/mailutils/message.h): Likewised.
(include/mailutils/mime.h): Likewised.
(include/mailutils/observer.h): Likewised.
(include/mailutils/property.h): Likewised.
(include/mailutils/registrar.h): Likewised.
(mailbox/include/address0.h): Likewised.
(mailbox/include/auth0.h): Likewised.
(mailbox/include/body0.h): Likewised.
(mailbox/include/debug0.h): Likewised.
(mailbox/include/header0.h): Likewised.
(mailbox/include/iterator0.h): Likewised.
(mailbox/include/list0.h): Likewised.
(mailbox/include/mailer0.h): Likewised.
(mailbox/include/message0.h): Likewised.
(mailbox/include/mime0.h): Likewised.
(mailbox/include/observer0.h): Likewised.
Pointed by Sam Roberts.
2001-02-28 Alain Magloire
* mailbox/address.c (address_get_personal): Remove surrounding quotes.
* mailbox/mbx_mbox.c (mbox_scan): If the mailbox is updated don't
rescan again.
(mbox_expunge): Same the uidvalidity in the header field "IMABase:"
on the first message of the mailbox.
* imap4d/fetch.c (fetch_envelope): Envelope imap4 command implemented.
(fetch_send_address): New function.
2001-02-26 Alain Magloire
* mailbox/mbx_imap.c (imap_submessage_size): New function to
retrieve message size of attachments.
* imap4d/fetch.c: More functionnality for the FETCH command.
(fetch_operation): New operation.
* imap4d/util.c (util_token): little helper function.
2001-02-25 Alain Magloire
* lib/strtok_r.c: If there are no delimiters left save the old string
and return NULL.
* mailbox/folder_imap.c (imap_fetch): Finish imap FETCH command.
(imap_rfc822): New Function.
(imap_rfc822_text): New Function.
(imap_rfc822_size): New Function.
(imap_rfc822_header): New Function.
(imap_uid): New Function.
(imap_body): New Function.
(imap_bodystructure0): Save the size.
2001-02-22 Alain Magloire
* mailbox/property.c: New file.
* include/mailutils/property.h: New file.
* mailbox/mailbox.c (mailbox_get_property): New function,
a first draft to let set "property" on a mailbox that can
change its behaviour.
* mailbox/include/mailbox0.h: New field in struct _mailbox, property.
* sieve/lex-sieve.lex: Add LGPL banner.
* sieve/gram-sieve.y: Add LGPL banner.
2001-02-22 Alain Magloire
* sieve: New Directory.
* sieve/lex-sieve.lex: RFC3028 tokenizer.
* sieve/gram-sieve.y: RFC3028 grammar.
2001-02-20 Alain Magloire
* mailbox/mailbox.c (mailbox_set_ticket): Those objects are now part
of the folder if a folder is attached to the mailbox.
(mailbox_set_authority: Likewise.
(mailbox_set_stream): Likewise.
* mailbox/mbx_imap.c (imap_message_read): If offset == 0, reset
the lines to 0.
(imap_body_read): Likewise.
2001-02-19 Alain Magloire
* mailbox/mbx_pop.c (pop_body_read): Move the CHECK_BUSY higher
it should be the first thing done. If the state is POP_NO_STATE
reset the offset and the size to 0 i.e we are starting fresh.
(pop_header_read): Likewise.
(pop_message_read): Likewise.
* mailbox/stream.c (stream_write): Don't call stream_flush().
2001-02-04 Alain Magloire
* mailbox/message.c (message_get_uid): Add message_get_uid() for
the UID of the message (IMAP definition) and message_get_uidl() for
the POP3 definition.
* mailbox/attachment.c: Indentation fixes.
* mailbox/file_stream.c: Make sure that the FILE* is close before opening.
* mailbox/folder_imap.c: Use strcasecmp() not strcmp().
* mailbox/mailbox.c: Added mailbox_uidnext() and mailbox_uidvalidity.
* mailbox/mapfile_stream.c: When munmap() failed we should check
against MAP_FAILED, not NULL.
* mailbox/mbx_imap.c: Implement imap_uidnext(), imap_uidvalidity()
imap_message_uid().
* mailbox/mbx_mbox.c: Implement mbox_uidnext(), mbox_uidvalidity()
mbox_message_uid().
* mailbox/mbx_mboxscan.c: Implement uidvalidity, it is save int the
header of the first message, "X-IMAPbase: 127673838 12", a la c-client.
Save UID, it is save in "X-UID".
* mailbox/mbx_pop.c: Implement pop_messages_recent(),
pop_message_unseen() and pop_uid().
* mailbox/trans_stream.c: Indentation fixes.
* include/mailutils/message.h: New prototypes message_get_uid(),
message_set_get_uid().
* include/mailutils/mailbox.h: New prototypes mailbox_uidnext(),
mailbox_uidvalidity().
* lib/snprintf.c lib/snprintf.h: Put it under the LGPL term.
* mailbox/imap4d/fetch.c: First draft implementation, very yucky.
* mailbox/imap4d/select.c: First draft implementation.
* mailbox/imap4d/util.c: Add util_msgset() and util_send().
Reuse of util_getcommand() for subcommands.
* mailbox/pop3d/uidl.c: API change the call is message_get_uidl()
to have UIDL POP3.
2001-02-03 Alain Magloire
* mailbox/mailbox.c mailbox/mbx_mbox.c mailbox/mbx_imap.c:
Implement mailbox_messages_recent() and mailbox_message_unseen(), this
time as define by the IMAP rfc.
2001-02-02 Alain Magloire
* mailbox/header.c: ENOENT was not return if the header was
not found.
* mailbox/mbx_mbox.c: When expunging check to see if the registar
the path_record too.
2001-02-02 Alain Magloire
* pop3d/extra.c (pop3_readline): Since the length of the string
is known, we can use memcpy() and friends for string manipulations.
memXXX() functions are builtin in GNU C (gcc) and are much faster
then the strXXX() counterparts. Small change in the loop to take
advantage of this.
* pop3d/quit.c: The rfc1939 insist that after a QUIT, we must
release any resources and close the connection:
"Whether the removal was successful or not, the server
then releases any exclusive-access lock on the maildrop
and closes the TCP connection." This was not done if error
occured while expunging, now we will close the connection and
notify the client of the error(ERR_FILE).
2001-02-01 Alain Magloire
"Premature Optimization Is The Root Of All Evil", Knuth.
* mailbox/attachment.c: Typo should be "Content-Disposition"
* mailbox/mbx_mbox.c mailbox/mbx_mboxscan.c mailbox/header.c:
Attempt to optimze the header, header_get_fvalue() is created,
The mailbox save/cache the most common headers, when doing a
header_get_value(), header_get_fvalue() is call first hoping
that the requested header was cache, if it fails we fall back
to the usual parsing. The common elected headers are : From,
To, Cc, Subject, Date, Content-Type, X-UIDL, X-UID.
* mailbox/mailbox.c mailbox/mbx_mbox.c mailbox/mbx_imap.c:
I've confuse the semantic of "unseen" and "recent", "unseen"
means new mail, not recent. Renamed mailbox_recent_count()
to mailbox_unseen_count().
* include/mailutils/mailbox.h: updated for mailbox_unseen_count()
2001-01-25 Alain Magloire
* frm/frm.c: Forget to add --summary option and fix return status.
When being very quiet just freopen(/dev/null, w, stdout).
2001-01-25 Alain Magloire
* pop3d/capa.c: Add UIDL in the capability list.
and update Copyrigth.
* pop3d/pop3d.c: Remove mbox_record register, only need path_record.
* pop3d/retr.c: When retrieve a message should be mark as read.
since we do not strip out the header "Status:".
* pop3d/top.c: Adjust stream_readline().
2001-01-25 Alain Magloire
While working on the new version of the API mailbox, Changelog was
discontinued, since the API could literaly change overnight a
maintenace of the entries were of a particular burden.
The API of the library, and some utilities like pop3d are
stable enough to restart normal entries.
* mailbox/*: New Api to access mailbox.
* include/mailutils: Public prototypes of the API.
* frm/frm.c frm/Makefile.am: A clone of elm frm utility.
* from/from.c from/Makefile.am: A utility to scan mailboxes.
* pop3d/* : GNU pop3d server.
2000-05-19 Sean 'Shaleh' Perry <shaleh@debian.org>
* libmailbox/mh.c: fleshed out mh_open() some more
2000-05-18 Sean 'Shaleh' Perry <shaleh@debian.org>
* libmailbox/mh.c: fleshed out mh_open() some more
2000-05-15 Sean 'Shaleh' Perry <shaleh@debian.org>
* libmailbox/*: ran some files thru emacs indent, I think I introduced
some oddness with vi
* libmailbox/mh.[ch]: new files, based on maildir
the mh work is very empty -- just mh_open right now
2000-04-19 Jeff Bailey <jbailey@nisa.net>
* configure.in: Test for limits.h and inttypes.h, add malloc
and realloc checks.
* m4/: New directory
* m4/Makefile.am: New file to support directory
* m4/malloc.m4: File to support lib/ directory
* m4/realloc.m4: File to support lib/ directory
* lib/Makefile.am: Distribute xalloc.h
* lib/xalloc.h: New file to support xmalloc.c
* lib/xmalloc.c: New version from sh-utils-2.0g
* autogen.sh: Look in m4 for extra macros
* doc/Makefile.am: Rearrange to quiet automake
2000-03-28 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* pop3d/pop3d.c (main): handle SIGPIPE
2000-01-19 Sean 'Shaleh' Perry
* mailbox/mbx_mh.c: some more code fleshing, still ugly
* README README-alpha: updates, corrected README to list mailbox as LGPL
2000-01-19 Sean 'Shaleh' Perry
* mailbox/mbx_mh.c: new file
no header, no error checking, no hable englais
* url/url_mh.[ch]: new files
url support for MH mailboxes
2000-01-17 Sean 'Shaleh' Perry
* examples/from.c: remove extraneous copyright notice
1999-12-15 Alain Magloire
* url/url_mbox.h url/url_pop.h url/url_imap.h url/url_mailto.h
New files.
1999-12-01 Alain Magloire
* url/_cpystr.c url/chewurl.c url/url.c url/url_imap.c
url/url_mailto.c url/url_mbox.c url/url_pop.c : New files,
first attempt to define the URL API.
* lib/Makefile.am: added xmalloc.c, xstrdup.c, xstrtol.{c,h}
* lib/xmalloc.c lib/xstrdup.c lib/xstrtol.c lib/xstrtol.h : New files
1999-11-21 Jeff Bailey
* doc/rfc*: Add. Standards followed should be included here.
1999-11-23 Jakob 'sparky' Kaivo
* TODO: Mention Maildir
* libmailbox/mailbox.c (mbox_init): new function
* libmailbox/maildir.h: new file
* libmailbox/maildir.c: new file
* libmailbox/mailbox.c (mbox_open): uncommented maildir_open attempt
1999-11-15 Jeff Bailey
* lib/ansi2knr.c lib/ansi2knr.h: Add
* configure.in: Add AM_C_PROTOTYPES
* libmailbox/Makefile.am: Add ansi2knr handling
1999-11-08 Sean 'Shaleh' Perry
* cleaned up some of the automake autoconf magic for non-Linux
1999-11-07 Sean 'Shaleh' Perry
* TODO: restructuring, now split into sections
* libmailbox/mailbox.c libmailbox/mailbox.h: added two new functions
to the api and began implementing them in unixmbox
is_updated() => has this mailbox been updated externally?
scan() => build info on mailbox, removing old data as needed
currently not implemented
1999-11-06 Sean 'Shaleh' Perry
* libmailbox/mailbox.c: more work on expunge
* libmailbox/mailbox.c: added a tester routine
* Makefile.am: added -g
1999-11-06 Sean 'Shaleh' Perry
* libmailbox/unixmbox.c: work on expunge
use read/write along with lseek still blows up -- getting there
* mail/mail.c: check return value of mbox_open()
1999-10-23 Alain Magloire
* ChangeLog: Cleanup according to GNU std, and remove
of email addresses. The emails should be AUTHORS or THANKS
so if they change no need to sed everything.
1999-10-11 Jeff Bailey
* libmailbox/Makefile.am: Remove no-install option, add -pedantic
1999-10-12 Sean 'Shaleh' Perry
* made sure that the imap4 was REALLY broken
1999-10-11 Jeff Bailey
* imap4d/Makefile.am: New file
* configure.in: Create imap4d/Makefile, and no install option
for library
* pop3d/Makefile.am: Add warnings, remove unneeded variable
* TODO: Update
* impa4rev1/: Rename to imap4d. (I asked first, really I did...)
* lib/Makefile.am: Update for new files
* lib/getline.c: New File
* lib/getline.h: New file
1999-10-11 Sean 'Shaleh' Perry
* added my imap code -- PLEASE DO NOT TOUCH
1999-10-10 Jeff Bailey
* THANKS: New file
* doc/mailutils.texi: New File
Provided by Alain Magloire <alainm@rcsm.ece.mcgill.ca> with some
changes so that Makeinfo reports no errors.
* doc/Makefile.am: New file
* configure.in: Deal with libsrc to lib rename
* pop3d/Makefile.am: Deal with libsrc to lib rename
* Makefile.am: Deal with libsrc to lib rename.
Add reference to doc/ subdirectory.
* libsrc/: Rename to lib/
1999-10-09 Sean 'Shaleh' Perry
* Made changelog.pl output in approved format -- I miss the time stamp
1999-10-09 Sean 'Shaleh' Perry
* added examples/gnu-pop3d.pam
1999-10-08 Jeff Bailey
* doc/: New directory
* pop3d/Makefile.am: Remove pam detection, now handled by configure
in the @AUTHLIBS@ spot.
* configure.in: Detect pam correctly/handle crypt case correctly
Add option: --disable-pam
* acconfig.h: New File
1999-10-08 Sean 'Shaleh' Perry
* added showmail.c to examples
* libmailbox: some minor code cleanups
1999-10-08 Sean 'Shaleh' Perry
* fixed the "if empty mailbox, return not implemented"
NB: seems there was a large assumption being made:
if unixmbox_open() failed, it was because it was not mbox
this was wrong for many reasons, so on actual "not mbox",
return EBADMSG.
Prolly want to come up with a better error, but this works for now
* more cleaning in the mailbox code
a) added stat() call -- we can bomb earlier, plus detect if
passed object is a directory or file
b) unixmbox_close() free()'s mbox. This will hamper the use
when we add support for more mailboxes later. Need to find
a solution. Perhaps a unixmbox_free() call.
There was also a small leak there -- mbox->name was being left.
c) To aid checking in unixbox_open(), added checks around fgets call.
Now properly detects EOF, errors, etc. This was a large cause of the
spurious "not implemented" bug.
d) all of unixmbox_open()'s function calls should now be checked
NB: need to do the same for rest of file
1999-10-07 Sean 'Shaleh' Perry
* removed spurious code in from.c
* added TODO file
1999-10-07 Jeff Bailey
* Makefile.am: Compile libsrc/ first.
* pop3d/Makefile.am: Link properly with crypt and libmailutils.a
from libsrc/
* libsrc/Makefile.am: Produce one library for all functions.
Do not use libtool for this library, it will never be shared.
* configure.in: Remove AM_MAINTAINER_MODE. Export crypt detection
to Makefiles
1999-10-07 Sean 'Shaleh' Perry
* included my read_a_line() in examples/
1999-10-06 Sean 'Shaleh' Perry
* Cleanup some compilation issues
* changed "w+" to "w" in called to pop3_mainloop():ofile = fdopen()
why was it called with w+? It is only ever used for writing.
* catch EINTR in call to accept() (play nice w/ our UNIX friends)
* set SO_REUSEADDR on daemon's socket
1999-10-05 Sean 'Shaleh' Perry
* Added changelog.pl so we can have automated entries
set CVS_EMAIL=me@here.com and CVS_FULLNAME="Joe Blow"
usage: changelog.pl "added signal.c" or changelog.pl, an editor will
then appear (uses $VISUAL and $EDITOR)
the format is controlled simply via the format call at the end
and the section of perl code directly above it
1999-10-05 Sean 'Shaleh' Perry
* added pop3d/signal.c -- contains pop3_sigchld() currently
1999-10-05 Sean 'Shaleh' Perry
* initial fork() rewrite, not even compiled it yet
1999-10-04 Sean 'Shaleh' Perry
* changed lock(int mode) to lock(mailbox_lock_t mode), this will allow
the type to be chnaged later without affecting code compatibility
* added name to AUTHORS
* noticed mention of IMAP4 server and went back to coding it (-:
1999-10-03 Jeff Bailey
* mail/mail.c: Support --help, --version.
* mail/Makefile.am: Add -Wall to compile line.
* libmailbox/Makefile.am: Add -Wall to compile line.
* libmailbox/mailbox.c: Warning cleanup, second parameter of lock
should be unsigned int, not int.
* libmailbox/mailbox.h: ""
* libmailbox/unixmbox.h: ""
* libmailbox/unixmbox.c: ""
* AUTHORS: Include my name. =)
* README: Rewrite for public consumption
* README-alpha: New file, add mailing list address, CVS information.
* libmailbox/unixmbox.c: Include config.h if defined
* libmailbox/mailbox.c: Include config.h if defined
* mail/mail.c: Include config.h if defined, update copyright.
1999-10-01 Sean 'Shaleh' Perry
* added an examples directory and the first example, from.c
1999-10-01 Jakob 'sparky' Kaivo
* libmailbox/*.[ch]: added cleanup patches from Shaleh while he works
on getting CVS access
1999-09-22 Jakob 'sparky' Kaivo
* mail/mail.c (main): added 'f' and 'F' to test mbox_header_line
* pop3d/apop.c (pop3_apop): cleanup, partial rewrite for libmailbox
* pop3d/retr.c (pop3_retr): fixed a potential segfault
* pop3d/user.c (pop3_user): cleanup and use mbox_lock
* libmailbox/mailbox.c (mbox_header_line): new function
(mbox_body_lines): new function
* mail/Makefile.am (mail_DEPENDENCIES): added libmailbox.la
* pop3d/top.c (pop3_top): made it work with libmailbox
* libmailbox/unixmbox.c (unixmbox_open): added check to see if it's
actually an mbox file
(unixmbox_open): Set mbox->_lock to unixmbox_lock
(unixmbox_lock): new function
* libmailbox/unixmbox.h: Added prototype for locking
* libmailbox/mailbox.c: Add dummy initializer for locking
* libmailbox/mailbox.h: Added interface for locking
Added interfaces for mbox_header_line and mbox_body_lines
* pop3d/*.[ch]: changed copyright info to FSF
* libmailbox/*.[ch]: added copyright/licensing info
1999-09-21 Jakob 'sparky' Kaivo
* pop3d/Makefile.am (pop3d_LDADD): add $(AUTHLIBS)
* configure.in: Added libsrc/Makefile to AC_OUTPUT (duh, Jake!)
fixed the PAM and crypt checks
* README: actually put something here, noted necessary tools to build
from CVS
1999-09-14 Jakob 'sparky' Kaivo
* pop3d/pop3d.c (main): moved setgid() call to after option parsing
(main): make --version report PACKAGE and VERSION
* libmailbox/mailbox.c (mbox_open): changed paramater type to const
* pop3d/Makefile.am (INCLUDES): change relative directories to
top_srcdir base
* configure.in: Added checks for PAM and crypt
1999-09-13 Jakob 'sparky' Kaivo
* pop3d/retr.c (pop3_retr): fixed calls mbox_header => mbox_get_header
and mbox_body => mbox_get_body
* pop3d/user.c (pop3_user): removed references to mailbox variable
* pop3d/stat.c (pop3_stat): fixed mbox->is_deleted => mbox_is_deleted
* pop3d/pop3d.c (pop3_mainloop): removed reference to lockfile variable
* pop3d/extra.c (pop3_abquit): change fclose(mbox) to mbox_close(mbox)
removed calls to free(messages) and pop3_unlock()
* pop3d/dele.c (pop3_dele): fixed call to mbox_delete()
* Makefile.am (SUBDIRS): added pop3d and libsrc
* configure.in: Added checks needed for pop3d/*
made it work with libtool
* libsrc/*: imported from gnu-pop3d tree
* pop3d/*: imported from gnu-pop3d tree
1999-09-11 Jeff Bailey
* libmailbox/unixmbox.h: Do not prefix config.h defines with _
1999-09-10 Jeff Bailey
* */*: Accomidate directory rearrange