File: ChangeLog

package info (click to toggle)
zmailer 2.99.55-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 19,516 kB
  • ctags: 9,694
  • sloc: ansic: 120,953; sh: 3,862; makefile: 3,166; perl: 2,695; python: 115; awk: 22
file content (10889 lines) | stat: -rw-r--r-- 405,755 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
2001-02-21  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* Makefile.in:
	    Version 2.99.55  (the real release!)

	* router/functions.c:
	    At  $(listaddresses ..) and $(listexpand ..)  functions,
	    removed the "%1@.." type substitutions with '-l' option.
	    See the comment about '-%' at 'relation' function below.
	
2001-02-20  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* scheduler/agenda.c, scheduler/scheduler.c, scheduler/mq2.c,
	  smtpserver/smtpetrn.c:
	    Report the ETRN information with contactee's IP address, and
	    timestamp when writing it into the scheduler's log.

	* proto/newdbprocessor.in, proto/db/dbases.conf, man/router.8,
	  proto/cf/fqdnalias.cf, router/db.c, router/functions.c:
	    Add '-%' option to the 'relation' routine to control, when
	    looked up data contained '%0' thru '%9' may get substituted.

	* proto/Makefile.in:
	    Remove at 'distclean' files which are autoconf generated.

2001-02-19  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/getmxrr.c:
	    Format printing of '%s' with NULL argument -> NULL referral -> ...

	* scheduler/mailq.c:
	    When doing some slow  'mailq -vv', and using MAILQv2, do
	    query all data out of the scheduler before poking into
	    the files (which may be a lot).  Limit the time of inter-
	    action with the scheduler to the minumum.

2001-02-16  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* scheduler/readconfig.c:
	    One-off bug in ${ZENV} substitution code.

	* configure.in:
	    Derive  ZCONFIG  (formely defaulted to  /etc/zmailer.conf)
	    from  --prefix  !  The same way as --prefix derives $MAILSHARE.
	    Officially zmailer.conf's new location *is* $MAILSHARE.

2001-02-15  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* proto/cf/fqdnaliases.cf:
	    Moved the local-part (user) extraction up a bit so that
	    it can be given to the listaddresses as expansion parameter.

	* router/functions.c:
	    At  $(listaddresses ..) and $(listexpand ..)  functions,
	    support "%1@.." type substitutions with '-l' option.
	    I am now considering this *wrong* approach, and am doing
	    more sendmailish approach to %N substitutions.

	* router/functions.c, router/db.c, router/libsh/search.h:
	    Support up to 8-9 additional substitution options at the
	    database lookups.  At the moment is lacking the actual %N
	    substitution code!  WORK IN PROGRESS!

	* scheduler/mailq.c:
	    a bit of comments & one missing newline on error printouts.

2001-02-14  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* router/router.c:
	    Cut down logging/log printing a bit -- duplicated data
	    actually.

2001-02-13  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* proto/scheduler.conf.in, scheduler/readconfig.c:
	    Allow ${ZENV} substitutions in PARAM lines.
	    ("PARAMauthfile" and "PARAMmailqsock", to be exact.)

	* smtpserver/policytest.c:
	    Do Test-Rcpt-DNS-RBL also based on FULL userid lookup.
	    Allows some users to want the lookup, others not.

	* proto/cf/SMTP.cf.in, proto/cf/SMTP+UUCP.cf.in:
	    Search for the 'mail.conf' from  $MAILSHARE/mail.conf,
	    and not from  /etc/.

2001-02-08  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* router/functions.c:
	    At  $(filepriv ...)  function, when the call supplies
	    file userid, do presume valid REGULAR file.  This is true
	    for several databases which produce privilege controlling
	    results.

	* proto/cf/canon.cf, proto/cf/rrouter.cf:
	    More issues at DECNET-IV type address analysis.
	    Now we support a bit of being DECNET-IV gateway, although
	    we propably need to rewrite headers major way to be able to
	    route to and from DECNET-IV domains.

	* smtpserver/Makefile.in:
	    Do refer to wantconn.o file in the OBJS macro, it needs to
	    be compiled in case it is wanted to be used...

2001-02-01  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* man/mailbox.8, transports/mailbox/mailbox.c:
	    Add two more environment variables to pre-existing
	    ones at the mailbox driven subprocesses:
	    - MSGSPOOLID=<ZMailer-internal-spoolfile-id>
	    - MESSAGEID=<somebody-supplied-string>
	    These were created when I had a need, of course..
	    Pipe driven application should be able to syslog(3)
	    meaningfully what was the message disposition.
	    (Majordomo in my case ;) )

2001-01-31  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* configure.in, acconfig.h:
	    - --with-routeruser-is-abnormal  option
	    - detect possible pre-existing ROUTERUSER_IN_ABNORMAL_UNIX
	      value in zmailer.conf file
	    - in case of wanting to use tcp-wrappers, do analyze if it
	      needs adding -lnsl library in addition to -lwrap -- some
	      unfortunate systems (RedHat 6.2-7.0) compile the bloody
	      wrapper library with one NIS call, and the ZMailer does not
	      use NIS libraries for anything (except if router wants..)

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/smtpdata.c:
	     Arm the alarm(2) just before call to read(), and re-arm
	     it right after return from it.  This *may* cut down the
	     number of alarm(2) calls a bit.
	
	* smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/wantconn.c, scheduler/transport.c, scheduler/wantconn.c:
	    #ifdef  USE_TCPWRAPPER   in addition to  #ifdef HAVE_TCPD_H

2001-01-30  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* libresolv/gethnamaddr.c:
	    Silence the code in several occasions.
	    Getting SIG data is *not* a problem, it *does* happen.

	* smtpserver/smtpserver.c:
	    Clean "RSET" response from "250 2.0.0 2.0.0 Reset processed.."
	    to one with: "250 2.0.0 Reset processed.."

2001-01-25  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c:
	    Change all instances of  getaddrinfo()  parameters of
	    service name "smtp" to port-number "0".  Give also
	    some detail on what the getaddrinfo() diagnostics gave.

	* router/functions.c:
	    - In  $(listaddresses ..)  and  $(listexpand ..)  functions,
	      explicitely support receiving lines with '#'- starting them
	      (comments, you see).  Also when found no addresses, explicitely
	      do mention A) what EUID the expansion was running, and B) that
	      user should check the file/directory protections of the original
	      file.
	    - Also, the $(filepriv ...)  function will from now on allow wider
	      opening privileges in some cases -- if residence directory does
	      not have X-bits in group and/or world, then related bits in the
	      file are not checked -- i.e. if the directory is not world-
	      accessible, it is irrelevant if file has w-bit in world set.

	* proto/cf/SMTP+UUCP.cf.in, proto/cf/SMTP.cf.in:
	    Couple of fixes, and code rearrangements into the sample boiler
	    plate.

	* transports/smtp/getmxrr.c:
	    Play a bit more with  rmsgappend()  calls here.
	    Specifically report if  getaddrinfo()  calls report
	    some diagnostics!

2001-01-24  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* lib/selfaddrs.c, transports/smtp/smtp.c:
	    If resolver support option flag  RES_USE_INET6, but
	    system doesn't support IPv6 socket, clear that flag.

	* libresolv/gethnamaddr.c, libresolv/netdb.h:
	    When using   --with-bundled-libresolv  silense things a bit
	    as one particular #define may be set before calling this.
	    Also, do explicitely at first lookup /etc/hosts file for
	    host, only then do resolver lookups.

2001-01-22  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* include/libz.h, include/mailer.h, compat/sendmail/sendmail.c,
	  lib/nobody.c, lib/pwdgrp.c, lib/trusted.c, router/functions.c,
	  router/router.c, scheduler/readconfig.c, smtpserver/zpwmatch.c,
	  transports/hold/hold.c, transports/mailbox/fmtmbox.c,
	  transports/mailbox/mailbox.c, transports/mailbox/mboxpath.c,
	  transports/smtp/smtp.c, transports/smtp/smtp.h,
	  utils/vacation/Makefile.in, utils/vacation/vacation.c:
	    Use  zgetpwnam()  everywhere where there used to be   getpwnam(),
	    supply also our very own   struct Zpasswd   for the data referral.
	    Library  lib/pwdgrp.c  is the location of the wrapper function
	    which intention is to clarify error handling of various
	    systems -- getpwnam() returning NULL may mean many things,
	    and interpreting  errno  is -- challenging.

	* libsh/builtin.c, libsh/interpret.c, libsh/variables.c,
	  proto/cf/SMTP+UUCP.cf.in, proto/cf/SMTP.cf.in,
	  proto/cf/aliases-new.cf, proto/cf/aliases.cf, proto/cf/consist.cf,
	  proto/cf/fuzzy-aliases.cf, proto/cf/process.cf, proto/cf/rrouter.cf,
	  proto/cf/server.cf, proto/cf/standard.cf, README.UPGRADING:
	    Change internal variable expantion to never do IFS tokenisation
	    at expanded strings.  Supply  $(ifssplit ...)  function in case
	    it is needed for something, and just token-lists don't make it.
	    Write some definite words on README.UPGRADING !

2001-01-22  Eugene Crosser <crosser@online.ru>

	* transports/libta/mimeheaders.c:
	    Sometimes quoted string (to de stripped) is really not,
	    and we must be carefull to do it only with a string of
	    minimum length of 3.

2001-01-22  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c:
	    When the reply collection goes to timeout ( smtp_sync() ),
	    CLOSE the smtp-connection.  Also do rmsgappend() a report,
	    that reply collection went into timeout..

2001-01-16  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/hold/hold.c:
	    Do same processing here as at router/functions.c.

	* router/functions.c:
	    Condition "no such user" can be signaled with   getpwnam()
	    yielding NULL and errno == 0.  Not only   errno == ENOENT.

	* lib/dbpwdgrp.c, lib/nobody.c, lib/pwdgrp.c, lib/trusted.c,
	  router/daemonsub.c, router/functions.c, router/router.c,
	  transports/mailbox/mailbox.c:
	    Essentially in front of *every*  getpwnam(),  do place
	    explicite clear of   errno  variable.
	    Apparently at Solaris 2.6 it isn't cleared/set quite always
	    when doing error paths...

2001-01-15  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/mailbox/mailbox.c:
	    Typo -- mmfd_mode which should be  mmdf_mode ...

	* transports/libta/diagnostic.c:
	    #include <errno.h> -- apparently cc at Solaris 2.6
	    didn't like it without :-/

	* smtpserver/smtpserver.h, smtpserver/cfgread.c:
	    More Sol26/SunSoft CC things.

	* lib/rfc822scan.c:
	    Recognize  "HOST::USER"@decnet-IV.gw  syntax,
	    and don't ever unquote it.  We don't support
	    being the DECNET-IV gateway ourselves.

	* proto/zmailer.sh.in:
	    If  dbases.conf  is not in use, and we execute
	    'zmailer newdb', do 'newdb' the $MAILSHARE/db/mboxmap
	    also.

2000-12-31  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/mailbox/mailbox.c:
	    At normal success path, do proper  fsync(2)  return
	    status analysis - if the filesystem where the write
	    goes to is ever truly asynchronous, the only way to
	    know if it runs out of diskspace, or whatever is after
	    the return of fsync(2).

	* libc/mail.c, libc/sfmail.c, scheduler/msgerror.c,
	  router/rfc822.c, transports/libta/diagnostic.c:
	    More of carefull  fsync(2)  calls.

	* transports/mailbox/mailbox.c, smtpserver/smtpcmds.c,
	  transports/libta/diagnostic.c:
	    Also carefull wrappers for  ftruncate(2)  calls.

2000-12-30  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/libta/mimeheaders.c:
	    Survive bad control characters in input.

	* proto/cf/aliases.cf:
	    Sender address rewrite function to yield full
	    "$user$plustail$domain" - incoming quad arrives
	    without domain part.

	* router/rfc822.c
	    When in 'trace sequencer', do debug print call
	    parameters to $(crossbar ...) before the call.

	* scheduler/readconfig.c, scheduler/transport.c:
	    setpriority() syscall autoconfig things

	* smtpserver/smtpdata.c:
	    "BDAT 0 LAST" is valid thing!

2000-12-14  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* smtpserver/smtpdata.c:
	    "BDAT 0 LAST" is valid per explicite example at RFC 3030.
	    It is also valid per syntax, but not quite so by mere
	    engineering thought...
	
2000-12-04  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/libta/mimeheaders.c:
	    ElectricFence is your friend!  Writing over
	    the end of the allocated array by on element :-/

2000-12-02  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c:
	    Don't soften reception of RCPT TO if MAIL FROM gave
	    500 series code -- there was some reason for this...

	* transports/libta/tasyslog.c:
	    Report correctly if we have detected MULTIPART(QP).

	* lib/selfaddrs.c:
	    Something odd at Solaris -- none of supported functions
	    got called ??? -- realloc() bug :-(

	* All over the place;
	    Changeing  getzenv()'s  return value to 'const char *'
	    caused all kinds of nuisance warnings to sprout...

	* All over the place; (Makefile.in):
	    More "make -j N" work.

2000-12-01  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* lib/linebuffer.c, lib/selfaddrs.c, router/daemonsub.c,
	  scheduler/scheduler.c:
	    Changed some code doing
	    	if (!ptr) ptr = malloc(..); else ptr = realloc(ptr,..);
	    into
	    	ptr = realloc(ptr,...)
	    after wanting to simplyfy one part of code and reading man-page..

	* Makefile.in, libident/Makefile.in, libs/Makefile.in,
	  libsh/Makefile.in, router/Makefile.in, router/libdb/Makefile.in,
	  sfio/Makefile.in, sfio/src/lib/sfio/makefile.in,
	  sfio/src/lib/sfio/Stdio_b/Makefile.in, smtpserver/Makefile.in,
	  sfio/src/lib/sfio/Stdio_b/sfstdhdr.sh:
	    Tried to "make -j 20" and learned things about parallellism...
	    Things really aren't correct yet, and at least sfio may end
	    up being compiled some N-4 times in parallel...

	* transports/smtp/smtp.c:
	    Modify some loops - removed unnecessary state free()er code
	    from within the  smtp_sync()  -- with a theory that the
	    pipecmds[] array goes boinkers somewhen...

2000-11-30  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/libta/mimeheaders.c, transports/mailbox/mailbox.c,
	  transports/smtp/smtp.c, include/ta.h:
	    Content-Type Parser had reversed pointers -- oops
	    Changed parsers (multiple) parameters from (char **) to (char *)

	* transports/libta/mimeheaders.c:
	    RFC822 ATOM skipping didn't.. (single-char atoms)

	* transports/libta/swriteheaders.c, transports/libta/fwriteheaders.c:
	    Reusing variable caused wrong content at the pointer, and rare
	    SIGSEGVs lurking ...

2000-11-24  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/libta/mimeheaders.c:
	    Simplify!  More of the simplification of code.

	* transports/libta/ctlopen.c:
	    add a bit to an allocation -- not that it really
	    should matter, but ...
	
	* transports/smtp/smtp.c:
	    sprinkled  smtp_flush() around places while hunting one
	    nasty memory corruption.

	* transports/libta/swriteheaders.c, transports/libta/fwriteheaders.c:
	    Some leftover counter adjustments in places where it now harmed...

	* transports/smtp/smtp.c:
	    Debugging most peculiar problems - propably at swriteheader.c
	    Showing at the verbose log the WRITTEN headers.

	* transports/smtp/smtp.c:
	    A bit different handling on pipelined response collection.
	    If MAIL FROM yields an error, report it, never mind what socket
	    read did latter..

	* transports/libta/mimeheaders.c:
	    Simplify!  Don't try to be smart when playing with malloced
	    buffers -- it doesn't pay, quite contrary...  Found a number
	    of cases where a buffer got reallocated, but a pointer into
	    it wasn't adjusted into the new area.

	* transports/libta/swriteheaders.c, transports/libta/fwriteheaders.c:
	    Changed the code from "scan the input to determine future
	    space needs" to "(re)expand as more space is needed" to
	    make sure there is no discrepancy in between the two.

2000-11-23  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c:
	    Few hours of going over the  smtp_sync()'s smtp_nbread()
	    call, and its surroundings.  Iverted its logic, and finally
	    got simple, clean, understandable code.  ("I smell Wumpus!")

	* scheduler/mailq.c:
	    Wondered that "mailq -vv" didn't show diagnostic messages
	    along other data.  Now it does.  Plus other small tuneups
	    of the result.

	* transports/smtp/smtp.c:
	    A bit more of care on referencing 'logfile' variable.
	    Not using uninitialized one.

	* transports/mailbox/mailbox.c:
	    A trivialish  return-receipt-to  processing fixup at
	    the mailbox so that the user-supplied string is unfolded
	    into single line with spaces in places of folds (newlines).
	    (Proper fix is FULL RFC 822 scanner to pick the recipient
	     address, but perhaps not...)

	* transports/smtp/smtp.c:
	    Blocking read waiting was done with busy-loop, and
	    if the connection *stays* in ESTABLISHED state, but
	    never timeouts --> busy spin goes on, and on...

	* scheduler/msgerror.c:
	    Don't try to be clever with cfp->mid field reuse at
	    the slurp()ed instance -- use incoming 'cfpi->mid'.

2000-11-21  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c:
	    Meaningless variable name changes (and some revoked changes
	    which got committed into CVS - and now removed.)

	* transports/libta/fwriteheaders.c, transports/libta/swriteheaders.c:
	    One subtle bug in BDAT buffering mode left in line-ending
	    newline handling --> surprising crashes seen.

	* transports/libta/mimeheaders.c:
	    Reserve a bit more space for coalesced mime-headers
	    (of "totlen" type).

	* transports/smtp/appendlet.c:
	    Outch! Messages without Content-Type: header did SIGSEGV!

	* lib/selfaddrs.c:
	    there is no field called ifr_ifindex, there is: ifr_index
	    -- returned to previous: memset(ptr, 0, size)
	    -- because Linux glibc 2.1+ has ifr_ifindex, solaris has ifr_index
	    (barf...)

2000-11-19  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* man/smtpserver.8, smtpserver/policytest.c:
	    Lowercasify the lookup key for alias item lookups,
	    and fill in the doc/guides/smtp-policy header into
	    the manual page of the smtpserver.

2000-11-17  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* scheduler/threads.c, scheduler/mailq.c:
	    Some experiments of making the  mailq-v2  mode mailq
	    to show same things as the old version was able with
	    'verbose' mode turned on.

	* **/Makefile.in:
	    Changes on what we refer at LIBDEB= definitions.

	* transports/libta/mimeheaders.c:
	    - Missing initialization of one buffer -> result is
	      memory scrible and utter chaos..
	    - Wondering of X-Warning: writer does something fishy,
	      as the Received: header generated by the site where
	      that writer is used does not appear in the message..

	* proto/scheduler.conf.in, proto/db/routes:
	    Define channel   smtp-log  which (obviously) logs
	    the SMTP protocol into log-file.  See "-l" option
	    at  smtp(8) man-page.

2000-11-16  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* configure.in:
	    Some reworking around NDBM tests -- we *MAY* have
	    problems when <ndbm.h> is actually from BSD DB 1.85.
	    Specifically in OpenBSD 2.7, several other BSDs as well.

	* transports/smtp/getmxrr.c, scheduler/mailq.c,
	  libc/myhostname.c:
	    BSD  getaddrinfo()  call returns ai_canonname member as NULL
	    in very common cases!  Uargh :-(

	* lib/Makefile.in:
	    At  'make selfaddrs-test', do use autoconfigured @LIBRESOLV@
	    library reference.

2000-11-14  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* lib/selfaddrs.c, lib/zgetifaddress.c:
	    Fix the support for FreeBSD 4.2*/OpenBSD 2.7* featured
	    getifaddrs() function.

	* Makefile.in:
	    Mark version "2.99.55-pre1cvs" (which means nothing much)

	* include/ta.h, transports/libta/fwriteheaders.c,
	  transports/libta/swriteheaders.c, transports/libta/markoff.c,
	  transports/libta/mime2headers.c, transports/libta/mimeheaders.c,
	  transports/libta/stringlib.c, transports/smtp/appendlet.c,
	  transports/smtp/smtp.c, transports/smtp/smtp.h:
	    Initial steps towards doing proper format downgrade
	    during (SMTP) transport.
	    - Modified header handling to process folded lines as single
	      string, not as a sequence of strings.
	    - Wrote proper RFC822/MIME token scanner into  mimeheaders.c
	      which is able to correctly skip over places where (folded)LWSP
	      is allowed, including possible (comments) in them.

2000-11-12  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* CVS tagged this as Version zmailer-2-99-54-patch1
	  Made also CVS based diff against 2.99.54.

	* lib/selfaddrs.c:
	    Learned something about the SIOCGIFFLAGS/SIOCGLIFFLAGS
	    ioctl parameters, and what is necessary for initializing
	    its call.

	* transports/smtp/smtp.c:
	    Some oddball moments don't fail properly after response
	    timeout during certain critical periods -- mainly of DATA/RSET.
	    Doing   smtpclose()  where we used to RSET  right after
	    DATA has been sent, and response to it has been waited
	    for way too long..

2000-11-02  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c:
	    Turn the listening sockets into NON-BLOCKING mode,
	    and once connection is accept(2)ed, turn the communication
	    socket into blocking mode.

	* transports/smtp/getmxrr.c:
	    Randomish bounces seen at  vger.kernel.org  for domains
	    which have non-functional DNS servers (likely due to
	    network failure, or some such.)  Symptom seems to
	    indicate NXDOMAIN DNS query reply status, but the
	    darn thing happens *rarely*...
	    ... I am not sure this change is a smart thing to do,
	    ... and latter on I removed this change.
	    It looks like getting NXDOMAIN is trouble at whatever
	    system happens to be the DNS server, and we are better
	    off when we don't trouble ourselves too much with
	    circumventations at the resolver code for it.

2000-10-31  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c:
	    Move the  notarystatsave()  function call up so that it will
	    always be called for all collected replies.  Formelly there
	    were cases where it didn't get called, which caused somewhat
	    weird looking results when the TA program switched to alternate
	    destination domain.

	* libc/getaddrinfo.c:
	    Disable entirely the AF_LOCAL support.
	    The code in question used tmpnam() which created some complaints
	    from the recent linker/libc at RH 6.2/7.0 hybride system.

	* configure.in, proto/smtpserver.conf(.in):
	    Turns out that "make install" when working in "adjacent
	    directory" setup doesn't pick correctly the smtpserver.conf
	    for the installation.  Returning to generated smtpserver.conf
	    file, although strictly speaking that is not needed.

	* proto/db/dbases.conf, utils/policy-builder.sh.in,
	  proto/newdbprocessor.in:
	    Spotted a few mistakes at the perl scripts of newdbprocessor.
	    With a hindsight -- me stupid...
	    Spotted also missing "-d pathalias" at "routesdb" specification.
	    And some awk cleanups at policy-builder as well, of course.

	* packaging/solaris/README:
	    Some additional comments on usage of this tool subset.

2000-10-24  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* proto/cf/rrouter.cf, proto/cf/canon.cf:
	    Support magic trick:
		@[CHANNELNAME]:user@domain
	    in such a manner as to produce
		(((CHANNELNAME domain user@domain ATTRIBUTES)))
	    routing result

2000-10-23  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/smtp.c, utils/mxerify/mxverify-cgi.c:
	    For IPv4 addresses, verify that our connect(2)
	    destination is of valid IPv4 network (first octect
	    is in range of 1..223), at mxverify exclude loopback.

	* transports/smtp/Makefile.in:
	    Add into "make install" installation of $MAILBIN/getmxrr-test
	    so that it will be available at all installations...

	* utils/mxverify/mxverify-cgi.c:
	    Small text changes.

	* transports/smtp/smtp.c:
	    Noticed a few places where we need to reset the
	    "SS->rcptstates" variable.

2000-10-20  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* proto/Makefile.in, packaging/Makefile.in:
	    'make install' will install also 'doc/guides/*' files
	    into $MAILSHARE/guides/  -- there seems to be call for
	    those files from some users...  In other environs,
	    like Linux distributions, there could be some sort
	    of  /usr/share/doc/zmailer-NNN/guides/ for them.

	* doc/guides/smtp-policy, utils/policy-builder.sh.in:
	    Defined ".manual" versions for ".mx", and ".relay"
	    of  smtp-policy driver files.  This enables more
	    wide-spread automated data fill-in, plus local
	    ".manual overrides".

2000-10-17  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/libta/ctlopen.c:
	    Return NULL, not 'void' in certain silence case.

	* transports/libta/diagnostic.c:
	    Try not to do so verbose diagnostic report over
	    syslog as via TA->scheduler channel.

	* smtpserver/smtpdata.c:
	    Parse possible "contentpolicy" analysis report, and present
	    it (in several cases) to the user.

	* smtpserver/smtphelp.c:
	    Small fixes for help presentation, and parameter recognition.

2000-10-16  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* smtpserver/smtpdata.c, smtpserver/smtphelp.c, smtpserver/smtptls.c,
	  smtpserver/smtpserver.c:
	    Rethought of things, killed the Z_printf() abomination.
	    Also fixed inadverent NULL referral which Eugene Crosser
	    found as well.  (It blocked my incoming email :-( )

	* man/smtpserver.8, smtpserver/contentfilter.c, smtpserver/smtpdata.c:
	    Improved documentation of the CONTENTFILTER INTERFACE
	    ( = wrote it ), and modified a bit of the interface itself.

	* configure.in, proto/smtpserver.conf, smtpserver/cfgread.c,
	  man/smtpserver.8, proto/Makefile.in, 
	    Allow $ZENV expansions in smtpserver's configuration.
	    Thus allow simpler moving of the thing to other location
	    without needing to edit anything but  zmailer.conf  file..
	    Also removed  smtpserver.conf  from autoconfigured protofiles.

	* scheduler/readconfig.c, smtpserver/cfgread.c, transports/sm/sm.c,
	  transports/mailbox/mailbox.c, transports/smtp/smtptls.c, 
	    Changed all instances of macro-in-macro style CPP things
	    of 'SKIPWHILE(testfunction,varname)' to be appropriate
	    'SKIPSPACE(varname)' and 'SKIPTEXT(varname)'.
	    (RedHat 7.0 gcc version does not work correctly with those..)

	* smtpserver/policytest.c, smtpserver/rfc821scn.c,
	  smtpserver/smtpcmds.c, smtpserver/smtpdata.c, smtpserver/smtpetrn.c,
	  smtpserver/smtpserver.c, smtpserver/smtpserver.h,
	  smtpserver/smtphelp.c, smtpserver/mxverify.c:
	    Aimed for some coherence at debug mode printouts/flushes
	    in some cases.  Mainly the problem is that at the policytest.c,
	    and at the mxverify.c the debug output goes to stdout via
	    printf(), while elsewere it goes via type() to SFIO attached
	    to the connection.    TO BE ACCURATE, AS THINGS ARE NOW IS
	    NOT SUITABLE FOR DEBUGGING E.G. SSL WRAPPED SESSIONS!

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/cfgread.c, smtpserver/smtptls.c:
	    - Have new runtime flag (-t) telling that this is a session
	      running immediately under TLS (port tcp/465, "ssmtp"), which
	      feature predates STARTTLS facility.
	    - Have parallel listen socket for two different services;
	      namely plain 'smtp', and 'ssl/smtp')

	* scheduler/mq2auth.c, scheduler/msgerror.c, scheduler/readconfig.c,
	  include/libz.h, lib/cfgets.c, smtpserver/cfgread.c,
	  transports/errormail/errormail.c, transports/mailbox/mailbox.c,
	  transports/sm/sm.c, transports/smtp/appendlet.c:
	    Renamed that function to be   csfgets()  -- after I myself
	    got confused about its calling convention...
	    (That is: FILE * or Sfio_t * thing..)

2000-10-13  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* sfio/src/lib/sfio/makefile.in, sfio/src/lib/sfio/Stdio_b/Makefile.in:
	    Noticed an omission in cross-directory compilations.
	    Sometimes 'iffe' would fail when directory 'FEATURES' didn't
	    exist at the running position.  Oops.

2000-10-12  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* utils/makedb/dbdump.c:
	    New option:  -policydump   which decodes the policy
	    binary set into a text.

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c, man/smtpserver.8,
	  smtpserver/cfgread.c, smtpserver/smtphelp.c, smtpserver/smtpcmds.c,
	  smtpserver/smtpdata.c:
	    Implemented experimental LMTP (RFC 2033) support, this is *not*
	    for real LMTP use, merely for debugging LMTP clients.

	* transports/smtp/smtp.c, transports/smtp/smtp.h,
	  proto/scheduler.conf.in:
	    Completed the LMTP (-M) mode, tested it quite a bit with
	    and without remote speaking PIPELINING. Can support even
	    remotes announcing STARTTLS capability in the LMTP port.
	    Removed duplicate remote response analysis code from
	    synchronous (non pipelined) code path, now using only
	    the  smtp_sync()  to collect replies.

	    Supplied sample "smtp-lmtp/*" configuration for use. 

	* proto/zmailer.sh.in:
	    Do cd to $POSTOFFICE  when starting smtpserver.
	    Dropping cores to system root is not polite..

	* man/sendmail.8, man/zmsh.1:
	    Changed <mea@utu.fi> to <mea@nic.funet.fi>

	* man/smtp.8:
	    Mention RFC 2033 and LMTP at the RFC list in the end.

	* man/scheduler.8, scheduler/mq2auth.c, proto/scheduler.auth.in:
	    Allow multiple instances of same userid by scanning the address
	    ACLs at each UID.  Thus nobody@localhost can get different
	    level of access from nobody@elsewere.

2000-10-10  Ambrose Li <acli@mingpaoxpress.com>

	* utils/vacation/vacation.c:
	    Removed some duplicate code, and detect autoreplies whose
	    source address is:  <>

2000-10-10  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* lib/Makefile.in:
	    "make install" did put zmailer.h into  $prefix/$prefix/include/,
	    which is "somewhat" wrong...

	* man/smtp.8, transports/smtp/smtp.c, transports/smtp/smtp.h:
	    Implemented LMTP (RCF 2033) at the smtp TA program.
	    To enable LMTP, use option '-M'.

	* scheduler/mq2.c:
	    When reporting "unknown" command, do tell things differently:
	      "Unknown command, or refused by access control;" ...

	* smtpserver/mxverify.c:
	    Fix the IPv6 nybble-reverse code to do proper in6 type reverser,
	    although an alternate (binary labels) is defined these days...

	* transports/libta/ctlopen.c:
	    See if the message to be opened is an ETRN request -- if yes,
	    just return with failure...  (manual-expirer triggers this.)

	* transports/libta/mimeheaders.c:
	    While parsing for Content-Type: parameters, allow LWSP in same
	    lines.  Full specification really calls for RFC 822 tokens along
	    with CWSP and commend handling.

	* transports/mailbox/mailbox.c:
	    Separates "From MAILER-DAEMON " from "Return-Path: <>".
	    Produces "X-Envelope-To: <...>" header.

	* ChangeLog, INSTALL, Overview, README.TCP-WRAPPER,
	  README.UPGRADING, compat/sendmail/sendmail.c, doc/guides/configure,
	  doc/guides/smtp-etrn, include/zmsignal.h, lib/hashtest.c,
	  man/smtpserver.8, proto/smtpserver.conf.in, proto/cf/aliases-new.cf,
	  proto/cf/aliases.cf, proto/cf/rrouter.cf, proto/cf/standard.cf,
	  router/prototypes.h, router/rfc822walk.c, scheduler/msgerror.c,
	  scheduler/scheduler.c, smtpserver/rfc821scn.c, transports/sm/sm.c,
	  smtpserver/smtprouter.c, transports/libta/diagnostic.c, 
	  transports/mailbox/mailbox.c, transports/smtp/smtp.c, 
	  utils/smtpserver-log-parser.pl.in, utils/pop-proxy/pop-proxy.c:
	    A great speller-bee of "propab*" -> "probab*".

2000-09-26  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* man/sm.8, transports/sm/sm.c:
	    Updated (with a radical hand) the manual page to list
	    what sendmail 8.11 does with flag characters, and what
	    the ``sm'' does with same characters (and some more).

2000-09-25  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/hold/hold.c:
	    This was left out from the commit 4 days ago.

	* libresolv/sys/bitypes.h, sfio/src/lib/sfio/sfhdr.h,
	  ssl/ssl.c:
	    Experimental changes to support compilation at AIX 4.1.

	* proto/db/dbases.conf:
	    The 'thishost' relations used to carry '-d pathalias'
	    driver option on original systems, now it was missing..

2000-09-22  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* proto/Makefile.in:
	    An adjacent directory install failed when system
	    does not have suitable binary 'install' program, and
	    'install.sh' is needed.  Rearranged things.

2000-09-21  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* scheduler/mq2auth.c, scheduler/scheduler.c:
	    File leakage at authuser(), which caused opendir() to fail,
	    and its resulting NULL was used unprotected -> SEGV.
	    (Ran out of free file descriptors.)

	* router/functions.c, transports/hold/hold.c, proto/cf/aliases.cf:
	    "hold" handling for the $(homedirectory ...) function.

2000-09-20  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* proto/cf/rrouter.cf, proto/db/routes:
	    Generalizing on various smtp* mechanisms.

	* proto/scheduler.conf.in:
	    Channel prototypes for  smtp77/*, smtp77x/*, and others.
	    Some reordering, and log option rearrangements.

	* transports/smtp/smtp.c, man/smtp.8:
	    ESMTP disabler feature. ( -77 option )

	* packaging/solaris/Makefile.in, packaging/solaris/README,
	    More work at package manufacturing, now it likely works
	    and produces suitable Solaris PKG files.

	* Makefile.in:
	    Copy current compilation time valid  config.status  and
	    ChangeLog files into $MAILSHARE  directory.  Those give
	    a very good idea of HOW the package was made.

	* packaging/solaris/*:
	    Reworked a bit with Solaris pkgmk wizard..

	* proto/cf/aliases.cf:
	    A nuisance (unlikely a security problem) with *-group
	    expansion.  One pair of double-quotes missing.

	* scheduler/mq2.c:
	    mq2_discard() function did completely bogus chain traverse.
	    Oops..

2000-09-19  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* Makefile.in:
	    Version 2.99.54 (retagged here)
	
	* lib/getaddrinfo.c, lib/getzenv.c,
	  smtpserver/mxverify.c, smtpserver/smtpcmds.c:
	    Pointer arithmetic with (void*) !! Urgh..

	* smtpserver/Makefile.in:
	    Oops.. QC failure, wrong dependency order -> compilation failure

	* router/functions.c, proto/cf/aliases.cf, proto/cf/fqdnalias.cf:
	    Suspended the  $(zapDSNnotify ...) processing development.
	    The issues I am trying solve there are rather -- complicated.

	* router/daemonsub.c:
	    Do test for "an inode in processing" while looking for
	    tasks in the router subdirs -- thus won't reinsert a
	    task already in active handling back into the queue.

	* proto/newdbprocessor.in:
	    Test for "^bind", "ldap", "ordered" and "unordered" db
	    types while regenerating the dbases.conf relations.

2000-09-18  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* scheduler/transport.c:
	    A verbose debug printing of the 

2000-09-14  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* smtpserver/smtpetrn.c:
	    Teached IPv6 support to the ETRN-Cluster code.

	* scheduler/transport.c, scheduler/mq2auth.c:
	    If system allows, create the "mailq" port in IPv6 space.
	    Know how to turn IPv4-Mapped-in-IPv6 address into IPv4 one,
	    and thus be able to test it neatly.

2000-09-08  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* transports/smtp/getmxrr.c:
	    Even when we have seen EAI_AGAIN results, be a happy
	    camper in the end if we get ANY MX entries which have
	    valid address records.

2000-09-07  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* router/libdb/bsdbtree.c router/libdb/gdbm.c:
	    At iterative DB walkthroughs there were some
	    problems at these two functions.  Now they
	    should a) find data, b) terminate.

2000-09-04  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* configure.in:
	    Change linkage order of  -lnsl vs. -lxnet.
	    If -lxnet leads, SEGV is about guaranteed. :-( 
	    (That is utterly weird problem...)
	
	* libc/myhostname.c:
	    If system does not carry  getaddrinfo(3)  function
	    in its standard repertoire (or we are told not to use
	    possibly existing system instance due to e.g. bugs),
	    then use "old-fashioned"  gethostbyname(3)  function
	    to resolve canonic hostname.

	* utils/makedb/dblook.c:
	    The "-dump" mode has been broken for a while.
	    Turned out that auto-variables for key & data need
	    (apparently) be zeroed before even the R_FIRST
	    position pickup succeeds.  D'uh !

	* lib/selfaddrs.c:
	    Solaris resolver function don't apparently like (at all)
	    if the host parameter to e.g. gethostbyname() is 0-size
	    string.

	* smtpserver/cfgread.c, man/smtpserver.8:
	    Recognize "PARAM bindaddr iface:...." syntax to define
	    named interface on which SOME address you want to bind.
	    (Prefers IPv6 if such exists, otherwise IPv4.)

	* smtpserver/smtpdata.c:
	    During DATA and BDAT processing, if the feeder
	    failed to send first 1024 bytes of content, our
	    data transfer watchdog timer was not initialized.
	    I was wondering why one Solaris machine kept
	    collecting hanging smtpserver processes...

	* libc/mailvars.c, libc/mail.c, libc/sfmail.c:
	    - Rearranged couple of variables to separate file
	      so that  mail.c  object won't be included when
	      not needed..  (at the scheduler, and at the mailbox)
	    - reworked file renaming to always use ino based
	      decimal number string at the destination directory.
	    - reconverted mail.c to SFIO based sfmail.c

2000-08-30  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* compat/sendmail/sendmail.c:
	    - Recognize  "sendmail -bd"  as an order to run "zmailer" script.
	    - Input and encode INFROM= data into DSN dataset.

	* proto/cf/aliases.cf, proto/cf/crossbar.cf, proto/cf/fqdnalias.cf,
	  proto/cf/standard.cf, router/functions.c, router/prototypes.h,
	  router/rfc822.c, router/shliaise.c:
	    - New experiental code to handle DSN data handling bugs in
	      alias expansion-like situations.  This is NOT complete thing!
	    - Debug code to analyze the effects of the SCHEDULERDIRHASH
	      ZENV variable.

	* transports/libta/ctlopen.c:
	    Recognize (but skip)  INFROM=  DSN metadata.

	* utils/Makefile.in, utils/mxverify/getaddrinfo.c:
	    Copied the  getaddrinfo.c  from libc/  to this
	    utility.  Made "make clean" and "make distclean"
	    work from toplevel so that they will also clean
	    the  utils/mxverify/ subdir.

	* Makefile.in:
	    At the end of "make install", correct the "post-install"
	    suggestion to correct program name.

	* scheduler/mailq.c:
	    Do set the PORTNUM to the destination socket addresses
	    before trying to connect -- connecting to port 0 is not
	    usually a successfull thing...

	* libc/getaddrinfo.c:
	    At Solaris the  uname(2)  call return NON NEGATIVE
	    value on success, not necessarily ZERO as in Linux...

2000-08-29  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* scheduler/mq2auth.c:
	    Copy addresses into separate range buffers for
	    masking and comparison.  (Generalized the function).

	* scheduler/msgerror.c:
	    Construct the report message somewhat differently

	* scheduler/udpate.c:
	    Do certain diagnostics only when  (verbose)  flag is set.

	* transports/smtp/getmxrr.c, transports/smtp/smtp.c:
	    Remove more old debug statements, make sure that
	    lack of memory from  getaddrinfo() is handled
	    properly (e.g. exit(EX_OSERR) -- not best, but..)

2000-08-23  Matti Aarnio  <mea@aarnima1-pc1.icpd.sonera.fi>

	* smtpserver/mailq.c:
	    Use  getaddrinfo()  to pick the peer address.

	* include/listutils.h:
	    Incorrect ANSI-C pre-processor string concatenation directive use.

	* libc/myhostname.c:
	    Pick any of my possible addresses, don't specify port.
	    (We are looking for CANONIC NAME, after all..)

	* smtpserver/smtpdata.c:
	    Pipelined BDAT after failed MAIL FROM segfaulted
	    on one unprotected SS->mfp referral.  Oops.

2000-08-21  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* libc/getaddrinfo.c:
	    Complete IPv4/IPv6 functionality with proper
	    timeout error handling, and malloc()ed memory
	    garbage collection.  This supplies the function
	    for   --with-ipv6-replacement-libc   cfg option.
	    (Necessary at all systems with GNU LIBC versions
	     up to 2.2.)

2000-08-19  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* proto/newdbprocessor.in:
	    Process the owner/group/mode triplet too.

2000-08-18  Ambrose Li <acli@ada.dhs.org>

	* configure.in, acconfig.h, scheduler/transport.c,
	  transports/smtp/getmxrr.c:
	    Linux 2.2.* with libc5 fixes.

2000-08-17  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* smtpserver/policytest.c, router/libdb/bsdhash.c,
	  router/libdb/bsdbtree.c, utils/makedb/makedb.c,
	  utils/vacation/vacation.c:
	    RedHat 6.0 BSD DB surprised somewhat... Fixes for
	    the configuration senses.

	* configure.in, libs/Makefile.in:
	    library building order correction, and autoconfiguration
	    straightening so that lack of dbm databases is reported
	    corrently. (The NDBM even with its faults is sort of ok,
	    but the DBM - its predecessor - is not...)

2000-08-02  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* include/libz.h, scheduler/scheduler.c, scheduler/update.c,
	  lib/esyslib.c, include/ta.h:
	    To track strange looking  eunlink()  problem reported by
	    Eugene my first approach is to add identity tags for eunlink()
	    calls so I can have some additional clue as to *which* of
	    four possible places the problems are occurring at.
	    (Fift place is impossible, fortunately.)

2000-08-02  Eugene Crosser <crosser@online.ru>

	* transports/smtp/getmxrr.c:
	    Yet another wrong index variable usage -- one which affects
	    MX-list purge of self-identity matching of MX servers.
	    Symptom:  "No MX, no address"
	    [mea: That may have been part of the problem,  getaddrinfo()
	          yielding EAI_NONAME in places of EAI_AGAIN may have
		  been another.. -- at least for me.]
	
2000-08-02  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>
	
	* libc/getaddrinfo.c, libc/getnameinfo.c:
	    Picked lattest versions out from  GLIBC 2.1.92 source,
	    and cleaned it up to be simple single-threaded thing
	    without locks, and without IPv6 support.
	    STILL PROBABLY LEAKS MEMORY!

2000-08-01  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Some debug printout revisions.  Somewhat embarassing to have
	    a SEGV at debug code when work-code without it works..

	* configure.in:
	    Modifications on how NDBM vs. GDBM vs. BSD DB libraries
	    are linked to ZMailer.  NDBM must be explicitely linked
	    as '-lc' if it is at libc, *and* that linkage reference
	    must be before any other as only then will there be change
	    to get real NDBM, and not some fake layers which all those
	    others do provide!

2000-07-31  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* scheduler/scheduler.h, scheduler/scheduler.c, scheduler/msgerror.c:
	    Recognize our internal NOTIFY=TRACE flag.

	* transports/smtp/smtp.c:
	    When 'NOTIFY=TRACE' flag is present, don't send it out
	    as it is our INTERNAL thing.  Thus the change from string
	    based output to flag-based output routine.

	* include/ta.h, include/mailer.h, include/libz.h:
	    Moved  STREQ()/STREQN()/CISTREQ()/CISTREQN()  macroes
	    from  mailer.h (and ta.h)  to libz.h.

	* utils/md5sum.c:
	    Completed  usage()  function, and some comments.

	* compat/sendmail/sendmail.c:
	    Added acceptance for our internal  -N TRACE flag, which
	    is for eased debugging of RFC 2852 features.

2000-07-30  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* libident/identuser.c:
	    A buglet in read loop.  The 'break' affects only
	    the innermost loop construct, and it needed to go
	    out the outer too..  Nuisance thing, I would say.
	    (And usage of indent is questionable anyway..)

	* smtpserver/smtpserver.h, smtpserver/smtpcmds.c,
	  smtpserver/cfgread.c, smtpserver/smtpserver.c,
	  include/ta.h, transports/libta/ctlopen.c:
	    Initial hooks for RFC 2852.

	* transports/libta/diagnostic.c:
	    Turn on, temporarily, O_APPEND flag on the file.

	* scheduler/msgerror.c:
	    Missed variable inits, and malformed format statement.

	* transports/smtp/getmxrr.c:
	    dnscache by djb produces replies which don't have NS or AD
	    sections, and when scanning replies, we had one-off comparison
	    error which bailed out in case the ANSWER section reached
	    the end of the reply packet.

	* man/scheduler.8:
	    Updating on data formats and communication protocols.

	* transports/libta/lockaddr.c:
	    Be carefull as *not* to overwrite part of diagnostic
	    data with spaces.  This has never been a bug, except
	    that trying to understand some aspects of the system
	    while updating documents revealed that we do unnecessary
	    scrubbing there.

2000-07-29  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/Makefile.in, transports/smtp/smtp.h,
	  transports/smtp/smtp.c, transports/smtp/getmxrr.c:
	    Moved  getmxrr()  function to separate file, and
	    wrapped it with a test shell in attempt to understand
	    *why* it seems to fail at some inputs at some machines.

	* scheduler/msgerror.c:
	    Hooks for "expanded" action status.

	* transports/smtp/smtp.c:
	    Streamlined error handling when returning from getmxrr().

2000-07-27  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    - At getmxrr() a missed state variable initialization
	      (to zero) caused errorneous eternal loops. OOPS!
	    - smtp_sync() didn't handle RCPTSTATE_500 at all.. (oops).
	    - calls to  stashmyaddresses()  don't need to carry determined
	      self-host-identity.

2000-07-24  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* scheduler/msgerror.c:
	    A simple spelling error in normally invisible text sent
	    towards the user inside the delivery status reports.

2000-07-18  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Possibly  ssfgets()  fell on over-by-one allocation/storage
	    error so that the buffer tail got stomped over, and some
	    systems didn't like it --> they crashed.

	* configure.in, router/db.c, router/libdb/bsdbtree.c,
	  router/libdb/bsdhash.c, smtpserver/policytest.h,
	  smtpserver/policytest.c, utils/makedb/makedb.c,
	  utils/makedb/dblook.c, utils/vacation/vacation.c,
	  README.UPGRADING:
	    Reworked things to support another kind of set of
	    SleepyCat DB libraries.  Not yet covering version 3.x.

	* lib/rfc822scan.c:
	    A bit more characters into "no need to quote these here"
	    set -- allow address <@[1.2.3.4]:foo@bar> and <foo@[1.2.3.4]>

2000-07-17  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* libs/Makefile.in, Makefile.in:
	    Merge  libsfio.a  generation into this file also, so that
	    there is no absolute need to run its make as the first
	    thing among subdirs.
	    Also made top-level "make libs" target which recompiles
	    and/or just reconstructs (with ar) all libraries.

	* transports/smtp/smtp.c:
	    Oops.. Solaris 2.6 --with-bundled-libresolv  does not
	    know about BIND 8 resolver's AD and CD bits.  Don't use
	    them.

	* Makefile.in:
	    Version 2.99.53

	* smtpserver/smtpcmds.c:
	    At MAIL FROM policy reporting we did always yield
	    400-series reply even when actual code directed us
	    to yield 500-series..

2000-07-14  Grace He <ghe@scs.Ryerson.CA>

	* router/dateparse.c:
	    Fix for "Date: 00-06-29 03:50:11" induced crashes

2000-07-14  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* lib/selfaddrs.c:
	    Rearrange SIOCGLIFCONF / SIOCGIFCONF code a bit, will
	    prefer SIOCGLIFCONF over SIOCGIFCONF if both are available.

	* lib/selfaddrs.c, lib/zgetifaddress.c, include/libz.h,
	  configure.in, utils/makedb/Makefile.in:
	    Solaris 8 test derived fixes.

2000-07-12  John D Groenveld <jdg117@elvis.arl.psu.edu>

	* man/Makefile.in:
	    If "${MANDIR}/man3" directory does not exist, create it.

2000-07-11  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Sometimes printing to logfp was done unconditionally -- when
	    the logfp variable carries NULL :-/

2000-06-22  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c, smtpserver/mxverify.c:
	    Further commentary from  bind-workers  told me that unless
	    the AA-bit (authoritative answer) is set, the received ADDATA
	    isn't possibly good enough to trust - some of A/AAAAs may have
	    expired.  Thus we shall use that reply section for A/AAAA only
	    if AA-bit is set.

2000-06-21  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* smtpserver/mxverify.c, transports/smtp/smtp.c:
	    Made smtpserver MXVERIFY to use DNS ADDITIONAL DATA,
	    and reorganized A record collection so that if some
	    MX server does not have A, that is asked for it
	    explicitely, and if ipv6 is in use, if AAAA data
	    does not exist for a server, it is asked for.
	    In case ipv6 is not in use, this collapses into plain
	    A type data retrieval.

	* lib/selfaddrs.c:
	    Removed a test which is never true.

	* transports/smtp/smtp.c:
	    Some more tuning of  getmxrr()  pathology processing.

2000-06-20  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Use  zgetifaddress() for '-L iface:eth0' binding.

	* configure.in, include/libz.h, lib/Makefile.in,
	  lib/selfaddrs.c, lib/zgetifaddress.c:
	    Autoconfigure  BSDI derived  getifaddrs()  call,
	    and have sensible IOCTL set for both interface
	    list, and for interface address lookup code.

	* scheduler/mailq.c:
	    One-off in array realloc() biting us at Solaris..

	* transports/smtp/smtp.c, nam/smtp.8:
	    Coded '-L' option processing to bind to named local
	    interface.

	* lib/selfaddrs.c:
	    Experimental SIOCGLIFCONF code for IPv6 speaking
	    some-BSD systems -- to pick IPv6 interface addresses
	    from the system.

	* transports/smtp/smtp.c, transports/smtp/smtp.h:
	    When doing   getmxrr()  for MX data, will use also
	    the DNS supplied ADDITIONAL DATA segment materiel
	    for MX machine addresses.

2000-06-19  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* scheduler/update.c:
	    Organically relating to  smtpopen() -> "retryat +60"
	    code, if NEXT thing to feed has its expiry tag in
	    past (and non-zero), then *stay* in CFSTATE_STUFFING
	    so that possible next thing will be quickly diagnosed
	    out of the queue at the end of its expiry time..
	    ALSO fixed double-counting of attempts on therads
	    and vertices!

	* transports/smtp/smtp.c:
	    If smtpopen() yields EX_TEMPFAIL, always do diagnostics
	    with 60 seconds timeout flag.. ( -> "retryat +60" )
	    so that the entire message queue will not be retried
	    there just for no good reason..

	* smtpserver/smtptls.c:
	    Following some discussion at OpenSSL list, I noticed
	    that DH type keys are not supported by our current code.
	    Now we should match that of OpenSSL: apps/s_server.c
	    sample code again.

	* transports/smtp/smtp.c:
	    Allow  ssfgets()  to enlarge the input string in runtime,
	    which enables us latter to make weird things like multiple
	    hosts feeding in same connection... (perhaps)

	* transports/smtp/smtp.c:
	    Continued the rewrite by handling weird looking errors
	    from some sites which mistakenly limit the number of
	    recipients per smtp connection (session)!  Will do
	    close of the socket after each case where RCPT TO yields
	    400 series code.  (That will also knock on some real
	    temporary failures, like DNS timeouts when recipient
	    does verify the through-going address for e.g. MX analysis.)

	* transports/smtp/smtp.h, transports/smtp/smtp.c:
	    Rewrote (in a sane way) the pipelined smtp_sync()
	    status code formulation so that we won't reject
	    recipients just because their system yields 400
	    code for all RCPTs which they get, and then said
	    to DATA that 'no recipients given yet'..

2000-06-14  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* proto/cf/fqdnalias.cf:
	    Don't fqdn-alias if it looks like RFC-822 source route
	    address.

	* lib/rfc822scan.c:
	    Allow RFC-822 source route addresses to go thru without
	    needing quotes -- allow ',' and ':' to be included into
	    addresses without quotes.

2000-06-13  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* proto/cf/fqdnalias.cf:
	    A missed thing in privilege processing in case db lookup
	    succeeds.

	* scheduler/scheduler.h, scheduler/mq2.c, scheduler/mailq.c,
	  scheduler/threads.c:
	    Implemented (in C) initial part of 'mailq' and 'mailq -v'
	    commands for MAILQ-V2 protocol.

	* scheduler/scheduler.c, man/scheduler.8, scheduler/mq2.c,
	  scheduler/mailq.pl:
	    Playing with MAILQ-V2 code to get (experimental) version
	    of detailed reporting a'la old mailq-v1 code.

	* scheduler/mailq.pl:
	    Now this PERL mailq supports functions:
		mailq
		mailq -Q
		mailq -QQ
		mailq -QQQ
	    and has also option '-U' for logging with non-default
	    username/password pair.

2000-06-07  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/libta/ctlopen.c:
	    If ctlopen() contained open() of message body file fails,
	    send a warning() up to the scheduler log WITH errno of
	    that open() call..

	* proto/db/smtp-policy.src:
	    _RBL* alias labels are turned to LOWER CASE -- those keys
	    are lowercased during encoding, but data attributes are
	    not modified while compiling the database, nor when looking
	    up tags..

	* smtpserver/smtpserver.h, smtpserver/smtpdata.c,
	  smtpserver/cfgread.c,    smtpserver/contentpolicy.c,
	  utils/smtp-contentfilter.in:
	    CONTENT policy interface, and sample filter implementation..

	* scheduler/scheduler.c, scheduler/conf.c, scheduler/msgerror.c,
	  man/scheduler.8:
	    Modify the '-n' option semantics to control how DSN RET
	    option value is set in absense of originator supplied value.

2000-06-02  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* scheduler/mailq.c:
	    Count files in POSTOFFICE/router/ directory also when
	    it is subdir-hashed..

	* router/daemonsub.c:
	    Tried actually to use ROUTERDIRHASH=1 mode, and learned
	    of bitter errors at the subchild feeder code...  Dirname
	    was written twice to the workfilename.

	* router/libdb/header.c:
	    Allow just about *any* character to appear at headers
	    database key fields..  old limits were too strict anyway.

	* proto/post-install.sh.in:
	    More minor tweaks.

2000-05-28  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* proto/Makefilein, proto/post-install.sh.in:
	    Small fixes that disjoint installation test shows up..

2000-05-26  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtp.c, transports/smtp/smtp.h:
	    Cosmetics-like things about diagnostics tracking.

	* proto/newdb.in, proto/newdbprocessor.in, proto/post-install.sh.in:
	    These are all PERL scripts now -- that last one should be
	    renamed, thinking about it...

2000-05-25  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* transports/smtp/smtptls.c:
	    Proper network timeout monitored non-blocking wrapper
	    for SSL_connect()  code.

	* transports/smtp/smtp.h, transports/smtp/smtp.c:
	    Reworked diagnostics codes a bit to collect only relevant
	    SMTP transaction bits per each recipient.
	    (Although still not *quite* correct for problems diagnosed
	     at DATA/dot time, which need all recipients, not just the
	     last one...)

2000-05-24  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* proto/newdb.in:
	    Rewritten into PERL(v5) script.

	* smtpserver/rfc821scn.c, smtpserver/smtpcmds.c:
	    Eugene Crosser wanted to have:  <foo!_bar@some.dom>,
	    our scanner demanded an alphanum starter character for
	    the sub-fields of the local-part.  Now allowing also
	    the underscore as starter there -- for a username..
	    (smtpcmds.c has some diagnostics report beauty warts.)

2000-05-18  Matti Aarnio  <mea@aarnima1-pc1.tmt.tele.fi>

	* proto/newdb.in, router/libdb/ndbm.c, router/libdb/dbm.c:
	    At NewDBM (ndbm) the dbm_dirfno() does not always yield
	    success at the dbm_open().  It *may* yield some scrap data
	    for a while -- especially if the db is *very* small.
	    The  dbm_pagfno()  yields always ok filehandle number,
	    and thus we use it -- and change file moving order to
	    .DIR .PAG to match which is tested latter.

2000-05-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/Makefile.in, proto/post-install.sh.in:
	    Moved POSTOFFICE directory subdir generation into
	    the  post-install.sh  script.  Execution of that
	    script before system becomes ready for running is
	    now MANDATORY!  (At least at fresh installations.)

2000-05-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/rfc822.c:
	    Existence of ZENV variable ``SCHEDULERDIRHASH'' drives
	    movement of files from router to the scheduler to go
	    straight to hashed subdirs at the scheduler.

	* router/daemonsub.c:
	    A lot more work at the daemon subsystem.
	    Now it runs a dedicated set of router processes for
	    the primary router directory, plus one for each of
	    ``ROUTERDIRS'' variable defined auxiliary directories.

	* libc/mail.c, router/daemonsub.c, man/router.8,
	  SiteConfig.in:
	    If ZENV variable ``ROUTERDIRHASH'' exists, and has value
	    ``1'', all message submissions will be using direct moving
	    nto ``A'' thru ``Z'' hash-subdirectories -- if they don't
	    exist, things FAIL!

	* scheduler/mq2auth.c, scheduler/transport.c:
	    Mailq-V2 IP-ACL system works!

	* scheduler/scheduler.c, scheduler/transports.c:
	    Call  syncweb()  also inside the   mux()  routine
	    so that new jobs will get assimilated faster.

2000-05-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libc/mail.c, router/rfc822.c:
	    Simplified message injection code a bit; especially
	    tried to lessen the number of directory operations.
	    (Even though comments in the source say that rename(2)
	     isn't safe, we are using it...)

	* INSTALL:
	    Refer to HTML renderation of ZMailer manual's install part..

	* scheduler/msgerror.c:
	    Drop leading \r from report data.  No weird looking blank
	    line in resulting report.

	* transports/smtp/smtp.c:
	    Don't diagnose TLS status unconditionally, it is annoying
	    thing to have accumulating into scheduler's log..

	* smtpserver/smtpserver.c:
	    When --with-whoson  is used at configuration, and
	    smtpserver is run without '-w' option, policy test
	    is falling on default of "yes this is always ok relay
	    source" behaviour -- which in general is wrong :-(

2000-05-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/selfaddrs.c:
	    Yet Another small surprise at Linux systems about
	    self-address extraction.  :-/

2000-04-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c, smtpserver/smtpserver.c:
	    Fix "from_box" setting to match current treatment
	    of user input string (e.g. not stomping things
	    with '\0' chars..)
	    Synced  MaxErrorRecipients  default value with
	    documentation.

	* smtpserver/cfgread.c:
	    Documentation (proto/smtpserver.conf.in) says that
	    PARAM name is:  RcptLimitCount,  while it was recognized
	    only as  RcptLimitCnt ...  Oops.

2000-04-18  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/db.c:
	    A mistake in cache LRU chain handling caused eternal
	    loop to form sometimes.  Oops.

2000-04-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/libta/ctlopen.c:
	    An odd corner case of error handling allowed access to
	    uninitialized elements of an array -> junk data blew up..

	* scheduler/threads.c, scheduler/update.c:
	    Trying to understand why 'deferred' diagnostics causes
	    practically immediate reissuance of a task..
	    Understanding dawns, thread rescheduling was implemented
	    in fumes, so crazy it was (but then, I don't drink nor
	    smoke...)

	* router/functions.c, lib/rfc822scan.c:
	    Router function "$(dequote ...)" was previously castrated
	    a bit too much.  This isn't like sendmail-8's dequote class,
	    but far more brutal beast..

	* proto/Makefile.in:
	    Fix db subdir installation to work on a system without
	    GNU/BSD install (using locally supplied script).

	* compat/rmail/Makefile.in:
	    Allow  "mkdir -p ..." to fail on Solaris. (Anywhere actually)

	* libc/whathost.c:
	    Improved error handling by adding posixy redo of things
	    in case stat()s yield an error.. (Solaris 2.6 is complaining
	    somewhat in these routines..)

	* transports/smtp/smtptls.c:
	    Moved things around so that it works also when compiled
	    WITHOUT (Open)SSL.

2000-04-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Moved one instance of  tls_conf_file  inside HAVE_OPENSSL
	    conditional.  Oops..

	* transports/smtp/smtp.c, transports/smtp/smtptls.c,
	  transports/smtp/smtp.h:
	    Try to combat certain TLS related problems mentioned before.
	    (An hour latter: Cured them apparently..)

	* smtpserver/smtptls.c, smtpserver/smtpserver.c:
	    Under TLS do always flush replies - to simulate one other
	    MTA running under TLS wrapper. (This was removed a bit latter.)

2000-04-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/db.c:
	    For Matthias Urlich; a method to declare at RELATION entry
	    if NEGATIVE CACHE is used at the particular relation (pre-
	    requires that cache is also used..) Driven with: -N option.

2000-04-11  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/mq2.c, scheduler/mq2auth.c, scheduler/prototypes.h,
	  scheduler/scheduler.h, scheduler/scheduler.c, scheduler/transport.c:
	    Hooks for verifying MAILQv2 contactee IP address.

	* router/db.c:
	    Mathias Ulrichs <smurf@noris.de> suggest negative cache
	    for DB lookup related caches.  It is simple to do, but
	    not so simple to explain to be usefull...

2000-04-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/msgerror.c, scheduler/prototypes.h, scheduler/threads.c,
	  scheduler/transport.c:
	    Tracked possible reasons for processing crashes when maxthr>1.

	* transports/smtp/smtp.c:
	    Changed the commentary log accumulation method, now
	    it will clear only at "MAIL FROM..." and from then
	    on collect all until next "MAIL FROM...".
	    Should make easier to understand some odd error reports.

	* scheduler/scheduler.c, scheduler/threads.c, scheduler/update.c:
	    Added some debugging related  memset()s just before freeing
	    some pointer containing memory blocks.
	    Also modified unvertex() slightly to forward nextfeed in
	    case current vertex is (at all) in any sort of processing.

2000-04-07  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/update.c:
	    Log only really important diagnostics about error
	    conditions in the system, not errors in email receiving.

	* scheduler/threads.c:
	    One instance of vertex free() has been processed
	    improperly.  If the 'nextfeed' is still pointing
	    to the vertex which is being deleted, it must be
	    advanced..  Although getting this means that the
	    scheduler has just fed the same job twice to TAs..

2000-04-06  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtptls.c:
	    Disable TLS read_ahead setting.  That mode doesn't
	    work quite well, and can definitely groak against
	    Stalker Software's  CommuniGate Pro smtpserver when
	    running in PIPELINING mode.

2000-04-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf, proto/cf/fqdnalias.cf:
	    - More work on rewritten expansion loop prevention measures.
	    - Added UserDB sender address rewriter into  fqdnalias.cf too.

	* lib/rfc822scan.c, router/functions.c, proto/cf/aliases.cf:
	    Reworked alias (et.al.) expansion loop preventation
	    machinery.  Now a message aliased as:
		user1: user2, user1
	    will be delivered to both, unless some other mapping diverts.
	    NOT YET A COMPLETE THING!

2000-03-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/zmailer.sh.in, proto/newdb.in, proto/db/dbases.conf:
	    Now 'zmailer newdb' uses the  $MAILVAR/db/dbases.conf  file,
	    if it exists.  (But the converted needs to be rewritten,
	    and security issues need more thought...)

2000-03-29  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/threads.c:
	    thread_reschedule() crashed on thr->thvertices being NULL ??

	* router/rfc822hdrs.c:
	    Sometimes missed sending out at least one space after the
	    header name tag.

	* scheduler/transport.c, scheduler/update.c, scheduler/mq2auth.c,
	  transports/smtp/smtptls.c:
	    Various bad diagnostics seen (from smtp) which in turn crashed
	    scheduler :-/  Oops..   Some new comments into  mq2auth.c about
	    possible future directions.

	* proto/cf/crossbar.cf, proto/db/userdb:
	    Some more work on this, now allowing rather peculiar
	    ZMailerish keying at least for ":mailname" keys..

	* router/db.c:
	    Reworked cache code to be faster (I hope) by means of having
	    a crc32 hash value against which the matching is done.
	    The goal is to support in order of 10k entries in the cache
	    without too large of an impact on performance.
	    ( The hash collisions are resolved by means of doing actual
	      key  strcmp() )
	    The cache at each DB relation interface is still an LRU with
	    linear (urgh..) search time.  (A splay-tree was also considered,
	    but decided not to use.)

2000-03-28  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf, proto/cf/crossbar.cf, proto/cf/standard.cf,
	  proto/db/dbases.conf, proto/db/kill-headers, proto/db/userdb:
	    Created a way (always on when DB is defined, and rewrite
	    (at crossbar.cf) happens via 'internet') to do ``username''
	    mapping to given FQDN address, e.g.  ``user.name@here.domain''
	    Reworked kill-headers initialization.

	* include/mailer.h, proto/Makefile.in, proto/cf/standard.cf,
	  proto/db/kill-headers, router/rfc822.c, router/libdb/header.c:
	    Runtime configuration mechanism for killing named headers.
	    We have some uses for removing e.g. gateway generated
	    "X-Login-ID:" type of things which no recipient has any
	    business of seeing.

	* Makefile.in:
	    Version 2.99.53-pre1

2000-03-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    When the outbound SMTP fp is closed, don't truncate the
	    reported address -- mainly to stop "." appearing as the
	    last outbound state, when "data" really is it..

	* scheduler/MAILQ-V2, scheduler/mailq.pl, scheduler/mq2.c,
	  scheduler/prototypes.h, scheduler/threads.c:
	    Playing with ideas regarding MAILQ-V2 protocol.
	
2000-03-24  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in, transports/mailbox/dotlock.c:
	    Autosense 'HAVE_GETHOSTID', and if it isn't, try to
	    create it in couple different ways (For earlier Solaris,
	    and HPUX systems, very least.)

2000-03-23  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* INSTALL, configure.in, Makefile.in, sfio/Makefile.in,
	  sfio/src/lib/sfio/makefile.in,
	  sfio/src/lib/sfio/{Sfio_{dc,f},Stdio_{b,s}}:
	    Made SFIO compilation environment to work also when running
	    in "subdirectory" configuration (e.g. using  ../configure ...)
	    Also cleaned up the SFIO configuration system a bit.

	* doc/guides/smtp-policy:
	    Added some words about the policy testing by using -T option.

2000-03-21  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/smtpserver.8, smtpserver/smtpserver.h, smtpserver/smtpserver.c:
	    Implemented  -T  option for a local interactive policy testing
	    without having connectivity all around the world.
	    See the man-page.

2000-03-18  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/daemonsub.c, router/conf.c:
	    Spotted a self-healing misbehaviour in the child process feeder,
	    which skipped messages from queue quite *often*.  Cured that
	    by waiting in proper place for successfull delivery.
	    Also changed some default values for "stability" processing.

	* router/rfc822hdrs.c, router/rfc822.c, lib/token.c:
	    Aborted (and deactivated) foldable tokens processing on headers
	    we don't know about right now.  Perhaps need to have some other
	    approach on the problem...

2000-03-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c, smtpserver/smtprouter.c:
	    Instead of using printf format:  %*s  we need to use  %.*s

	* transports/libta/swriteheaders.c:
	    Eugene Crosser spotted CHUNKING mode problem with
	    message header TAB expansion.  Outch!

	* router/router.c:  logit()
	    Changed  stdout  written log printf() format so that
	    quite large lists of addresses are allowed.

2000-03-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in, transports/mailbox/mailbox.c:
	    "--without-maillock" configuration option from
	    Eugene Crosser.   We don't seem to be quite
	    as happy chaps with Solaris maillock() as we
	    would like to be in all cases :-/
	    (E.g. if we use any other than  /var/mail/ directory
	     for mailboxes, Solaris  maillock()  will still put
	     locks into /var/mail/ directory :-?  Hmm..)

2000-03-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/msgerror.c:
	    Reworked report suppression; if all RCPTs have NOTIFY=NEVER,
	    no report shall be made.   Some cleanup of report generation.

	* transports/mailbox/mailbox.c:
	    Small cleanup of RFC 1894 action status reports.

	* transports/smtp/smtp.c:
	    - Do (at least try) shunt new scheduler TA driver state-
	      machine only when connection fails, not when a message
	      delivery yields some 400 series status code.
	    - PIPELINING mode in smtp_sync() did react suboptimally
	      (wrong) to DATA yielding 500 series code when MAIL FROM
	      or any/all RCPT TO commands yield 400 series status.
	    - DRUMS/SMTPUPD tells that if MX records are available,
	      but none are usable (preference pruning rule), this
	      must be reported as an error.  We allow '-W' mode to
	      override this so that when '-W' is present, this case
	      is not an error, IF destination domain has A + WKS/smtp
	      permitting delivery there.

	* smtpserver/smtpcmds.c:
	    DRUMS/SMTPUPD tells that policy based rejections of recipients
	    shall use 550 (and 450) codes.

2000-03-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/libta/diagnostic.c, include/ta.h,
	  transports/smtp/smtp.c:
	    Some diagnostics related rework due to absolutely
	    insanely behaving SMTP reception.     Diagnostic
	    output in EX_TEMPFAIL or EX_IOERR are not per default
	    (actually never) stored directly to the file by the TA
	    program, and anyway doing diagnostics in such case is
	    marginally usefull -- retries may happen, for example!
	    Now things should allow recipient address to be retries
	    properly even with mode locking working ok.

2000-03-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c:
	    More systematic approach at MAIL FROM and RCPT TO
	    related reporting where related addresses are wanted
	    to be included into the diagnostic messages.  All that
	    just for completely braindead approach prevalent in
	    M$ client software...

2000-03-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/msgerror.c:
	    Basic footwork for DELAYED reporter.
	    (Incomplete yet.)

	* scheduler/scheduler.c:
	    Reverted earlier change which counted already processed
	    recipients into MTA-MIB variables.

	* doc/Makefile.in, man/Makefile.in, libresolv/Makefile.in,
	  scheduler/Makefile.in:
	    Fixed "make depend" to work.

	* scheduler/Makefile.in, scheduler/servauth.h:
	    DELETED servauth.h -- something entirely forgotten,
	    and same stuff reimplemented elsewere.

	* man/smtp.8, man/smtpserver.8:
	    Updates/fixes to text.

	* scheduler/scheduler.c, scheduler/scheduler.h, scheduler/conf.c,
	  scheduler/agenda.c, scheduler/msgerror.c, scheduler/readconfig.c,
	  scheduler/prototypes.h, man/scheduler.8:
	    - Slightly simplified doagenda()
	    - Created accumulated report collector/reporter subservice.

2000-03-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/forms/delivery:
	    Added an URL reference to a "decode key" at
		http://www.zmailer.org/reports.html

	* scheduler/scheduler.h, scheduler/update.c, scheduler/threads.c,
	  scheduler/prototypes.h, scheduler/readconfig.c, scheduler/msgerror.c,
	  man/scheduler.8:
	    - Reworked how IDLE handles idle process recycling; always the
	      channel must match, host may or may not need to match.
	    - Reworked parts of error reporting in preparation for creating
	      delay reports.  (And earlier FAILED/DELIVERED/RELAYED reports
	      at the same time, of course..)

	* proto/cf/fqdnalias.cf:
	    Spotted some FIXME things..

	* transports/smtp/smtp.c:
	    When socket write failure causes shutdown of write direction
	    socket, do turn all back reported 500 series errors into softer
	    400 series codes.  Won't unnecessarily reject messages.

2000-02-29  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpetrn.c, man/smtpserver.8, man/scheduler.8:
	    Completed the etrn-cluster code. Seems to work, even.
	    Updated man-pages a bit.

	* smtpserver/smtpserver.c, smtpserver/smtpserver.h,
	  smtpserver/cfgread.c, smtpserver/smtpcmds.c:
	    - PARAM sum-sizeoption-value  -- modify how MAIL FROM:<> SIZE=nn
	      option value is processed when compared against various limits
	      in the system -- if the option is present, effectively the
	      system required free space is message size multiplied by the
	      recipient count.
	    - PARAM max-unknown-commands nn -- how many pure junk commands
	      can be accepted before our side hungs the connection. Default
	      limit: 10

2000-02-28  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, smtpserver/smtpserver.h,
	  smtpserver/cfgread.c, smtpserver/smtpetrn.c,
	  proto/smtpserver.conf.in, doc/guides/etrn-cluster:
	    - A bug in '-l SYSLOG' which bite me at Solaris.. Oops..
	    - some reworking of ETRN-CLUSTER code, but no completition yet.

2000-02-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    If DATA-dot-phase ending dot yields EX_TEMPFAIL, don't
	    do diagnostics right after smtpwrite(".").  It leads
	    to bad retry results :-/

	    Reworked something else; simplified code for header
	    output -- which will be "obviously correct".

	* smtpserver/smtpserver.c:
	    Make '-l SYSLOG' option to work in parallel with possible
	    '-l /path/to/file' logging option.

2000-02-18  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Moved   --with-zconfig=  code around a bit, apparently it was
	    quite ineffective, and has been that way for quite a while :-/
	    (More so the documentation spoke of some other option..)

2000-02-17  Eugene Crosser  <crosser@online.ru>

	* smtpserver/smtpdata.c, configure.in, acconfig.h:
	    (Auto)configure  USE_TRANSLATION  into smtpserver.
	    [mea] minimized Eugene's patch inside smtpserver code by
	          rearrangeing 'USE_TRANSLATION' usage in smtpdata.c
		  (e.g.: Eugene wrote it, Matti possibly botched it..)

2000-02-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/agenda.c, scheduler/mq2.c, scheduler/prototypes.h,
	  scheduler/scheduler.c, scheduler/scheduler.h, scheduler/threads.c,
	  scheduler/transport.c, man/scheduler.8, scheduler/MAILQv2:
	    - Streamlined MAILQv2 processing -- it should now be as low
	      latency service as possible, even with long-lasting operations
	      blocking at things like input queue scanner.
	    - Implemented a 30 second apopteosis for MAILQv2 sockets.
	    - Implemented MAILQv2 action ETRN -- exactly alike the SMTP-
	      server one.

2000-02-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/selfaddrs.c:
	    In *addition* to interface picked addresses, collect also
	    z-environment defined  SELFADDRESSES=  listed addresses.
	    (For the support of an ETRN-CLUSTER.)

	* transports/smtp/smtp.c:
	    A read timeout at response wait after write timeout is now
	    limited to 300 seconds.

	* smtpserver/Makefile.in, smtpserver/smtpserver.h,
	  smtpserver/cfgread.c, smtpserver/smtpserver.c,
	  smtpserver/smtpcmds.c, smtpserver/smtpetrn.c, SiteConfig.in,
	  proto/smtpserver.conf.in, doc/guides/etrn-cluster:
	    Some initial work for an ETRN-CLUSTER.

2000-02-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/smtpserver.8, smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/smtpdata.c, smtpserver/smtpcmds.c, smtpserver/smtpauth.c:
	    Created smtpserver runtime command-line option "-l SYSLOG",
	    which is a magic thing to send logfile material through syslog()
	    facility.  Beware there is *huge* amount of dataflow there!
	    Some updates to smtpserver.8 man-page.

2000-02-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, lib/taspoolid.c:
	    Changed (again) the logtag prefix for smtpserver's -l parameter
	    defined logfile.  Considering enabling it to be also diverted
	    via syslog() to where-ever that goes.  (But server process can
	    have only one syslog() session active with one facility..)

2000-02-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c, transports/smtp/smtptls.c:
	    Grumble...  Still seeing wrong kind of timeouts..

2000-02-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    An oddball log error - misreported outwritten message header
	    size into smtp client's log file.

	* README.UPGRADING, include/mail.h.in, scheduler/scheduler.c,
	  transports/libta/markoff.c:
	    Prepared for adding _CF_MIMESTRUCT multiline entity into
	    the TA-specsfile.  It will contain preparsed result of what
	    the message structure is - and be able to prevent e.g. decoding
	    QP when the end result exceeds linelength limits..
	    (And do proper body structure processings where appropriate)

	* transports/smtp/smtp.c:
	    Lengthened the -Ttcpw= default to 5 minutes (RFC 1123: 3 minutes)

	* router/parsedate.c:
	    Armour  lilian()  function against bad MON or DAY inputs.
	    (Especially zero month is deadly..)  However this code is
	    currently completely dead -- not used, so...

	* scheduler/mq2.c, transports/mailbox/mailbox.c, transports/sm/sm.c,
	  transports/smtp/smtp.h, transports/smtp/smtptls.c,
	  transports/smtp/smtp.c, transports/smtp/appendlet.c:
	    Turns out the  sfsetfd()  has a undesirable side-effect,
	    which might be turnable off, but...  Namely it does sfsync()
	    on the stream before setting the fd -- we don't want that.

	* libsh/io.c, router/functions.c, router/prototypes.h,
	  router/rtsyslog.c, smtpserver/smtprouter.c,
	  transports/libta/diagnostic.c:
	    Cleaned up several GCC 2.96 reported/complained things.
	    (Couple of which stopped compilation..)

	* transports/smtp/smtp.c:
	    More of hunting of strange errors at protocol transmission.

	* smtpserver/smtpserver.c:
	    When reporting '-- pipeline input exists', do that immediately
	    after collecting previous input line, not after SYNCing out
	    previous reply.

2000-02-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/appendlet.c, transports/smtp/smtp.h,
	  transports/smtp/smtptls.c,   transports/smtp/smtp.c:
	    More of the same work as yesterday evening/today early morning..

	* transports/smtp/smtp.c, transports/smtp/smtptls.c,
	  transports/libta/swriteheaders.c:
	    Some code rearrangements to better(?) handle stream
	    write errors.

2000-01-31  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/mxverify/mxverify-cgi.c:
	    Move "test with user-suppled address" before the
	    "test with postmaster" case.  In case the Postmaster
	    doesn't exist (which is an error in itself, though..),
	    the user supplied address was tested very least.

2000-01-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c, transports/smtp/appendlet.c:
	    Small error test rearrangements so that if  sferror()
	    is set at the output stream, no writing will happen.

2000-01-24  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/libta/swriteheaders.c, transports/libta/fwriteheaders.c:
	    Do proper TAB-expand in entire header strings, if so directed.

	* utils/mxverify/*
	    Made it as stand-alone as possible; it still uses ZMailer's
	    configuration system, but does not need rest of the system
	    for compilation -- all parts it needs are localized copies.

	* transports/smtp/smtptls.c:
	    smtp_sfwrite() didn't break out at write-timeout quite
	    as I had intended..

	* transports/smtp/smtp.c, transports/smtp/smtptls.c:
	    More debug stuff for hunting strance message breaks..

2000-01-23  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/token.c, router/rfc822hdrs.c:
	    Turn all header start spaces to optimized TABs plus spaces.

	* smtpserver/smtpcmds.c:
	    Now (!) people tell me that the most common M$ email clients
	    are absolutely stupid, and won't be able to correlate outgoing
	    SMTP verbs to responses they receive.  They just tell to user
	    the error which Z returns, and as it doesn't repeat the address
	    in fault (why should it?), user has no clue...
	    (So the one-line reports will from now on also mention the
	     received address...)

	* utils/mxverify/Makefile.in, utils/mxverify/mxverify-cgi.c,
	  utils/mxverify/mxverify-cgi.html, utils/Makefile.in,
	  utils/mxverify-cgi.c, utils/mxverify-cgi.html
	    Moved the thing to subdirectory.
	    Now it can be compiled without compiling the *entire*
	    other ZMailer -- just:
		./configure --prefix=/usr
		cd utils/mxverify ; make

2000-01-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/listexpand.c:
	    Added parametrization on how large bundles to make.
	    Default is the same old 200..

	* transports/smtp/smtp.c:
	    Turned out that Linux glibc 2.1 getaddrinfo() has some
	    strange bugs when it is left to its devices to scan for
	    a generic address suite -- it doesn't scan only IPv4 and
	    IPv6, but also some others, and if it gets error anywhere,
	    it seems to barf..  Will now scan for IPv4 and IPv6
	    separately :-/  So much for the great transparent API ...

	* utils/mxverify-cgi.c, utils/mxverify-cgi.html:
	    Detected the above problem while playing with this utility,
	    and developed that change here..
	    Reworked quite some things after initial deployment, added
	    that page into CVS for supplementary info.

2000-01-19  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/ta.h,           transports/libta/diagnostic.c,
	  transports/smtp/smtp.c, transports/libta/tasyslog.c:
	    Report (at smtp) also the conversion mode used
	    at the reported session.

	* utils/mxverify-cgi.c, utils/Makefile.in:
	    Writing a utility to ease destination domain verification
	    by testing *all* MXes of given domain.

2000-01-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c:
	    Accept SMTP verbs which have numbers in them.
	    Treat verb "550" by responding SILENTLY to it -- e.g.
	    don't reply anything when get it.

	* smtpserver/mxverify.c:
	    Treat RBL-type lookups as ERRORS only when the DNS
	    yields A record under mask: 127.0.0.0/24.  There exists
	    a zone:  .ok.orbs.org  which has  127.127.0.0/24 and
	    THOSE are verified to be ok.  If using ORBS, use first
	    the OK zone, only then the RELAYS zone.
	    ( -> On larger blocked zone, an individual OK entry can
	         accept email. )

2000-01-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/msgerror.c, include/ta.h, transports/libta/diagnostic.c,
	  transports/smtp/smtp.c:
	    Extend the notary report with "X-ZTAID:" which is diagnostic
	    about which TA process did generate the error report.
	    Allows one to hunt things from the syslog..

	* smtpserver/smtpserver.c:
	    Doing  longjmp()  from within a signal handler isn't
	    kosher -> sigsetjmp()/siglongjmp() and friends..
	    (Not that that signal handler should ever be called in
	     normal operation of the smtpserver..)

	* scheduler/readconfig.c:
	    Pulled back (disabled) code related to selector clause
	    wild-card testing in clause's "channel" part.

	* proto/cf/standard.cf:
	    Fixed recent thoughts mentioned below - coded test end
	    statement ("fi") was missing.

2000-01-07  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/threads.c:
	    Sometimes adding new tasks into a long-running thread did cause
	    the "unfed" count to go to *negative* value.  Now counting tasks
	    there always when they arrive to the thread, not only when all
	    previous ones have already been fed.. (caring about it only when
	    a process is active on the thread.)

	* proto/cf/aliases.cf, proto/cf/fqdnalias.cf, proto/cf/i-iprouter.cf,
	  proto/cf/i-router.cf, proto/cf/standard.cf, proto/db/dbases.conf:
	    Some collected thoughts about how to do multiple instances of
	    several popular databases (like aliases) in varying DB formats.

	* router/libdb/bind.c, proto/cf/i-smtp.cf:
	    Created sub-mode 'mxlocal' for the BIND database.
	    If local system is lowest MX for given domain, then
	    it yields string (query domain) and zero return code,
	    else NIL and non-zero return code.

	* Makefile.in, bin/usa-itar-stripper.sh:
	    'make dist-usa' creates now
	       - DIRNAME-usa.tar  package (vs. DIRNAME.tar of 'make dist')
	       - crypto-DIRNAME.diff  file

	* transports/smtp/smtp.h, transports/smtp/smtp.c:
	    Seen strange junk commands fed out to the remote
	    systems, trying to determine what is going on..

2000-01-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c:
	    Change several policy situation '550' codes to '553';
	    temporary failure indicators shall stay as '440'.

2000-01-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c:
	    Killed 'HAVE_TCPD_H' code from these files; using
	    smtpserver's policy database is better -- way better..

	* transports/smtp/smtp.c, include/libz.h, lib/parseintv.c,
	  lib/Makefile.in, scheduler/readconfig.c:
	    - Moved  parse_interval()  into library (from scheduler).
	    - Using it at smtp-ta for timeout parameter parsing

	* transports/smtp/smtp.c:
	    If 'DATA' yields '500' series, don't just do RSET + retry
	    at the same stream. (EX_IOERR)

2000-01-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/libdb/headers.c:
	    Darn..  Can't just disable "date" from known headers, however
	    changeing their semantics to 'nilHeaderSemantics' should do it.

	* scheduler/threads.c:
	    abort() replaced with correct code -- "the thing never to
	    happen *did* happen"...

2000-01-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/rfc822.c, lib/skip821address.c, transports/libta/ctlopen.c:
	    Have seen one mighty strange local non-delivery, and learned
	    ways to use quotes in addresses which are not always safe from
	    router to scheduler, and to TAs..

	* man/smtp.8, proto/smtp-tls.conf{,.in}, doc/guides/openssl,
	  configure.in, proto/Makefile.in, proto/scheduler.conf.in,
	  proto/post-install.sh.in:
	    - Updated 'smtp.8' man-page
	    - Updated OpenSSL GUIDE
	    - Updated the prototype of  smtp-tls.conf  (and renamed
	      it for autoconf reasons)
	    - Install the  smtp-tls.conf  prototype file (for post-install)
	    - Updated  post-install.sh
	    - Added example usage clause to scheduler.conf.in

	* transports/smtp/smtp.c, transports/smtp/smtp.h,
	  transports/smtp/smtptls.c, transports/smtp/appendlet.c:
	    Reworked the timeout parametrizations somewhat
	    (per what a colleque of mine had asked for)

	* router/libdb/header.c, router/rfc822hdrs.c:
	    Remove the "Date" headers from specially recognized set.
	    Will end PARSING of the headers completely - it is an UA
	    problem, after all.
	    --> WHOOPS! Must fix also  router/rfc822hdrs.c !

	* scheduler/scheduler.c:
	    Properly analyze how many FDs each bidirectional TA
	    connection needs.  One or two.  Calculate the maximum
	    number of TA childs we can run.

	* scheduler/threads.c, scheduler/readconfig.c,
	  scheduler/scheduler.h, scheduler/transport.c:
	    Modified the process state algorithms a bit.
	    - Process will stay in STUFFING until it gets #hungry in
	      that state without that the thread has any 'nextfeed'
	      available.
	    - Only when there are no more things to feed in STUFFING state,
	      process moves to FINISHING state. ("retryat" processing being
	      sole exception.)
	    - A new vertex to a thread while there are active processes,
	      but 'nextfeed == NULL' will be placed into 'nextfeed'.
	    - A new clause parameter ``WakeupRestartOnly'' works by
	      allowing a newly created thread to be processed immediately,
	      but if existing thread is in ``Retry Delay'' state, this new
	      message will not auto-start the thread right away.
	
	* proto/scheduler.conf.in:
	    Explained a lot (more) about the scheduler usage of
	    various selector clause parameters in the initial
	    comment lines.

	* transports/smtp/smtp.c, transports/smtp/smtptls.c,
	  transports/smtp/smtp.h, doc/guide/openssl:
	    Debugged the client-mode STARTTLS, it *works*!

1999-12-31  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.52-patch1

	* transports/mailbox/mailbox.c:
	    Spotted lurking SFIO usage bug which caused
	    missing safe buffer zone newlines at the ends
	    of the mailbox stored messages.  At least
	    my MUTT seem to be a happy camper even with
	    this problem present, but perhaps not all
	    are so good..

	* transports/libta/swriteheaders.c:
	    Missed reserving space for TAB-expansions in CHUNKING
	    mode operation of SMTP.  Only against other ZMailers,
	    and a few other rare systems..

1999-12-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.52

1999-12-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* contrib/zmailer-spec/*:
	    SPECS files for RPM generation from Xos� V�zquez <xose@ctv.es>

	* Makefile.in:
	   Version 2.99.52-pre5

	* scheduler/scheduler.c:
	    At RESYNC processing do lock verification SILENTLY,
	    and do break the lock...

	* transports/mailbox/mailbox.c:
	    When SFIO was introduced here, write to pipes wasn't
	    anymore working quite as it should -- namely EPIPE
	    is something which shall just be *ignored*.  Wrote
	    SFIO write discipline to handle this case.

	* utils/Makefile.in, utils/smtpserver-log-parser.pl:
	    Autoconfigure the perl for that script, and install
	    it during normal system install (and install-bin).

	* transports/smtp/smtp.c:
	    - Some remote servers misbehave by issueing an error
	      to MAIL FROM just because receiver doesn't do proper
	      state clearance at end of DATA phase, but claims
	      that "MAIL FROM already given" :-(  Issue an RSET,
	      and try feeding the thing again.
	    - Subtle dangling pointers seen related to reconnect
	      processing, fixed them now.

	* scheduler/threads.c:
	    Print "mailq -Q" always as is threads are running in
	    multi-TA mode (instead of the default of maxthr=1)

	* scheduler/update.c:
	    An oddball ETRN caused SEGV - not quite sure this fix
	    was right in the long run...

	* libmalloc/botch.c, libmalloc/defs.h, libmalloc/dumpheap.c,
	  libmalloc/malloc.c, include/zmalloc.h, libmalloc/_strdup.c,
	  libmalloc/align.h, libmalloc/globals.c, libmalloc/emalloc.c,
	  libmalloc/malloc.h, libmalloc/strdup.c
	    memory debugging tools -- glibc malloc hooks are better!
	    (See  smtp.c  "_hook" things..)

	* scheduler/mq2.c:
	    Use SFIO instead of STDIO for some debug reports, and
	    do clean them too!
	
	* include/ta.h, transports/libta/ctlopen.c,
	  transports/libta/diagnostic.c, transports/libta/fwriteheaders.c,
	  transports/libta/swriteheaders.c, transports/libta/mimeheaders.c,
	  transports/libta/routermxes.c, transports/smtp/smtp.c:
	    Tracked memory freeup order failure!  D'uh it was difficult!
	    ( ctlclose() did free(d.contents) too early... )

1999-12-29  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/scheduler.h, scheduler/prototypes.h, scheduler/mq2.c,
	  scheduler/threads.c, scheduler/transport.c, scheduler/readconfig.c,
	  scheduler/qprint.c, scheduler/update.c, proto/scheduler.conf.in,
	  scheduler/agenda.c:
	    Implemented changes needed for running multiple TAs at threads.

1999-12-28  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/netdb.h, libc/getnameinfo.c:
	    Fixes from Eugene Crosser for Cobalt box.

1999-12-23  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/hold/Makefile.in, transports/mailbox/Makefile.in,
	  transports/sm/Makefile.in, transports/smtp/Makefile.in:
	    Modify library linkage orders; in case @LIBMALLOC@ is used,
	    link it *last*.  That should avoid some problems I had recently
	    when running memory-debug TAs..

	* scheduler/transport.c:
	    One more oddball corner case - missed to do *thread* rescheduling
	    at the thread-switch..

	* scheduler/scheduler.c, scheduler/scheduler.h:
	    After some fixed amount of resyncs on a file, throw it away
	    alltogether for latter input queue scanner to find.
	
1999-12-22  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/selfaddrs.c:
	    A programming error has lurked here ages -- if system has
	    more than a few (6-8) IP addresses, previous code failed
	    to pick *any*.  Cured things so that it will now pick all.
	
1999-12-21  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/scheduler.h, scheduler/transport.c:
	    Report at reclaim() to scheduler main error log if subprogram
	    has returned with non-zero exit status.

	* scheduler/agenda.c, scheduler/threads.c, scheduler/prototypes.h:
	    Moved  QUEUE_ONLY  flag observation inside the  thread_start().

	* scheduler/scheduler.c:
	    Timeserver waking up on select() every circa 0.3 seconds.
	    (Goal is to have *some* reliability at getting a bit more
	     accurate 1 second tick..)

	* scheduler/threads.c:
	    Fixed  'thr->attempts' accounting, threw away a pile of
	    dead (#if 0 ... #endif) code.
	
1999-12-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/transport.c:
	    Inverted flush_child() return code - to work like specified..

	* scheduler/update.c, scheduler/scheduler.h, scheduler/threads.c,
	  scheduler/transport.c, scheduler/conf.c, scheduler/prototypes.h:
	    More tracking of referrals thru freed memory blocks,
	    and various core logic cleanups.

	* libc/getaddrinfo.c:
	    Include wrapper test fix

1999-12-19  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/scheduler.c:
	    Wondered why (at Solaris) the system doesn't run with
	    timeserver process.  Possible fix implemented. (SFIO
	    usage mistake.)

	* scheduler/threads.c:
	    Spotted the final lurking thread-auto-switch bug -- "ho"
	    and "ch" pointers at proc object were not updated at the
	    rewritten  pick_next_thread()  function.

	* transports/smtp/smtp.c:
	    Spotted aplenty of suboptimal diagnostic() calls, and
	    guarded them with   if (rp->lockoffset)  tests.  After
	    a diagnostic is done, that variable is zero.

	* transports/smtp/smtp.c:
	    Consider DNS originating NONAME/NODATA errors to be fatal.
	    (until we again spot something which tells me otherwise..)

	* smtpserver/policytest.c, smtpserver/mxverify.c:
	    If at MAIL FROM or RCPT TO the address domain is not found
	    from the DNS, and code is  EAI_NONAME or EAI_NODATA, we yield
	    500-series result.

	* include/netdb6.h, libc/getaddrinfo.c:
	    Synced  getaddrinfo() API constants with that of Linux
	    glibc 2.1 proper.

1999-12-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/prototypes.h, scheduler/threads.c, scheduler/transport.c,
	  scheduler/update.c:
	    Reworked vertex processing some more -- the child feed function
	    (and *only* that) will call  pick_next_vertex().

1999-12-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/scheduler.c:
	    In sync_cfps() vertex index limits one-off :-(
	
1999-12-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/scheduler.h, scheduler/prototypes.h, scheduler/update.c,
	  scheduler/transport.c, scheduler/threads.c:
	    Reworked the logic of TA child process feeding and job picking.
	    This is initial edition - not yet confirmed to *work*.
	    Killed a *lot* of hairy code -- thus must have done something
	    right...  (Added about 440 lines, removed about 550 lines.)

1999-12-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    '--disable-pam' option.

	* scheduler/*:
	    Pulled back most of logic changes introduced during last
	    10 or so days, but kept (of course) all SFIO things.

	* smtpserver/smtpserver.c, smtpserver/smtpcmds.c:
	    changed most (all?) 553 and 453 return codes to 550 and 450
	    respectively.

	* smtpserver/zpwmatch.c:
	    Don't call (at all)  pam_acct_mgmt()  function.

1999-12-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/msgerror.c:
	    Put original (or rewritten) message headers to the end of
	    the acompanying letter - makes things easier for M$ users
	    to ask for advice (and me to give it..)

	* scheduler/scheduler.c:
	    Found curious problems at the resyncing code; sometimes
	    resulting VTX->NGROUP count was zero, and things didn't
	    quite work with that..  Such vertices are now thrown away.

	* scheduler/scheduler.c:
	    A major walk-thru of MIB variables for Recipient counts.
	    Are they now in control ??

	* smtpserver/smtpserver.c, smtpserver/smtpcmds.c:
	    Found out that Lotus SMTPMTA software goes ballistic
	    if it sees response code it doesn't expect -- its writers
	    are stupid and expect everybody to always produce only
	    codes listed at RFC 821 -- without doing the hundred-
	    series "approximative" processing more common in all
	    public source based system.. (beginning with sendmail..)

1999-12-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/libta/ctlopen.c, router/rfc822.c, scheduler/scheduler.c,
	  scheduler/threads.c:
	    Immediately obvious bugfixes, once the system is under load..

1999-12-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c, transports/mailbox/mailbox.c:
	    Noticed case where still do MIME downgrading in place
	    where we really DO NOT KNOW HOW TO!  Added code to
	    once and for all disable conversions unless the message
	    in question is TEXT/PLAIN.

	* include/mail.h.in, router/rfc822.c, scheduler/scheduler.c,
	  transports/libta/ctlopen.c, include/ta.h:
	    Introduced  _CF_FORMAT  tag to the scheduler/TA spec file.
	    From now on adding new gimmic formats is easier - I hope.

	* include/libta/warning.c:
	    Make sure that writing of the messages will happen in
	    blocking mode socket, and do  fflush()  afterwards!

	* transports/smtp/smtp.h, transports/smtp/smtp.c,
	  transports/smtp/appendlet.c, include/libc.h:
	    ZBUFSIZ macro to replace possibly <stdio.h> originated
	    BUFSIZ macro.  Easier to be consistent and predictable..
	    Added couple missing extern...() function declarations.

	* lib/esyslib.c:
	    At Solaris the  unlink(2) may yield EINTR or EBUSY, do
	    a wrapper to retry the operation when that happens.

	* router/rfc822.c:
	    At Solaris the  unlink(2) may yield EINTR or EBUSY, do
	    a wrapper to retry the operation when that happens.
	    (This is different from  eunlink()  which complains..)

	* smtpserver/smtpserver.c, smtpserver/policytest.c,
	  smtpserver/smtpserver.h:
	    Track successfull configuration, and refuse to accept
	    email if no rudimentary configuration exists.

1999-12-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler:
	  - Some more SFIO fixes which I missed last night
	  - Possibly fixed the 'mailq -Q' reported stored recipient counts.
	    (cosmetics)

	* lib/symbol.c, libc/getzenv.c:
	    Compiler pleasing..

	* ALL OVER THE PLACE:
	  - Replaced *all* stdio usage within the Scheduler with
	    SFIO -- now it can go beyond 255 open file descriptors
	    at Solaris systems... (FILE->_file is 'u_char' there,
	    while Sfio_t->file is a 'short' - huge difference!)
	  - More work on SMTP TA code to eradict last vestiges of
	    alarm(2) based timeout breaks, now SFIO stream discipline
	    routines will handle the timeout gracefully
	  - Some changes to few very commonly used headers, and resulting
	    small call changes all over..

1999-12-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/smtp-tls.conf, transports/smtp/smtp.c,
	  transports/smtp/smtp.h, transports/smtp/smtptls.c:
	    - Completed initial write-thru of TLS client mode for the SMTP TA
	      however *no* testing has been done yet!
	    - Both client and server got (from Postfix) session cache, but
	      that code is *untested*
	
	* smtpserver/smtptls.c, proto/smtpserver.conf.in,
	  smtpserver/cfgread.c, smtpserver/smtpserver.h,
	  smtpserver/smtpserver.c, smtpserver/smtpcmds.c:
	    - Updates to smtpserver for evolved original code from Postfix.
	    - Both client and server got (from Postfix) session cache, but
	      that code is *untested*

	* proto/Makefile.in:
	    With "make dirs" creates $POSTOFFICE/TLSsrvrcache/ and
	    $POSTOFFICE/TLSclntcache/ directories with protection of 700 ..
	    (For the SSL session cache storage.)
	
1999-12-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/policy-builder.sh.in:
	    Add some comments to the generated  smtp-policy.dat  file
	    about which source section (file) is beginning..
	    Add some comments to the generated  smtp-policy.dat  file
	    about which source section (file) is beginning..

	* Makefile.in, configure.in, sfio/Makefile.in, sfio/README,
	  sfio/src/lib/sfio/makefile{,.in}, include/ta.h:
	    Autoconfigure key parts of the  SFIO  library make system
	    to fit ZMailer environment.  Use  SFIO  stuff at Transport
	    Agents.

	* transports/libta/{,f}writeheaders.c, transports/libta/Makefile.in,
	  transports/errormail/errormail.c, transports/hold/hold.c,
	  transports/sm/sm.c, transports/mailbox/mailbox.c:
	    Renamed former  writeheaders()  to be  fwriteheaders().

	* transports/libta/swriteheaders.c, transports/libra/Makefile.in,
	  transports/smtp/Makefile.in, transports/smtp/smtp.c:
	    Created modified version of  writeheaders(), namely
	    swriteheaders() which instead of 'FILE *' has 'Sfio_t *'
	    as its 'fp' parameter.  Using that at smtp.c

	* transports/smtp/Makefile.in, transports/smtp/smtp.c,
	  transports/smtp/appendlet.c, transports/smtp/smtp.h:
	    Split up the big monolithic  smtp.c  a bit:
		 608   16378 transports/smtp/appendlet.c
		4182  112512 transports/smtp/smtp.c
		 410   12057 transports/smtp/smtp.h
	    Further smarts at the transport-time conversions will
	    go into the  appendlet.c  alone..
	
1999-11-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/Makefile.in, router/daemonsub.c, router/functions.c,
	  router/router.c:
	    Moved daemon management functions into own file, and rewrote
	    them somewhat when Linux 2.3.30pre3 caused a hangup..
	    (And cleaned some dead code from  router.c )
	
	* scheduler/mailq.c:
	    Do line-start dot-duplication a'la SMTP...
	
	* utils/smtpserver-log-parser.pl:
	    Synced this tool with my lattest online edition, fairly usable..

1999-11-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/functions.c:
	    More system rework, now signal handlers don't muck with
	    stdio stuff, and associated trouble (which *might* be
	    problem at some systems).  Report child-process runtime
	    statistics when the child dies.  Use  select()  to detect
	    when children have things to report, if available.
	    A dead router child is reclaimed properly, and new ones
	    are started as the need arises.

	* scheduler/scheduler.c, scheduler/transport.c, scheduler/update.c:
	    Fix message-specific interactive report logging to use
	    vfp_open() routine (which had a feature/security problem
	    in itself). Rearranged several logging points so that
	    'scheduler processing' messages are done correctly.
	    Wrote 'Feeding to child..' report into the transport.c.
	    At update.c rewrote  logstat(),  and dead code now using
	    vfp_open() to write individual recipient statuses; problem
	    being that 'vp->cfp->contents' is NULL at the call time..

	* scheduler/transport.c:
	    mailq interface specification had a case where data can be
	    omitted, and one pointer is thus NULL -- referring via which
	    is an open invitation to trouble (SIGSEGV usually..)

1999-11-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Noticed that (again) smtp doesn't always timeout in 3 days
	    (or whatever the queue timeout is), turned out EX_TEMPFAIL
	    diagnostics don't always carry timeout value (60 seconds).

	* router/Makefile.in, router/functions.c, router/router.c,
	  proto/cf/standard.cf:
	    Revised the way how several things are done:
	    - files are processed under control of a work-gang leader
	    - logging isn't done anymore via router logscript
	      "dribble" redirection, but via a work-gang leader

1999-11-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    version 2.99.52-pre4

	* configure.in:
	    Autodetect when PAM-support (for SMTP authentication) needs
	    also "-ldl" library, and when not.

	* configure.in:
	    Fix on fix on fix of autodetecting MD5SUM program location.

	* proto/Makefile.in, Makefile.in, proto/post-install.sh.in:
	    An attempt at writing a   post-install  script, which
	    conditionally moves files from respective "proto" subdirs
	    to their proper places.

	* scheduler/mailq.pl:
	    A simple demo core for PERL version of the MAILQv2 query
	    utility..

	* include/md5-global.h:
	    Found the reason why our MD5 instance did produce wrong
	    results at my Alpha... It is very important to truncate
	    intermediate calculations to 32-bits during the processing!

	* lib/selfaddrs.c, libident/identuser.c, scheduler/mailq.c,
	  scheduler/pipes.c, scheduler/transport.c, smtpserver/smtpserver.c,
	  transports/mailbox/mailbox.c, transports/smtp/mprobe.c:
	    Instead of  AF_xxxx  we call  socket parameter  PF_xxx
	    (not: Address Family, but Protocol Family ...)
	
	* man/scheduler.8, man/mailq.1, scheduler/mailq.c,
	  scheduler/threads.c:
	    Updated man-pages a bit (quite a bit!), implemented 'mailq -QQQ'
	    in MAILQv2 mode. (E.g. 'SHOW SNMP')

1999-11-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Autodetect  <sys/un.h>  header file

	* proto/scheduler.conf.in, scheduler/mailq.c, scheduler/mq2auth.c,
	  scheduler/prototypes.h, scheduler/readconfig.c,
	  scheduler/scheduler.c, scheduler/transport.c:
	    * scheduler.conf file can now have:
	        PARAMmailqpath = "UNIX:/path/to/pf_unix/mailq/socket"
		PARAMmailqpath = "TCP:174"
	    * mailq -p /path/to/pf_unix/mailq/port
	    * mailq -p mailq    (check /etc/services for tcp/mailq)
	    * mailq -p 174      (default case)

	    Those are for running multiple schedulers in the system,
	    and allowing each a different mailq port. (Out of PF_UNIX,
	    and PF_INET protocol families..)

1999-11-11  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/mq2.c, scheduler/scheduler.c, scheduler/prototypes.h,
	  scheduler/threads.c, scheduler/readconfig.c, proto/scheduler.conf.in,
	  scheduler/mq2auth.c, proto/scheduler.auth:
	    Modified somewhat commands, and how they are selected.
	    Now  "scheduler.auth"  file defines which operations are
	    allowed (a bit-mask).
	
	* proto/Makefile.in:
	    Wrong file referenced; must be  scheduler.auth  !
	    ( not smtpserver.auth! )

	* lib/selfaddrs.c:
	    When  HAVE_SA_LEN  is defined, we used wrong definition
	    for  sa_len  field within the union.

	* transports/libta/tasyslog.c, router/rtsyslog.c:
	    An experiment on alternate TRANSPORT syslog format:
	    if ZENV variable SYSLOGFLG has 'T', the classical ", "
	    separated fields are printed.  If the flag is 't',
	    field separator is TAB-character.   Similarly for ROUTER
	    there are 'R' and 'r' keycodes.
	    (Turns out that either syslogd, or syslog() routine
	     at libc converts all control characters to ^I (in TAB case)
	     pairs..  D'uh...)

1999-11-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/makedb/makedb.c:
	    When using NDBM format, if the STORE returns error with
	    errno=ENOSPC, we report that KEY.LEN+DATA.LEN exceed 1kB
	    which NDBM allows...

1999-11-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/readconfig.c, scheduler/threads.c, scheduler/conf.c,
	  scheduler/mailq.c, scheduler/mq2.c, scheduler/mq2auth.c,
	  scheduler/prototypes.h:
	    'mailq -Q' and 'mailq -QQ' work when scheduler runs with '-M2'
	    now :)  Authentication wants
		PARAMauthfile = "/path/to/scheduler.auth"
	    into the boilerplate defining section of the scheduler.conf,
	    and that file -- well, see the example. WORK IN PROGRESS!

	* scheduler/mq2.c, scheduler/mq2auth.c:
	    More of the theme...

	* configure.in, utils/Makefile.in, utils/md5sum.c:
	    Initial attempt at writing (from scratch)a MD5SUM
	    program, but for some reason the result is *not* the
	    same as GNU textutils one gives :-/  Perhaps it will
	    not matter in the end, though..

	* scheduler/Makefile.in, scheduler/transport.c, scheduler/mq2.c,
	  scheduler/scheduler.h, scheduler/prototypes.h:
	    Some more work on MAILQ-V2; now needs fleshing out only
	    the real protocol interpreter at  mq2.c: mq2interpret(),
	    and corresponding things in the system..

	* utils/policy-builder.sh.in:
	    Some script tweaks; removed externally sourced 'bad source
	    addresses' list pickups.

1999-11-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/md5.h, libc/md5c.c:
	    Move call-interface renaming macro into more
	    appropriate place..

	* proto/cf/server.cf:
	    Rectify report codes for EXPN and VRFY.

	* smtpserver/smtpserver.c:
	    Don't do ident query when in interactive mode.

	* smtpserver/smtpserver.c, smtpserver/smtpserver.h:
	    Call  s_setup()  with appropriate fd's for input,
	    and output.  Sometimes we are *not* running with
	    bidirectional socket as the point of contact..

	* scheduler/scheduler.h, scheduler/scheduler.c, scheduler/mailq.c,
	  scheduler/prototypes.h, libc/md5c.c, scheduler/MAILQ-V2:
	    Initial steps to write an interactive command channel
	    via the MAILQ port.

1999-10-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/Makefile.in, smtpserver/smtpserver.c,
	  smtpserver/wantconn.c:
	    Reversed the effective kill of the tcp-wrapper after
	    the ./configure got a way not to link it in per default..

	* configure.in:
	    "--with-openssl" (or its more explicite cousins) must now
	       be used to have OpenSSL enabled at the system
	    "--with-tcp-wrappers" (or its more explicite cousins) must
	       now be used to have TCP-Wrapper enabled at the system

	* man/smtpserver.8, proto/smtpserver.conf.in, smtpserver/cfgread.c,
	  smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/smtpcmds.c:
	    A "tarpit" feature implementation per an idea from
	    Arjan van de Ven <arjan@NL.UU.NET>, plus
	    Mark Visser <mark@cal026031.student.utwente.nl>.
	    (Who reported of what postfix/vmail can do.)

1999-10-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Smarter (?) default picking for  SENDMAILPATH and MAILBOX
	    directory path for those systems which have  <paths.h> file
	    with system specific directory paths...

	* libc/Makefile.in:
	    Fixed $(prefix) usages in 'make install' targets.

	* smtserver/Makefile.in,
	  smtpserver/smtpserver.c, smtpserver/wantconn.c:
	    Essentially killed tcp-wrapper from being used for ZMailer's
	    smtpserver.  SMTPSERVER's policy-database has superior
	    technology for the same thing.

1999-10-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/Makefile.in:
	    Make the destination directories if they don't exist..

	* router/libdb/bsdbtree.c, router/libdb/bsdhhash.c,
	  utils/makedb/makedb.c:
	    Turns out, 'put' function of  Sleepycat DB 2.x  has
	    changed the return values completely around, and what
	    before was negative for permanent/system error, is now
	    a positive value, and the other way around...
	    (return value for duplicate key is now negative, while
	     it was positive before...)

	* smtpserver/smtpcmds.c:
	    Count incoming message SIZE= option only *once*, as
	    we may be relaying them all, and not storing locally.
	    For that matter, in ISP mode a limited message size
	    where the message quota limits maximum of
	    	rcptcount * msgsize
	    does not make much sense - nor exactly in local storage
	    mode either...

1999-09-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c:
	    For ETRN processing be slightly more carefull at
	    (not) accepting '@' and '#' special characters
	    in the beginning of the domain name.

	* smtpserver/smtpcmds.c:
	    At MAIL FROM we may reject the email reception, and
	    abort the email -- State change is allowed only if
	    we didn't do the abort..

	* transports/smtp/smtp.c:
	    Seen a case where immediately successive EHLO + HELO
	    both fail, and at *same* target that very same HELO
	    also succeeds...  Most surprisingly, within same session
	    which just rejected one message with an error, simply
	    continuing with an open stream (sort of bug..) we do
	    succesfully deliver email..

1999-09-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/readconfig.c:
	    If the  channel/host  selector clause contains wild-cards
	    at the 'channel' part, AND the command= parameter contains
	    '$channel' in it (once or more), set CFG_WITHHOST, because
	    such transport agents can't switch over from one channel to
	    another.

	* transports/sm/sm.c:
	    - If write to pipe fails (except with 'gotsigpipe'), cleanup
	      PIPEs to the child process.
	    - Don't be upset even if write to pipe fails with EPIPE/SIGPIPE.

	* router/dateparse.c:
	    Certain pathologic inputs are able to feed extra data to
	    the date parsing, and it turned out to run with month zero,
	    which caused division-by-zero --> core dump...

1999-09-21  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.52-pre3

1999-09-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c:
	    Don't call  whoson(),  nor tcp-wrapper libraries in case
	    the smtpserver is not running from a network socket.

1999-09-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in, smtpserver/smtprouter.c:
	    For some proprietary ZMailer instances we realized that
	    we must pass arbitary environment variables down to the
	    router process run underneath the smtpserver.  Ergo,
	    ./configure for  putenv() function, and use it if available.

	* utils/policy-builder.sh.in:
	    Disable completely the old (original) spam-address
	    downloading with Lynx, and its associated tests.
	    Time has passed over them...

1999-09-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/smtpserver.conf.in, proto/zmailer.sh.in,
	  smtpserver/zpwmatch-pipe.c, man/smtpserver.8:
	    Documentation entries from Artur Urbanowicz.

	* router/libdb/bind.c:
	    Limited one potential buffer-overflow into more sensible
	    sizes of input.

1999-09-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/mailbox/mailbox.c, transports/mailbox/fmtmbox.c,
	  transports/mailbox/mboxpath.c, transports/mailbox/Makefile.in:
	    mboxpath-formatter routine from Eugene Crosser.

1999-09-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/symbol.c:
	    Use CRC-31 polynome hash function internally.

	* transports/mailbox/mailbox.c, transports/mailbox/mboxpath.c,
	  man/mailbox.8, man/mboxpath.1:
	    Added -X[X] option to behave alike -P[P] option, but to use
	    CRC32() function.

	* lib/symbol.c, lib/crc32.c, lib/hashtest.c:
	    Moved CRC-31 (?) polynome calculator into separate module
	    outside the  symbol.c;  Entrypoints: 'long crc32(char *s);'
	    and 'long crc32n(char *s, int len);'.

1999-09-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/interpret.c, libsh/expand.c, include/libsh.c,
	  libsh/shconfig.h, libsh/zmsh.c:
	    Hunted around, and fixed with a KLUDGE a problem in $(elements ..)
	    expansion routine.  I am not *quite* sure it is right one for
	    all cases, but detected problems at online "smtp-router" are
	    cured with this.

	* proto/cf/server.cf, proto/cf/aliases.cf, README.UPGRADING,
	  SiteConfig.in:
	    - Fix previously scrambled  server.cf  somewhat
	    - Created global settings controlling two parts of the
	      $(routeuser ..) functionality.

	* smtpserver/smtprouter.c:
	    Cleaned previous hacks.

	* smtpserver/smtpserver.c, smtpserver/smtprouter.c, proto/cf/server.cf:
	    Noticed several problems:
	    - Router reports were not reported thru the proper socket, and
	      that screw up things..
	    - Made some wrappers into the  server.cf  to always issue proper
	      status code in the line; plus always terminating "250 EXPN done",
	      or "250 VRFY done" lines.  Also noticed a bug in the zmsh!
	    - smtpserver main loop got spurious EOF result from protocol input
	      line, when the input was in fact just plain CRLF ... Urgle..

	* smtpserver/zpwmatch.c:
	    More rework at the SHADOW -branch..

1999-09-07  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c:
	    If (heaven forbid)  s_gets()  routine notes that the input
	    line length overflows the buffer -- i.e. it filled the buffer,
	    and didn't get an EOF or NEWLINE yet, then it will glob up
	    input, until it sees a NEWLINE (and including that newline..)

	* smtpserver/zpwmatch.c:
	    Missed one part in previous HAVE_SHADOW_H related patch :-(

	* proto/smtpserver.conf.in:
	    Place 'ESMTP' at both lines of the 220 message (sigh,
	    PostFix MTA violates RFC 1869 part 4, and probably isn't
	    the only one...)

	* smtpserver/smtpserver.c, smtpserver/smtptls.c:
	    Missed one instance of  read()  from converting to  Z_read()
	    wrapper for OpenSSL call support...

1999-09-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.52-pre2

1999-09-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* doc/guides/smtp-etrn:
	    Spotted a typo error at the ISP side of the document.

	* smtpserver/zpwmatch-pipe.c, smtpserver/smtpserver.h,
	  smtpserver/smtpserver.c, smtpserver/smtpauth.c,
	  smtpserver/cfgread.c, proto/smtpserver.conf.in,
	  man/smtpserver.8, smtpserver/Makefile.in:
	    Integrated Artur Urbanowicz's "use external program
	    for authentication" approach into the baseline system.
	    (Documents could use some additional words about the
	     topic..)

	* smtpserver/zpwmatch.c:
	    Fix  HAVE_SHADOW_H  branch of the code per report
	    from Eugene Crosser.

1999-09-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Error reports from "." phase were improper, cured.

1999-08-31  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/rrouter.cf:
	    Another missed "$(dequote ...)" call.  Without this,
	    pipe/file stores don't get "magic" 'pipe.*' and 'file.*'
	    local channel tags so that all other cases can safely
	    be run to procmail as the local delivery agent.

1999-08-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.52-pre1

	* sfio/*
	    Looking for ways to use this thing...

1999-08-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* contrib/pipeauth-0.55.tar.gz, contrib/rauth-0.56.tar.gz,
	  proto/smtpserver.conf.in, proto/zmailer.sh.in,
	  smtpserver/cfgread.c, smtpserver/fdstatfs.c,
	  smtpserver/smtpcmds.c, smtpserver/smtpserver.h,
	  smtpserver/zpwmath.c, utils/policybuilder.sh.in,
	  doc/guides/smtp-msa-mode:
	    Heaps of changes from an ISP guy
	    Artur Urbanowicz <artur.urbanowicz@man.lublin.pl>

	* transports/libta/diagnostic.c:
	    Report the 'host' part of the referred channel/host pair
	    for which the diagnostic is being presented.

1999-08-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c:
	    Fix support for SLOPPY mode "MAIL FROM:<>" source address.

1999-08-24  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/smtpcmds.c, smtpserver/smtpdata.c, smtpserver/smtprouter.c:
	    Modify (somewhat) buffering issues; small change at  s_setup(),
	    all around change  putc()  to  fputc().

	* libc/mail.c:
	    Do  setvbuf( _IOFBF )  on freshly opened file descriptor.

1999-08-22  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    An odd-ball case of lacking RSET in PIPELINING mode when
	    none of the recipients were successfull..

1999-08-21  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/fqdnalias.cf:
	    One last missing usage instance of "runas .. cat ..".
	
	* scheduler/msgerror.c:
	    Printout the  MESSAGE/DELIVERY-STATUS  report to the end of
	    the initial text report - because so many (M$) email clients
	    are uterly unable to display them...

1999-08-18  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    For Solaris 2.6 (and Solaris 7 ?) autodetect  -lxnet  for
	    socket related functions.

	* smtpserver/zpwmatch.c, utils/listexpand.c:
	    Some cleanup from result of using SUN-CC 4.2 at Solaris 2.6.

1999-08-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* README.TCP-WRAPPER:
	    New file.

	* lib/rfc822scan.c:
	    Reorganized the code a bit - now the fast path is
	    straighter code with less odd tests.

	* transports/mailbox/mailbox.c:
	    getpwnam() failure report fix - should not need, but..

	* transports/smtp/smtp.c:
	    Solaris 2.5.1 doing  getsockname()  is doing blocking
	    streams thing even on non-blocking socket :-/ Results
	    are not as nice as with e.g. BSD based systems where
	    same call doesn't block (no need!)  Also some errno
	    saving around.

1999-08-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf:
	    When the   ssift  (and tsift)  were changed *not* to
	    strip away quotes, buggeroo... we need *one* place where
	    quotes are stripped -- that is: explicitely..

	* lib/rfc822scan.c:
	    _unfold() had problems at detecting the termination condition.

	* router/rfc822hdrs.c:
	    One fine-tuning of "Received:" header generation; leaves
	    off one space character when no 'from' clause is present.

1999-08-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Detect better, when the STDIO fwrite() and friends
	    fail -- bdat_sync() was running wild loop in odd
	    situation when the recipient system died from under-
	    neath, and when coming back up, it rejected the pre-
	    existing connections...

1999-08-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, smtpserver/smtpcmds.c,
	  smtpserver/rfc821scn.c:
	    Done work to get the SLOPPY ('S') mode to work properly
	    with MAIL FROM and RCPT TO contained addresses.

	* utils/makedb/makedb.c:
	    When a duplicate key is give, print out the key value
	    in same form as the debug mode at the smtpserver does it.

	* utils/policy-builder.sh.in:
	    Remove previous static blocking list source entries.

1999-08-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/smtpserver.8:
	    A bug in the document..  TCP-wrapper service is
	    "smtp-receiver", not "smtp-receive" ...

	* transports/libta/mimeheaders.c:
	    Previous work had some weird problems, reworked, and
	    now it seems to work.

1999-08-06  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/libta/mimeheaders.c:
	    MIME-conversion labeling had problems after the new form
	    of 'Received:' production at the router.

	* smtpserver/smtpserver.c:
	    Added couple of  setvbuf()  calls for stdout, and stderr
	    at the beginning of the smtpserver main() program.  Story
	    is long about what and where...  look at the ZMailer list
	    archive about ccNotes gateway problem.

1999-08-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/selfaddrs.c:
	    After example code at the list, did some of my own code tweaks
	    to do comparison of address (IPv4 or IPv6) only, not the entire
	    'struct sockaddr', which contains ports, and other things...
	    (The port might not necessarily be zero in all cases..)

	* proto/cf/aliases.cf, proto/cf/aliases-new.cf, router/functions.c:
	    A potential security problem in the scripts.  I wonder how the
	    "ancient" 2.2.1 did handle this one..  Introduced "cat" builtin
	    to be used within a sequence of:   runas $priv cat "$filepath"  ...
	    Now strategically placed symlinks can't be used to divulge file
	    contents whose access is prohibited from the symlink creator..

1999-07-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Minor nit-pick in <sys/socket.h> study.. Must include <sys/types.h>
	    at first as in many systems all headers are not idemponent, and
	    thus have some pre-requisite headers for inclusion..

	* libsh/interpret.c, proto/cf/canon.cf:
	    Don't do implicite dequotation of quotefull strings in ssift and
	    tsift..  ( '"foo@bar"' -> 'foo@bar' )
	
1999-07-19  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Instead  AC_CHECK_HEADER() use AC_CHECK_HEADERS() macro.
	    Former *should* work with single headers, but apparently not..

1999-07-19  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.51

	* configure.in, smtpserver/Makefile.in, smtpserver/zpwmatch.c,
	  doc/guides/smtpauth-login-pam-support, man/smtpserver.8:
	    Autoconfigure PAM support for the system.
	    See the  smtpauth-login-pam-support  for mandatory bit
	    of support file(s)...

	* smtpserver/smtpauth.c, smtpserver/zpwmatch.c:
	    Pass also user's UID -- although PAM code does not pick it (yet).

	* compat/rmail/rmail.c, include/libz.h, lib/linebuffer.c,
	  router/functions.c, router/rfc822.c, utils/makedb/makedb.c:
	    GLIBC 2.1 with __USE_GNU active has also 'getline()' function,
	    thus we renamed to   zgetline() ...

1999-07-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.51-pre3

	* router/rfc822.c:
	    - Empty headers caused problems in printout
	    - At errprint() did some token double-printing, now fixed.

1999-07-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* root/prototypes.h, root/rfc822hdrs.c:
	    Still more finetuning of the RFC-822 output folding
	    rules.  Now things look nice in all cases that I have
	    encountered/imagined.

1999-07-07  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.51-pre2

	* transports/smtp/smtp.c:
	    - Reworked even more that reconnect mechanism. (core drops)
	    - Noticed that 'No MX, no address' reports are coming
	      out more and more regularly in cases where they should
	      *not* occur.  As I don't seem to be able to coerce
	      the system to do the *right* thing, let it be TEMPFAIL
	      once again...  Rather delayed erroring attempts, than
	      rejections because of wrong reports.

	* scheduler/threads.c:
	    Made debugging zsyslog(()) call to use LOG_ERR instead
	    of LOG_EMERG; latter one broadcasts to everybody in one
	    of my test systems...

	* include/libz.h, lib/rfc822scan.c, lib/token.c, libc/mail.c,
	  router/prototypes.h, router/rfc822.c, router/rfc822.ssl,
	  router/rfc822hdrs.c, router/libdb/header.c:
	    Lots of experimenting with code to get proper RFC822
	    tokenization, and proper folding at the output.
	    Most difficult part seemed to be rfc822scan.c ...

1999-07-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Reworked the EHLO/HELO reconnect mechanisms.  Now it
	    reconnects to the *same* address where EHLO failed
	    just previously.  Otherwise it could connect to some
	    other address in case the target has several addresses..

	* lib/rfc822scan.c:
	    MKERROR() did crash for some reason in previous form.
	    Modified call a bit and changed it into a static function
	    of its own.  Now it seems to work.  (Compiler bug ??)

	* Makefile.in:
	    Version 2.99.51-pre1

	* smtpserver/smtpcmds.c, smtpserver/smtpserver.h:
	    Limit the length of the "HELO/EHLO" string, and the length
	    of reported reversed hostname in the "rcvdfrom" envelope
	    header, and thus in the resulting "Received:" header.

1999-07-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/rfc822.c, router/rfc822hdrs.c, router/libta/header.c:
	    A bit more gymnastics to get rid of:
	        Received: from localhost (user '...' uid#1234) by ...
	    and to replace it with:
	        Received: (from localhost user '...' uid#1234) by ...

	* transports/smtp/smtp.c:
	    Fixed the errorneous 'Final-Recipient:' lines in the
	    delivery reports.

	* scheduler/threads.c:
	    Re-enable the kludge-report; if they don't happen, the
	    smtp.c is ok, if they do...

	* lib/rfc822scan.c, lib/token.c, router/rfc822hdrs.c:
	    Multiline compound tokens (topic for recent activities)
	    had still major problems.  Did also modify "Received:"
	    header content generation, although not quite sufficiently
	    in all situations (considering when/how to fold commentary
	    material in 'from' entry.)

1999-07-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/smtpserver.8, smtpserver/smtpserver.c, smtpserver/smtpcmds.c,
	  smtpserver/smtpserver.h, smtpserver/smtpdata.c, smtpserver/cfgread.c,
	  proto/smtpserver.conf.in:
	    "PARAM min-availspace 5000" -- specify the minimum required
	    available space in the $POSTOFFICE/ directory. In KILOBYTES.

1999-07-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, contrib/whoson-1.08.tgz:
	    Arkadiusz Mi?kiewicz <misiek@misiek.eu.org>:
	    - update to newer whoson package
	    - adding option "-w" to smtpserver to actually
	      do the query of Whoson.  Allows code being
	      compiled in without it being used...

	* proto/cf/canon.cf, lib/rfc822scan.c:
	    Turns out the best way to fix the 'foo\!faa!fii'
	    problem is not to tinker with tsift patterns at
	    canon.cf, but instead have '\!' pair scanned into
	    token of its own.

1999-07-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/canon.cf:
	    Received a patch to UUCP routing problem introduced
	    by the addition of forbidding to spot '\!' pair..

	* include/libz.h, lib/rfc822scan.c:
	    Fix the way how _unfold() works.  Pointer comparison
	    was certainly *wrong* way...

	* router/libdb/ldap.c:
	    Reorganized things:
		Do connect+bind to DB at  ldap_open()
		Do ONLY queries at ldap_search()
		Do dissociation at ldap_close()
	
	* libsh/builtin.c:
	    A bug in handling of  $(lreplace ... )  internal conscell
	    chains polluted wrong objects with call parameters.  Adding
	    one strategic copy-chain solved it.

1999-06-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpauth.c, smtpserver/smtpcmds.c, smtpserver/smtphelp.c,
	  smtpserver/smtpserver.h, smtpserver/smtpserver.c:
	    A change in logging; make individual input sessions stand out
	    better by using constructed log line prefix; pppppTTTT[rw#-]
	    where "ppppp" is "%05d" of process pid. "TTTT" are chars in
	    range A thru Z, and are derived from log open time system time-
	    stamp as lowest 4 of base26 "digits" (0 = "A", 25 = "Z").
	    Now doing "egrep ^pppppTTTT smtpserver.log" should pick only
	    the interesting session...

1999-06-29  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/dateparse.c:
	     Fixes for Y2K-correct date parsing; although this
	     is dead code whose result is ignored, it still
	     apparently gets called...  Thanks Ken!

	* TODO:
	    Found major pain (problem, if you will) in the
	    LDAP interface code for the router.  It does server
	    connection and DB bind for *every* query :-(
	
	* transports/smtp/smtp.c:
	    Arkadiusz Mi?kiewicz <misiek@pld.org.pl> reported
	    compilation and operation problems in his IPv6
	    environment.  Turns out a  getnameinfo()  request
	    block parametrization bug prevented 'IPv6 AAAA only'
	    hosts from even being *found* for the data lookup.

	* configure.in, config.h.in, acconfig.h, libc.h:
	    Autoconfigure compilation sense of  'socklen_t' for
	    possible use of --with-ipv6-replacement-libc and then
	    smtp.c in mode where  getnameinfo() routine can be
	    debugged...

	* scheduler/threads.c, scheduler/transports.c:
	    Kludgeish "cure" to ``OF=0, HA=lots..'' problem.
	    If the HA exceeds now fixed value (3600 sec), the
	    system does client shutdown, and then recovers.

	* lib/rfc822scan.c:
	    Patch from <zack@bitmover.com> for RFC822 comment
	    nesting.  In the end result the comments disappear
	    entirely (not so great) but now properly nested
	    comments are not flagged as an error!

1999-06-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.c, smtpserver/smtpcmds.c,
	  proto/db/smtp-policy.src, utils/policy-builder.sh.in:
	    Tried to use delayed "rcpt-dns-rbl + test-rcpt-dns-rbl +"
	    policy attributes, and noticed that things didn't work
	    quite the way I had planned  .  Ah well, some testing,
	    and patching, and now it works...   Noticed also that
	    the report out of the machinery used wrong variable in
	    the  RCPT TO report code.

1999-06-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in, ChangeLog, compat/rmail/Makefile.in,
	  compat/rmail/rmail.c, compat/sendmail/Makefile.in,
	  compat/sendmail/sendmail.c, include/listutils.h,
	  include/mailer.h, include/malloc.h, include/zmalloc.h,
	  lib/Makefile.in, lib/splay.c, lib/symbol.c, libc/Makefile.in,
	  libc/mail_alloc.c, libident/Makefile.in, libmalloc/maltrace.c,
	  libmalloc/simumalloc.c, libmalloc/testmalloc.c,
	  libmalloc/teststomp.c, libsh/Makefile.in, libsh/expand.c,
	  libsh/shconfig.h, libsh/trap.c, router/Makefile.in,
	  scheduler/Makefile.in, scheduler/mailq.c, scheduler/scheduler.h,
	  smtpserver/Makefile.in, smtpserver/mxverify.c,
	  smtpserver/smtpserver.h, transports/errormail/Makefile.in,
	  transports/errormail/errormail.c, transports/expirer/Makefile.in,
	  transports/expirer/expirer.c, transports/fuzzyalias/Makefile.in,
	  transports/fuzzyalias/fuzzyalias.c, transports/hold/Makefile.in,
	  transports/hold/hold.c, transports/libta/Makefile.in,
	  transports/libta/ctlopen.c, transports/libta/diagnostic.c,
	  transports/libta/dnsgetrr.c, transports/libta/mimeheaders.c,
	  transports/libta/routermxes.c, transports/libta/tasyslog.c,
	  transports/libta/writeheaders.c, transports/mailbox/Makefile.in,
	  transports/mailbox/mailbox.c, transports/mailbox/mboxpath.c,
	  transports/sm/Makefile.in, transports/sm/sm.c,
	  transports/smtp/Makefile.in, transports/smtp/smtp.c,
	  utils/makedb/Makefile.in, utils/vacation/Makefile.in,
	  utils/vacation/vacation.c:
	    Arkadiusz Mi?kiewicz <misiek@pld.org.pl> reported
	    compilation problems in his environment.
	    - About all Makefile.in template files did need changes
	      so that ZMailer's own include paths preceed ALL other
	    - Changed all include instances of "malloc.h" to "zmalloc.h",
	      although that probably is unnecessary... (and renamed
	      the file, although CVS will show deletion and adding..)
	    - Manage to autodetect OpenSSL shared objects, although does
	      not do full blown shared-library runtime load path define,
	      as that detail tends to vary from system to system :-(
	
1999-06-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/mailbox/mailbox.c, configure.in, acconfig.h:
	    configure time option "--with-mboxquotacheck"

1999-06-24  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    More of "mailq -Q | grep OF=0" tracking.
	    Also several cases of eradicting extra  fflush() calls.

	* smtpserver/smtpdata.c:
	    Do "TRANSLATION" facility with PARANOID mode; and some
	    Asperin, or equivalent to Eugene Crosser...

1999-06-23  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/libta/mimeheaders.c:
	    Do downgrade to QUOTED-PRINTABLE in all cases where it is
	    needed.  Convert to C-T-E: 7BIT and/or C-T: ... ;charset=US-ASCII
	    only when the message is TEXT/PLAIN type.

	* transports/smtp/smtp.c:
	    Change the way how timeouts are handled for the  connect();
	    now does connect() in NON-BLOCKING mode, and uses select()
	    to see when the connection has completed, or timeout occurs.
	
1999-06-22  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/sm/sm.c:
	    Reworked the 'm'ultiple recipients processing. The previous
	    patch looped in place and kept allocation more and more memory.
	    Outch..

1999-06-18  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/sm/sm.c:
	    Internal users reported that somewhen since 2.99.50s5 the
	    'm'ultiple recipients mode has been broken.  A likely fix
	    is supplied.  (I haven't had change to test this.)

1999-06-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.c:
	    More from Eugene Crosser; process %-hack also for those
	    domains we are a relay-target for...
	
	* router/libdb/ndbm.c, router/libdb/ldap.c, router/libdb/dbm.c:
	    Eugene Crosser spotted that I had forgotten to change
	    some close_*() parameters to match new prototypes, which
	    I introduced while debugging BSD DB 2.something at Linux
	    Alpha RedHat 6.0 system.  Eugene sent patches for ndbm.c,
	    and ldap.c.

	* configure.in, smtpserver/Makefile.in, utils/makedb/Makefile.in,
	  utils/vacation/Makefile.in:
	    Introduce new '@LIBLOCALDBMS@' substitution which does not
	    include possible LDAP for applications which *don't* use
	    LDAP in themselves.  (Eugene Crosser report about missing
	    @LIBSOCKET@ substitution because of ldap things at makedb..)

1999-06-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/transport.c:
	    To sub-process (Transport Agent) pass environment variables:
	       TZ, PATH, ZCONFIG
	    I had thought that syslogd does timestamp formulation, but no...
	    It is within the  syslog()  library routine where that happens!
	    Thus our childs will need at least TZ (SysV-like systems) to know
	    what the local timezone is :-/

	* transports/smtp/smtp.c:
	    Treat "No MX, no A" as a serious error worth discarding the
	    recipient address.

1999-06-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/libdb/bsdbtree.c (and others during debug):
	    Spotted strange leakage of 'file' objects in the Linux
	    kernel.  Turns out that the BSD DB 2.x at Linux/Alpha
	    glibc-2.1.1 leaks one mmap() page at every db open.
	    Turns out also that every  search_btree()  which
	    misses, did a retry *after* close_btree() call.
	    As a result, routing did need terrible things.
	    Now won't do that db-reopen at search miss with
	    bsd-btree and bsd-hash codes.

	* scheduler/scheduler.h, scheduler/transport.c:
	    Spotted a case of 'very long' "host" information, which
	    naturally crashed the scheduler when scribling over fixed
	    buffer in the stack.  Now using malloc()ed buffers, which
	    are grown in case a need arises.
	

1999-06-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/interpret.c, router/functions.c, router/rfc822.c,
	  router/libdb/bind.c:
	    Code massage to silence the egcs-1.1.2 about "possibly unset
	    variable" -- if there is any code flow before variables are
	    set, then it doesn't know, what has happened.

	* scheduler/readconfig.c, scheduler/scheduler.c:
	    Removed/moved unused variable.

	* transports/smtp/smtp.c:
	    Sigh.. "warning: variable `channel' might be clobbered
	    by `longjmp' or `vfork'"

	* utils/vacation/Makefile.in:
	    [ -l somepath ] is NOT known function, it is:  [ -h somepath ]

1999-06-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* README.UPGRADING:
	    Explicitely list all standard commands for different
	    database regenerations.

	* contrib/zmailstats:
	    RE change in the main syslog pattern rule to handle the
	    timestamp format at the beginning of the syslog line.

	* libsh/interpret.c:
	    Tracked memory leakage in case the script did following:
	       ssift "$somevar" in
	         (.*)@(.*)  return "$somevar" ;;
	       tfiss

	* router/functions.c:
	    "stableprocess" routine used wrong argv[] element to
	    pass along to the real "process" script.

	* router/rtsyslog.c:
	    A bit more of compiler pleasing; smaller stack frame
	    when the 8000 byte buffer isn't off the stack..

	* smtpserver/policytest.c:
	    Silenced compiler about storing into constant variable.

1999-06-07  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/selfmatch.c:
	    Revoke the change I did while tinkering with
	    autodetecting <foo@[1.2.3.4]> address being
	    our local one..

	* utils/vacation/Makefile.in:
	    "test -e ..." is perhaps POSIX thing, but not at
	    Solaris /bin/sh :-/

	* router/rfc822.c:
	    A case of NULL pointer referral in form which I hadn't
	    encountered before...  (fqalias.ldap induced case)

	* Makefile.in:
	    'make dist' should dump also symlinks! Boo!

	* ChangeLog, configure.in, acconfig.h, router/libdb/bsdbtree.c,
	  router/libdb/bsdhash.c, smtpserver/policytest.c,
	  utils/makedb/makedb.c, utils/makedb/dblook.c, README.UPGRADING,
	  utils/vacation/vacation.c:
	    BSD DB 2.* interface had subtle difference; KEY and DATA
	    "DBT"s must be  memset(&key,0,sizeof(key))  to avoid nasty
	    surprises...  Wow, that API is -- versatile ...
	
	* router/libdb/bsdhash.c:
	    Fix of old BSD DB 1.85 type behaviour.

1999-06-06  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in, ChangeLog:
	    Version 2.99.50-s19

	* ChangeLog, utils/vacation/Makefile.in, compat/rmail/Makefile.in,
	  compat/sendmail/Makefile.in, doc/guides/openssl:
	    At places 'make install-bin' complained, review/fixup of some
	    Makefile.in:s.  OpenSSL referral document finetuning.

	* ChangeLog, configure.in, acconfig.h, router/libdb/bsdbtree.c,
	  router/libdb/bsdhash.c, smtpserver/policytest.c,
	  utils/makedb/makedb.c, utils/makedb/dblook.c, README.UPGRADING,
	  utils/vacation/vacation.c:
	    Autoconfigure BSD DB 2.* usage into ZMailer.
	    The resulting databases are BINARY INCOMPATIBLE, and thus
	    must be recompiled when upgrading!

	* ChangeLog, configure.in, router/Makefile.in, smtpserver/Makefile.in,
	  router/libdb/Makefile.in, utils/makedb/Makefile.in,
	  utils/vacation/Makefile.in:
	    Two overriders:
	      --with-generic-include="-I/path1 -I/path2 .."
	      --with-generic-library="-L/path1 -L/path2 .."

1999-06-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.c:
	    - Ignore possible 'relaycustomer +' attribute
	    - Autodetect locally active IP interfaces so
	      that a recipient address of  <foo@[1.2.3.4]>  will
	      be successfully matched without having that entry
	      in the  smtp-policy.mx  file..
	    - Do <bar%foo.fi%mea.tmt.tele.fi@[127.0.0.1]> processing
	      fully, and detect that  "foo.fi"  is not acceptable
	      target domain...  (For RCPT TO, that is..)
	    - Some level of '!' path processing implemented..

	* include/libsh.h, libsh/builtins.c, libsh/expand.c,
	  libsh/interpret.c:
	    - Noticed that 'case' statements use  squish()  function,
	      which has its glob-character matching effectively
	      disabled if 'set -f' mode is active, thus 'case' breaks..
	    - Reworked quite a bit on how the expand() handles input
	      conscell chain contained strings, and splits them into
	      white-space (per IFS) separated sequences.  Now the
	      'toplevels' variable in the standard router scripts
	      does not split into lots of *huge* strings of which
	      only the initial few chars are used, and then rest
	      are 'truncated' by means of resetting the 'slen' field;
	      no, now only the initial segment of the string is treated
	      that way (no need to copy it), but all of the subsequent
	      ones are copied over into their separate size matched
	      strings.

	* utils/policy-builder.sh.in:
	    Change a bit comments regarding 'smtp-policy.relay' file
	    content treatment!

1999-06-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/Makefile.in:
	    Remove  @GETPWLIB@  from scheduler program linkage set.
	    Users used by the scheduler are *only* those in the local
	    system  getpwnam()  yields!

1999-05-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Store into '#define CONFIGURE_CMD' also CC and CFLAGS
	    used at the compilation.

	* libsh/expand.c + include/listutils.h, libsh/builtins.c,
	  libsh/interpret.c, libsh/listmalloc.c, libsh/listtrees.c,
	  libsh/variables.c, router/db.c, router/functions.c,
	  router/shliaise.c:
	    After much wondering about profiles (-pg), realized that
	    about 20% of total runtime is spent in fairly complicated
	    recursive list object copying, while the default case of it
	    is a linear list, which should be really simple...  Also,
	    there is absolutely *no* reason to copy CAR() branch in
	    most cases!  In fact we seem NEVER have need for full TREE
	    copying, just current CDR chain!

	    This turned up to supply router speedup of about factor 1.14
	    with vger.rutgers.edu's workloads. (about 12 %)

	    expand(), and its subroutines, are still consuming about
	    16.8% of the total runtime. (860 recipient addresses in the
	    test set, with crossbar() total of 1737 $(router ..) calls,
	    228k calls of expand() -- after all, one for each function
	    call within the script.)  Out of that, perhaps about 7% of
	    the total runtime is amendable to changes without changeing
	    overall system semantics radically...
	    ... for that matter, perhaps for security point of view it
	    could be better to explicitely execute calls that invoke
	    subroutine IO redirection, and shell glob expansion..  With
	    that, the shell script language could be turned into more
	    secure one, and perhaps this 16% could be eliminated entirely ?

	    A historical note from about 1994 shows that router speed for
	    a reasonable test run was about 120 k messages per 24h, or
	    1.39 recipients per second at a SparcStation-10/50.  Syslog
	    monitoring and load factor estimating  at vger.rutgers.edu
	    with (on average) 50 recipient messages seems to indicate
	    a speed of about 15-20 recipients per second at similar
	    hardware, although 1) compiler has evolved, 2) workload is
	    different, 3) router internal machinery has had *radical*
	    changes.

	* include/ta.h, include/libz.h, lib/taspoolid.c, router/prototypes.h,
	  router/rfc822.c, router/rtsyslog.c, scheduler/scheduler.h,
	  scheduler/scheduler.c, scheduler/mailq.c, scheduler/update.c,
	  scheduler/msgerror.c, scheduler/threads.c, smtpserver/smtpdata.c,
	  transports/errormail/errormail.c, transports/libta/tasyslog.c,
	  transports/fuzzyalias/fuzzyalias.c, transports/libta/ctlopen.c,
	  transports/mailbox/mailbox.c:
	    A cascade of changes from wanting to change the basis of
	    taspoolid() generated string..  Now it is parsable back to
	    inode number and input file mtime -- even readable online,
	    although obfuscated...

	    Also renamed lots of variables in the scheduler from  'ctime'
	    to 'mtime', as their function has been for the last few years...

	* transports/smtp/smtp.c:
	    Cleanup slightly the error report when no MXes are found,
	    *nor* address, and yield INSTANT error.

	* libsh/interpret.c:
	    fixing indentation, it seems...

	* proto/db/smtp-policy.src:
	    Per default, don't block even "private internet" networks.

1999-05-28  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/expand.c:
	    Remove  dupnstr() + freestr() calls by changeing code
	    slightly..  (Circa 5% of runtime in that junk..
	    For that matter, about 13% of runtime is s_copy_tree()
	    calls by that same expand() function... Better to
	    rewrite it alltogether.)

	* libsh/interpret.c:
	    Removed unnecessary strsave() calls from within debugging.

	* router/router.c:
	    With received SIGEXIT/SIGTERM, DON'T die(); this is about
	    getting the profiling data out...

1999-05-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.h, smtpserver/policytest.c,
	  smtpserver/policytest.h, proto/cf/canon.cf:
	    - Implemented "simple" '%'-hack test (also '!'-hack)
	    - Implemented 'message "text string"' attribute handling
	    - Canon code ignores '\!' pair in address, however that
	      actually breaks UUCP bang-path processing slightly:
		broken\!case!is!like@this
		working!case\!is!like@this
	      (It is about difficulties of writing an RE for finding
	       the left-most non-quoted bang ...)

	* libsh/tregexp.c, libsh/interpret.c:
	    A bit less copying around, and way smaller initial malloc
	    to avoid need for big memory blocks, which don't seem to be
	    available for latter reuse -- memory fragments, you see..
	    (At least I think so..)

	* configure.in:
	    Improve a bit of the testing of  <db_185.h> vs. <db.h>,
	    and  -ldb1  vs.  -ldb  -- perhaps this is glibc 2.1 systems
	    thing only, perhaps this is more common, don't know..

	* utils/vacation/Makefile.in:
	    When installing under a prefix, create  $(prefix)$(VACATIONDIR)
	    in case it doesn't exist before storing anything into it.
	    Also corrected the installed symlink a bit.

	* transports/smtp/smtp.c:
	    One semi-obscure bug in pipelining related smtp_sync() code
	    yielding false positive delivery report, if the remote did
	    support CHUNKING, and the message was sufficiently small,
	    and the remote closed session before replying to MAIL/RCPT*/BDAT
	    sequence completely...
	    ( read: "small" = under 64 kB, which means almoast all emails ... )

1999-05-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/readconfig.c, scheduler/transport.c:
	    Reworked the handling of   command="..."  tags in the
	    scheduler.conf  file.  Now it handles properly the initial
	    literal environment variable settings.

	* smtpserver/smtpserver.c, scheduler/scheduler.c,
	  include/libz.h, lib/killprev.c:
	    Remove the PIDFILE when the server goes away.
	    (This isn't perfect method, but let it be..)

	* router/functions.c:
	    Created router function:  stableprocess <filename>
	    which is a wrapper on process.cf defined process() with
	    cleanup of gensym generated symbols. (Work In Progress;
	    part of my ideas to completely rework router queue...)

	* router/db.c:
	    Modify cache definitions -- zero them at the local db's

	* router/rfc822.c, transports/libta/ctlopen.c:
	    Apeace Solaris 2.6 / gcc 2.7.2.3 "-O2 -Wall" compilation

	* proto/smtpserver.conf.in:
	    Cleanup (a bit) the default settings

1999-05-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpauth.c:
	    Don't log incoming BASE64-encoded passwords.

1999-05-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpdata.c:
	    Be a bit sloppy with DATA statement which follows
	    with white-space.. (or whatnot..)  On the other
	    hand, if "-s strict" mode is on, complain!

1999-05-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/mailbox/mailbox.c:
	    Add '-U' option for selectively turning on the 'X-UIDL:'
	    creation while storing to mailboxes and files (but it
	    won't be created while sending to a pipe).

	* libsh/listmalloc.c:
	    Some ANSI-C present, which the K&R compiler at SunOS 4.1.4
	    didn't like at all..

1999-05-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* README.CRYPTO, bin/usa-itar-stripper.sh, Makefile.in,
	  smtpserver/smtpauth.c, smtpserver/smtpcmds.c,
	  smtpserver/smtpserver.c, smtpserver/smtpserver.h,
	  smtpserver/smtptls.c:
	    Modifications and tools to allow package management
	    to be done with command:  'make dist-usa'
	    The resulting TAR file should be US ITAR compliant.

	* include/listutils.h:
	    K&R compiler reminder; all the world isn't ANSI...

	* transports/mailbox/mailbox.c:
	    Don't generate X-UIDL: header when sending the message
	    thru a pipe...

	* transports/smtp/smtp.c:
	    Hunting the reason for SEGV in case ALRM triggers in
	    a few odd situations.

	* scheduler/transport.c:
	    If the command= line for some channel/host selector
	    tag contains $-expression for ZENV variable, and that
	    variable does not exist, the scheduler did crash..
	
1999-05-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* VERSION 2.99.50s18

	* smtpserver/smtpdata.c:
	    BASE64 encoding of 7 chars long name yields a BASE64 string
	    with two '=' chars, that was considered bad by the decoder..
	    ( I think there should be only one '=' char, but Netscape
	      Communicator 4.51 does it that way :-(  )

	* router/functions.c:
	    Old (very old!) 'old-vs-new' scheduler locking scheme
	    causes problem at Solaris 2.6. Peter IP (Toronto) got
	    ZMailer router process pids 6/7/8/9, which the router
	    treated somewhat poorly..

	* configure.in:
	    Autosense OpenSSL at default location, if not otherwise defines.

1999-05-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/router.c:
	    Move  openlog()  a couple lines down so that also interactive
	    routers will use it.

	* router/rfc822.c:
	    Change the Received: header 'id' information to be the same
	    which syslog() uses, and which is reported at the smtpserver.
	    Eases looking for message spoolids at syslog outputs.

	* transports/smtp/smtp.c:
	    Overhauled error processing in various situations, now an
	    EX_TEMPFAIL condition will use next MX server (if one is
	    available) very much independent of where along the code
	    the problem occurred.   Originally a problem in e.g. connection
	    setup until EHLO/HELO probe was retryable to an MX, but now
	    a much latter problem phase (DATA + . yielding 4** code,
	    for example) can do the same.
	
	    Latter continued the theme with logging of the smtp client session
	    to one client with weird looking problem:  Ah, finally some clue
	    on the PIPELINING problem; smtp_sync() ignored (or treated poorly)
	    certain way how EXIM responds when it has disk full.  We missed
	    the initial MAIL FROM-> 4** code, and errored with the latter
	    "503 No sender yet given"... D'uh..  (Likely this was entirely
	    ZMailer problem, but was it only introduced yesterday, or has it
	    been lurking there all along with PIPELING, and never spotted
	    before ??)  It manifested as never accumulating queue to sites
	    using PIPELINING, and behaving like above..

	* smtpserver/smtpserver.h, smtpserver/cfgread.c,
	  smtpserver/smtpserver.c, smtpserver/smtptls.c,
	  smtpserver/smtpsmds.c, proto/smtpserver.conf.in:
	    Much work again, now to parametrize ways of selectively adding
	    pieces of "Received:" header contained commentary information.
	    Features: ident, whoson, auth-username, tls-cipher, tls-client-cert
	    Added also:  "PARAM AUTH-LOGIN-also-without-TLS" which allows
	    paintext "AUTH LOGIN" to be used without successfull STARTTLS.

1999-05-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c:
	    Fix introduced accidental NULL referral.

	* SiteConfig.in:
	    Partially undo previous change to SiteConfig.in;
	    let the  FORCEPUNT  to be there...

	* scheduler/scheduler.c, scheduler/update.c:
	    Fixed the 'stored recipient count' gauge leakage.

1999-05-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	DISTRIBUTION: version 2.99.50s17

	* SiteConfig.in, proto/cf/rrouter.cf:
	    Moved "SMARTHOST" into historical bit-bucket.
	    Suggested way is to use "dot-route" to default
	    all non-local traffic to some server.

	* smtpserver/smtpauth.c:
	    The "ok" reply was wrong (253), and M$ clients
	    barfed at the login. Change that to 235 and it
	    works just fine.

	* proto/smtpserver.conf.in, doc/guides/openssl,
	  smtpserver/cfgread.c, smtpserver/smtpserver.h,
	  smtpserver/smtpserver.c, smtpserver/smtptls.c,
	  smtpserver/smtpcmds.c:
	    Interoperability testing dig various weird things.
	    Now I know lots of details about the certificates :)
	    For the juicy bits about server certificates, see
	    file: doc/guides/openssl

1999-05-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.50s17

	* doc/guides/openssl, doc/guides/configure:
	    A bit of updates...

	* smtpserver/cfgread.c, smtpserver/smtpserver.h,
	  smtpserver/smtpserver.c, smtpserver/smtpcmds.c,
	  smtpserver/smtptls.c, proto/smtpserver.conf.in,
	  doc/guides/openssl:
	    Final hurdles at getting the TLSv1/SSLv[23]
	    support to work at the smtpserver.  Used lots
	    of POSTFIX specific code here, and wondered
	    at several document bugs...

	* here and there...:
	    Some minor things to silence "egcs -Wall -O3 -g"

	* configure.in, acconfig.h, smtpserver/Makefile.in,
	  smtpserver/smtpserver.h, smtpserver/smtpcmds.c,
	  smtpserver/smtpserver.c, smtpserver/smtptls.c:
	    Configuration options to take into use the OpenSSL
	    TLS code -- although this is not yet complete thing..

1999-05-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/smtpcmds.c:
	    Place-holder hooks for 'STARTTLS' related stuff...
	    (once I get the OpenSSL to work at my Alpha ..)

1999-05-07  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* compat/sendmail/sendmail.c, include/mail.h.in,
	  smtpserver/smtpdata.c:
	    Define  _MAILPRIO_HIGH, and sense it in inputs, plus
	    sense "Precedence: high/normal/bulk/junk" to set the
	    mail_priority of  zmailer(3) library.

	* transports/mailbox/mailbox.c:
	    Implemented X-UIDL: header for POP3 UIDL command support;
	    may some day have option which disables creation of that
	    local storage string..
	    Also, did same thing as  sm.c below:

	* transports/sm/sm.c:
	    Cleaned up (a bit) certain  has_header()/delete_header()
	    processing so that all possible multiple instances of same
	    ``header to be deleted'' will be deleted.

1999-05-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/fdstatfs.c:
	    A sidestep to a problem with  fstatvfs()  at glibc 2.1.1
	    at Linux/i386/2.1.122 kernel (any 2.2.* kernel, I guess.)

	* configure.in, smtpserver/Makefile.in:
	    Autoconfigure "-lcrypt" library for the use at  @GETPWLIB@
	    cases.  Also have '--with-privateauth' option for the smtpserver
	    in case some magic private things are desired (it is possible..)

	* smtpserver/smtpauth.c, smtpserver/zpwmatch.c, smtpserver/cfgread.c,
	  smtpserver/Makefile.in, man/smtpserver.8:
	    Separate  zpwmatch()  function into its own file.
	    Have 'PARAM smtp-auth' configuration parameter (and document it
	    at the smtpserver man-page) which enables use of SMTP AUTH.
	    The default system uses classical UNIX password analysis.
	    (but see the comments at   zpwmatch.c!)

1999-04-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.50-s16

	* proto/cf/fqdnaliases.cf:
	    Typo: Missing ending ']' at a '[' test clause.

	* smtpserver/policytest.c:
	    Policytest should accept everything when running in non-network
	    interactive mode.  (Ok, Syntax issues aside..)

	* smtpserver/smtprouter.c, smtpserver/cfgread.c,
	  smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  proto/smtpserver.conf.in:
	    Supply "PARAM enable-router" parameter to control the availability
	    of interactive router subsystem.  Also strengthened the way how
	    the user input is passed to the interactive router so that it
	    should not allow bad inputs to cause escape into shell at any
	    moment..  However this isn't the only place where the danger may
	    lurk, so per default the "enable-router" is OFF.

1999-04-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c, smtpserver/smtpserver.c,smtpserver/smtpdata.c:
	    Change the 'multilinereplies' processing around "a bit".
	    Have sensible reports even when single-line mode is used.

	* proto/smtpserver.conf.in, man/smtpserver.8, smtpserver/cfgread.c,
	  smtpserver/smtpserver.h, smtpserver/smtpdata.c,
	  smtpserver/smtpserver.c, smtpserver/smtpauth.c,
	  smtpserver/Makefile.in, smtpserver/smtpcmds.c,
	  smtpserver/policytest.c, smtpserver/policytest.h:
	    Created base work for ESMTP "AUTH LOGIN ..." command
	    processing.  It does receive the input parameter, and
	    decodes the initial input, plus asks for the password,
	    plus decodes that, but then the final hurdle of checking
	    the password is not completed -- all the kwazillion ways
	    of doing it in different systems ...

	    THIS EXTENSION IS CURRENTLY NOT ENABLED IN THE SYSTEM!
	
	* router/rfc822.c:
	    Converted from symbol() to symbol_lookup_db() in place where
	    the data to be looked up is stored in specific spl set.

	* include/ta.h, scheduler/mailq.c, scheduler/msgerror.c,
	  scheduler/prototypes.h, scheduler/qprint.c, scheduler/scheduler.c,
	  scheduler/scheduler.h, transports/libta/ctlopen.c,
	  transports/libta/lockaddr.c:
	    I decided that there is no point in using 'long' to store offsets
	    to transport specification file -- if that file exceeds 2G in
	    32-bit systems we are in deep trouble anyway -- and there is no
	    point in trying to fit this animal into 16-bit machines... Could
	    squeeze around 16 bytes per recipient in the scheduler memory use.
	    (Consider having a million recipients in memory data...)

	* smtpserver/smtpserver.c, smtpserver/smtpserver.h,
	  smtpserver/cfgread.c, smtpserver/smtpcmds.c,
	  proto/smtpserver.conf.in:
	    "PARAM no-multiline-replies" which hides away all RFC-821
	    Appendix E described multiline replies, in case you have
	    no other way to fix your non-conformant clients...
	    The result is often rather jumbled as the last reported line
	    usually isn't very usefull..
	
	* include/mail.h.in, include/ta.h, transports/libta/ctlopen.c,
	  scheduler/scheduler.c:
	    Reserve some space into "r" entries of the TA files for
	    delay state reports.

	* scheduler/scheduler.c:
	    Don't unnecessarily unlink() ETRN requests twice..

1999-04-21  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* ChangeLog:
	    Log these last changes..

	* include/listutils.h:
	    A surprising macro in FreeBSD/OpenBSD clashed with s_push() gcc
	    extended macro code contained variable name (_X), replaced with
	    another name (_tmpX), which hopefully doesn't clash...

	* scheduler/threads.c:
	    Change 'ulong' type to 'u_long', which should please also
	    FreeBSD and OpenBSD..

	* configure.in:
	    Modify tests for <tcpd.h>, and resolver so that systems where
	    all headers are not idemponent will be able to do the test
	    compiles successfully, and thus avoiding false negatives..

	* smtpserver/mxverify.c:
	    Changed IPv6 RBL tests to use "x.x.x....x.x.ip6.rbl.maps.vix.com"
	    domain format.  Those small digits at the top of the address
	    range without "ip6" are clashing with various IPv4 "banned"
	    address spaces...

1999-04-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/fqdnaliases.cf:
	    Create fqdnalias:
		foo@bar: foo@bar
	    resolve it..  Without this change, the router
	    will recurse infinitely and crash.  With this,
	    the router will break the loop, but the result
	    will still be stupid:
		smtp bar foo@bar ...

	* smtpserver/mxverify.c:
	    Fatal RBL lookup error -- caused effectively all
	    instances to try for IPv6 lookups which failed
	    consistently.

	* Makefile, Makefile.in:
	    Release 2.99.50s15 (to have a clean point)

1999-04-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/listutils.h:
	    Small macro change to please gcc 2.7.2.1 at FreeBSD 3.1;
	    but perhaps it is due to some unfortunate #define overwriting
	    my macro contents somewhere else...  I am listening on
	    the reports of the issue.

1999-04-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.h, smtpserver/policytest.c,
	  smtpserver/mxverify.c:
	    A surprise was found in pure IPv6 operational environment
	    regarding RBL policy testing.  Changed things to also do 
	    IPv6 address RBL lookups in case the connection was not by
	    IPv4-MAPPED addresses. (E.g. Lookup for A with zone in same
	    manner as IP6.INT reversers construct it from the address,
	    and then just add 'rbl.maps.vix.com' to the reverse address
	    string in similar manner as IPv4 lookup works.)
	    Of course I don't know what exact format the RBL will use
	    for IPv6 addresses, my quesses are:
b.3.b.7.5.7.e.f.f.f.8.f.0.0.2.0.0.0.e.f.2.0.0.0.0.1.6.2.e.f.f.3.rbl.maps.vix.com.
b.3.b.7.5.7.e.f.f.f.8.f.0.0.2.0.0.0.e.f.2.0.0.0.0.1.6.2.e.f.f.3.ip6.rbl.maps.vix.com.
	    and the implemented thing is the first one of these.
	    The address in question is following:
	mea.ipv6.tmt.tele.fi IN AAAA 3ffe:2610:2:fe00:200:f8ff:fe75:7b3b

	* transports/mailbox/mailbox.c:
	    Another way how  getpwnam()  surprised -- errno value
	    isn't all zero in Linux with glibc 2.1 in all conditions;
	    username contained multiple dots ("a.b.c") yielded errno
	    value ENOENT  :-O  (At OSF/1 EINVAL can be had for valid
	    lookup without found entry...)  Sigh.

	* include/shmmib.h, scheduler/scheduler.c, scheduler/scheduler.h,
	  scheduler/threads.c, scheduler/update.c:
	    Modified monitoring MIB set a bit for the uses of the
	    scheduler.  Made a line in "mailq -Q" to show Counter32,
	    and Gauge32 type variables.  (On the way towards the
	    SNMP MIB..)

1999-04-06  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/builtins.c:
	    $(elements ...) tinkering; code "cleanup".  (This wasn't the
	    real problem..)

	* include/listutils.h:
	    Test of ``LISTness'' vs. ``STRINGness'' became a bit confused
	    with ELEMENT flag set.  Mask that off when comparing.
	    (THIS was the problem that plagued $(elements ...) )

	* libsh/execute.c:  Just small cleanup.

	* libsh/expand.c:
	    glob() expansion list construction straightening.  Pre-Sort
	    items in reverse, and the list construction will be easy..

	* libsh/interpret.c: functype()
	    Remember always to set the return value variable -- if its
	    pointer is available, otherwise some things behave strangely
	    depening on what happens to be at the stack frame...
	    ( + removed some dead code from the  interpret()  proper.)

	* libsh/listtrees.c: _s_copy_tree()
	    Added a comment (for myself) to explain things a bit.

	* proto/cf/server.cf:
	    Some extra tinkerings for those who want interactive router
	    at their smtpserver.

	* smtpserver/policytest.c: _addrtest_()
	    Selectively test blanket allowance/denial things, so that
	    when  e.g. MAIL FROM:<foo@[1.2.3.4]> the literal IP address
	    can be looked up from the RBL/DUL/whatnot database while
	    not allowing e.g. MAIL FROM to suddently allow input from
	    any possible host just because once a suitable address is
	    given in MAIL FROM data...

	* smtpserver/smtpchild.c:
	    Count the number of childs properly, and always remember to
	    return a value thru the  childcntp  pointer.
	
1999-04-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in: 2.99.50-s14

	* proto/cf/aliases.cf:
	    Fixed a typo, which doesn't affect most people at all..

	* scheduler/transport.c:
	    Allow the  command="..."  to define at first some environment
	    variables, before starting the program.  Syntax something like:
	    command="VAR1=value1 VAR2=value2 command -params"
	    No white-space is placeable into the values, all expansions that
	    work for the command parameters will also work at values.

	* transports/mailbox/mailbox.c:
	    A strange DEC Tru64 (a.k.a. DEC OSF/1 a.k.a DEC UNIX) feature
	    in  getpwnam(),  which seems to return errno==EINVAL, when no
	    entry is found at /etc/passwd -- getpwnam() return value is
	    NULL, of course.

	* router/db.c:
	    Changed the way how  D_db ("trace db") works; shows the query-
	    in-progress proceeding.


	* router/router.c:
	    Turn stdout/stderr buffering from NON-BUF to LINE-BUF mode.

	* proto/db/smtp-policy.src:
	    Removed "relaycustomer +" from the  "_full_rights" set.

	* man/Makefile.in, man/smtpserver.8, proto/smtpserver.conf.in,
	  smtpserver/cfgread.c, smtpserver/smtpchilc.c, smtpserver/smtpcmds.c,
	  smtpserver/smtpserver.c, smtpserver/smtpserver.h:
	    - added new PARAMs to disable selected facilities
	    - added new PARAMS to tune a few other facilities
	    - allows limiting the number of parallel smtpserver processes
	    - updated smtpserver.conf.in sample file
	    - updated man-page

	* Makefile.in: 2.99.50-s13

	* include/listutils.h, libsh/builtins.c, libsh/execute.c, libsh/sh.h,
	  libsh/expand.c, libsh/interpret.c, libsh/listmalloc.c, libsh/trap.c,
	  libsh/listtrees.c, libsh/listutils.c, libsh/tregexp.c, libsh/zmsh.c,
	  libsh/variables.c, router/db.c, router/functions.c, router/rfc822.c,
	  router/router.c, router/router.c, router/shliaise.c, include/libsh.h,
	  router/libdb/bind.c, router/libdb/bsdbtree.c, router/libdb/bsdhash.c,
	  router/libdb/dbm.c, router/libdb/gdbm.c, router/libdb/header.c,
	  router/libdb/hostsfile.c, router/libdb/incore.c, router/libdb/ldap.c,
	  router/libdb/ndbm.c, router/libdb/ordered.c, router/libdb/yp.c,
	  router/libdb/unordered.c:
	    A MASSIVE rewrite of internal conscell processing facilities.

	* smtpserver/cfgread.c, smtpserver/smtpserver.c:
	    Accept PARAM keywords even if they are preceded with some
	    white-space at the beginning of the line.

	* router/rfc822.c:
	    Modify privilege data verification; accept also negative values.

	* transports/libta/tasyslog.c, utils/listexpand.c,
	  smtpserver/smtpserver.h:
	    Minor things to apeact some compilation environments

	* compat/sendmail/sendmail.c, configure.in:
	    Use  mkstemp()  function, if it is available

	* smtpserver/smtpserver.c:
	    Utter strictness in local mode is not so good..
	    Turn the strictness selectively off in local mode.

	* Makefile.in:
	    Incremented version number

	* proto/cf/server.cf:
	    Accept "MAIL FROM:<>" from the client.

	* INSTALL:
	    Added a note about UUCICO/uucp uids, and 'zmailer'-group

	* transports/mailbox/mailbox.c:
	    Moved "running as root test down a bit, changed slightly
	    some debug related diagnostic messages.

	* transports/libra/diagnostic.c:
	    If scheduler diagnostics are suppressed, suppress also
	    syslog messages.

	* transports/libta/tasyslog.c:
	    Allow a bit longer diagnostic string to be sent...

	* */Makefile.in, */*/Makefile.in:
	    Change 'libz.a' to 'libzm.a' -- until somebody uses thus named
	    library in some other system, and we can't sidestep it...

	* smtpserver/policytest.c, smtpserver/smtprouter.c:
	    Fix debug related buffer overflow in policytest.c (debug messages
	    scribled over memory -- no user data at the writeout) add a bit
	    more debug things into the  smtprouter.c so that we can see what
	    is sent to the router process.

	* smtpserver/policytest.c, smtpserver/policytest.h,
	  smtpserver/mxverify.c, proto/db/smtp-policy.src:
	    Updated commentary documents a bit at  smtp-policy.src  file.
	    Made policytest stuff to use arbitary size strings as options,
	    and pass such to  rbl_dns_test()  function as a colon-separated
	    list of domain suffixes for where to query for RBL-like data.

	* transports/mailbox/mailbox.c:
	    Hunting an ellusive problem reporting [exit status 0] and
	    not knowing which branch of the thing it really is from.
	    Also matched UTIME/UTIMES test order with other instances
	    in the same code.

	* transports/sm/sm.c, transports/smtp/smtp.c,
	  utils/pop-proxy/pop-proxy.c, scheduler/scheduler.c:
	    Moving arount the  setvbuf()  calls a bit, probably mostly
	    safe without this, but better be absolutely sure..

	* libc/md5c.c:
	    Cleanup of 32- vs. 64-bit platform portability issues.

	* transports/libta/mimeheaders.c, transports/mailbox/mailbox.c,
	  transports/smtp/smtp.c, transports/sm/sm.c, include/ta.h:
	    A bug in how 8-bit containing body was downgraded to
	    Quoted-Printable when the message in question was in
	    fact NOT TEXT/PLAIN !  Aargh!.. (MULTIPART/ZZZ things..)

	* transports/smtp/smtp.c:
	    A Q-P encoding change from Arnt Hulbrandsen

	* transports/mailbox/mailbox.c, router/rfc822.c, lib/selfaddrs.c:
	    Adaptation to match some glibc 2.1 beta compability issues.

	* proto/cf/crossbar.cf
	* utils/listexpand.c
	    Modernization work

	* proto/smtpserver.conf.in
	    Per default turn off 'DEBUG' command

	* contrib/whoson-protocol.txt
	    Protocol document (draft)

	* INSTALL:
	    Added a word about  scheduler.conf  file.

	* doc/guides/smtp-etrn, doc/guides/offline-operation
	    Generalized guide on ETRN usage with ZMailer,
	    and one special case..

1998-11-19  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Upped version number into  2.99.50-s11

	* utils/vacation/vacation.c:
	    Fixes for DB(M) handling in the utility, also automated
	    the installation procedure into userspace a bit.

	* configure.in, router/libdb/bsdbtree.c:
	    A bit of experimenting with BSD DB 2.*, which apparently
	    needs major rework to operate properly.  Using <db_185.h>
	    if it is available in place of <db.h>..

	* libc/strsignal.c:
	    FreeBSD 3.0 portability problem fix

	* transports/smtp/smtp.c:
	    - reworked on how much of the message has been transported
	      over the connection at the time of the timeout/whatever
	      failure in the DATA-phase.
	    - report MX-lookups at 'ps' too
	    - setjmp() nesting fixes

	* configure.in, proto/newdb.in proto/Makefile.in:
	    - Autoconfigure the path of 'true' into newdb script
	    - FreeBSD reported problems about shell variable substitution
	      during the install phase

	* smtpserver/smtpdata.c, smtpserver/smtpserver.c,
	  smtpserver/smtpserver.h, smtpserver/smtpcmds.c:
	    - Extra-vigorous protocol syntax checking mode

	* smtpserver/policytest.c:
	    Policytesting failed with 'case 2' of the boilerplate config.

	* man/mailbox.8, transports/mailbox/mailbox.c:
	    - Automatic /bin/sh-less execve() for pipe subprograms
	      which falls back to /bin/sh-full in case some parts of
	      the input string prevent the use of the pure mode.
	      (like '>' and '$' characters in the cmdline.)
	    - pass our locally generated recipient-specific
	      environment into the  execve()  every time..
	    - updated man-page about the subprogram execution environment

	* smtpserver/cfgread.c, smtpserver/smtpserver.c,
	  smtpserver/smtpserver.h, proto/smtpserver.conf.in:
	    The example tells more (in smtpserver.conf)
		#
		# HDR220 metatags:
		#  %% -- '%' character
		#  %H -- SS->myhostname
		#  %I -- '+IDENT' if 'identflg' is set
		#  %V -- VersionNumb
		#  %T -- curtime string
		#  %X -- xlatelang parameter
		#
		PARAM hdr220 %H ZMailer ESMTP-server %V running at ...
		PARAM hdr220 %H (NO UCE)(NO UBE) local time is now %T
		#
	    Also did a bit of cleanup

	* SiteConfig.in:
	    Added a couple of previously undocumented ZENV variables,
	    which are used in the binary code in some places.

	* lib/nobody.c, lib/selfaddrs.c, lib/trusted.c:
	    Some  setreuid() code changes pulled back from way back.
	    SunOS 4.* didn't consider  "(uid_t)-1"  to be the same
	    as "-1" ...

	* smtpserver/smtpserver.c:
	    Missed the call of  settrusteduser()  in one codepath.

1998-10-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in (and configure), utils/vacation/Makefile.in:
	    Autosense possible location of  'vacation'.  If none
	    is found, assume  "/usr/bin/".   At 'make install',
	    install a symlink at that user-space location to point
	    into MAILBIN/vacation.sh

	* utils/vacation/vacation.c:
	    Cleanup of database open/close routines after
	    seeing one case of CORE-dump at nic.funet.fi
	    when a new user took this vacation into use..

	* Makefile.in:
	    Version 2.99.50-s10

	* transports/mailbox/mailbox.c:
	    - Pass "TZ" environment variable to subprocess
	    - Lots of playing with 'sieve' interface

	* transports/smtp/smtp.c:
	    Allow address-literals of form  [addrlit]:portnum,
	    that is you can define explicite route of style:
		sometarget smtp![ip.addr.lit]:5678
	    which will then connect to given host and port.
	    The default port is 25.

	* proto/newdb.in:
	    "while true" does not work everywhere, use: "while /bin/true"

	* proto/cf/rrouter.cf:
	    Support for channel-group 'smtpgw*' with its own peculiar
	    rules.  Originally Sonera internal stuff.
	
	* configure.in (and configure):
	    "--with-privatembox" option added

	* packaging/solaris/*:
	    Solaris 'pkgadd' tools

	* scheduler/scheduler.c, scheduler/scheduler.h,
	  scheduler/threads.c, scheduler/transport.c,
	  scheduler/servauth.h, scheduler/servauth.c:
	    Two new files (servauth.[ch]), and changes elsewere
	    to support them.  Incomplete.

1998-08-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/mailbox.8, doc/manual/zref-transport-agents.tex:
	    nroff formatting corrections, spelling fixes

	* man/router.8, router/router.c, router/rfc822.c,
	  router/prototypes.h, router/rfc822hdr.c:
	    Router got new commandline option: '-W'
	    Existence of that option activates OLD behaviour of
	    the router where it writes 'Illegal-Object:' headers
	    to the file... The new behaviour passes the faulty
	    lines unmodified; "as is".

	* utils/policy-builder.sh.in:
	    Modifications to handle non-clean spam-domain input better.

1998-08-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    While reviewing new draft-ietf-drums-smtpupd-08.txt,
	    I found out that occasionally some SMTP servers do
	    reply just '250\r\n', which would confuse PIPELINING
	    mode codepaths, very least.  (Although with the
	    ENHANCEDSTATUSCODES that is an unlikely occurrence..)

1998-08-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/malloc.h, include/zsyslog.h, libsh/builtins.c,
	  libsh/test.c, router/libdb/header.c, libsh/shconfig.h,
	  lib/strmatch.c, lib/pjwhash32.c, lib/selfaddrs.c,
	  libc/fullname.c, include/md5.h, libc/__fopen.c, libc/md5c.c,
	  libc/strtoul.c, libc/gai_strerror.c, libc/getaddrinfo.c,
	  smtpserver/smtpserver.h, smtpserver/smtpserver.c:
	    A burst of activity to fix compilation at SunOS 4.1.*
	    systems with the system's K&R compiler.  (Sigh what a
	    moron for a compiler...  Was the pre ANSI-C era really
	    that awfull ???)  (This is not complete work, more needs
	    to be done before it all goes thru..)

	* utils/policy-builder.sh.in:
	    Add use of '-A' (append) to the policy-building parameters.

	* proto/scheduler.conf.in:
	    Add some comments into the beginning concerning resource
	    usage limitation parameters:  maxta, maxchannel, maxring

	* include/zmsignal.h:
	    Change name of variables from  'sigmask' to 'sigmsk'.
	    SunOS 4.1.* defines 'sigmask' in its <sys/signal.h>
	    as a MACRO...

1998-07-30  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in, compat/Makefile.in, compat/rmail/Makefile.in,
	  compat/sendmail/Makefile.in, proto/Makefile.in,
	  transports/Makefile.in, utils/Makefile.in, utils/makedb/Makefile.in,
	  utils/vacation/Makefile.in:
	    - Adding quite many "@" characters at critical places to
	      SILENCE the "make install" process so that people can
	      have it easier to SEE when something generates error
	      reports, or otherwise wants attention
	    - Those places which do rather unconditionally store new
	      files into $MAILSHARE/ datasets use following new rule:
		Don't overwrite existing files (scripts especially) if
		they ``cmp'' the same as our current file.  If they are
		different, move old to backup, and then write new one there

	* smtpserver/mxverify.c:
	    When compiling on SunOS 4 the T_TXT definition does not
	    exist in system includes, define it ourselves.

	* router/libdb/unordered.c: ("Matthias Urlichs" <smurf@noris.de>)
	    An error in open routine caused lookup always to fail
	    on the FIRST lookup.  Oops...

	* include/libsh.h:
	    Had ANSI prototype there, and a K&R compiler
	    "barfed"...

1998-07-28  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/Makefile.in: (Mark Visser)
	    Missed " ; \ " from the middle of "make db" 
	    sequence.

1998-07-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version number: 2.99.50-s8

	* configure.in, acconfig.h:
	    Autoconfigure Eugene Crosser's  whoson  system into
	    the ZMailer smtpserver.

	* configure.in, proto/sm.conf.in:
	    Autoconfigure ``procmail'' path.

	* router/libdb/Makefile.in:
	    Use of "::" on dependency tupe caused unnecessary
	    recompilation of  router/libdb/*.c files.

1998-07-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.c, smtpserver/mxverify.c:
	    Prefix all debug-mode outputs with '000-', which
	    (perhaps) will make it usable even during normal
	    SMTP server session.

	* transports/mailbox/Makefile.in:
	    At "make clean" do remove 'mboxpath' binary too...

	* router/lib/db/ordered.c:
	    Removed "reopen:" goto label errorneously in the
	    previous "compiler pleasing" round as "unused label"..

Sat Jul 25 21:34:11 1998  Matti Aarnio  <mea@localhost.localdomain>

	* proto/db/smtp-policy.relay (new):
	    Added a default boilerplate edition of this file
	    into the package (all comment -- but a lot of it..)

	* proto/db/smtp-policy.src:
	    Edited the comments a bit

	* proto/Makefile.in:
	    Conditional install in 'make db' the above created
	    smtp-policy.relay  file.

1998-07-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/policy-builder.sh.in:
	    Mark Visser <mark@cal026031.student.utwente.nl> reported
	    about the clumsiness of the spam-list retrieve and merge
	    code.  His patch went in almoast as is.

	* aclocal.m4, transports/mailbox/mailbox.c:
	    Debian hits again; I don't know which version this is about,
	    but some recent ones have <maillock.h> header, and library
	    libfilelock.{a,so} with similar code to that of the Solaris
	    libmail.a's maillock() stuff.

	* proto/cf/rrouter.cf:
	    Move the "new localpart processing" a bit downwards so that
	    "pipe.*" and "file.*" tricks used with the scheduler configs
	    still work.

1998-07-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* */*.h */*.c */*/*.c: (all over the place)
	    Did use "egcs -Wall -W -W***" to get lots of warnings.
	    Tried to fix most of them.  (latter heard that the CVS
	    dumpped source is a bit broken in Solaris 2.5.1 ...
	    will have to return to this...)

	* transports/mailbox/mailbox.c, transports/sm/sm.c:
	    Internally the  append_header()  routine has a buffer of 2kB
	    size.  Under no circumstances allow that to be exceeded, thus
	    use patterns like:  "%s.999s"  while formatting something.

1998-07-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    An error report from  Serge Lozovsky <serge@helios.intes.odessa.ua>
	    did show that in non-pipeline mode the smtp-ta did errorneously
	    consider successfull a delivery to remote system that has rejected
	    the only (or all?) recipient address(es).

1998-07-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/mailbox/mailbox.c:
	    Lock acquisition code had "faulty" way to unrolling
	    itself.  I begun to suspect this while my  ELM  at
	    rare times complained that it can't remove the .lock
	    file it constructed itself :-O  Turns out, the lock
	    unrolling did unroll also the failed lock -- in case
	    of "dot-lock" that is the "mbox.lock" file..

1998-06-29  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* man/scheduler.8, man/smtpserver.8:
	    Added .SH paragraphs about TCP-WRAPPER into them.

1998-06-27  Matti Aarnio  <mea@mea.tmt.tele.fi>
	
	* TODO, include/libsh.h, include/listutils.h, libsh/builtins.c,
	  libsh/expand.c, libsh/interpret.c, libsh/listutils.c, libsh/regex.h,
	  router/funcsions.c, router/shliaise.c:

	    Conditional removal of code handling "prev" pointer for "setf"
	    function uses at the conscell objects.  Default is NOT to
	    remove them (yet), although experimental systems running code
	    without any "setf" anywhere seem to be successfull, and even
	    reduce the router memory footprint by 2-3 % ...
	
1998-06-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* obsolete/*
	    Removed this tree from the CVS, perhaps soon also from the
	    distribution tar files...
	
1998-06-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libc/md5c.c:
	    Some fine-tuning added so that the module will compile at most
	    platforms, but perhaps linking will cause indigection at some
	    systems still (Solaris -lnsl has md5 routines in...)

1998-06-23  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.c:
	    For a "always_accept" sender, turn DNS based rejections
	    (NXDOMAIN errors) to be hard errors.

	* smtpserver/smtpcmds.c:
	    A mistake in <postmaster@*> recipient policy
	    analysis turned soft DNS error into hard policy
	    rejection...  Outch.

1998-06-22  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/Makefile.in, smtpserver/smtpserver.h,
	  smtpserver/libwhoson.c, smtpserver/whoson.h,
	  smtpserver/whosond.c:
	    Initial hooks/codes for "who-is-on" daemon.

	* include/splay.h, lib/pjwhash32.c, lib/symbol.c:
	    Created symbol-routines which handle arbitary
	    binary key values; key hashes are a bit simple-
	    minded, though...
	
	* scheduler/scheduler.c, man/scheduler.8:
	    Runtime option '-n' -- see the man-page.
	
	* include/policy.c, smtpserver/readpolicy.c,
	  smtpserver/policytest.c, smtpserver/policytest.h:
	    Added 'trustrecipients' attribute.

	* smtpserver/rfc821scn.c:
	    Additional texts to match several error cases that I keep
	    seeing around at SONERA's systems..

	* doc/guides/smtp-policy:
	    Updated the contents to match system a bit more

	* include/md5.h, include/md5-global.h, libc/md5c.c:
	    Included generic MD5 code into the ZMailer's libc.
	    To be used in a few server applications... (including
	    APOP-like session authentication for scheduler cmd
	    interface..)

1998-06-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    PATCHLEVEL 50-s6

	* configure.in, nearly all  Makefile.in  files:
	    Configure option:  --with-generic-include="-I/..."
	    which is added into ALL compilation statements

1998-06-15  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/policytest.c:
	    Moved "P_A_FullTrustNet" attribute recognition up a bit
	    so that "P_A_RelayCustNet" does not blank full_trust mode!

	* utils/policy-builder.sh.in:
	    Added another retrievable spam domain list

	* proto/cf/aliases.cf:
	    A fragment of script (in comment) which is specific for
	    listserv.funet.fi  system.

	* scheduler/msgerror.c:
	    When reporting "Multiple-fault:" type error, tell also
	    which template file is not openable, and ask the recipient
	    to report the case to the postmaster...

	* router/functions.c:
	    - rd_doit() -- don't rename "core*" file into normal
			   spooled file name
	    - run_listexpand():  Did complain when it got 5 arguments
				 and refused to do the work :-(

1998-06-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf, proto/cf/fqdnaliases.cf:
	    Match new listexpand parameters.

	* router/functions.c:
	    Added two new parameters to function  listexpand
	    to match underlying   rrouter  script function.

	* libsh/regex.h, libsh/regex.c:
	    Matched against GLIBC  <regex.h>  type defines.

	* transports/smtp/smtp.c:
	    A screwup in DBAT dot-processing algorithm.
	    Basically BDAT phase did line-start dot-duplication,
	    which is all right for DATA phase, but a no-no for
	    the BDAT :-(

1998-06-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf:
	    Removing "sender" parameters from alias processing
	    cases.  Copying them from other codes was a mistake
	    with subtle results.
	
	* proto/newaliases.in:
	    Parameter parsing error; didn't honour '-s' option.

1998-06-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, smtpserver/smtpserver.h,
	  smtpserver/smtpcmds.c:
	    Reviewed, and changed quite many of the ENHANCEDSTATUSCODES
	    code values presented in replies.  Not all DNS errors are
	    POLICY (*.7.*) errors although policy analysis detects them..

1998-06-11  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/makedb.in:
	    Altered the parameter pickup routines to be more generic
	    in view of what *sh shells support: while true; do .. break .. done

	* transports/mailbox/mailbox.c:
	    Mistakes after code movements in  program()  function :-(

	* smtpserver/smtpdata.c, smtpserver/smtpserver.c,
	  smtpserver/smtpcmds.c, utils/smtpserver-log-parser.pl:
	    Make the verbose debug log more readable -- guaranteed
	    session end-points to be findable:
	       ######w \t 221 ...
	       ######- \t ...

	* smtpserver/smtpcmds.c:
	    Change ETRN reply texts a bit; don't anymore speak of TURNME..

1998-06-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf, proto/cf/fqdnaliases.cf, proto/cf/p-usenet.cf,
	  proto/cf/rrouter.cf, proto/cf/standard.cf,
	  proto/db/aliases.zmsh.example:
	    Major reorganisation of scripts;
	    - All things that have something to do with local users
	      are clustered into aliases.cf. (Away from  standard.cf,
	      and from  rrouter.cf)
	    - A new calling arguments for  routeuser (aliases.cf,
	      and rrouter.cf)
	    - Smart "+plustail" processing into fqdnaliases.cf
	    - Hooks in between p-usenet.cf, and aliases.cf to handle
	      'newsgroup' database.
	    With these the system can handle usernames that have
	    dots in them, and unifying multiple (in theory: arbitary
	    number of: aliases.zmsh.example) aliases, and other databases.

1998-06-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/policy.h, smtpserver/policytest.c, smtpserver/policytest.h,
	  smtpserver/readpolicy.c:
	    Altered "relaycustnet" semantics a bit.  Even though it will
	    still allow unlimited inbound feed, it will at first fo DNS
	    verification on MAIL FROM, and RCPT TO headers -- accepts
	    recipients if said recipients have any DNS A/MX entry at all,
	    and likewise with sender...
	    Introduced new attribute:  "fulltrustnet +"  which can
	    be used in case there absolutely is need for not checking
	    input addresses (like in a very high-volume email traffic
	    in between vger.rutgers.edu and nic.funet.fi ...)

	* transports/mailbox/sieve.c, transports/mailbox/mailbox.c,
	  include/sieve.h, transports/mailbox/Makefile.in:
	    Hooks for 'SIEVE' things; ways for the user to define
	    message arrival time filtering.

1998-06-06  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* contrib/spamlist.py, utils/policy-builder.sh.in:
	    New version of  spamlist.py  from Roy Bixler, a bit
	    support for its output format into policy-builder.

1998-06-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/sm/sm.c:
	    Added "H" flag to the "sm" facility flags.
	    Altered here the way the BSMTP mode has worked for
	    ages.  Specifically now it requires EXPLICITE 'H' flag
	    to produce HELO/EHLO to the begining of the BSMTP
	    datastream.

	* utils/rotate-logs.sh.in, configure.in, utils/Makefile.in:
	    Made "rotate-logs" utility to be 1) autoconfig, and
	    2) installed every time a "make install" is done.

	* smtpserver/smtpserver.c:
	    Some clients seem to send "QUIT\r", and then close the
	    socket.  This caused indigestion and error logging.
	    Now it will at least tell what the input was, and
	    then have indigestion complaints..

	* proto/zmailer.sh.in, proto/Makefile.in, proto/newdb.in:
	    - Alterations on "zmailer" command, streamlining, adding
	      a "zmailer makedb" function to compile all common database.
	    - Option processing improvements on  newdb  to allow arbitary
	      order of options affecting the underlying  makedb.
	    - Makefile changes to (possibly) improve "make forms"
	      installation processing to be more generic.
	
	* utils/vacation/vacation.c:
	    Add HAVE_DB_H test to be third known/supported database.
	    Will it be sufficient for all environments shall be seen..

	* utils/vacation/convtime.c:
	    Add a couple autoconf includes

1998-06-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/newdb.in:
	    Smarter option processing, usage() function.

	* compat/sendmail/sendmail.c:
	    Recognize when no message was collected, and silently
	    ignore such input.

	* compat/sendmail/sendmail.c:
	    - Parse and verify option parameters for -B and -p options
	    - implement -s option (save From_)
	    - wrote a REAL usage() report -- try 'sendmail -?' to see

	* smtpserver/smtpcmds.c:
	    When presenting diagnostics on bad parameters on MAIL command,
	    the server used occasionally response number 455, where it
	    should use 501 -- cosmetic bug, I would say..

1998-06-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/zmailer.sh.in, proto/newaliases.in, proto/newdb.in,
	  proto/newfqdnaliases.in, utils/makedb/makedb.c:
	    - "makedb" got "-s" option so that in alias mode (-a) it
	      will not utter final statistics report
	    - Created command "zmailer newdb" which generates four
	      well known flatfile databases into their respective
	      binary views. (localnames, routes, aliases, fqdnaliases)
	      If all goes ok, this command prints no statistics of
	      databases.  (You could guess: somebody asked for this :) )
	    - Others just recognize the "-s" option, and pass it around
	      properly.

	* router/functions.c:
	    Removed large chunk of dead code (#if 0 ..)

	* proto/Makefile.in:
	    Fixed configuration file back-reference

	* smtpserver/smtpcmds.c:
	    When printing HELO-string into rcvdfrom comment, quote
	    also "(", and ")" characters.

	* smtpserver/smtpserver.c:
	    Revised that 'smtpserver -i' mode code so that
	    it should work on a wider array of systems.

1998-06-02  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, smtpserver/smtpcmds.c:
	    More Roy Bixler patches.  Moved some code around so
	    that the system will always know when it truly is
	    connected to a network socket. The server will not
	    produce "rcvdfrom " envelope header in case it is
	    not running on a network socket.

	* Most  Makefile.in  files:
	    Reworked on "prefix=nnnnn make install" installation.
	    Now it creates the target parent directories if needed.

	* Makefile.in, ChangeLog:
	    Version 2.99.50-s5 -- are we now safe ??

	* transports/mailbox/mailbox.c:
	    Added a bit earlier test for "user" /dev/null so that
	    that target can be "delivered" to without privilege
	    check.
	
	* router/rfc822.c:
	    More gymnastics on getting the possibly missing "From: "
	    header generated in all possible situations.

1998-06-01  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/newaliases.in, proto/newdb.in, proto/cf/i-routes.cf,
	  proto/cf/standard.cf, proto/newfqdnaliases.in:
	    Synced 'newdb' usages to supply explicite '-l' option,
	    Modified scripts to require /bin/sh, not MAILBIN/router !

	* router/rfc822.c:
	    If the message had no 'From: ' header, generate one for it.

	* proto/cf/standard.cf:
	    Add "bitnet" and "uucp" into the default toplevels list.

	* proto/cf/rrouter.cf, proto/cf/i-bitnet.cf:
	    Updated BITNET routing rules;  nic.funet.fi  is Finland's
	    *only* BITNET host these days, and works as BITNET-bound
	    email gateway.

	* libsh/builtins.c, proto/cf/aliases.cf, proto/cf/aliases-new.cf:
	    Whoops, two mistakes in  aliases.cf -- wrong name at
	    lappend parameter, and lappend internal functionality
	    at empty target variable content was faulty (SIGSEGV..)

	* configure.in, libc/setregid.c, libc/Makefile.in,
	  transports/mailbox/mailbox.c:
	    Within mailbox.c there is one instance of fork(), and
	    following it are some setgid()/setuid() statements.
	    Setting real-uid/real-gid is not sufficient for systems
	    with NFS-mounted home directories...

	    Changed those calls to be  setregid() and setreuid(),
	    which should work far better, but I have no idea about
	    its portability to for example  SunOS 4.1.*  series.
	
	* proto/Makefile.in, proto/cf/SMTP.cf.in, configure.in:
	    Default router.cf is altered to have protocols 'routes',
	    and 'smtp'.  Per default the system install will not
	    have UUCP in routing stage anymore.

	* smtpserver/smtpdata.c:
	    Oops: At DATA processing the content-policy was tested
	    only if the last RCPT policy analysis yielded All-OK (0)
	    status.

1998-05-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/newdb.in:
	    The script is in fact pure /bin/sh script, don't ask for
	    running the router on it.

	* proto/cf/aliases.cf, proto/cf/consist.cf, proto/cf/crossbar.cf,
	  proto/cf/aliases-new.cf:
	    Replaced all uses of 'setf' with  'lappend' and 'lreplace',
	    where appropriate.

1998-05-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/builtins.c:
	    Finetuning of  sh_lreplace()  gadget.

1998-05-19  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/db/smtp-policy.src, utils/policy-builder.sh.in:
	    Define a new alias tag:  _localnames
	    to be used with "localnames" source file.
	    It does not have "relaycustomer +" tag in it, thus just
	    simply doing "MAIL FROM:<foo@local.host.name>" will not
	    allow wide-open relaying...

	* libsh/trap.c:
	    printf() argument castings into ones that are likely
	    supersets of all existing instances -- mainly casting
	    to  long ...

	* proto/cf/standard.cf:
	    relation 'localnames' got '-m' option, which was missing :-/
	    (detected when one system didn't react at changes in the
	     localnames file/database)

	* lib/rfc822scan.c:
	    A bug in error processing caused certain pathologic cases
	    to follow NULL pointer... Outch.  Sample case detected
	    by Alexis Yushin.

	* lib/symbol.c:
	    Removed conditionally builtin "pjwhash32()" function in
	    favour of same function in separate file.

	* libsh/builtins.c:
	    First stab at 'lappend' function

	* Makefile.in:
	    Don't demand automatic dependency on "configure: configure.in",
	    which would run autoconf, as CVS extraction gets dates reversed
	    (or otherwise screwed up..)

	* configure.in, smtpserver/Makefile.in, smtpserver/smtpserver.c:
	    Comment away "-lelf" and "-lkvm" autoconfig tests, and
	    removed all instances of loadaver_current() uses.
	    I don't believe there to be any worthwhile point in it.

	* configure.in:
	    Fixes for "-lresolv" tests so that IRIX6.4 is happy.

1998-05-14  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* All (very nearly) Makefile.in files, plus
	  configure.in:
	    Support CPPFLAGS input environment for the configure,
	    and store it into all Makefiles that do compilation.
	    It is intended to carry "-I/.." options for CPP phase
	    so that some illogically placed headers can be found.

	* utils/makedb/makedb.c:
	    Missed  'l' and 'u' from  getopt() parameters; Oops..
	    (Andrew Tridgell <tridge@samba.anu.edu.au> reported)

	* scheduler/msgerror.c:
	    Had one fseek() lying around from another branch
	    of flow control -- but the "fp" parameter pointed
	    to NULL :-/  (Andrew Tridgell reported)

	* transports/smtp/smtp.c:
	    Two instances of  zsyslog()  with  LOG_ALERT  changed
	    to  LOG_ERR -- the detected errors are not ALERT level
	    stuff. (Andrew Tridgell reported)

1998-05-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/makedb/makedb.c:
	    Fixes on policy parser error reports, and generic duplicate
	    key error's key printing routine.

	* proto/newaliases.in, proto/newdb.in, proto/zmailer.sh.in:
	    As "makedb" got explicite "-l/-u" options, so did "newdb",
	    and their callers.

	* proto/cf/standard.cf:
	    Relation parameters for db FILES need to have "m" in them,
	    we learned.. (via the hard way, of course).  Now added it.

	* utils/Makefile.in:
	    Conditionalize installing of "policy-builder.sh" script so,
	    that it is no longer overwritten blindly by "make install".

	* smtpserver/smtpcmds.c, smtpserver/policytest.c,
	  smtpserver/policytest.h, smtpserver/readpolicy.c,
	  include/policy.h:
	    Implemented smtp-policy attribute "maxinsize"
	    which has numeric value, and can be used to limit
	    (in source specific manner) incoming message sizes.
	    Implemented also provision for "maxoutsize", which
	    use remains to be seen.. (possibly for running inside
	    smtp transport agent)

	* utils/makedb/makedb.c:
	    Runtime options '-l' and '-u' for explicite lower-/upper-
	    casification of key strings before storing them into db.

1998-05-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/mxverify.c, smtpserver/smtpcmds.c:
	    Spotted a case of certain timeouts slipping into
	    hard errors when they definitely should not.
	    Added new report for "Detected temporary DNS error,
	    retrying may help.."

	* scheduler/readconfig.c, scheduler/scheduler.h,
	  scheduler/transport.c, proto/scheduler.conf.in:
	    Selector parameters:
		priority=<n>
		nice=<n>
		syspriority=<n>
		sysnice=<n>
	    Further into at the default scheduler.conf(.in)
	    comments.  Idea thanks to <Nicholas_Briggs.PARC@xerox.com>

	* smtpserver/smtpcmds.c:
	    If ident lookup is not done, don't add ' ident : ..' stuff
	    into the 'rcvdfrom ' envelope header.

1998-05-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.50-s3

	* transports/smtp/smtp.c:
	    A few cases of calls to  smtp_sync() while SS->smtpfp
	    was already NULLed are now protected.  One can't do
	    any remote syncing when there is no remote...

1998-04-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libc/Makefile.in:
	    Fixes for installation of  zmailer.h, and libzmailer.a
	    (Noted by Eugene Crosser)

	* compat/sendmail/sendmail.c:
	    Usage of "-f<>" option (source as the 'box') creates
	    message with "channel error" for the reported envelope
	    source.  This was for easier debugging of 'channel error'
	    things, but YMMV as the saying goes...

	* proto/Makefile.in:
	    Weird problems in "make mailshare" installing *.conf
	    files.  Perhaps fixed now. (Noted by Eugene Crosser)

	* router/rfc822.c:
	    Alternate scheme for dealing with SMTP MAIL FROM:<>, and
	    lack of "From:" header in the message.

	* Makefile{,.in}:
	    Version: 2.99.50-s2

1998-04-24  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in, acconfig.h, lib/prversion.c:
	    Store ./configure command parameters into a #define,
	    and present them in places calling  prversion().
	    (Makes sense in several cases, IMO..)

	* configure.in, (most)/Makefile.in:
	    New configuration option:
		--with-getpwnam-library="-L.. -l.."
	    helping overloading of  getpwnam()  (and getpwuid() ?)
	    library calls with your own special ones; if you have some
	    ISP system with backend databases, etc..

1998-04-09  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    RedHat 5.0/glibc-2.0.7-6: found   res_init()  in libc, but
	    not others, like  res_mkquery().

	* transports/mailbox/mailbox.c, man/mailbox.8, README.UPGRADING:
	    New option: "-C" to canonify username to what pw_name
	    from  getpwnam()  call yields.  Previously this canonification
	    was done blindly -- does not affect most people, but there are
	    a few weird fellas whose  getpwnam() uses key A, and yields
	    string B in pw_name field..  (These are not only Telecom Finland
	    weirdos..)

1998-04-08  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.50-s1

	* transports/mailbox/mailbox.c:
	    New hash-directory option: -P (and -PP)
	    This uses pjwhash32() on the username and then calculates
	    a sub-directory hash from that -- in range of 'A'..'Z'.
	    With two -P's, the hash is two-level deep: /dir/X/Y/uname
	    where X is calculated as 'A'+(hash/26)%26, and Y is 'A'+(hash%26)

	* transports/mailbox/mboxpath.c:
	    A new command with options '-d dirpath', '-P[P]' and '-D[D]'
	    and username parameter.  It calculates same hashes, and reports
	    to  stdout  the path of the mailbox.

	    This is intended for system-wide startup script usage with
	    code something like following for sh:
		MAIL=`mboxpath -P $USER`
	    It is important to use SAME options here as are used at running
	    the mailbox program.

	* lib/pjwhash32.c:
	    Pulled from elsewere a hash-routine to convert a string into
	    a hash-value.  Used at mailbox subdirectory hashing..

	* transports/smtp/smtp.c:
	    "-L localidentity" option fix.  Now it can select from
	    possible multiple local identities.
	    Also corrected similar problem with '-F' option processing.

1998-04-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c, smtpserver/smtpdata.c:
	    Report end of "DATA" and "BDAT" commands too -- the server
	    may be sleeping around on idle-states for a long time..
	
1998-03-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/mailbox/mailbox.c:
	    Corrected the use of x.2.2 type of mail status code from
	    "5.2.2" to "4.2.2".  (Persistent transient error.)

	* INSTALL:
	    Warn about configuration phase --prefix="parameter" string
	    size limitations due to usual shell-script execution rules
	    on UNIXes.

	* router/libdb/header.c:
	    Alter the syntax of "Reply-To:" header match that of
	    RFC-822.  Oops since 2.2.1 (and probably before!)

	* router/libdb/bind.c:
	    Just nice for debugging -- report DNS lookup error codes
	    in text instead of "magic" numbers -- "NXDOMAIN" instead
	    of "3", for example.
	
1998-03-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/mailbox/mailbox.c:
	    A quota-check hook from Eugene Crosser <crosser@average.org>

1998-03-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpcmds.c, smtpserver/smtpserver.c:
	    Limit a bit about how much meta-lines are logged.
	    If policyresult status is zero, don't report it.

	* libident/identuser.c:
	    When connect() yields "ECONNREFUSED", present report
	    "NO-IDENT-SERVICE" instead of "SOCKFAULT1".
	    (Local users at a large SPARC server running 2.6 and
	     sending email with PINE thru SMTP.)

1998-03-22  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/builtin.c:
	    Function sh_echo() got slight alteration.
	    Now it detects options: [-n] [--] [rest of args]
	    in this order.

	    This in order to be able to write script statements of
	    style:  echo -- "$@"    where the arguments MAY start
	    with first component of "-n" ...

	* proto/cf/canon.cf:
	    Rearrangeing the script a bit, do  $(canon ..) calls
	    in  canonical ()  in case the hostname has at least one
	    dot in it, and the top-level part is not know one.

	* router/db.c:
	    Somebody asked for a method for querying available
	    databases in the router scripts.  Method is:
		relation -T -t dbtype dummyname
	    Return-code 0 means the 'dbtype' is known, and non-zero
	    means it is unknown.

	* lib/selfaddrs.c, transports/smtp/smtp.c:
	    Modify function  matchmyaddress()  to return value 3 for
	    such destination addresses which are of invalid network
	    (Valid range being: 1..223; out of which 127 yields value 2)
	    This was prompted by noticing appearance of faulty DNS
	    data in larger amounts in the network.  Lots of A 0.0.0.0
	    entries especially.

1998-03-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* INSTALL, doc/guides/configure, doc/guides/smtp-policy:
	    A bit of rewriting on INSTALL file, new guide file,
	    and update of  smtp-policy  guide.

	* ChangeLog, Makefile.in:
	    Pushing out version 2.99.49p10-s11

1998-03-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/rrouter.cf, INSTALL:
	    Match $hostname also with non-lowercase domain
	    address.

1998-03-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/msgerror.c:
	    In case boiler-plate template was not found,  writeheader()
	    would produce bad error report message which router would
	    not accept for processing.

1998-03-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/qprint.c:
	    A patch from Andrey Blochintsev to restore the functionality
	    of "mailq -v" with scheduler running with "-H[H]" mode.

	* proto/cf/rrouter.cf, proto/cf/aliases.cf:
	    When user has  .forward  but it is empty, aliasing pushed
	    said user to bitbucket.  Now the .forward is expanded to
	    be  "\username", and no recursed .forward will be entered.
	    Thus the user will stay in the local system.

1998-03-11  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/rfc822hdrs.c:
	    A user found pathological case of errors which caused his
	    router process to blow up.  Turned out to be overflow of
	    stack contained array :-(   Outch!
	    Fixed/limited several array/buffer references in the module.

	* transports/smtp/smtp.c:
	    Full-blown pipelining -- will collect replies asynchronously,
	    and merge results into smtp_sync() states while still sending
	    things out.  This limits (sometimes) amount of things kept
	    in the reply pipeline buffers.

	* proto/cf/aliases.cf:
	    Backed off some changes; pushed too much into bitbucket :-(

	* transports/smtp/smtp.c:
	    Alexis Yushin reported that BDAT didn't work in non-pipelined
	    mode :-(  Corrected that.

1998-03-10  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf, proto/cf/rrouter.cf, proto/cf/fqdnaliases.cf:
	    Rewamped $(rrouter ..) and some other scripts after reports
	    regarding mysterious problems with $PUNTHOST.

	* include/shmmib.h, scheduler/prototypes.h, scheduler/scheduler.c,
	  scheduler/scheduler.h, scheduler/update.c:
	    Hooks/preparations for RFC 2249

	* smtpserver/smtpdata.c:
	    Some anti-spam hacks merged in

1998-03-04  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Correction to EHLO SIZE processing, aborting message sending
	    if the remote system presents a size limit, and current message
	    size estimate exceeds that value.  Corrections to the way, how
	    active smtp socket peer IP addresses are presented for diagnostic
	    reports.

1998-03-03  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Smarter processing for PIPELINING error reports;
	    if PIPELINING mode yields error on MAIL FROM, use
	    that report at all RCPT TO lines.
	    Also support multiline reports from remote servers
	    (up to a few kilobytes long..)

	* smtpserver/smtpserver.h, smtpserver/smtpserver.c,
	  smtpserver/Makefile.in, smtpserver/policytest.h,
	  smtpserver/smtpdata.c, smtpserver/contentpolicy.h,
	  include/mail.h.in, include/policy.h:
	    - Modified several multi-line policy report messages
	      into a narrower form with same text folded on
	      shorter lines
	    - Added hooks for  contentpolicy()  function that
	      will be able to analyze file content for possible
	      acceptable content issues ("SPAM"...)

	* libc/mail.c: mail_fname(FILE * mfp)
	    A new function returning filename of currently open
	    mail related FILE *.

	* Makefile.in:
	    Version 2.99.49p10-s10

	* proto/cf/canon.cf, proto/cf/rrouter.cf:
	    Modifications on canonicalize() routines so that
	    X.400 gateway address of type:  /foo/bar@gate.way
	    will go thru unharmed.
	
	* router/rfc822.c:
	    If there is no "From:" header, and the source
	    channel is "error", create a "From: <>" header.
	    At the same time the source ENVELOPE rewrites
	    itself to be   postmaster@local.host.name  (hmm..)

1998-02-28  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Still problems with PIPELINING; doing  smtp_sync()
	    twice wasn't prepared for a thing, and thus in some
	    cases (all cases?) syncing after BDAT didn't quite
	    work ok.

	* proto/cf/rrouter.cf:
	    "lotusgw!" routes_spec() tag -- exact details are
	    in state of flux, but this is for Telecom Finland
	    operations.  Apparently suitable pre-routing at
	    smart MTAs can help a lot with system performance
	    at lotus-smtp-gateways.

1998-02-27  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version id 2.99.49p10-s9

	* scheduler/threads.c, contrib/mrtg/mrtg-zmq:
	    Noticed that "mailq -sQQ" output does not produce
	    consistent results when the scheduler has no jobs
	    in queues, nor any children.  Changed the reporting
	    a bit to give out a line of zeroes, if nothing else.

	    Added a bit more comments and explanations into
	    the  mrtg-zmq  script; it is a tool, but in itself
	    it is NOT sufficient for graph producing, just to
	    produce the data.

	* smtpserver/smtpserver.c:
	    Recognize several error conditions within  s_getc()
	    in connection with read(2) call.

	* transports/smtp/smtp.c, include/ta.h,
	  transports/libta/writeheaders.c:
	    Implemented the outbound RFC 1830 CHUNKING (BDAT)
	    method for message sending; needed revised methods
	    on header writing -- to a buffer.

1998-02-26  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/makedb/dblook.c, utils/makedb/makedb.c:
	    printf format string fixes

	* transports/smtp/smtp.c, transports/libta/diagnostics.c:
	    Carry IP address in WTT data to the DSN reports.
	    Thus will tell exactly which IP addresses tried to
	    connect to each other.

	* smtpserver/smtpcmds.c:
	    Last of Gabor Kissig's router-driven policy facility
	    patches have been incorporated into the server.
	
1998-02-25  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/resources.c:
	    Per report from Martin Wendel, AIX 4.2.1 yields
	    surprising values on  getrlimit(RLIMIT_NOFILE, ..)
	    result structure.  Altered things so that we won't
	    use that facility on _AIX systems -- ever.

	* router/functions.c:
	    $(syslog ...) and $(logger ...) functions

1998-02-20  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/threads.c (and others):
	    Radical thread-group job-picking reorganizing.
	    More deterministic approach on scheduling with
	    better guarantees of even activation of threads.

	* scheduler/mailq.c:
	    The "-Q" mode receiving of non-Q-mode vertices
	    data streamlined so that it does not require
	    up to infinitely long linebuffers...
	
	* transports/smtp/smtp.c:
	    NULL-ptr reference in logfp output.  Oops...

1998-02-17  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    A weird error report surfaced, which turned out to be
	    error in PIPELINING smtp_sync() processing.  Remote
	    end gave 250 answers to all MAIL FROM, and RCPT TO lines,
	    but then gave 451 for DATA.  The code had NO handling
	    of DATA command error :-(  (There was apparent assumption
	    that if any RCPT TO is ok, then DATA will be ok too..)

1998-02-16  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* scheduler/scheduler.c, scheduler/update.c:
	    When #resync:ing a file, read it immediately back, but
	    for those vertices that have a lock, issue a delayed
	    "wakeup"..

	* proto/cf/aliases.cf:
	    User's domain identity carrying fixed

	* proto/cf/canon.cf:
	    Unnecessary back-slashes removed
	
	* proto/cf/crossbar.cf:
	    Fine-tunings for rewriting outbound email envelope with source
	    domain at the local host

	* proto/cf/p-usenet.cf:
	    Automatic dbtype configuration

	* router/db.c:
	    Cleaned up the address processing expressions

	* smtpserver/smtpdata.c:
	    Corrected message-id analysis routines a bit
	
1998-02-13  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/zmailer.sh.in, utils/rotate-log.sh:
	    Updates for log-chop processing with various
	    programs -- routers and the scheduler are
	    slightly different animals in this regard..

1998-02-12  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/functions.c:
	    Logical expression error within run_dequote() caused
	    faulty processing of string "'" in such manner, which
	    caused process to blow up...

1998-02-05  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/libc.h:
	    Prototypes of  inet_ntop()  and  inet_pton()  changed to
	    match the world view -- Solaris 2.6 is now happy with us..

	* proto/cf/p-smtp.cf:
	    Patch by Alexis Yushin for UUCP route handling

	* compat/rmail/rmail.c:
	    Patch by Alexis Yushin for proper use of <sysexits.h> values

	* transports/errormail/errormail.c:
	    An off-by-one fix by Alexis..

Wed Feb  4 19:52:36 1998  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    More modifications to support RedHat 5.0 systems, and
	    at same time to support Solaris 2.5.1.
	
	* lib/esyslib.c:
	    erename()/eqrename() tricks to handle Solaris returning
	    EBUSY at inconvinient moments..  Now will retry the thing
	    until successfull (or failed with errno != EBUSY/EINTR)

	* libident/identuser.c:
	    Added setjmp()/longjmp() along with alarm() handling to
	    make sure we have shortish timeout

	* smtpserver/smtpcmds.c:
	    Cosmetic fixes on verbose log file

	* smtpserver/smtpdata.c:
	    Recognize a couple of headers that exist on spam email

	* smtpserver/smtprouter.c:
	    Recognize router subprocess death, and report it with
	    "400 Help...!" message, not silent "250 All fine."

	* smtpserver/smtpserver.c:
	    Report RBL TXT data to the connecting user

	* transports/libta/diagnostic.c:
	    Trunc-back the transport-spec file if its appending
	    fails.

	* transports/smtp/smtp.c:
	    In EHLO/HELO/reconnect/HELO/... connection test attempts
	    do retry all MXes -- but only once each.

Sun Dec 21 14:59:04 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libc/setreuid.c:
	    AIX code missed "return 0;" at the end.
	    (From: pakrat@raleigh.ibm.com)
	    And also SysVr4 emulation code had missing "return rc;"
	    at its end..

Sat Dec 20 01:05:00 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpchild.c:
	    Altered the child registration and detection mechanism
	    to test for "sneaky" disappearances of subprocesses
	    before getting them registered into the server childs[]
	    table.  Has "tunable" interval on how to monitor on
	    the existence of subprocesses.
	
 	* smtpserver/cfgread.c:
	    Removed "PARAM toplevels", a stillborn thought.

	* libsh/sh.ssl, libsh/sslwalter.c, proto/cf/*.cf{|,.in}:
	    Codified error report on use of  'sift' / 'tfis'
	    syntax in place of 'tsift' / 'tfist' names.  Report
	    mismatching keywords -- like 'ssift' ending with 'tfist'..
	    Fixed all prototype *.cf and *.cf.in files in this regard.

	* libsh/test.c:
	    Don't complain always at failing *stat() calls -- allows
	    things like this without spurious junk at the screen:
	    	if [ ! -f $MAILVAR/db/aliases$DBEXTtest -o \
	          $MAILVAR/db/aliases -nt $MAILVAR/db/aliases$DBEXTtest ]; then
		    # Yes, so update!
		    $MAILBIN/zmailer newaliases
		fi
	
Wed Dec  3 00:39:45 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/libdb/gdbm.c, router/libdb/ndbm.c:
	    GDBM sets  gdbm_errno  with value  GDBM_EMPTY_DATABASE
	    if the DB is empty; NDBM does not complain of the situation.
	    GDBM and NDBM had poorly (nee, pathologically) functioning
	    search ( = fetch ) retry routines, rewrote them slightly.

	* smtpserver/smtpserver.c:
	    Lacked  stashmyaddresses(NULL)  call to prime the interface
	    address data.

	* smtpserver/mxverify.c:
	    Considered only the first MX record arriving;  Duh :-(

Sat Nov 29 16:02:48 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* libsh/interpret.c:
	    Finally!  Found the place(s) of leaking memory
	    (conscell + string) in the router.  Now nic.funet.fi
	    does not have infinitely growing router :-)

Mon Nov 24 20:44:27 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in:
	    Re-organize the --with-ipv6-replacement-libc option
	    processing -- now it finally works.

	* router/libdb/unordered.c, router/libdb/ordered.c:
	    The incore database of filenames (spt_files)
	    reorganization, and code reuse on the open_seq()...

Fri Nov 21 19:48:06 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/makedb/makedb.c:
	    - "-A" option to APPEND more data to same key.
	      This behaves slightly differently for aliases, and
	      for policy -- former being ascii, latter being binary.
	    - Process alias entries in similar manner as the
	      sendmail does them

	* router/libdb/ndbm.c, router/libdb/bsdbtree.c, router/libdb/gdbm.c,
	  router/libdb/bsdhash.c, router/libdb/dbm.c, router/libdb/ordered.c,
	  router/libdb/unordered.c:
	    Retry the DB file open three times with 1 second sleep in
	    between; this to allow certain small window of db file
	    unavailability during  mv  operation of the installation
	    of a new version.

	* libsh/interpret.c:
	    Fix errorneously added  s_free_tree() -- it really is
	    ok to free() only the top cell. Freeing more blows things
	    up..

Tue Nov 11 04:16:41 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Extensive revisioning of MX processing in order to eliminate
	    spurious "DNS inconsistensy detected, no MX, no Address" reports.
	    Now it seems the things are under control.

	* smtpserver/smtpserver.c, smtpserver/policytest.c,
	  smtpserver/policytest.h, smtpserver/smtpcmds.c,
	  smtpserver/smtpdata.c,   smtpserver/readpolicy.c,
	  smtpserver/mxverify.c,   include/policy.h:
	    - Initial implementation on  http://maps.vix.com/rbl/
	    - mechanisms to pass some data back from policytest to
	      the smtpserver proper, and to add some logs..

	* transports/mailbox/mailbox.c:
	    Support "-d" option for defining MAILBOX directory at
	    runtime.
	
	* transports/expirer/expirer.c, transports/expirer/manual-expirer.in,
	  transports/expirer/Makefile.in, configure.in:
	    Manual interface for the transport-agent level entity;
	    providing also easier usage for the expirer in case
	    of wanting to expire something from the queues.

	* transports/mailbox/mailbox.c:
	    Non-zero exit codes from pipe subprocesses were considered
	    all bad.  Now things have been altered to treat most of
	    them as EX_TEMPFAIL, and only very few as permanent.
	    Found this problem out by a procmail using collegue, when
	    his home disk filled up, and deliveries bounced with code
	    EX_TEMPFAIL :-O

	* scheduler/scheduler.h, scheduler/transports.c:
	    Store approximation of the argv[] into a per-process array
	    of subprocess states, and in case the transport sub-process
	    exits with EX_SOFTWARE status code, send syslog() message
	    of  MAIL_EMERG, and more verbose stuff to  stderr log file.
	    At syslog config you might consider directing MAIL_EMERG to
	    some people directly, and in realtime..

	* scheduler/msgerror.c:
	    When reporting errors, use correct pointer to the "plain
	    ascii" error report.

	* smtpserver/smtpserver.c, smtpserver/policytest.h,
	  smtpserver/readpolicy.c, smtpserver/policytest.c,
	  include/policy.h:
	    - If the policydatabase can't be opened, delay a bit at
	      the connect formation, but always send syslog MAIL_EMERG
	      in hope of it becoming handled in realtime...
	    - Add new policytest attribute: sendernorelay

	* libsh/interpret.c:
	    In preparation for more debugging, separate things in between
	    sAssign, and sTempAssign executions.

	* router/libdb/yp.c:
	    "struct search_info *" was old style, declaration, new one is
	    "search_info *"

	* smtpserver/policytest.c:
	    Search for the first unquoted at-character in the input
	    address -- for things like:  <"foo@bar.foo"@bar.foo>
	    (Not that I particularly like the idea of supporting this
	     kind of addresses -- people using them are prone for
	     nasty surprises.   And frankly I am afraid they might
	     get past relay-hijack blocking methods too...)

	* smtpserver/smtpserver.c:
	    The same-ip-connect-source registration, and trapping
	    needs a bit of rearrangements -- namely the subprocess
	    must wait enough for it to become registered for sure..
	    Now in front of nearly all exit() calls is sleep(2),
	    which tries to ensure that the subprocess will exist
	    long enough for the main server to be able to register
	    it before subprocess' death.

	* utils/makedb/makedb.c:
	    - policy compilation shall reject all inputs with
	      invalid contents
	    - alias compilation shall treat extended input lines
	      as such where the previous line is has appended ","
	      at the end.

	* router/rfc822.c:
	    Set trace header ("Received:" header) date to be that
	    of the input spool file mtime.
	
Mon Oct 27 09:51:02 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* doc/guides/procmail:
	    Condensed wisdom on how to use procmail in place of the
	    "mailbox" local delivery channel for user deliveries.

	* doc/guides/cyrus-imap:
	    Edit version the "procmail" guide with relevant info regarding
	    CMU Cyrus message store.

	* scheduler/readconfig.c:
	    Match documents about parameterless clauses.

	* compat/sendmail/sendmail.c:
	    Ignore (silently) all '-oXXXX' options we don't recognize.

	* router/libdb/selfmatch.c, proto/cf/rrouter.cf:
	    Corrections for selfmatch routines from
		Darryl Miles <dlm@g7led.demon.co.uk>

	* scheduler/scheduler.c, scheduler/threads.c, scheduler/agenda.c:
	    Use controlled per facility symbol splaytrees, and shrink
	    them when the symbol is no longer needed. (i.e. channel,
	    and hostnames come and go..)

Sun Oct 26 03:30:08 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* include/splay.h, lib/splay.c, lib/symbol.c, router/db.c,
	  router/conf.c, router/prototypes.h, router/router.c,
	  router/libdb/incore.c:
	    Seriously limit the amount of memory needed to handle
	    operative symbols.  Perhaps there is (after all) no
	    need to have infinite memory capacities.
	    (Each object cache has its own namespaces, and when
	     the need for some named object disappears, it is
	     removed from the namespace.)

Wed Oct 22 22:38:10 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Releasing 2.99.49p8 to public after series of compilation,
	  and running tests at various platforms.  These include:
	  Linux/ELF/libc5, Linux/AXP/glibc2, Solaris 2.5, DEC UNIX 4.0

	* libsh/io.c:
	    glibc loader complained about the use of 'gets()', removed
	    the unused code block.

	* utils/vacation/vacation.c:
	    #include <limits.h>

	* utils/vacation/Makefile.in, libc/myhostname.c:
	    Revised the routine not to use  gethostbyname(), and
	    finally realized that all it missed was -lresolv library..

	* libc/getnameinfo.c, libc/getaddrinfo.c, include/netdb6.h,
	  configure.in:
	    Corrected and completed the --with-ipv6-replacement-libc
	    configuration parameter functionality

	* smtpserver/rfc821scn.c:
	    Corrected  <v6dotnum> object scanning

	* proto/db/localnames:
	    Default content of the file is EMPTY, not nic.funet.fi's
	    hostname listing...

	* proto/Makefile.in:
	    Per default install also files:
		$MAILSHARE/smtpserver.conf
		$MAILSHARE/router.cf
	    if they are not present at the system

	* compat/sendmail/sendmail.c, man/sendmail.8:
	    Sync "-t" option with sendmail, and especially so with
	    the manual page!
	
Mon Oct 20 09:46:04 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p8  (way too many p6* versions around..)

	* Makefile.in, configure.in, utils/Makefile.in,
	  utils/makedb/Makefile.in, proto/fullnamealiasmaker.pl,
	  proto/newaliases.in, proto/newdb.in, proto/smtpserver.conf.in,
	  utils/makedb/makedb.c, utils/makedb/dblook.c,
	  utils/policy-builder.sh.in:
	    Renamed 'makendbm' to 'makedb', and 'ndbmlook' to 'dblook'.

	* smtpserver/policytest.c, smtpserver/policytest.h,
	  utils/makedb/makedb.c, utils/makedb/dblook.c, router/db.c,
	  router/libdb/search.h, router/libdb/bsdhash.c:
	    Created 'BHASH' type database which is BSD DB_HASH

	* configure.in:
	    - Fix  --without-fsync  option
	    - Fix test on  malloc_d
	    - Add option:  --with-ipv6-replacement-libc

	* include/splay.h, lib/splay.c:
	    Keep track of elements on the splay tree for debug porposes
	    (who is leaking memory at the router..)

	* libc/getaddrinfo.c, libc/getnameinfo.c:
	    Sync with Craig Metz's versions 1.26 and 1.32 respectively.

	* proto/db/smtp-policy.src, smtpserver/policytest.c,
	  smtpserver/policytest.h:
	    Do testing on connection source IP reversal domain too.
	    This allows us to detect certain set of dial-in users who
	    abuse dial-in series to post spams...

	* smtpserver/mxverify.c:

	* transports/smtp/smtp.c:
	    More armour on host connection retry, and giveup on scheduler
	    shutdown.

	* utils/vacation/vacation.c:
	    Do message production without invoking  /usr/lib/sendmail
	
Fri Aug  8 18:04:06 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p6  (could it be ?)

	* proto/db/smtp-policy.src, doc/guide/smtp-policy, include/policy.h,
	  smtpserver/policytest.c, smtpserver/readpolicy.c, README.SPAM:
	    Updated documentation to match code, added policy parameters:
		'acceptifdns {+|-}'
	    which accepts recipient address when it has MX or A (or AAAA)
	    record in the DNS.

Thu Aug  7 23:00:52 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p6a3

	* SiteConfig.in, scheduler/scheduler.c, scheduler/update.c:
	    Eugene Crosser's SYSLOGFLGs for the scheduler.

	* scheduler/threads.c, scheduler/update.c:
	    A weird null-pointer derefferrence problem with gcc 2.7.2.1
	    at DEC UNIX 4.0 -- perhaps it is about gcc bug...

	* include/policy.h, proto/db/smtp-policy.src,
	  smtpserver/Makefile.in, smtpserver/mxverify.c,
 	  smtpserver/policytest.c, smtpserver/readpolicy.c,
	  smtpserver/policytest.h, utils/makendbm/makendbm.c:
	    Understand new policy parameters:
		'senderokwithdns {+|-}'
		'acceptifmx {+|-}'
	    of which the first (when existing) uses DNS lookup to
	    verify that the source address is acceptable, and the
	    second uses DNS to check that we are MX for the given
	    target domain. '+' means 'yield SOFT (4XX) error', and
	    '-' means 'yield HARD (5XX) error'...

	* smtpserver/smtpserver.c:
	    Eugene Crosser's syslog fix

	* smtpserver/smtpserver.c, util/policy-builder.sh:
	    If policy database is defined, but can't be opened,
	    smtp-server responds "400 Policy database problem, code=NN"
	    to every command (except 'help' and 'quit').
	    The codes mean: 1: Unknown db format, 2: db open failed

	* smtpserver/smtpcmds.c:
	    A mistake in character counting in RFC821_822QUOTE macro.

	* router/rfc822.c:
	    Detect if scheduler job-description file writing has
	    a fault, and give up.  The job will go into deferred
	    directory, from whence it should be (via cron?) moved
	    back into the router.

	* proto/Makefile.in:
	    Removed various  +XXXX  targets, and touches of them..

	* transports/smtp/smtp.c:
	    When the transport-agent receives 'SIGTERM', it sees if
	    it can die immediately, or if it should take a delayed
	    action on the death issue.  The delayed action is done
	    when the smtp transport is doing '.' write operation,
	    and waiting for the acknowledgement, plus doing diagnostics.

	* utils/vacation/vacation.c:
	    At Alpha, storing LONG_MAX into time_t doesn't work, use INT_MAX.

Mon Aug  4 17:29:26 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p6a2

	* INSTALL, Makefile.in, proto/Makefile.in:
	    "make install-cf"

	* configure.in, proto/Makefile.in:
	    Make (for installation) proto/scheduler.conf,
	    and its "distclean" removal..

	* router/libdb/bsdtree.c:
	    print_btree() had wrong test in db printout iteration
	    (found while wondering other thing..)

	* utils/makendbm/Makefile.in:
	    Corrected for architecture-subdir compile

	* utils/vacation/vacation.sh.in:
	    Sigh... Give up, and execute the correct binary in case
	    we called user-callable (= wrong) script.

	* router/Makefile.in:
	    Architecture-subdir compile for  rfc822.ssl, and its
	    related use.

	* include/libsh.h, libsh/builtins.c, libsh/trap.c, router/functions.c:
	    Altered  eval()  routine call parameters.
	    Also altered  ZMSH.fc  header format a bit.

Sat Aug  2 19:57:57 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p6a1

	* router/libdb/ldap.c, router/db.c, router/libdb/search.h,
	  configure.in, config.h.in, router/libdb/Makefile.in.
	  doc/guides/ldap.doc:
	    LDAP db driver by  Lai Yiu Fai <ccyflai@ust.hk>, plus
	    integration, and autoconfig support by yours truly.

	* utils/makendbm/makendbm.c, utils/makendbm/Makefile.in:
	    Massive code rearrange, now "-a" (alias) system does
	    proper continuation line handling too.

	* utils/makendbm/ndbmlook.c:
	    Concise data output dumper code

	* proto/newdb.in, configure.in, SiteConfig.in, proto/cf/*.cf,
	  INSTALL, proto/zmailer.sh.in:
	    Build default database format binary db with command:
	      $MAILBIN/newdb $MAILVAR/db/dbase-basename
	    also have two short-circuit commands:
	      zmailer new-localnames
	      zmailer new-routes

	* libsh/interpret.c:
	    Found, and corrected a bug in ZMSH expression:
	       variable=${1:-defvalue}
	    The mechanism mistreated ARGV values

	* router/db.c:
	    "btree" dbase entry was missing a call to  modp_btree()
	    routine which does exist, but just was never called..

	* router/libdb/selfmatch.c, smtpserver/rfc821scn.c,
	  transports/smtp/smtp.c
	    IETF DRUMS smtpupd draft for IPv6 address literal
	    says:  "[IPv6" SP <rfc-1884-encoded-address> "]"
	    That is, there is SPACE instead of "." after the
	    magic prefix.   Huh!  Quite magic...

	* smtpserver/smtpcmds.c:
	    Handle correctly zero size addresses in MAIL FROM:<>, and
	    (heaven forbid!) RCPT TO:<>.

Fri Jul 25 01:48:13 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p5

	* All Makefile.in files, configure.in:
	    mechanics to compile in VPATH environment, and to install
	    with  "prefix=/my/tmp/root make install"

	* config.h.in, configure.in, router/db.c, router/libdb/hostsfile.c:
	    Tests for  gethostent() sethostent() and endhostent()

	* include/ta.h, transports/libta/ctlopen.c:
	    New "DSN" object parsing: INPTR=

	* libsh/interpret.c:
	    ssift attribute string dequotation mechanics rewrite
	    (correcting operation, avoiding core-drops..)

	* man/smtpserver.8, smtpserver/cfgread.c, smtpserver/smtpserver.c,
	  smtpserver/smtpserver.h:
	    Syncing man-pages with the reality, new
	        PARAM ListenQueueSize nnn
	    runtime parameter with default value of 20 000.

	* proto/cf/i-smtp.cf, proto/cf/map.cf

	* proto/scheduler.conf, scheduler/scheduler.c:
	    channel/host selector:  chan/*.{fii,foo}

	* proto/scheduler.conf, proto/sm.conf.in, proto/cf/standard.cf
	    'bitbucket' channel

	* scheduler/scheduler.h, scheduler/readconfig.c, scheduler/threads.c:
	    "queueonly" flag by Alexis Yushin <alexis@NL.net>

	* smtpserver/policytest.c:
	    Ascii-mode debug printing routines by
	    Eugene Crosser <crosser@online.ru>

	* moved: support/vacation/ -> utils/vacation/

	* transports/expirer/expirer.c, transport/expirer/Makefile.in:
	    New transport agent with thought of it becoming a tool
	    for the scheduler, but apparently it is also well suited
	    for manual operation.  Docs are missing..

	* transports/libta/writeheaders.c, transports/hold/hold.c,
	  transports/mailbox/mailbox.c, transports/smtp/smtp.c,
	  transports/sm/sm.c:
	    Moved implicite newline after header write out of the
	    writeheaders() routine into each caller.  Thus became
	    able to do smart things with mailbox; ORCPT XTEXT decoding,
	    for example.

	* transports/mailbox/mailbox.c:
	    When writing to a pipe, don't care if the write stops
	    due to some error, but if the pipe end-point process
	    exists with non-zero status, THEN become upset!
	    (Still something mysterious with pipe reports -- I see
	     positive reports even when I don't ask for them..)

	* transports/smtp/smtp.c:
	    Error reporting correction in one rare case, and
	    general streamlining.

Fri Jul  4 14:54:02 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p4

	* router/rfc822.c:
	    Nuke headers: "Bcc:", "Return-Path:", "X-Orcpt:", "X-Envid:",
	                  and respective "Resent-*:" variants

	* router/libdb/bsdbtree.c:
	    If the db can not be opened ( open_btree() returns NULL ),
	    don't crash on it..

	* scheduler/msgerror.c:
	    In case the report we are composing does have "NOTIFY=NEVER"
	    in effect, but no valid recipients exist, ignore any such
	    NOTIFY value, and return the message in full -- to the system
	    postmaster...

	* transports/mailbox/mailbox.c:
	    Found a bug in let_buffer[] reuse -- it was an "automatic"
	    variable, that is, stack reclaimed it in between message
	    deliveries, and of course were able to corrupt it!
	    I also enlarged the  let_buffer[]  size to be of reasonable
	    size -- 16k to 64k depending on your BUFSIZ value.

	* transports/mailbox/mailbox.c:
	    Add headers "X-Orcpt:" and "X-Envid:" to the message when
	    storing it into a file.  For a pipe the data is passed in
	    envelope variables.  (I got rather fed up with spams this
	    morning, and decided to add a bit more trace as to whom
	    the message has been sent originally..)

	* transports/smtp/smtp.c:
	    Accept non rfc-821 behaviour of the remote server by treating
	    non-conformant reply of form:  "NNN<CRLF>" the same as
	    conformant reply of form: "NNN<SP><CRLF>".

Sun Jun 29 21:36:43 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p3

	* configure.in, config.h.in, transports/libta/ctlopen.c,
	  transports/mailbox/mailbox.c, transports/sm/sm.c,
	  transports/smtp/smtp.c:
	    Configuration option:  --with-ta-mmap   which uses  mmap()
	    facility to map in pages of the message data.
	    At least at Solaris 2.x it is not advisable to use if you
	    want to have highest possible performance, because the
	    munmap() throws away ALL pages of the file from the system
	    memory, even when other users have those pages in use!
	    For that reason it is much better to rely on plain simple
	    read()/write()  behaviour that let buffer cache to exist.

	* configure.in:
	    Configuration option:  --without-fsync
	    Option that turns off (globally) the use  fsync()  anywhere
	    in the ZMailer.   System configurers can decide what is best
	    for their systems.  It does give definite edge at buffered
	    IO by not forceing every file modification to be commited
	    up to the disk.

	* smtpserver/rfc821scn.c:
	    Alteration at the treatment of "!" and "%" characters. Now
	    they are special, and are analyzed in more profound manner
	    within localpart analysis.


	* smtpserver/smtpchild.c:
	    Register, and analyze properly how many SMTP sessions are
	    currently active (non-reaped) from any given source IP
	    address.
	
	* transports/smtp/smtp.c:
	    Correction into notary-status-code pickup for ENHANCEDSTATUSCODES
	    mode.
	
	* libsh/testeval.c:  (+ several of  proto/cf/*.cf files)
	    New operators into the builtin 'test' function:  -nt, -ot, -ef
	    (file age comparators, and file equality comparator)

	* SiteConfig.in, router/rtsyslog.c, smtpserver/smtpserver.c,
	  transports/libta/tasyslog.c:
	    New ZENV entry:  SYSLOGFLG=
	    which can be used to turn off syslog() logging activity
	    at the  smtp-server/router/transport-agents

	* config.h.in, configure.in, router/router.c, scheduler/scheduler.c:
	    Check of  setgroups()  routine, and at both the router, and
	    the scheduler, use both to clean out the set of supplementary
	    groups the processes have.

	* include/hostenv.h:
	    Concise USE_ALLOCA/HAVE_ALLOCA defines

	* libident/identuser.c:
	    Be a bit more tolerant at what comes back as response
	    for the ident query.

	* libsh/interpret.c, router/functions.c:
	    A bit more smarts into quote containing string processing;
	    Especially when dequoteing string that contains only one
	    char: ' or " ...

	* proto/cf/i-routes.cf:
	    Accept incore database of form:   $MAILVAR/db/routes.zmsh
	
	* router/libdb/headers.c:
	    Allow   "Reply-To:" and "Resent-Reply-To:" to have value: "<>"
	    (sigh...  It is against RFC-822, but I see such usage few times
	     each day...)

	* scheduler/msgerror.c, transports/errormail/errormail.c,
	  transports/fuzzyalias/fuzzyalias.c, transports/mailbox/mailbox.c:
	    Stronger MIME-report boundary generator which isn't merely
	    stocastic, but very likely unique at the creation time.

	* smtpserver/policytest.c, smtpserver/policytest.h:
	    Move policy-database open out from database define
	    routine.

	* smtpserver/policytest.c:
	    - Study "rejectsource" at HELO/EHLO parameter check
	    - For the RCPT TO:<..> study also the full addresses
	      in addition to the domain part

	* smtpserver/smtpcmds.c, smtpserver/smtpserver.c:
	    - Print out the incoming HELO/EHLO parameter as is
	      into comment at  "rcvdfrom"  envelope header along
	      with many other bits of info.
	    - Change policy-rejection responses from:
	        553 5.1.8 ...
	      to:
		553 5.7.1 ...

	* ssl/ssl.c:
	    Conflicting routine name within the ssl.c program: basename()
	    ( Linux libc6 a.k.a. glibc-2.0.4 .. )

	* support/vacation/vacation.sh.in:
	    Modifications into 'vacation start' command behaviour.

	* transports/mailbox/mailbox.c:
	    Found a couple off odd situations where creation of files
	    into non-kosher location was allowed; partly corrected with
	    the purge of supplementary groups at the scheduler, partly
	    with a bit of new code.

	* transports/smtp/smtp.c:
	    Recognize (unknown) smtp response value 571 to be a sign of
	    policy based refusal.

	* utils/makendbm/ndbmlook.c:
	    At Debian systems including <errno.h> causes surprises at
	    parameters called 'errno' ... rename such parameters.

Sun Jun 22 04:57:02 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49p2

	* configure.in:
	    sprintf() return type testing fix
 	
	* include/hostenv.h:
	    Too many files need to include  <string.h>,  thus
	    we added it into  "hostenv.h"... (for SunOS 4.1.x)

	* libc/getaddrinfo.c, libc/getnameinfo.c:
	    "extern int h_errno;" added

	* proto/cf/SMTP+UUCP.cf.in
	    More suitable, and more generic version

	* smtpserver/smtpcmds.c:
	    A fix in ORCPT pseudo-formation in case the original
	    sending system did not use the option..

	* support/vacarion/vacation.c:
	    Properly placed  'extern char * strerror();'

	* transports/libta/diagnostic.c:
	   Again optimize int returning sprintf better, than
	   the old char * returning...

Thu Jun 19 19:41:47 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in
	    Version 2.99.49p1
	
	* configure.in:
	    Reordered (and changed default) of  --with-libmalloc=
	    option parameters

	* lib/selfaddrs.c:
	    Detected that SunSoft SunPro C 3.0 didn't define
	    '__svr4__', but does '__SVR4' -- automatic Solaris
	    support failed due to that..

	* libsh/listmalloc.c:
	    Debugged, and got it finally working..  (something for
	    Zmailer 3.0 ...)

	* smtpserver/smtpcmds.c:
	    Freed memory blocks that were not malloc()ed at all..

	* transports/libta/diagnostic.c:
	    'notarybuf' can be a NULL pointer, prepare for it!

	* utils/makendbm/makendbm.c:
	    Just some casts to please SunOS 4.1.x compilation

Fri Jun 13 22:41:04 1997  Matti Aarnio  <mea@mea-koti.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.49

	* README.PERFORMANCE:
	    Added some notes about what performance figures we have achieved
	    with this beast

	* ALL SOURCE FILES (more or less):
	    - Threw in 'const' before 'char *', and got a LOT of changes all
	      around
	    - Converted lots and lots of places of 'unsigned char' into
	      'char' -- in very few cases also chopped off extra-high
	      bits loading unsigned chars from strings when needed.
	    - Added function prototypes all around, and fixed a couple
	      real bugs in rarely used parts of the system
	    - changed all instances of 'struct conscell' into 'conscell'
	      (typedefed object) for a latter jump in altering the
	      conscell object handling sometime latter in the developement.

	* lib/strlower.c, lib/strupper.c:
	    New library routines

	* smtpserver/readpolicy.h, smtpserver/policytest.c,
	  smtpserver/policytest.h, README.SPAM, man/smtpserver.8:
	    Integrated policytest()/policytestaddr() routines with
	    compiled in logics of earlier Gabor Kissigs interactive
	    router subprocess based system without the need to run
	    the router as a subprocess...

	* utils/makendbm/makendbm.c, utils/makendbm/ndbmlook.c:
	    Integrated support for policy-db compilation

	* proto/db/smtp-policy.src, utils/policy-builder.sh:
	    Sample policy database (header), and sample policy-db
	    builder

	* scheduler/update.c, transports/libta/diagnostic.c:
	    "ok3" status message for cases where transporter was
	    able to relay the DSN into to the next link, thus we
	    have no mandate to report successfull relaying, like
	    "ok2" and "ok" would do.

Fri Jun 13 22:41:04 1997  Matti Aarnio  <mea@mea-koti.tmt.tele.fi>

	* Makefile.in:
	    - Version 2.99.48p4

	* doc/design/zmog.tex:
	    - Corrected two typos, and were able to compile it
	      with command "tex zmog"

	* lib/selfaddrs.c, libc/inet_ntop.c, libc/inet_pton.c,
	  libident/identuser.c, router/libdb/bind.c,
	  router/libdb/selfmatch.c, smtpserver/smtpserver.c,
	  transports/smtp/smtp.c:
	    Modified plain '#ifdef AF_INET6' into more complex:
	    '#if defined(AF_INET6) && defined(INET6)'

	* transports/libta/diagnostic.c:
	    Under some obscure reasons, autoconfig of the sprintf()
	    return value did get it wrong at SunOS 4.1.4..
	    Coded the diagnostic without conditional optimization
	    based on the return value type.

	* libc/getaddrinfo.c, libc/getnameinfo.c, include/netdb6.h:
	    Pulled from 2.99.49beta10 -- with seriously rewritten
	    DNS code.

	* transports/smtp/smtp.c:
	    Allow talking to self host in case the destination port is
	    a non-standard port -- not port 25, that is.

Wed May 28 11:03:42 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    - Version 2.99.48p3

	* config.h.in, configure.in, configure:
	    Pulled these from 2.99.49beta7:
	    - timezone autoconfiguration
	    - IPv6 in use with ONLY an explicite  --with-ipv6  option!

	* transports/sm/sm.c, transports/smtp/smtp.c,
	  transports/mailbox/mailbox.c:
	    "readalready" cache handling in case the MMAP is not
	    recognized properly (IBM AIX has problems at the auto-
	    detection of that feature..)

	* smtpserver/smtpserver.c, smtpserver/smtpcmds.c,
	  smtpserver/smtpdata.c:
	    - Wrong parameters in one logging call at the  BDAT  processing,
	    - Rearranged typeflush() calls, and pipeline status reporting.

Fri May  2 16:10:28 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    - Version 2.99.48p2
	
	* BUGS
	    Noticed problem at scheduler ETRN -> results in
	    busy spin...

	* man/aliases.5:
	    A new man-page...

	* proto/cf/fqdnaliases.c:
	    Missing quotes from the script

	* proto/scheduler.conf:
	    Sample scheduler.conf file with tags for three
	    different channel = local  -cases:
	      - local/file*
	      - local/pipe*
	      - local/*
	    The "local/*" may be run with "sm" to use procmail,
	    or cyrus (for example) for deliveries to users.
	    The "sm" (procmail in particular?) is unable to do
	    pipe-feeds, nor storing to files, it seems.
	    (Also gave an example of 'punt' on smtp..)

	* smtpserver/smtpcmds.c:
	    Removed obsolete special case ESMTP token: X-TURNME

	* transports/errormail/errormail.c, transports/sm/sm.c,
	  transports/mailbox/mailbox.c, transports/hold/hold.c,
	  transports/fuzzyalias/fuzzyaliases.c, transports/libta/lockaddr.c,
	  transports/smtp/smtp.c:
	     "Make sure we are properly positioned at the start
	      of the message body"  (lseek() things)

	* transports/mailbox/mailbox.c:
	    Save  errno  before doing library calls -- did yield wrong
	    error in case the 'dotlock' was busy.
	
Thu Apr 24 21:00:28 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    - Version 2.99.48
	    - SiteConfig->zmailer.Config processing  sed  script
	      modifications so that even HP-UX sed does it right..

	* proto/cf/rrouter.cf:
	    Test for a "|.+" was coded wrong, and it never
	    matched for pipes causing stripping of possible
	    ">" from within the pipes..

	* router/router.c:
	    - logit() routine written with different armouring
	      against overlong input, which causes overlong
	      syslog() output, which causes some syslogs to
	      blow up..

	* transports/libta/mime2headers.c:
	    Properly flexible way to do DEFCHARSET definition
	    in runtime also for "MIME-2" (e.g. headers) part.

	* transports/libta/mimeheaders.c:
	    Missing "," from the canned "X-Warning" messages

	* transports/mailbox/dotlock.c:
	    HP-UX has 'long gethostid()' defined in its includes.

	* transports/mailbox/mailbox.c:
	    - Correction on long-term problem on PIPE running,
	      where the pipes practically did not work at all :-/
	    - Expanded diagnostics (while debugging that previous
	      bug...)
	
	* transports/smtp/smtp.c:
	    - ssfgets() got a bit more state into  SmtpState  block
	    - Most (nearly all) sprintf()s are output length limited
	      with "%.200s" -type of format strings

Wed Apr 23 17:58:19 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.48-970423

	* configure.in:
	    - Rearranged libresolv autoconfiguration
	    - Test for possible need of -lresolv to satisfy the
	      access to the structure:  _res
	    - Corrected the  RFC822TABS (--without-rfc822-tabs) option
	    - Do GCC optimizer resistant test on existence of
	      external objects, e.g. char *sys_siglist[];
	
	* include/ta.h, transports/libta/tasyslog.c:
	    New parameter (msg) to the  tasyslog()  routine

	* include/zsyslog.h:
	    Yield an error if the system does not have proper
	    <syslog.h>  (TODO: Have acceptable substitutes for
	    that case..)

	* libc/mail.c, smtpserver/smtpdata.c:
	    The  mail_close()  routine is a wrapper for an internal
	    routine that returns information regarding the last status
	    of the spool file for the  smtpserver  to be able to report
	    that at the message reception.

	* router/libdb/header.c, man/zmailer.3:
	    Define the  "rcvdfrom" to require a  "user@address" type of
	    parameter

	* smtpserver/smtpcmds.c:
	    Store the "rcvdfrom" information from the IDENT information.

	* router/rfc822.c, router/router.c:
	    If the system can't resolve internal uname->uid/uid->uname
	    mappings (getpwnam() fails ?), then defer the message.

	    If the message has a "rcvdfrom" header, and the message is
	    not submitted by any of the "trusted" UIDs, replace the "rcvdfrom"
	    information with a new one we fabricate

	* router/rfc822.c, router/rtsyslog.c:
	    router's syslog (rtsyslog()) has a new parameter

	* smtpserver/smtpserver.c:
	    - Don't syslog() anything, unless indicating an error!
	    - Recognize IN6_IS_ADDR_V4MAPPED() type of addresses, and
	      do reversal lookup in proper IPv4 manner.

	* transports/libta/diagnostics.c, transports/libta/tasyslog():
	    - notary_setwttip() to behave in similar manner to notary_setwtt(),
	      but to define the IP address that the host has, and we have made
	      a connection with.
	    - tasyslog() takes that information as a parameter
	    - tasyslog() has new sprintf() format strings with output width
	      limitations

	* transports/libta/mimeheaders.c:
	    Rewrote (somewhat) the text of the "X-Warning:" -lines

	* transports/mailbox/mailbox.c:
	    - The recipient address is properly dequoted, and localized
	      for feeding to the local processing (to a file, pipe, or
	      to store at somebodys mailbox)
	    - HP-UX 9.x oriented: 'fflush() returns an error in case
	      the FP points to a PIPE, but lets hope it won't set ferror()
	      unless it really is an error!'

	* transports/sm/sm.c:
	    - Process bigger let_buffer[]s than before
	    - If the system reads more than one bufferfull, always remember
	      to zero the  'readalready'.

	* transports/smtp/smtp.c:
	    - Report the  notary_setwttip()  along with  notary_setwtt() data
	      for the diagnostics
	    - smtp pipelining code rearrangement completion

	* transports/libta/tasyslog.c:
	    Don't be shy about telling what the return message of the
	    transporter was when tasyslog()ing it, and the code was OK.

Mon Apr 13 19:15:31 1997  Matti Aarnio  <mea@mea-koti.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.48

	* BUGS:
	    More TODO notes (and a few removed)

	* Makefile.in:
	    More DISTCLEANFILES entries, 

	* SiteConfig.in:
	    New entry:  DEFCHARSET=XXX

	* compat/sendmail/sendmail.c, include/zsyslog.h, ...
	    Replaced all syslog() related things with our own
	    include header, and z** -macroes.

	* config.h.in:
	    IPv6 header tests, RFC822TABS definition.

	* configure.in:
	    - PERL path test
	    - Tests for several different (N|G)DB(M) formats
	    - IPv6 related header tests
	    - Test for the need of resolver library
	    - Configure time option to say wether ot not to use
	      TABs in the RFC-822 headers -- At tele.fi we have
	      customers that CAN'T handle TABs :-(  (The makers
	      of the software with problems agree they made a
	      mistake, but it has quite a bit of installations...)
	    - Attempt to auto-detect  TCP-Wrapper's  tcpd.h, and
	      libwrap.a from several possible locations.
	    - Auto-generate several new files...

	* include/ta.h, transports/libta/lockaddr.c:
	    New parameter: 'int mypid'

	* include/zmsignal.h:
	    - SIGNAL_RELEASE() rewrite for BSD
	    - SIGNAL_HANDLE*() with SA_NODEFER active!

	* lib/esyslib.c:
	    erename() did miss ending 'return 0;'

	* lib/selfaddrs.c:
	    - Better IPv4 self-address detection (IPv6 still partial..)

	* lib/taspoolid.c:
	    - When presented a path, pick only the last part, not "/path"..

	* libc/getaddrinfo.c, libc/getnameinfo.c:
	    - first stabs at the integration of these new ways to
	      pick addresses..

	* libident/identuser.c:
	    - more and more adaptations for our smtpserver use (and
	      to be generic IPv4/IPv6 ident query interface..)

	* smtpserver/*.c, smtpserver/Makefile.in:
	    - Split the server in "zillion" bits from the original
	      monolithic file
	    - Integrated reception time character translation routines
	      as implemented by: Eugene Crosser <crosser@average.org>

	* router/Makefile.in:
	    - New source module:  rtsyslog.c

	* router/rtsyslog.c:
	    Sendmail-like syslog messages
 	
	* router/conf.c:
	    Configure-time option to be able to control the presentation
	    of TABs in the message headers.

	* router/db.c, router/libdb/selfmatch.c, router/libdb/Makefile.in,
	  router/libdb/search.h:
	    - New relation, which can be used to match local addresses
	      in destination addresses of form:   <foo@[1.2.3.4]>
	    - The "relation" command presents lists of available
	      database routines when it is called without arguments

	* router/rfc822.c, router/rtsyslog.c:
	    - Present the addresses in properly quoted format in
	      the transport-specification file
	    - rtsyslog() -- sendmail-like syslog report (still partial)

	* scheduler/msgerror.c:
	    New diagnostic scalar variable: time-of-last-attempt

	* scheduler/threads.c:
	    Change in age-order comparison code, some systems had
	    the qsort() to SIGSEGV..

	* scheduler/transport.c:
	    - Count '#idle' as a command.
	    - FD_* -> _Z_FD_* macro renameing

	* transports/libta/Makefile.in:
	    Missing semicolons

	* transports/hold/hold.c:
	    - Process according to the HOST parameter too, if present!
	    - Understand: NS/AAAA

	* transports/libta/ctlopen.c:
	    - close-on-exec flag set on
	    - Recoded the size estimate -- don't present the incoming
	      message transport envelope size -- at nic.funet.fi it
	      can be well over 100 kB, and the message itself is often
	      mere 1kB or so..  Some systems choke on such a "large"
	      messages..

	* transports/libta/diagnostic.c:
	    - Log the time of the diagnostics write to the TA-spec file
	      into the diagnostics string

	* transports/libta/dnsgetrr.c:
	    IPv6 things

	* transports/libta/mimeheaders.c:
	    Runtime option on what the default character set is at the
	    system (so that everybody need not to use UNKNOWN-8BIT, or
	    ISO-8859-1, or ...)

	* transports/mailbox/mailbox.c:
	    - Runtime option on default charset, when forcibly MIMEfying
	    - Basis for properly localized "user" identity

	* transports/sm/sm.c:
	    - charset system option processing

	* transports/smtp/smtp.c:
	    - charset system option processing
	    - smtp-pipelining processing with explicite flags on when
	      the parameter is really a recipient address, and when
	      the errors are severe, and when not..
	    - ssfgets() -- a timeouting version of  fgets(), which when
	      timeouting, sends a NOOP (or QUIT+close()) to the possibly
	      open SMTP session
	    - Various timeouts are processed with  setjmp()/longjmp(),
	      however NOT with POSIX  sigsetjmp()/siglongjmp(), which
	      in fact doesn't much help, unless you know for sure that
	      you can accept the signal mask that the sigsetjmp() has
	      saved for you...
	    - Use my interface-derived name for the HELO/EHLO parameter
	    - smtp_sync() internal logic refurnished
	    - calling error of  ranny()  on the randomization of the MX-
	      entries of same preferrence

	* proto/db/aliases.in, utils/autoanswer.pl.in:
	    - Alias of 'autoanswer: "|$MAILBIN/autoanswer.pl"'
	    - Autoconfiguring the runtime path of PERL
	    - New routine to do automatic replying to whoever
	      sent the original query

Sat Mar 15 02:54:06 1997  Matti Aarnio  <mea@mea-koti.tmt.tele.fi>

	* Makefile.in
	    Version 2.99.47
	
	* BUGS:
	    Notes on what is missing on IPv6 front yet..

	* config.h.in, configure.in:
	    HAVE_SA_LEN -- BSD 4.4 sockaddr sa_len -field

	* configure.in:
	    - Some rearrangements to try to autodetect  tcpwrapper
	      library in the system
	    - Detect (and possibly provide replacements) of IPv6
	      basic API functions:  inet_ntop(), inet_pton(), getaddrinfo(),
	      getnameinfo(), gai_strerror(), freeaddrinfo()

	* include/libc.h, include/netdb6.h, libc/gai_strerror.c,
	  libc/getaddrinfo.c, libc/getnameinfo.c, libc/inet_ntop.c,
	  libc/inet_pton.c:
	    Spare-copies of these routines in case a  -linet6, or
	    libc containing them is not in use...

	* compat/sendmail/sendmail.c:
	    Ignore sendmail option -odb (as well as -obd)...

	* include/ta.h, include/dnsgetrr.h:
	    Separate DNS query routine protos into their own file

	* libresolv/gethnamaddr.c:
	    Modified entrypoints to provide parameter on which to return
	    the TTL value of the queried data.

	* router/conf.c:
	    Add 4th default name for possible "daemon" --> "daemons" on
	    some newest SGIs..

	* scheduler/msgerror.c:
	    Moved repeated (big!) codesegment into separate procedure,
	    and schrunk the error reporter a bit with that...

	* scheduler/transports.c:
	    Oh my...  _FD_SET et.al. are defined on some systems! Renamed them.

	* scheduler/update.c:
	    Cosmetic changes actually..  (while debugging msgerror.c)

	* smtpserver/rfc821.c:
	    New  rfc821_v6dotnum() -routine.

	* smtpserver/smtpserver.c:
	    - Bug in 2.99.46psomething, which broke ENVID= parameter
	      parsing routine..
	    - Initial cut on IPv6 things

	* transports/hold/hold.c, transports/smtp/smtp.c,
	  transports/libta/dnsgetrr.c:
	    - First partial stabs at IPv6
	
Mon Feb 17 22:30:06 1997  Matti Aarnio  <mea@mea-home.tmt.tele.fi>

	* transports/mailbox/dotlock.c:
	    A HPUX `gethostid()' routine from <dd@mv.us.adobe.com>
	    (David DiGiacomo) via Sven Goldt <goldt@informatik.tu-muenchen.de>
	    who found out why the mailbox program keeps crashing on
	    the HPUX.

Fri Feb 14 20:29:25 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* lib/esyslib.c: erename(), eqrename()
	    Rewrote  eqrename()  cleanly in model of Andy Poling's
	    ideas -- he observed surprising amounts of duplicate
	    delivery while using  rename(2) instead of link(2)/unlink(2)
	    systemcalls for acquiring a lock on the messages.

	* transports/smtp/smtp.c:
	    Classify "DNS inconsistency, No MX, no A" message
	    a bit better.  There are four main categories, and
	    the "we are the best mx" could be divided still..

	* libsh/interpret.c:
	    Count on how many recursions we have done, and if exceed
	    some limit (like 100), we are highly likely doing something
	    seriously wrong.  Abort before getting a SIGSEGV from stack
	    overflow error. (All is rotten, but the diagnostics of the
	    death is a lot easier...)

	* proto/cf/aliases.cf:
	    Loop-cut 'expansions' testing keying was flawed, and
	    a person with a '.forward' was able to cause a serious
	    loop that lead to memory exhaustion in pretty short order..

Sat Feb  8 00:19:06 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* compat/sendmail/sendmail.c, configure.in, lib/esyslib.c,
	  libs/Makefile.in, router/rfc822.c, smtpserver/relaytest.c,
	  smtpserver/relaytest.h, smtpserver/smtpserver.c,
	  utils/makendbm/makendbm.c, proto/scheduler.conf, ChangeLog:
	    A heap of "minor" fixes to all around to improve this
	    compilability in various systems besides my RedHat Linuxes.

Thu Feb  6 19:00:24 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    patchlevel 46 -- time for a release..

	* router/functions.c, proto/aliases.cf, proto/crossbar.cf, proto/canon.cf:
	    New router-zmsh routines:  $(dequote .. ) $(condquote .. )
	    To provide support for having an alias entry like this:
		"The Space Head": st-tng
	    (And simplify the scripts to remove special patterns tried
	     for space-processing...)

Wed Feb  5 10:02:20 1997  Matti Aarnio  <mea@mea-koti.tmt.tele.fi>

	* utils/makendbm/makendbm.c:
	    Runtime option (switch)  -a  to process alias-like input
	    (keys are RFC-821-quoted strings) that follows format:
	       keyname: LWSP value,value2,value3
	    Thus allowing feeding the output of  printaliases  routine
	    to  makendbm for creating some real dbase, instead of indirectly
	    indexed ordered flat ascii file..

	* libsh/sh.ssl:
	    A new way to code white-space into '*sift' patterns by using
	    paired quotes:  'text with " dbl quote'"' and single quote"
	           Strings: -111111111111111111111--222222222222222222-
	    There '-' are ignored, and chars of '1', and '2' are taken in.
	
	* proto/cf/aliases.cf, proto/cf/crossbar.cf:
	    Recognize (with special pattern) that the local address contains
	    spaces, and do add quotes to it! (Similarly for 'internet' rewrite
	    rule..)
	
	* INSTALL, proto/cf/fqdnalias.cf, proto/newfqdnaliases.in,
	  proto/db/fqdnaliases: