File: ChangeLog

package info (click to toggle)
zmailer 2.99.51.52pre3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 16,596 kB
  • ctags: 7,422
  • sloc: ansic: 90,470; sh: 3,608; makefile: 2,784; perl: 1,585; python: 115; awk: 22
file content (7901 lines) | stat: -rw-r--r-- 290,942 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
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:
	    Separated 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 propably 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 themachinery 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 propably 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: 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, propably 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 propably 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:x
	    - 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:
	    A new routeing mechanism:  fqdnalias

	* Overview:
	    Added one new performance benchmark result

	* README.UPGRADING, scheduler/update.c, transports/libta/ctlopen.c,
	  transport/libta/diagnostic.c:
	    Due to a change at  transports/libta/diagnostic.c, and its
	    counterpart within  scheduler/update.c, new transport agents
	    might not work with old scheduler -- it is a matter of linking
	    the TA with the new library.

	* compat/sendmail/sendmail.c, smtpserver/smtpserver.c:
	    Do proper RFC821->RFC822 syntax quoting of possible backslashfull
	    addresses:  \rfc821@domain --> "\rfc822"@domain

	* config.h.in, include/syslog.h, libc/syslog.c
	    HAVE_SYSLOG_H -- mark also if (or if not) we have <syslog.h>
	    in the system.

	* libident/identuser.c, include/identuser.h:
	    A thorough rewamp of things -- to make sure no buffer overflows
	    will occur due to a hostile data..

	* include/libz.h, lib/rfc822scan.c, router/functions.c,
	  router/rfc822.c, router/rfc822hdrs.c:
	    When doing address list expansions, process each LINE of the
	    input as a sole container of the address -- if there is some
	    address like:  "@foo.domain" in a line, previously this became
	    catenated with the next line as: "@foo.domain:faa@fii"

	* include/ta.h, transports/libta/tasyslog.c:
	    New generic tasyslog() to log out transport-agent
	    report in similar manner to that of the  sendmail(8).

	* proto/Makefile.in:
	    Build/don't build some new/old dirs.
	    Especially builds the hash-subdirs for the scheduler!

	* lib/Makefile.in, lib/taspoolid.c:
	    New generic tasyslog() support routine to build unique
	    spoolids by catenating a base-64 encoded mtime of the
	    email contents file, and the inode number of that file.

	* lib/prversion.c:
	    Year change -- Copyright 1992-1997

	* proto/cf/aliases.cf:
	    Handle all variants of list  owner-, -owner, and -request
	    address injections neatly.  Does not set list outbound
	    sender to be  owner-listname, though!  (See aliases-vger.cf)

	* proto/cf/rrouter.cf:
	    - recognize addresses that start with a pipe character, and
	      DON'T mess with them with the focus testings!
	    - Handle backquote-prefix properly (i.e. strip it..)
	    - Detect feed to files (or X.400 address..)
	    - If the `fullnames' database, nor `newsgroup' database
	      found anything, try handling it in aliases database.

	* router/libdb/headers.c:
	    Moved two headers into "unknown" category, where we won't be
	    checking on them:  keywords, references

	* router/libdb/ordered.c, router/libdb/unordered.c:
	    scan over the first token with  skip821address() -- now I can
	    do aliases with quotes on the left-side, and spaces in them!

	* router/rfc822.c:
	    Bugfix: wrong pointer picked for recipient attribute causing
	    more or less mysterious crash..

	* router/rfc822hdrs.c:
	    New form of the generated Message-Id:
	      <yyyymmddhhmmssZspoolid+seq@mydomain>
	    It is slightly shorter than the previous one, and definitely
	    a lot more sortable..

	* scheduler/msgerror.c:
	    - Slight improvement on handling spacefull 'host' object
	      (and 'user' object too..)
	    - Threw away a 'dnsrecipient' information pointer, and
	      updated error log writers/parsers for it.

	* scheduler/scheduler.c, scheduler/scheduler.h, scheduler/update.c:
	    Will not keep 'contents' of the TA-spec file in memory for very
	    long -- only up to the initial scheduling input of the message.

	* smtpserver/relaytest.h smtpserver/relaytest.c:
	    Some more code -- "flesh on the bones", but not yet usable..

	* smtpserver/smtpserver.c:
	    Tried to alter the code to carry around a 'content' package
	    so that perhaps someday the smtp-server can be threaded (or
	    some such), and each thread runs with its own content.

	* transports/libta/diagnostic.c, transports/mailbox/mailbox.c,
	  transports/smtp/smtp.c:
	    Doing 'sendmail(8)' like syslog data preparation
	
Sat Jan 25 15:18:08 1997  Matti Aarnio  <mea@mea-home.tmt.tele.fi>

	* libsh/interpret.c, libsh/tregexp.c:
	    Trace  SSIFT/TSIFT statements with clearly differentiated
	    "trace compare/trace match" statements -- namely report
	    "tcomparing 'pattern' and 'string'" for the  TSIFT, and
	    "scomparing 'pattern' and 'string'" for the  SSIFT
	    (and "smatched"/"tmatched" for matches likewise..)

	* proto/cf/rrouter.cf:
	    Where that trace change was motivated... was something
	    that I had implemented sloppily in a ssift statement...
	    Namely I noticed, that the "fullname expansion traps
	    ':include:/path/to.file' into itself, and fails".  Then
	    I had decided to implement a test for RE "^[^.:]+\.[^.]+$"
	    (where the starting/ending limiters are implicite in ssift!)
	    but that RE has a fault of matching only ONE dot -- so no
	    "foo.bar.bat" is matched with it, while it correctly does
	    not match cases where the part before that dot has a colon
	    (from ":include:").

	    Now I test at first for explicite case of ":include:", and
	    only then test for dotfull names.

	    I am still uncertain if we should not rewrite it entirely
	    differently -- to move also fullname/newsgroup map tests
	    inside the $(routeruser ..) routine, and thus be able to
	    allow  sendmail -like aliases where dotfull names can be
	    in the standard aliases as well.

	* smtpserver/smtpserver.c, proto/smtpserver.conf,
	  smtpserver/Makefile.in, smtpserver/relaytest.h,
	  smtpserver/relaytest.c:
	    Some more coding of multi-db-format query lookups of
	    service limitation mechanisms.

	* utils/makendbm/ndbmlook.c:
	    Yet another parametrization error in the DB code..
	    (A non-fatal one, I presume.. affected only GDBM)

Sat Jan 18 07:11:07 1997  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Patchlevel 45

	* Makefile.in:
	    Command: "make install-bin" will not overwrite existing ZCONFIG
		     file!

	* compat/sendmail/sendmail.c:
	    Accept (and silently ignore)  "-ob*" -options.

	* configure.in, config.h.in:
	    - Have  --with-yp  -option
	    - Test for  res_init()  instead of  gethostbyname()  to see
	      if the system provided libraries are enough, or if more are
	      needed (like  -lresolv)
	
	* libsh/interpret.c:
	    - fapply() to accept up to 30 parameters in a linked list

	* proto/Makefile.in:
	    Remove the creation of "MAILBIN/bin/", which is about same
	    as creating   "MAILSHARE/bin/bin/", which is stupid...

	* router/libdb/ordered.c:
	    - test mmap() error return in a bit more generic way
	    - scan the buffer for the number of lines by executing
	      a bit better constrained scan - than the previous one was..

	* router/shliaise.c:
	    - Got rid of  svstack[]  arrays in  l_apply(), and  s_apply()
	      routines

	* scheduler/Makefile.in:
	    - If using TCP-Wrapper stuff, have related INCLWRAP, and LIBWRAP
	      definitions in use -- for the mailq access control
	
Tue Dec 24 00:23:32 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* all transporters:
	    Process  SIGQUIT as marker for desire of termination.
	    That is, equal to earlier SIGTERM behaviour, but with
	    a bit less urgent death.

	* scheduler/scheduler.c, scheduler/threads.c, scheduler/transport.c:
	    An attempt to create an orderly shutdown; send the
	    scheduler signal SIGQUIT will activate this behaviour.

	* Makefile.in:
	    When "make dist", at first do  "chmod -R a+rX" to turn on
	    all read-, and some x-bits.

	* SiteConfig.in, configure.in:
	   Autoconfigure preferred DBTYPE, and default extension for it.
	   From  SiteConfig.in  it will propagate to  /etc/zmailer.conf
	   (or where ever that one is..)

	* compat/rmail/Makefile.in, compat/sendmail/Makefile.in,
	  router/Makefile.in, scheduler/Makefile.in, smtpserver/Makefile.in,
	  transports/mailbox/Makefile.in, transports/sm/Makefile.in,
	  transports/smtp/Makefile.in, utils/makendbm/Makefile.in,
	  support/utils/Makefile.in:
	    Autoconfigure  MAILBIN= -entry (for installing)

	* utils/makendbm/makendbm.c:
	    Corrections for BSD DB B-tree database parametrization.

	* proto/cf/aliases.c:
	    Instead of using memory-hog script of (listaddresses ...),
	    do use the builtin (listexpand ...) routine.

	* proto/cf/rrouter.cf:
	    Do "ssift/in/tfiss" test on $address.

	* proto/smtpserver.conf, smtpserver/smtpserver.c,
	  smtpserver/Makefile.in, smtpserver/relaytest.c,
	  smtpserver/relaytest.h:
	    - On STREAMs machines accept several rather mystic error
	      states for  accept() -- with a shrug.. No need to exit(1)
	      on such things as ENOSR, or EPROTO (No STREAMS Resources,
	      Error on STREAMS PROTOcol, ...)
	    - Don't log to console ( openlog( ... LOG_CONS ... ) )
	    - Accept any input - any at all - for the HELO parameter.
	      Be a bit more picky with EHLO...
	    - Relay-control facility -- to whom we accept email to
	      (must be out customer, or the sender is our customer)
	    - Introduce new "PARAM" tokens -- several of them:
		- "help" - string for the HELP-response main-text,
			   up to 20 lines
		- "maxsize"		- max-size we accept
		- "reject-percent-kludge"  - flag
		- "accept-percent-kludge"  - ditto
		- "relaytargets"	- db-file definition
		- "relaycustnets"	- ditto the rest
		- "rejectnets"
		- "rejectsource"
		- "rejecttarget"

	* router/libdb/bsdtree.c, router/libdb/gdbm.c, router/libdb/ndbm.c,
	  router/libdb/unordered.c:
	    Modification test trips when the open file has link-count of
	    ZERO -- somebody mv(1)ed a new database on top of the old one!

	* scheduler/msgerror.c:
	    - An armour against WTT being NUL (upgradeing something?)
	    - Recognizing a situation where we are sending an error
	      report on error report -- marking that with altered subject

	* scheduler/scheduler.c, scheduler/threads.c:
	    Improve the freeze-out mode, it was able to spawn kids
	    in the freeze-out mode, though it did not feed them.

	* scheduler/transport.c:
	    Alter mailq() printout fork ending to be _exit(0)

	* transports/errormail/errormail.c:
	    Use the 'host' parameter if one is supplied. Always
	    pass it to the diagnostics subroutines.

	* transports/mailbox/mailbox.c:
	    - Fix processing the "lastchar" things.
	    - append_header() without extra "\n"

	* transports/sm/sm.c:
	    - append_header() without extra "\n"

	* transports/smtp/smtp.c:
	    New options:
		-F punthost  -- Send all mail to denoted host
		-L localname -- At multi-homed machine, bind() to named
				interface before doing connect()
	

Tue Dec  3 19:17:28 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* smtpserver/smtpserver.c:
	    Missing a couple of fflush()es -- moved the EXPN and
	    VRFY routines into separate subroutines.  Now have
	    ONE fflush() after each of the calls.

Mon Dec  2 18:38:09 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* utils/makendbm/makendbm.c:
	    Yet another parameter error in case the system can do
	    both NDBM and BTREE -- autch!

	* smtpserver/smtpserver.c:
	    Be silent about log-files when started up as
	    "/usr/lib/sendmail -bs" by somebody who can not
	    write into the default log files.

	* Makefile.in:
	    Version 2.99.43

	* router/libdb/bind.c, transports/libta/dnsgetrr.c,
	  transports/smtp/smtp.c, transports/hold/hold.c:
	    Uses of "sizeof(u_long)" have been eliminated (as well
	    as "sizeof(u_short)" in favour of numeric constants:
	    4 and 2 respectively.

	* transports/libta/mime2headers.c:
	    Disabled the new MIME2 code.  Nothing but grief... :-(

	* transports/libta/mimeheader.c:
	    One missing setting of a variable.

	* transports/smtp/smtp.c:
	    Missing space at DNS RET= parameter writing.

Wed Nov 27 21:23:12 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    Once more (SmtpState -block).. Clear it with memset(),
	    then init those few non-zeroes.

	* smtpserver/smtpserver.c:
	    Finally fixed the VRFY and EXPN behaviours; now
	    they work as they should.

Tue Nov 26 15:17:03 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/smtp/smtp.c:
	    SmtpState -block needed some more initializations.
	    Missing one: verboselog

Mon Nov 25 16:21:15 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* transports/hold/hold.c:
	    Calling convention of  getrrtype() was changed (a bit),
	    and I forgot to update it here too.

Thu Nov 21 20:37:19 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Version 2.99.42

	* transports/smtp/smtp.c:
	    Massive rewrite of calling conventions within the SMTP
	    client -- passing around a state-variable containing
	    state of the smtp session (though not the message..)
	    Corrected one bug at PIPELINING code.

	* transports/mailbox/mailbox.c, transports/sm/sm.c,
	  transports/smtp/smtp.c, include/ta.h,
	  transports/libta/mime2headers.c:
	    Routine  headers_to_mime2()  got new parameter.

	* proto/cf/aliases.cf:
	    Yet couple more fixes -- when processing  .forward
	    an empty (addressless) file needs to expand to the
	    original user, NOT to "\$user" -> $user ...

	* scheduler/mailq.c:
	    Explanation on "Transport queue is empty" condition.

	* scheduler/readconfig.c:
	    Now configuration file can have spaces around parts of
	    attribute tokens:  'name=value'  'name = value'
	    Unquoted '#' causes end of line to be comment, and thus
	    ignored.

	* scheduler/scheduler.c, scheduler/threads.c, scheduler/update.c:
	    A "-p" (procselect) option to run only selected threads,
	    but not to log in possible error reports (debug stuff)

	* scheduler/scheduler.c:
	    If a "TURNME"-request is processed, and the request
	    does not have acompanying entry in "queue" (cfp->mid
	    is not set), process it gracefully, and unlink().

	* smtpserver/debugreport.c:
	    Corrections on  type()  parameters.

	* smtpserver/smtpserver.c:
	    More informative reports on message exceeding fixed limit

	* transports/errormail/errormail.c:
	    Builtin error message fix

	* transports/libta/mimeheaders.c:
	    Make sure the Content-Transfer-Encoding is converted
	    from Q-P to 8BIT when it is in that value..

	* transports/mailbox/mailbox.c:
	    - Support 'dirhashes' (runtime command-line option: -D)
	    - If the message has no 'To:' header, add sendmailish
	      'Apparently-To:' -header.
	    - The sendmailish "Return-Receipt-To:" processing produces
	      now proper and up to date  MULTIPART/REPORT

	* transports/sm/sm.c:
	    Produce proper DSN return values for various subprogram
	    error messages.

	* utils/makendbm/makendbm.c:
	    Correction on 'dbasename' variable specification

Thu Nov 14 22:37:18 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* router/rfc822.c, router/libdb/headers.c, BUGS:
	    Treat "Return-Path:" -header with respect -- and
	    DELETE it when sending it thru the system.  It is
	    stored into the user's mailbox by the FINAL DELIVERY
	    AGENT, it does not exist outside user's mailbox!

Wed Nov 13 16:48:00 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* proto/cf/aliases.cf:
	    Aargh... quotation-rules on ZMSH are "a bit" different
	    from SH, and I keep forgetting it.  Everything broke
	    when I added some newlines here & there...  Now added
	    '\' (back-slashes) to cover them.

	* utils/makendbm/makendbm.c, utils/makendbm/ndbmlook.c:
	    Got rid of the need for some referred things, uses
	    strerror() instead.

	* transports/mailbox/mailbox.c, libc/mail.c, scheduler/msgerror.c:
	    Use  fsync()  when finishing off the write to the mailbox/file.

	* transports/libta/ctlopen.c:
	    Initialize  notifyflgs  properly for the case that no
	    NOTIFY parameter is present (assume: FAILURE)

	* transports/errormail/errormail.c:
	    If no reports sent, generate still OKs for each non-
	    generated report..

	* transports/sm/sm.c:
	    Handle "channel error" at the sender..

Tue Nov 12 17:47:34 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* config.h.in, configure.in:
	    Test for  fsync()  at the system.

Mon Nov 11 18:56:21 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Released version 2.99.41

	* SiteConfig.in:
	    Some new default values; FORCEPUNT, SCHEDULEROPTIONS

	* compat/rmail/rmail.c, compat/sendmail/sendmail.c:
	    Re-coded "to " and "todsn " -envelope generation,
	    added "env-end" -envelope header.

	* libc/strsignal.c:
	    Using AC test  SYS_SIGLIST_DECLARED

	* include/ta.h, transports/libta/skip821address.c,
	  scheduler/scheduler.c, transports/libta/ctlopen.c:
	    Declare and use  skip821address() -routine.
	    Enables to have embedded spaces in 'host', and in 'user'
	    parts of the parameter line.

	* lib/loginit.c, router/router.c, scheduler/scheduler.c:
	    "Name-space pollution" -- "log" is reserved name,
	    and cannot be used as a name of a global variable..

	* libc/mail.c:
	    Final corrections for automatic filename index array
	    reallocing -- off-by-one, and 32/64 bit troubles..

	* libc/syslog.c:
	    Compile it always in -- somewhat difficult at SunOS 4.1.4,
	    but it seems to work even when debugging fails..
	    Also uses  *sNprintf -routine, that is one with explicite
	    way to tell the max space at the buffer.

	* libsh/io.c:
	    #define NO_FLOAT_CONVERSION -- don't do FP conversions,
	    can get rid of the need to use "-lm" at the router at
	    DEC UNIX 4.0 ...

	* proto/cf/TELE-FI.cf:
	    Sample of "router.cf" we use at Telecom Finland

	* proto/cf/aliases.cf:
	    Renoved  aliases.cf  that can do PUNTHOST AFTER checking
	    at system aliases, but it will NEVER look at user home
	    directories...

	* proto/forms/delivery:
	    Changes at the message text (and subject).  Now it is
	    more generic to apply also for positive acks.

	* proto/scheduler.conf, proto/sm.conf:
	    Sample entries for using CYRUS IMAP-server injector as
	    local server (Tom Samplonius <tom@sdf.com>)

	* router/db.c, router/libdb/bsdbtree.c, router/libdb/search.h:
	    Additional DB engine: BSD LIBDB B-Tree

	* router/db.c:
	    At "pathalias" -driver one can have (at $MAILSHARE/db/routes)
	    "." to denote "match everything on this", and thus to make
	    outgoing routes with single entry at routes db:
			.  smtp!firewall

	* router/functions.c:
	    A glitch-fix for run_expandlist() -routine generating
	    NOTARY ORCPT data

	* router/libdb/ndbm.c:
	    "extern int errno" (SunOS 4.1.4)

	* router/rfc822.c:
	    Fix on detecting ERRTO pointer value change, and moving
	    "eVerbose" envelope header detection a bit up, plus adding
	    several "verbose-log" printouts.

	* scheduler/msgerror.c:
	    - New routine  decodeXtext() to decode XTEXT objects coming
	      as DSN parameters.
	    - Some sanity-checks added for error report address picking.
	      (core-drops at vger.rutgers.edu)

	* scheduler/scheduler.c:
	    - Lowercase the whole input string with "channel host",
	      then latter sort those lines with  strcmp()  instead
	      of  cistrcmp() ...
	    - Fix parsing the NOTIFY= parameter -- wrong index..

	* scheduler/update.c, scheduler/scheduler.c:
	    Unconditionalize the syslog()

	* smtpserver/smtpserver.c:
	    - Moved code around to have definitions before uses.
	    - Fix one call-variant of "type()" definition.

	* transports/errormail/errormail.c:
	    - Decode XTEXT
	    - Produce DSN definitions on the reports with NOTIFY=NEVER..

	* transports/libta/writeheaders.c:
	    Always double-dot-quote the headers, though it should never
	    be needed...

	* transports/mailbox/mailbox.c:
	    Present POSITIVE DSN reports!

	* transports/sm/sm.c:
	    - Unless using option "H", convert headers to "MIME-2"
	    - Generate several possible variants of BSMTP, which one
	      can thus feed via UUCP to remote system

	* transports/smtp/smtp.c:
	    Write out in a bit larger chunks than 1 k to the network..

	* utils/makendbm/makendbm.c:
	    Support 3 different DB-formats: NDBM, GDBM and B-tree
	    ALL POSSIBLY AT THE SAME TIME

	* transports/libta/mime2headers.c:
	    Debugged the REAL MIME-2 header producer to produce
	    some real MIME-2 format headers..

Mon Nov  4 22:45:37 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile.in:
	    Released version 2.99.40

	* compat/sendmail/sendmail.c, include/mailer.h, router/rfc822.c,
	  router/router.c, scheduler/msgerror.c, scheduler/scheduler.c,
	  smtpserver/smtpserver.c, support/vacation/vacation.c,
	  transports/libta/warning.h
	    Unconditionalized  syslog() -- we have one bundled in
	    from BSD sources.

	* configure.in, config.h.in, and several sprintf()s all over:
	    We test for possible   snprintf(),  and will use it!

	* configure.in, libc/setreuid.c, libc/Makefile.in:
	    Build setreuid() unconditionally, because at AIX
	    the libc has one, but it is rather broken..

	* transports/Mailbox.in, transports/fuzzyalias/
	    A fuzzy-match transporter for creating suitable error
	    reports.  Made by Thomas Knott.

	* include/ta.h, router/rfc822.c, router/shliaise.c,
	  scheduler/msgerror.c, scheduler/scheduler.c,
	  scheduler/scheduler.h, scheduler/update.c,
	  transports/libta/ctlopen.c, transports/libta/diagnostic.c:
	    DSN notary parameter processing in smarter ways

	* lib/token.c:
	    - copyToken(): If the token size is over 50k chars, copy the first
			   50k of it.
	    - printdToken(): "print" the token into limited size buffer,
			     but will expand the buffer if needed.

	* libc/mail.c, libc/mail_alloc.c:
	    Have dynamically allocated list of mail-files associated with
	    the mailbox files being created.

	* libsh/io.c:
	    Initialization of  std_printf  variable a bit difficult.

	* libsh/listutil.c:
	    s_equal1() -routine.  Matches only one conscell at any time.

	* libsh/tregexp.c, router/shliaise.c:
	    Prepared to use  printdToken() into limited size buffer.
	    Will expand the buffer if needed.

	* router/functions.c:
	    DSN parameter processing at  run_listexpand()  routine.

	* router/libdb/yp.c:
	    Fix -- has to strsave() a string returning from YP.

	* smtpserver/loadaver.c:
	    - "-lkvm" using systems (Solaris 2.5 on report) do not
	      compile without it.
	    - Usage of kvm_open() et.al. does actually need closure
	      of /dev/kvm for not to overflow scant memory reading
	      resources.

	* smtpserver/smtpserver.c:
	    Error in  type821err()  routine -- forgot to report
	    without "\r\n" at the channel output.

	* transports/mailbox/mailbox.c:
	    Support "Return-Receipt-To:" -header when running mailbox
	    with option switch "-S" (a.k.a: Sendmailism)

	* transports/smtp/smtp.c:
	    - revise return status codes
	    - recognize relaying of DSN armoured SMTP message to
	      systems without DSN facility
	    - recognize remote declaring ENHANCEDSTATUSCODES, and
	      use them in our own report

Tue Oct 22 18:51:07 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* Makefile:
	    Version 2.99.39

	* transports/libta/ctlopen.c:
	    Parser bugfixes, and DSN data parsing

	* transports/mailbox/mailbox.c, transports/sm/sm.c:
	    DSN stuff, diagnostic response fixes

	* transports/smtp/smtp.c:
	    DSN stuff for sending, and for receiving.
	
	* transports/errormail/errormail.c:
	    Use DSN parameters to the fullest we can.

	* transports/hold/hold.c:
	    DSN parameters, fixes on returned diagnostics

	* scheduler/msgerror.c, scheduler/scheduler.c, scheduler/scheduler.h,
	  scheduler/update.c:

	* router/libdb/header.c:
	    "notaryret" envelope entry

	* router/shliaise.c:
	    Generic ``build_gensym()'' routine to bring together
	    stuff previously duplicated all over.

	* router/functions.c, router/prototypes.h, router/rfc822.c:
	    The ``listexpand''-function got more DSN flags, and
	    builtin MANDATORY ORCPT data generation.
	    Basic rfc822() processor got more NOTARY stuff

	* include/mail.h.in, include/mailer.h, include/ta.h:
	    NOTARY DSN stuff

	* libc/mail.c:
	    Changed name (and params) of mail_close_scheduler() to
	    be more generic  mail_close_alternate()

	* compat/sendmail/sendmail.c, man/sendmail.8:
	    More options to match with  sendmail-8.8:  -N -R -B -U -V
	    (NOTARY DSN stuff)
	
	* INSTALL:
	    A bit more verbose explanation on  /etc/group,  and
	    "zmailer"-group, and purpose of "nobody" -account.

	* smtpserver/smtpserver.c:
	    Fixes to:
	      - ident processing
	      - IETF NOTARY DSN mechanisms -- will ALWAYS create  ORCPT= entry!
	        Does an in-depth syntax analysis of DSN parameters

	* libident/identuser.c:
	    Changes at the return values at various error conditions

	* transports/libta/ctlopen.c:
	    Fix on DSN NOTARY parameter scanning
	
Thu Sep 12 22:19:58 1996  Matti Aarnio  <mea@mea.tmt.tele.fi>

	* configure.in, Makefile.in, utils/makendbm/makendbm.c,
	  utils/makendbm/ndbmlook.c, support/vacation/vacation.SH:
	    A RedHat 3.0.3 Linux with some additions from more
	    recent "Rembrandt" release caused several changes
	    into the autoconfig, and makendbm system.

Fri Aug 23 11:32:43 1996  Matti Aarnio  <mea@nic.funet.fi>

	* transports/mailbox/mailbox.c:
	    Solaris mailloc() became tested (and fixed) when
	    I was teaching utu.fi UNIX admin to handle the
	    ZMailer..

	* configure.in, configure:
	    Forgot to move certain resolver related defines into
	    a bit more generic place (Solaris test results)

	* lib/selfaddrs.c, lib/Makefile.in:
	    Moved  stachmyaddresses(), and  matchmyaddresses()  from
	    smtp.c into a bit more generic location -- library, and
	    uses ZENV variable  SELFADDRESSES to list COMMA SEPARATED
	    the names (or IP address literals: 1.2.3.4) of the local
	    host.  The goal is to get a list of all interfaces at the
	    current host so that, SMTP knows them, and at MX selection
	    recognizes local system.

Mon Aug 19 19:02:19 1996  Matti Aarnio  <mea@nic.funet.fi>

	* (all over the place):
	    lseek() offset parameter changed from  long  to off_t.
	    This affects especially BSD/OS.

	* compat/sendmail/sendmail.c:
	    Sometimes the "-v" option processing does not stop at all,
	    because some transport agents (?) write more to the verbose
	    logfile AFTER the scheduler has written its own "scheduler done"
	    line so that it is not the last line read from the file.

Sun Aug 18 19:10:44 1996  Matti Aarnio  <mea@nic.funet.fi>

	* INSTALL, README, README.PERFORMANCE, README.UPGRADEING,
	  SiteConfig.in, man/*.[138]:
	    Documentation update

	* Makefile.in:
	    Version 2.99.37 for release

	* compat/sendmail/sendmail.c, libc/mail.c, smtpserver/smtpserver.c,
	  router/libdb/ndbm.h, scheduler/transport.c, router/db.c,
	  transports/libta/ctlopen.c
	    <fcntl.h> testing check

	* router/functions.c, router/rfc822.c:
	    Add "env-end\n" into the boundary of envelope, and
	    message body.

	* router/rfc822.c:
	    Add a bit more smarts (copied from the scheduler) at
	    reading recipient addresses from canned messages.

	* include/ta.h, transports/libta/lockaddr.c,
	  transports/libta/ctlopen.c, transports/libta/diagnostics.c:
	    Parameter changes at  lockaddr()
	
	* libc/whathost.c:
	    More fixes at more systems  (and less memory leakage)

	* libmalloc/externs.h, libmalloc/getmem.c, libmalloc/malloc.h,
	  libsh/io.c:
	    (back)porting to SunOS 4.1.4 with oddly configured gcc-2.6.3
	    It did indeed spew error messages at some files...

	* scheduler/mailq.c:
	    Initial preparations for two-way interactive querying of system
	    status

	* scheduler/mailq.c, scheduler/msgerror.c, scheduler/prototypes.h,
	  scheduler/scheduler.c, scheduler/scheduler.h, scheduler/threads.c,
	  scheduler/transport.c, scheduler/update.c:
	    Scheduler work-spool can now be hashed into one, or two levels
	    of indirect hashesh.  See ``-H'' option at man-page.

	* smtpserver/smtpserver.c:
	    ENCHANGEDSTATUSCODES -facility.

	* transports/mailbox/mailbox.c:
	    - Runtime configurable selection of locking methods.
	    - Corrected a file creation race condition

	* transports/smtp/smtp.c:
	    When doing PIPELINING, use some additional smarts as to when
	    there is any need to do system calls -- SMTP commands are sent
	    in larger chunks, and replies are not to be expected before
	    they are sent, nor forever after..
	    (Just reducing the number of syscalls when using PIPELINING.)

Fri Aug  9 15:13:25 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile.in:
	    Version 2.99.36 for release
	    (pre-release installed at: Linux/ELF, DEC OSF/1, Solaris 2.5)
	
	* router/libdb/ndbm.c, utils/makendbm/makendbm.c,
	  config.h.in, configure.in:
	    Macro/function  dbm_error() is not available at BSD DB <ndbm.h>
	    compability package.  Have to use  errno  in that case.
	
	* libs/Makefile.in, router/Makefile.in, router/libdb/Makefile.in:
	    Changed the name of the router libdb to be  libzmdb.c,
	    because BSD DB library name is  'libdb.a', and linking
	    with '-ldb' causes a name-space collision...

	* scheduler/qprint.c, transports/mailbox/mailbox.c:
	    Changed the precedence of 'HAVE_UTIME' to preceed
	    test of 'HAVE_UTIMES' -- or rather, if system has
	    both, just using the 'HAVE_UTIME' variant.

	* libc/whathost.c:
	    Completed the rewrite with minimized memory leakage.

	* smtpserver/fdstatfs.c:
	    Completed the autoconfig sensing of the system

	* configure.in, config.h.in, router/libdb/ndbm.c:
	    More tests at variations of different DB libraries.
	    Especially supporting systems with BSD DB in disguise
	    of NDBM ( RedHat Linux 3.0.3 )

Thu Aug  8 17:27:00 1996  Matti Aarnio  <mea@nic.funet.fi>

	* all over the place:
	     #ifndef strchr
	      extern char *strchr()   ((and friends))
	     #endif
	    IBM AIX (compilers) are ``different'' again...

	* libresolv/*.[ch]:
	    Done 4.9.4-patch1  things to the resolver.

	* Makefile.in:
	    - Version 2.99.35
	    - When makeing 'all', at first removed 'libs/libtag',
	      and then proceeds with system creation, thus ensuring
	      that libraries are remade -- ONCE -- if needed.
	    - compiles  support/vacation/vacation  too

	* libc/whathost.c:
	    AIX  mntctl() things (modelled after GNU fileutils 3.13
	    code for similar use..)

	* libc/Makefile.in, libc/whathost-test.c:
	    Now have easier to use test to see, if the NFS-server
	    recognition works at various platforms.

	* support/vacation/*:
	    Autoconfiguration support for the bundled vacation.
	    Installation (make install) is not really mature.

	* configure.in config.h.in:
	    - Sense 'timezone' variable with  'altzone' variable
	      at system libc
	    - Sense sizes of (void*) and (long)
	    - Sense gethostbyname() at system libc without any other
	      libraries
	    - Corrected the sense of NDBM at -ldbm -library

	* lib/allocate.c:
	    Alignments per system native parameters:
		- SPARCs always 8 bytes (double floats)
		- other 32-bit machines in 4 bytes
		- 64-bit machines in 8 bytes

	* lib/rfc822date.c:
	    Timezone recognition when there is ``timezone'' variable,
	    but not ``altzone'' (POSIX said some people.. Linux has this)

	* libmalloc/align.h:
	    Recognize in a bit more generic way 64-bit machines (SGIs)

	* libsh/Makefile.in:
	    LIBDEB fixup

	* libsh/builtins.c, libsh/execute.c, libsh/expand.c,
	  libsh/interpret.c, libsh/listutils.c, libsh/regex.c,
	  libsh/sslwalker.c, libsh/variables.c, libsh/zmsh.c,
	  router/db.c, router/functions.c, router/libdb/bind.c,
	  router/libdb/dbm.c, router/libdb/header.c,
	  router/libdb/ndbm.c, router/libdb/gdbm.c, router/prototypes.h,
	  router/rfc822.c, router/rfc822walk.c, router/router.c,
	  scheduler/scheduler.c, scheduler/transport.c,
	  smtpserver/rfc821scn.c, smtpserver/smtpserver.c, ssl/ssl.c:
	    IRIX 6.1 compiler was rather picky...  Minor cosmetics
	    actually (like mismatch of enumerated variable vs. ints)

	* bin/mkdep.in, bin/mklibdep.in:
	    Autoconfig stuff (CPPDEP substitution)

Fri Aug  2 11:29:39 1996  Matti Aarnio  <mea@nic.funet.fi>

	* libresolv/portability.h:
	    One test to add SVR4 sensing at Solaris 2.4
	    (with GCC 2.7.0)

	* Makefile.in:
	    Version 2.99.34 -- compilation tested at:
		- Solaris 2.4 (without bundled libresolv!)
		- DEC OSF/1

	* (many files):  bzero() changed to memset()
	  for SysVR4 port issues (Solaris 2.4) EXCEPT
	  AT LIBRESOLV!

	* libc/getdtblsiz.c, libc/setreuid.c:
	    Portability things for Solaris 2.4 without UCBLIB!

	* configure.in, config.h.in lib/rfc822date.c:
	    Testing for variable 'altzone', and tm_gmtoff
	    field at struct tm.  Made also small test program
	    into lib -directory (make rfc822date-test)

Thu Aug  1 15:05:53 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile.in
	    Version 2.99.33a2 (and good night folks..)

	* compat/sendmail/sendmail.c:
	    Removed "Boptcount = 0", which was accidental artefact
	    from one earlier version of "-B" -option processing.
	    (compabilities with Alman's sendmail)

	    Processing of  SMTPOPTIONS zenv-variable needs to remove
	    the quotes from the parameter -- but it is a bit dangerous
	    in case there is something like:
		SMTPTOPTIONS="-l '/some/path/with space'"
	    lets hope not...

	* configure.in:
	    The dup2() -test appears to act as compilation environment
	    checkup :-)  Great, added comments of that effect at the error
	    message.

	* smtpserver/smtpserver.c:
	    Tested the built-in tcp-wrapper at nic.funet.fi, now
	    it works as expected. (daemon name:  smtp-input)
	    FYI: The  allow/deny rules are as follows:
	       1) does it match at allow ?  Yes, return allow.
	          not ? proceed to second test
	       2) does it match at deny ?  Yes, return deny.
	          not ? return allow.

	* router/rfc822.c: sequencer()
	  transports/mailbox/mailbox.c, scheduler/msgerror.c,
	  scheduler/scheduler.c, scheduler/scheduler.h:
	    One particular weird mail file was able to cause
	    100% mortality rate at the router -- NULL pointer
	    dereference..  (Andy Poling <andy@realbig.com>)
	    That prompted a larger go-around and checking at
	    what happens when SMTP input arrives as  MAIL FROM:<>
	    and is destined somewhere.   Fixes made at:
	      - router
	      - scheduler
	      - mailbox
	    In need of checking/fixing:
	      - sm
	      - errormail
	      - hold
	    (ok, perhaps only the 'sm')

	* Makefile.in
	    Version 2.99.33a1

	* config.h.in, configure.in:
	    Created  --with-tcp-wrappers=DIRPATH  option,
	    changed names of two others to:
			--with-sendmailpath=PATH
			--with-rmailpath=PATH

	* smtpserver/smtpserver.c, smtpserver/wantconn.c:
	    Wietse Venema's  wantconn.c  for builtin tcp-
	    wrapper behaviour -- suboptimal in efficiency,
	    though... (but better than: inetd -> tcpd -> sendmail
	    -> smtpserver, which is 1 fork + 3 execs..)
	    The magic name at hosts.deny/hosts.allow files
	    is:  smtp-input

	* smtpserver/smtpserver.c:
	    Fixes to file-descriptor usage so that things should
	    work just fine with all options.. (*should*..)

	* router/libdb/header.c:
	    Made "Keywords:" -header unknown per regards of the
	    router -- it need not to touch, not comment on it.
	
	* compat/sendmail/sendmail.c, include/mailer.h,
	  router/libdb/header.c, smtpserver/smtpserver.c:
	    Process properly the -Bbodytype parameter, and store
	    it into the message envelope. It is known to the router,
	    though nothing is done with it.  Also the SMTP-server
	    does store that info into the message envelope.

	    Also for "sendmail -bs", when invokeing  smtpserver,
	    feed it the arguments from  SMTPOPTIONS  environment
	    variable ( via  getzenv() )

Wed Jul 31 12:03:01 1996  Matti Aarnio  <mea@nic.funet.fi>

	* transports/smtp/smtp.c:
	    Minor fixes at how the   smtp_sync()  works with the
	    PIPELINING server -- now the reports do make sense to
	    the ordinary message sender. (well, not exactly)

	* Makefile.in:
	    Version 2.99.32 -- and releasing it
	
	* *Makefile.in (practically them all)
	    Adjusted dependency processing, now can do 'make depend'
	    any time, though needs GCC-based  CPPDEP="gcc -MM"  to
	    work properly...

	* scheduler/resources.c:
	    Autoconfigured various resource update mechanisms.

Tue Jul 30 11:36:24 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile.in:
	    Releasing 2.99.31 -- let others to have the experience too..

	* INSTALL:
	    Giving some additional tips at the initial configuration
	
	* lib/linebuffer.c, router/rfc822.c:
	    Improved the error detection, and recovery so that now
	    non-conformant input is a reason to stop the parse of
	    headers (or envelope), and everything after it goes to
	    the message body without looseing anything of it.

	    The envelope header "env-end" has special meaning:
	    It ends parse of envelope, and after it,  makeLetter()
	    routine expects to get RFC-822 headers.  If it does not,
	    the input goes to the body.
	
	* libsh/io.c, smtpserver/smtpserver.c, libc/syslog.c, 
	  transports/libta/diagnostics.c, config.h.in, configure.in,
	  transports/smtp/smtp.c, transports/libta/mimeheaders.c:
	    HAVE_STDARG_H, and all related stuff, in case the
	    varargs is not supported..

Mon Jul 29 01:15:13 1996  Matti Aarnio  <mea@nic.funet.fi>

	* configure.in libs/Makefile.in (and most other)Makefile.in
	    Made several new  --with-*  -configuration options:
		--with-system-malloc
		--with-bundled-resolver
	    Neither are defaults.

	    Test for existence of  <varargs.h>/<stdarg.h>,
	    to do yet: converting sources to use the knowledge..

Fri Jul 26 10:06:30 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile.in:
	    Version number 2.99.31

	    The package has now compiled smoothly at:
	      - Solaris 2.5 with Sun unbundled cc, and gcc-2.7.2
	      - Sun Sunos 4.1 with cc
	      - DEC OSF/1 v3.2D with 'cc', and 'cc -migrate'
	      - i486 Linux 2.0.4/libc-5.4.2 with gcc 2.7.2

	* libident/Makefile.in, libident/identuser.c:
	    Canonized the parameter defines for that library module

	* configure.in, libresolv/Makefile.in, libresolv/inet_ntoa.c
	    Added that routine into resolver library package, as it
	    is not always present in the system, and we might need
	    it -- especially in format where it is guaranteed to be
	    structure passing convention compatible with our other
	    code...

	* libresolv/Makefile.in:
	    Sun Solaris 2.5 does not like 'ld -x -r'..
	    Me neither, actually.  Commented it away.

	* libresolv/herror.c:
	    One missing forward declaration.

Thu Jul 25 02:59:13 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile.in, configure.in, and related autoconfig stuff:
	    Fixes to get autoconfiguration to work at Sun Solaris,
	    DEC OSF/1 v3.2D, Linux (kernel 2.0), and SunOS 4.1.

	    Running this in production mode at  nic.funet.fi
	
	    Released version 2.99.30  for public 

	* router/rfc822.c:
	    Revised the  run_rfc822(), makeLetter(), and sequencer()
	    way to handling  squirrel()/defer()/reject()

	    Created a new standard error form:  loopexceeded
	    which is given when there are way too many "Received:"
	    lines at the message (50 is our limit;  router/conf.c)
	

	* libresolv/
	    Copied pretty much as is the   bind-4.9.4-REL/res/
	    (resolver) subdirectory, and relevant headers into
	    our local "include/" -tree.  Then edited those
	    C-files a bit, and got system independent resolver,
	    which will be loaded statically, of course.
	
Wed Jul 17 16:49:02 1996  Matti Aarnio <mea@mea2.pp.utu.fi>

	* (all over the place..) Makefile.in:
	    Releasing version 2.99.29 with a bit less warnings,
	    and more usability -- it very nearly works at my
	    Laptop now...

Mon Jul 15 21:42:40 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile.in:
	    Releasing version 2.99.28 with dire warnings!
	
	* configure.in, configure, Makefile.in, ...
	  (nearly all files got touched!)
	    Using GNU-Autoconfig system

Wed Jun 19 15:18:03 1996  Ken Pizzini <ken@spry.com>

	* smtpserver/smtpserver.c, smtpserver/rfc821scn.c,
	  router/rfc822.c:
	    - SMTP-server dying with SIGALRM without cleanup
	    - Accept braindead SMTP-input, and correct it
	        "<foo@foo   >" (trailing white-space cleanup)
	    - bug in  router/rfc822.c  at recognizing the end of
	      the envelope headers, and begin of rfc822 headers
	      in case the line-end was  CR LF  instead of plain LF ..

Tue Jun 11 14:34:05 1996  Jerzy Sobczyk  <J.Sobczyk@ia.pw.edu.pl>

	* libsh/execute.c:
	    Change at the ENDGRANDCHILD() -macro to clean (reap) up
	    the intermediate child process from becoming a zombie.

Mon Jun 10 11:35:41 1996  Matti Aarnio  <mea@nic.funet.fi>

	* INSTALL:
	    Some additional documentation details as suggested by
	    Arnt Gulbrandsen.

	* smtpserver/smtpserver.c:
	    Revised a bit of message logging, and other things.
	    There were difficulties that manifested at Sun Solaris,
	    while same code worked at DEC OSF/1 :-(    (At Solaris
	    the server process simply died a horrible death..)

Tue Jun  4 18:52:08 1996  Matti Aarnio  <mea@nic.funet.fi>

	* libsh/interpret.c:
	    Removed one  setlevel(MEM_SHCMD,...)  that caused memory
	    to be freed too agressively in some cases, and which in
	    turn was able to corrupt memory, when it was taken into
	    use a bit latter:  for x in $(/bin/cat /etc/group); do ... ; done

Fri May 31 15:30:01 1996  Matti Aarnio  <mea@nic.funet.fi>

	* smtpserver/smtpserver.c:
	    Re-implemented the "TURNME"-command.  Apparently I have
	    misplaced the previous version source..  well, this is
	    cleaner code anyway.

	    Added an alias "ETRN" for the "TURNME".

	* lib/mail.c: mail_close_scheduler()
	    A variant of  mail_close()  routine, which sends the file
	    straight to the scheduler.  (For "TURNME")

Tue Apr 23 14:14:55 1996  Matti Aarnio  <mea@nic.funet.fi>

	* compat/sendmail/sendmail.c:
	    Add ignorance of "-B8BITMIME" into option processing...
	    (We do it always, no need to tell it at the call..)
	    (sendmail 8.7)

Mon Apr 22 08:15:20 1996  Matti Aarnio  <mea@nic.funet.fi>

	* scheduler/scheduler.c:
	    Got the  ``mytime()'' -server running also with Linux,
	    and all other systems that have at least an ability to
	    mmap() a file.

	    Implemented a ``_CF_TURNME'' primitive parsing.

	* smtpserver/smtpserver.c:
	    Implemented a "TURNME"-command, which produces ``_CF_TURNME''
	    primitive for the scheduler -- and sends it straight to there
	    without going via the router..

Fri Apr 19 16:13:34 1996  Matti Aarnio  <mea@nic.funet.fi>

	* transports/mailbox/mailbox.c:
	    At  putmail(), move the newline addition testing AFTER
	    the  appendlet()  processing.  That way the message is
	    always added at the end of the file, and only 0-2 newlines
	    are added after that at the end of the message -- if needed.

	    At least ELM got mystified with the earlier processing,
	    where the newlines were added at the front of the message.

	* scheduler/scheduler.c: (the "time server")
	    A bit more generic approach, works at at bit more platforms,
	    than only at OSF/1, and SunOS 4.1.x ...

Tue Apr  9 11:39:12 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Released version 2.99.27

	* Makefile:
	    Add a ".PRECIOUS:" -tag for produced Makefiles, thus
	    avoiding destruction of them at some awkward moments,
	    when pressing "Ctrl-C" would delete one of them..

	* compat/sendmail/sendmail.c:
	    Option "-q" to take options (discarded anyway)

	* hostenv/AIX4.1:
	    Add "WAITPID=", and "ANSI_TYPES="

	* hostenv/Linux:
	    Added a warning about mmap() being broken in 1.2.x -kernels
	    (well, propably broken...)

	* hostenv/OSF1v3.2-Alpha:
	    Added "STDC_HEADERS=" -- for ANSI-C-headers

	* hostenv/SunOS4.1:
	    Added  "BZERO="

	* include/listutils.h, libsh/listutils.c:
	    newcell() is now a routine, and not a macro..
	    (In preparation of LISP-like guts rewrite..)

	* router/rfc822.c:
	    If the returned address reference has no protection info
	    (a NULL-pointed object), print out "-".

	* scheduler/scheduler.c: (and all others)
	    Changed all "time(&now)" to be "mytime(&now)",
	    and created a shared-memory server on which there is
	    a redularly running server at the other side updateing
	    system time into given variable, and the real scheduler()
	    can read that data.  Makes a lot less syscalls at the
	    scheduler (At SunOS 4.1 the  gettimeofday()  syscall
	    does take some 80 usec...)

	* scheduler/transport.c, scheduler/conf.c:
	    Implemented a "forkrate-limit", which blocks the fork
	    from happening, if over N fork()s have been done during
	    the same second.  The count does reset at the next second
	    for N more childs..  Default for the N is 10.

	    Create  flush_child()  routine to handle some of the awkward
	    non-completed outputs from the scheduler to the childs.

	* scheduler/qprint.c:
	    "Q-mode" at the reporting -- no reports in the traditional way.
	    Also avoid a null-pointer deferrence.

	* scheduler/scheduler.c:
	    Parse scheduler 'Q'-mode argument, handle gracefully the
	    main scheduler inner loop exit.

	* transports/mailbox/mailbox.c:
	    Move the mailbox-file time-stamp reset into after the write
	    of the time. (Linux has peculiar read-time stamping due to
	    unified-buffer-cache system.)

	* transports/libta/lockaddr.c:
	    FCNTL-locking -- for systems starved by the IO-capacity..
	    (INCOMPLETE!)

	* transports/smtp/smtp.c
	    Added "-P"-option to turn off the PIPELINING use.

	    Do unusual, and overwrite also the environment variables, when
	    updateing info-area at the memory image for the benefit of
	    BSD-derived systems where such data update is possible for
	    reporting program state outside.

	    Detect "#idle", and report it outside.

	    Working implementation of PIPELINING full-duplex mode for
	    the SMTP-protocol.

	* utils/makendbm/makendbm.c:
	    Support also the GDBM, if it is available, and no NDBM is.


Fri Feb  9 02:32:01 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Releasing 2.99.26

	* README.UPGRADING:
	    Noted change in canned error message headers

	* smtpserver/rfc821scn.c:
	    Give a bit more meaningfull report for case of "<foo@foo.foo.>",
	    which is "spurious dot at the end of the address"..

Tue Feb  6 00:54:37 1996  Matti Aarnio  <mea@nic.funet.fi>

	* proto/forms/*, scheduler/msgerror.c,
	  transports/errormail/errormail.c:
	    Added third header tag:  "ADR" which expects to find
	    recipient address (to be placed into "to " envelope line)
	    in there

	* smtpserver/smtpserver.c, smtpserver/rfc821scn.c:
	    If the input to HELO/EHLO was syntactically incorrect,
	    always trap it!  Although don't always cause full abort..
	    Actually giving meaningfull report at each input, and
	    storing "Bad.HELO.Input" into "rcvdfrom" entry..

	* include/hostenv.h:
	    Macro  FILENO(x)  was revised a bit to work properly
	    on SunOS 4.1, which has the problem, need to revise
	    it for other systems, if need be..  (IF the STDIO file
	    descriptor is stored on a signed char, the default
	    propagation of an fd over 127 makes it NEGATIVE, which
	    causes some real trouble..)

	* lib/rfc822date.c: (Tom Samplonius)
		- gettimeofday() does not return timezone information on
		  most BSD systems as "...time zone information does not
		  belong in the kernel..".  Also, this call is redundant,
		  since timezone information is the already retrieved
		  struct tm

		- I removed the
			"if (prettyname) sprintf(cp+5, " (%s)", ts->tm_zone);" 
		  statement because it is contained in the else part of a
		  "if (prettyname) .." block and can never be executed.

		- I removed the NO_TM_ZONE stuff in the USE_BSDTIMEZONE
		  section.  This seems like a bad thing, however it seems
		  to be required by AIX 3.2 though.  I don't know whether
		  AIX 3.2 is actually still used, or whether newer versions
		  of Zmailer actually build on it.  AIX 3.2 may be able to 
		  use the tzname[] global variable to get the name instead. 


	* include/mailer.h, router/libdb/header.c,
	  smtpserver/smtpserver.c, scheduler/msgerror.c,
	  transports/errormail/errormail.c:
	    Added new  HeaderClass  object:  env-eof / end-end
	    (two spellings) which is intended to be the last
	    entry of the transport envelope headers.

	* include/ta.h, transports/libta/lockaddr.c,
	  transports/libta/ctlopen.c, scheduler/msgerror.c:
	    Routine  lockaddr()  uses now MMAP()ed memory
	    on systems where it is available.  Less syscalls
	    on low-power machines..

	* include/zmsignal.h:
	    Ah well... truly portable signal processing appears
	    to be rather elusive target.. Now Solaris, and some
	    versions of BSD work again.

	* libc/__fopen.c, libc/siglist.c:
	    Couple FreeBSD related patches from Tom Samplonius

	* libsh/builtins.c:
	    Don't remember what system it was, but got a report
	    of failing signal processing/wait()ing.  Altered
	    feature testing into hostenv/* -feature USE_UNIONWAIT ..

	* router/db.c, router/libdb/dbm.c, router/libdb/gdbm.c,
	  router/libdb/header.c, router/libdb/core.c,
	  router/libdb/ndbm.c, router/libdb/ordered.c,
	  router/libdb/search.h, router/libdb/unordered.c,
	  router/libdb/yp.c:
	    "db -c database-file" --> outputs the number of
	    elements in the database.

	    Also incorporated a bunch of Nicholas Briggs patches
	    (NIS -- USE_YP) for his environment.

	* router/functions.c:
	    Rewrote (minimized) the  rd_stability() related data
	    amount used at sorting..

	* scheduler/msgerror.c:
	    Small changes to get it better online with IETF NOTARY-WG's
	    report format..

	* scheduler/update.c, scheduler/scheduler.c:
	    Understands "#resync .." reqests, drops the
	    info pertained to the jobspec, and returns
	    to the problem sometime latter (via normal
	    job scan..)
	    
	* transports/smtp/smtp.c, smtpserver/smtpserver.c:
	    Implemented RFC XXXX of PIPELINING, which gives us
	    radical speed-increase on case the sourcing system
	    can do PIPELINING, and we have a need to transfer
	    a large number of recipients in envelope.


Tue Jan 23 11:49:58 1996  Matti Aarnio  <mea@nic.funet.fi>

	* transports/libta/lockaddr.c:
	    Reduce the number of systemcalls by one -- write
	    whole lock info in one go.. (instead of two)

Mon Jan 22 09:34:35 1996  Matti Aarnio  <mea@nic.funet.fi>

	* scheduler/transport.c:
	    Moved a piece of code to ``nonblocking.c''

	* transports/libta/nonblocking.c:
	    New file containing fcntl()s to turn file blocking
	    on and off..  ( fd_nonblockingmode() / fd_blockingmode() )

	* smtpserver/smtpserver.c:
	    - Added EHLO responce "PIPELINING"
	      (server-side was easy..)
	    - Made sure that if no RCPT TO:<> -addresses
	      are given, will issue an "550"-error at the
	      "DATA"-phase.

	* transports/libta/diagnostic.c:
	    Minimize the "ok"-case report size, as filling
	    pipe of the report-back channel does not help
	    at all to keep the system running at full blast..
	    (average report size has been 110-120 chars, and
	     the pipe-size is usually 4096..  It doesn't fit
	     as many reports as it fits jobs.)

	* include/zmsignal.h:
	    SIGACTION does not always have the luxury of
	    SA_INTERRUPT defined at the system includes
	    (odd at that.. but Solaris is odd anyway..)

Fri Jan 19 19:42:16 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Release 2.99.25

	* include/zmsignal.h:
	    Changed the order of tested alternates, now:
		- BSDish SIGVEC stuff
		- POSIXy SIGACTION stuff
		- ... when all else fails.. (SVR3)
	    (BSD and POSIX interchanged -- because OSF/1 3.2 didn't
	     like SIGACTION stuff with SA_INTERRUPT, while Linux is
	     happy -- and SunOS 4.1 needs SA_INTERRUPTs..)

	* router/functions.c: rd_doit()
	    Made a mistake at pid-renaming scheme, which caused
	    errorneous results to flood systems, and even to kill
	    the scheduler, when filename length became obscenely
	    large -- overflowling a stack-allocated buffer, and ...

	* scheduler/update.c, scheduler/threads.c:
	    Use, and bookkeeping of  feed_child() had a ``one off''
	    error in them causing occasional scheduler/ta deadlocks.
	    (both waiting each other to tell more..)

	* scheduler/transport.c: feed_child()
	    Feed the child only when the  "proc->fed == 0", that
	    is, as we set the flag, (and thread_start() clears it),
	    we won't feed same message twice, and cause potentially
	    excessive "#DBGdiag " loggings..
	    (Messages are not lost, it just disturbs postmaster's
	     peace of mind..)

	* hostenv/SunOS4.1, hostenv/OSF1v3.2-Alpha:
	    Turn back on the "MMAP=" settings, lack of them
	    does hurt more, than they did themselves..

Thu Jan 18 11:25:50 1996  Matti Aarnio  <mea@nic.funet.fi>

	* include/zmsignal.h:
	    SunOS 4.1 uses sigaction() in posixy style (sometimes
	    at least), and thus the programs jammed in weird ways.
	    Autch...   Added  SA_INTERRUPT into sa_flags..

	* Releasing 2.99.24 to the public

	* libsh/interpret.c: findfreefd()
	    It did `fstat()' in a loop, which is a bit heavy to my
	    liking..  changed it to use  fcntl(fd, F_GETFL), which
	    at most platforms is quite light-weight indeed..

	* scheduler/transport.c: stashprocess()
	    Clear the procinfo structure when preparing to store process
	    info to it.  Had forgotten to zero one new variable in it,
	    and caused mysterious halt gridlocks at scheduling..

	* scheduler/transport.c: mux()
	    Because the select-loop can take ages at slower machines,
	    added  queryipccheck()  calls after each  readfrom()  call..
	    Now the responsivity to the management interface should
	    improve..

	* transports/mailbox/mailbox.c:
	    When delivering to a file, errors at the storing (filesystem
	    full, for example!) did ZERO-TRUNCATED the target file.. Oops..
	    (Existing file-size was looked up at lseek(fd,0,SEEK_SET)
	     position, which happened to be at zero, of course..)

	* transports/libta/warning.c, transports/libta/lockfile.c,
	  transports/libta/ctlopen.c:
	    Changes at error reporting to get rid of "Misformed diagnostics"
	    entries at the scheduler log..

	* transports/smtp/smtp.c:
	    Altered the log-file writing a bit, now each line
	    gets prefix of format:
		("%05d%c%05d",getpid(),randchar,seqnum++)
	    and the log should be  sort(1)able  to see all sessions
	    in happening order -- and sessions with reused pids should
	    have differing randchar anyway --> no two SMTP-sessions
	    should be intermixed within each other.

	* scheduler/scheduler.c:
	    The new ``-S'' option causes startup to be all synchronous,
	    and will not start scheduling before all of the queue is
	    read in.

	* scheduler/qprint.c, scheduler/threads.c, scheduler/mailq.c:
	    New queue report -- old one is suppressed per default.

	    ----------- sample -----------
bash# mailq -sQQ
0 entries in router queue: idle
70 messages in transport queue: working
smtp/*.de/0
                Threads: 6 Procs: 19/6 Plim: 19 Flim: 150 Rcpts: 47 Idle: 13
smtp/*.net/0
                Threads: 1 Procs: 1 Plim: 10 Flim: 150 Rcpts: 1 Idle: 0
hold/*/0
                Threads: 1 Procs: 1 Plim: 20 Flim: 150 Rcpts: 2 Idle: 0
...
Kids: 64   Idle: 48   Msgs: 67   Thrds: 20   Rcpnts: 128   Uptime: 1m16s
	    -------- end sample ----------

Tue Jan 16 13:04:08 1996  Matti Aarnio  <mea@nic.funet.fi>

	* transports/smtp/smtp.c: getmxrr()
	    Wrong analysis of MXes causing occasional core, and
	    deliveries to wrong machines..

	* router/rfc822.c: makeLetter()
	    After a  ``getline()'' do see if the input has a terminating
	    CRLF character pair. If it has, convert it to LF-only..
	    This makes system to process peacefully messages which have
	    CRLF at their line change, which certainly is not UNIX style..

	* scheduler/msgerror.c:
	    Minor case improvement into ``delivery expired without
	    diagnostics having been returned to the scheduler''
	    (caused most likely by an overfed transport-agent..)

	* scheduler/*:
	    Still more performance related tuning, and bug hunting
	    at vger.rutgers.edu -- now that small machine appears
	    to be able to push some 200 000 messages in a day (1..n
	    recipients of same message at same remote host count as
	    one message), and linux-related lists are flowing out at
	    furious rate..  :-)

	    Profiling does tell weird things :-)  Most of the time was
	    spent at   thread_linkin(), which took 2.3 ms/call, but
	    was called some 200 000 times..  Small change there speeded
	    it up to 0.3 ms/call, and it made cistrcmp() to top..

	* router/functions.c:
	   Altered multi-router locking mechanism a bit.
	   Now it will use format:  inode-pid
	   which should be unique within one machine.

Thu Jan 11 13:52:06 1996  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Release 2.99.24 -- into testing at vger at first..

	* hostenv/SunOS4.1, hostenv/OSF1v3.2:
	    Commented OFF the "MMAP" feature -- the systems can do it
	    just fine, but we need to see, if systems perform better,
	    when not using it... (low-memory machine problems)

	* transports/hold/hold.c, transports/errormail/errormail.c,
	  transports/smtp/smtp.c, transports/mailbox/mailbox.c,
	  transports/sm/sm.c:
	    Accept input of queued up multiple job descriptors, which
	    MIGHT meet an fatal input error so that the last entry does
	    not end with a '\n'.  Reject such an entry silently.

	* transports/smtp/smtp.c:
	    When getting a bunch of job-descriptors with host selector
	    on the input, and if the last reported diagnostic was a
	    "retryat" failure, do silently drop them, until the given
	    retry-time is reached.

	* transports/hold/hold.c:
	    Understand hold-definition: "ns:host.name.there/any" right..

	* scheduler/readconfig.c, scheduler/scheduler.c, scheduler/mailq.c,
	  scheduler/qprint.c, scheduler/scheduler.h, scheduler/threads.c,
	  scheduler/transport.c, scheduler/update.c
	    Radical changes at the scheduling algorithms..
	      - "ageorder" config flag: makes vertices within the thread
		to be kept, and processed in the order of spool-file ctime.
	      - "overfeed=NN" config flag: tells how many entries are fed
	        to the transport client in one go so that it may "eat from
		the pipe" for the job definitions.

	* scheduler/msgerror.c:
	    Make it to tolerate old (pre 2.99.22) errors, and thus allow
	    smooth upgrade from old system to the new one.

	* lib/prversion.c:
	    Year has changed, updateing copyright statements a bit.

	* include/hostenv.h, lib/loginit.c, libc/mail.c, libsh/interpret.c,
	  libsh/io.c, libsh/trap.c, router/functions.c, router/libdb/ordered.c,
	  router/libdb/unordered.c, router/rfc822.c, router/rfc822hdrs.c,
	  router/shliaise.c, scheduler/mailq.c, smtpserver/smtpserver.c,
	  transports/mailbox/mailbox.c, transports/smtp/smtp.c:
	    On some machines exceeding 128 FDs on the scheduler (or elsewere)
	    causes some rather fatal things to occur, namely the variable
	    storing the fd in the STDIO descriptor is signed char, while it
	    should be at least ``unsigned char'', or preferrably ``short''
	    ( SunOS 4.x .. )

Wed Jan  3 10:24:59 1996  Matti Aarnio  <mea@utu.fi>

	* proto/cf/rrouter.cf, proto/cf/canon.cf:
	    Got rid of ``UUCPACTION'' and ``BITNETACTION'', let them
	    be resolved via  $MAILSHARE/db/routes:
			.bitnet	smtp!some.old.relict
			.uucp	smtp!uunet.uu.net
	    (And if you REALLY have BITNET routing database, it can
	     handle  <foo@node.bitnet> just fine..)

	    Also commented away the  IN% -matching, which after all
	    was my local hack to handle VMS users coming to UNIX..
	    .. but as we are killing the VMS, there is no need for
	    that hack anymore ..

	* proto/cf/server.cf:
	    The quadprint() -routine needed a bit of an addition to
	    handle non-found user->fullname mappings -- using same
	    method as the mailbox uses when delivering:  If given
	    "UsEr" does not match, lowercase it, and try again.
	    (If lowercased version doesn't match, yield an error..)

	* scheduler/update.c:
	    Hunting up and down for accesses to invalidated memory
	    blocks, found one at the end of the  u_retryat()..

	* scheduler/msgerror.c:
	    Plugged memory leakage (strdup()ed string)

Sat Dec 30 02:33:23 EET 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Releasing 2.99.23

	* router/router.c:
	    Added "nosyslog" variable, and "-S" option, which
	    together disable (per default) router from syslog()ing
	    everything to syslog in addition to some logfile used
	    per default...

	* transports/smtp/smtp.c:
	    Rearranged diagnostics reporting, now it will correctly
	    report the status of the connection problems in addition
	    to the interactive transaction problems.

	* scheduler/threads.c, scheduler/transport.c:
	    When feeding a task, clear "vtx->ce.pending" -flag,
	    thus having the queue-reports not to show spurious
	    "thread-/channelwaits"...

	* transports/libta/mime2headers.c, transports/libta/mimeheaders.c
	    Split it into two, and took friend's MIME-2 encoder into
	    it... not yet truly in use.

	* routers/, and scheduler/
	    Several fixes to get it to compile again at OSF/1
	    (well, I didn't compile EVERYTHING before releasing
	     2.99.22 ..)

	* Makefile:
	    Releasing 2.99.22

	* Large changes to  scheduler -- trying to make it
	  a bit smarter at the retry (whole thread retries)

	* Some IETF-NOTARY-changes to the scheduler, and transporters

	* router, scheduler, and smtpserver will now abort, if
	  they fail to write any content to their respective
	  ``pidfile''.

Fri Dec 15 15:54:44 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/mailbox/mailbox.c:
	    Add a "setpwent()" just before looking up named user,
	    at least on SunOS4.1 (vis NIS) this apparently makes
	    difference ??

Sat Dec  2 03:05:36 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/smtp/smtp.c:
	    Fixed the treatment of maxpref picking at the MX handling.
	    (Darren Kinley <darrenk@nds.fonorola.net>)

	* router/shliases.c, proto/cf/aliases.cf, proto/cf/standard.cf:
	    Looked into ways of making the duplicate removal once
	    again setting a global XXXX

Sat Nov 25 18:39:56 1995  Matti Aarnio  <mea@nic.funet.fi>

	* lib/rfc822scan.c, router/rfc822.ssl, router/rfc822walk.c:
	    Teached the syntaxes a new special token: "::" like
	    exists in the DECNET addresses..

Thu Nov 23 16:34:50 1995  Matti Aarnio  <mea@nic.funet.fi>

	* scheduler/msgerror.c, scheduler/update.c, scheduler/scheduler.c,
	  scheduler/scheduler.h, include/ta.h include/mail.h, all TAs,
	  transports/libta/diagnostic.c:
	    Altered error messages (and a couple other things) to match
	    more evenly with IETF NOTARY-WG's error report format, including
	    status codes, etc.  If old errors are fed to the scheduler, it
	    WILL crash!  See  README.UPGRADING  about 2.99.22 ...

Fri Nov 17 13:22:18 1995  Matti Aarnio  <mea@nic.funet.fi>

	* router/rfc822.c:
	    Changed rules on when to add "To:"/"Resent-To:" headers
	    at all...  If any "To:" or "Resent-To:" header exists,
	    DO NOT add "(Resent-)To:" -header.  Makes list expansion
	    a much more forgiving to humans..

	* transports/smtp/smtp.c, transports/libta/dnsgetrr.c,
	  lib/hostent.c:
	    - Randomize the order of MXes with same preferrence
	    - Randomize the order of A-records before connecting
	      to anywhere (multiple addresses on same host)
	    The goal is to distribute the load to all servers of
	    the target domain, when it lists multiple servers..

Fri Nov 10 12:54:30 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Release 2.99.21

	* Updated: README.UPGRADE, INSTALL, Overview, README,
	           README.solaris, Config.osf1-funet, Config.solaris
	* Switched:  scheduler -> scheduler-old, scheduler-new -> scheduler

	* hostenv/FreeBSD-2.0:
	    Some minor tweaks by Tom Samplonius, we shall see how they
	    blend in..

	* include/hostenv.h:
	    Unconditionally include <sys/param.h>, to be used
	    elsewere to detect some system dependent things.

	* Config, Config.osf1-funet:
	    Using best C-compiler on AXP platform with hardest
	    optimization switches...  It makes compiler apparently
	    to halt sometimes, but after 3-4 CPU MINUTES, those
	    larger modules are compiled -- the result is truly
	    magnificent :-)
	    (That compiler does need substantial amounts of memory
	     to run, at least 200M to "ulimit -m" -- max memory size!)
	    A bit latter: Decreased optimization demands by small
	                  amounts -> smaller code (less inlining),
			  and faster compile..  A LOT faster..

	* lib/rfc822scan.c:
	    Tolerate a case where "\" ends the line on which we are
	    scanning tokens.  (PINE originates such sometimes?)

	* scheduler-new/threads.c:
	    Last (?) of the thread bugs fixed -- this one occurred
	    rarely at UTU.FI SPARC server.  Some sort of timing
	    thing, which turned out to happen very infrequently..

Mon Nov  6 12:09:28 1995  Matti Aarnio  <mea@nic.funet.fi>

	* smtpserver/smtpserver.c:
	    - Wrong code on "HELP" responces: 241, changed to  214
	    - EXPN and VRFY changed to demand HELO/EHLO before
	      being usable

	* hostenv/SunOS5.*:
	    Added the forgotten  "SVR4MNTENT=" -entry.

	* scheduler-new/
	    Still more hacking on all fronts (eh, source modules)

	* transports/libta/ctlopen.c:
	    Reset the ctlsticky's internal state in the begin of its use..

	* transports/mailbox/mailbox.c:
	    Do something with the  SIGALRM -- don't just SIG_DFLT it
	    (which means program aborting itself), rather use it to
	    break infinite wait on where you were (NFS lockf() )

	    Also reset the [re]uid to zero (root) before opening a
	    control file -- things work better that way..

	    Moved BIFF into the delivery loop, we shall see...

	* transports/smtp/smtp.c:
	    Still leaked SMTP connection file-descriptors, last one
	    plugged now ?  (on target host change..)

Mon Oct 30 11:52:34 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/libta/mimeheaders.c:
	    Small change to MIME-2 processing (it is imperfect,
	    actually "broken", but lets not be too purists..)
	    Now a quoted token will not contain enclosing parents,
	    that is, "QUOTABLE)" -> "=?xxxx?Q?QUOTABLE?=)", and
	    not like it was:        "=?xxxx?Q?QUOTABLE)?=", which
	    breaks the headers really badly..

	* scheduler-new/transports.c:
	    Put  pipes_shutdown_child(tofd)  into suitable places
	    instead of  close(tofd),  because  socketpair() "pipe"
	    does break at normal close()...

Tue Oct 24 22:30:50 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Released 2.99.20

	* include/ta.h, transports/*/*.c
	    Changed the way the  diagnostic() call works,
	    now the SMTP transporter can send a "retryat +NNN "
	    request.  It is used for rescheduling entire thread
	    for a bit latter time -- now fixed at 60 seconds.

	* scheduler-new/
	    Revised somewhat the internal logics, introduced
	    active use of "retryat" comminication primitive
	    from the transport agents to the scheduler.

	    Fixed (?) the timeout problem reported from Hongkong,
	    also fixed another "PROC NOT IN IDLE CHAIN", which was
	    caused by childs dying prematurely for some reason.

Wed Oct 18 09:10:07 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Released 2.99.19

	* hostenv/*, scheduler-new/pipes.c, scheduler-new/transport.c,
	  scheduler-new/threads.c, scheduler-new/Makefile.in:
	    If the system can do a bi-directional pipe, at least
	    a socketpair(), we need only ONE fd per child.  Enable
	    by hostenv define  SOCKETPAIR=
	    (TODO: SysV has STREAMS-pipes, add support for them into
	           the  scheduler-new/pipes.c, then all three existing
		   methods are covered... )
	    ( scheduler-new/pipes.c  is a new module.. )

	* scheduler-new/threads.c, scheduler-new/transports.c:
	    Finally found (?) the reason, why running childs are lost,
	    and mis-calculated occasionally.  (It turned out to occur
	    most frequent with  error-channel, but had nothing to do
	    with any channels per se..)

	    Anyway, sometimes a child is killed, and the recovery
	    was mis-treated, but the reporting-fd still had data!
	    Thus every now and then, while a process was gone, but fd
	    (and thus a pid-slot) was still in use, and the process
	    was thought to be valid for "feeding a child", for example..

	* transports/smtp/smtp.c:
	    When doing close() due to change of host, or a final close, don't
	    just close(), do "QUIT" + close()!

Fri Oct 13 17:21:27 1995  Matti Aarnio  <mea@nic.funet.fi>

	* hostenv/IRIX53, router/prototypes.h, scheduler*/mailq.c:
	    IRIX-5.3 diffs from  Darryl Miles <dlm@r-net.u-net.com>

	* scheduler-new/
	    - Still more hammering at it with DEC ATOM-tools Third Degree :)
	      Now only memory leakages around are in the system libc! (Brr...)
	    [ well, new leaks introduced latter, but that is another story.. ]

Thu Oct 12 20:23:26 1995  Matti Aarnio  <mea@nic.funet.fi>

	* smtpserver/smtpserver.c:
	    Fixed an error in SMTP EXPN, and VRFY.

	* scheduler-new/
	    - fixed expiry processing (when multiple recipients exist for
	      the message)
	    - fixed process counters -- idle_cleanup() leaked pids..

Mon Oct  9 11:07:25 1995  Matti Aarnio  <mea@nic.funet.fi>

	* scheduler{,-new}/transport.c:
	    Improved (?) support for IBM AIX systems
	    (select() system call.)

	* include/hostenv.h, hostenv/*:
	    STDLIB= -> USE_STDLIB -> include <stdlib.h> in  hostenv.h
	    UNISTD= -> USE_UNISTD -> include <unistd.h> in  hostenv.h

	* router/rfc822.c, router/rfc822hdr.c:
	    Hide away (effectively removed) "resent"-processing, so that
	    if there are headers in there, no new "Resent-" headers are
	    added just because some "Resent-Message-Id:" -exists, but no
	    "Resent-To:"...

Wed Oct  4 15:15:03 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Released 2.99.18

	* transports/smtp/smtp.c:
	    Two fixes to a case where system doesn't have working mmap()

	    One change so that report() routine tells more meaningfull info.

	* router/router.c:
	    Rid the USE_BSDGETPGRP, and use USE_BSDSETPGRP instead.
	    It is too much hassle to change all hostenv files to
	    handle this othervice..

	* scheduler-new/:
	    Hacking continues at all fronts, still there is some
	    discrepancy in between data-structure counters, and
	    values counted, when chains are traversed!

	    Now the scheduler has an option to create performace
	    monitor log:  -l logfile.name

	    The file looks like this:
		812819196 167223-3 0 12 ok smtp/ugcs.caltech.edu
		812819197 167227-1 0 11 ok smtp/udcf.gla.ac.uk
		812819212 167231-3 0 7 ok smtp/sci.fi
	    Columns are: - spool-file creation time (ctime)
			 - spool-id (filename)
			 - time difference from creation of spool file
			   to route file creation (secs)
			 - time difference from creation of route file
			   to delivery of the message (secs)
			 - what happened (ok/error/expiry)
			 - recipient channel/host

	* Makefile:
	    Better integration into the whole, I hope.
	    Someday soon the "scheduler-new" will be changed
	    to be "scheduler", and current "scheduler" becomes
	    "scheduler-old" ...

Sun Oct  1 15:57:39 1995  Matti Aarnio  (mea@oh1mqk)

	* Dumped 2.99.17 -- and a bit latter revised scheduler-new..

	* libsh/Makefile{.in,}: (Michael Thompson <mickey@diva.com>)
	    Fix to an awk script embedded into the Makefile.

	* scheduler-new/
	    It works !    Old configuration information is out of date.
	    There are still open issues, see associated commentary files..

Fri Sep 29 09:22:50 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/smtp/smtp.c:
	    Odd, SMTP responce "552 permanent resource limitation"
	    did trigger ONLY an EX_TEMPFAIL, which caused retry..
	    Does now EX_UNAVAIL, which causes snappy reject.

Wed Sep 27 22:00:28 1995  Matti Aarnio  <mea@notebook.mea.utu.fi>

	* Makefile:
	    Changed subdirectory makefile re-generation method slightly.
	    Now if the production fails, it won't (I hope) scramble the
	    original file...

	* compat/rmail/Makefile, compat/sendmail/Makefile:
	    Install "rmail", and "sendmail" into $MAILBIN !
	    Let sysadm to add symlinks from where-ever the
	    original locations are to the $MAILBIN/ ..

	* proto/zmailer.sh:
	    The script will check that   $MAILBOX  points to a directory
	    so that the ZMailer can't be started on a mis-configured
	    system... (.. at least of that part.)

	* transports/libta/mimeheaders.c:
	    Recognize "KOI8*" -fonts as alias to US-ASCII, when content is
	    7-bit only..

	    Recognize also when HEADERS need MIME-2, that is, coding 8-bit
	    chars in headers (subject et.al.) into MIME-2 format..

	* transports/libta/writeheaders.c:
	    If converted headers exist, write them ALWAYS!

	* transports/mailbox/mailbox.c, transports/sm/sm.c,
	  transports/smtp/smtp.c:
	    Use  strdup()  instead of  strsave().  Makes difference,
	    when it occurs on a transporter waiting for next work..

	* transports/smtp/Makefile*:
	    For "install"-target, make sure also "mprobe" exists.

	* transports/smtp/smtp.c:
	    If headers have 8-bit chars, we may need to convert them to
	    MIME-2 (RFC-xxxx) "coded words"

	    If EHLO+HELO fails, open same machine again, and do HELO
	    only, if THAT too fails, try next MX...

	    Report (into log-file) about connection making, and
	    possible errors therein..

	* scheduler/
	    Lots of small changes - prototypes for functions.

	* scheduler/mailq.c,     scheduler/qprint.c,
	  scheduler-new/mailq.c, scheduler-new/qprint.c,
	  scheduler/scheduler.h, scheduler-new/scheduler.h:
	    Noticed that qprint on Linux didn't like at all the reported
	    vertices from AXP machine, where vertex storage address was
	    well ABOVE 4 G (max value for unsigned 32-bit long at i486..)

	    Now the vertex structure has a field where qprint() can
	    store incrementing SMALL integer unique one for each
	    vertex.  The vertex identifiers start now from 1 each
	    time the mailq is run...

	* scheduler-new/
	   The face-lift project continues, it CAN do most of the things
	   already, but it is somewhat sloppy at process scheduling, and
	   tracking.

Tue Sep 19 11:00:52 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/smtp/smtp.c:
	    A set of options that change their values during the
	    runtime are reset before  smtpconn().

	    If  "EHLO"+"HELO"-pair crashes (like it does with some
	    SMTP-servers), open a new connection, and do "HELO" only.

Mon Sep 18 10:42:37 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Makefile:
	    Dumped version 2.99.16 after public demand..

	* smtpserver/smtpserver.c:
	    Extended the trappings of errno's from  accept().
	    On Linux we have seen (among others)  ECONNRESET,
	    which earlier did cause swift exit(1), because
	    only EINTR was tolerated...  ( .. and incidentally
	    the EINTR didn't happen at all, because the signals
	    are of syscall-restarting nature..)

	* transports/smtp/smtp.c:
	    When writing to a log-file, write also info regarding
	    connection attempts so we can look when remote systems
	    are unreachable...

	    Fix the '-8' -flag when the message content isn't
	    MIME, but we want to be 8-bit transparent..

Sat Sep  9 01:13:20 1995  Matti Aarnio  <mea@nic.funet.fi>

	* scheduler-new/ :
	    The scheduler will have complete ``face-lift'',
	    before this is over...  Now made separate work
	    copy, and left 2.99.15 version with old name..

Sat Sep  9 01:04:55 1995  Eugene Crosser <crosser@online.ru>

	* transports/mailbox/mailbox.c:
	    More generic (?) approach of UID/GID handling, we hope.

	* router/libdb/search.h:
	    Changed one "void *" to "char *", because Sun Solaris
	    C-compiler (SparcWorks ?) didn't like to do pointer
	    arithmetics with void pointer..

Fri Sep  1 11:37:09 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/smtp/smtp.c:
	    Thomas Knott spotted (and fixed) a bug on email processing
	    when sending 8-bit mail over an ESMTP connection, and the
	    system does not support MMAP service..

	* include/mailer.h:
	    Added macroes:  STREQ() and STREQN() (case SENSITIVE string equal)

	* router/rfc822.c:
	    The ``FindHeader()''-macro uses now case SENSITIVE lookup
	    of the header lines. Thus "From "-lines will not match those
	    of "from "..  (Nothing breaks, I hope..)

	* libsh/io.c: PUTC(), vsiodoprnt()
	    Two subtle one-off errors which DEC OSF/1 ATOM-tool
	    "Third Degree" detected. These caused actually buffer
	    overflows :-( (by one byte), which in turn caused
	    far latter errors, which looked rather weird..

	* scheduler/ - all files :)
	    Made prototype functions for all inter-twined routines
	    used in the scheduler, cleaned out several unused ones.
	    (Not yet doing things quite like I want, but better..)

	* hostenv/FreeBSD-2.0:
	    Contributed by Tom Samplonious.


Fri Aug 25 13:24:30 1995  Matti Aarnio  <mea@nic.funet.fi>

	* Release of code version 2.99.15
	  A big pile of changes all around, summary below:

	* Incorporated (finally!) Lehigh's AIX-port into the main source.
	  I don't know how clean it is, but...

	* hostenv/Linux, hostenv/OSF1v3.0-Alpha, hostenv/OSF1v3.2-Alpha:
	    Added "MMAP=", and "STRERRNO=" for Alphas, "STRERRNO="
	    only for Linux (on which the mmap() is a bit troublesome..)
	    Added also "RESOLV_LIB=-lresolv" to Alphas.

	* doc/zmdirs.{fig,ps}, doc/zmsched1.{fig,ps}:
	    Couple pictures telling about directory, and file relations
	    within the ZMailer.

	* include/sysprotos.h:
	    DEBUG_FOPEN -things for debugging FILE * leakage..

	* libauth/authuser.c:
	    Fixed variable declarations.

	* libc/__fopen.c:
	    Compile the library always, just the USE of it is left to user
	    applications compilation.

	* libc/strerror.c:
	    Verify that error number is in valid range -- detected
	    a case of errors where the returned errno was 8800+, and
	    got most peculiar error results...

	* libsh/execute.c:
	    Small changes to ensure compilability with multiple compilers;
	    apparently somehow the optimizers (gcc-2.7.0, and DEC's
	    "cc -migrate" both on Alpha) generated skewed code, which
	    produced wrong result.

	* libsh/tregexp.c:
	    The "trace regexp", and "trace matched" (I think) regexp
	    TRACE routines produced parts of their output to wrong place
	    (to stdout via  putchar() -routine) thus causing trouble when
	    trying to trace large-scale processing.  Now all output from
	    this file goes to some "char *" -buffers, or to stderr.

	* proto/cf/aliases.cf:
	    Had one split line, and other minor changes.

	* proto/cf/aliases3.cf:
	    Yet another slightly edited version of the default "aliases.cf"
	    (untested!)

	* proto/zmailer.sh:
	    The prototype of the "zmailer" -command got rid of vestiges
	    related to "$POSTOFFICE/scheduler/" -directory.

	* router/functions.c run_listexpand():
	    New option "-p", tried to use  "router()" -entrypoint, but
	    apparently it wasn't very successfull.  Hmm..

	* router/libdb/bind.c:
	    Problems related to 64 bit machine, where "u_long" is rather
	    much larger, than expected "u_int"'s size...

	* router/rfc822.c:
	    Changed directory scheme to match that of the scheduler by
	    getting rid of "$POSTOFFICE/scheduler/" -directory

	* scheduler/agenda.c:
	    Fixes on time-stamp processing, adding up-to-date code
	    into time handling -- setting all variables that are latter
	    read from.

	* scheduler/mailq.c:
	    Got rid of "$POSTOFFICE/scheduler/", and to some extend
	    replaced it with "$POSTOFFICE/transport/".

	* scheduler/msgerror.c:
	    Use new directory/file-paths.

	* scheduler/scheduler.c:
	    Use new directory/file-paths

	    Read files from the directory into time-stampted queue
	    (with file's st_ctime), and accept into it only those
	    that are not already in processing.

	    Parse _CF_SENDER -entries from the scheduled job, and
	    use that address (well, last one of them) as an address
	    for sending error replies to.

	* scheduler/scheduler.h:
	    Replaced "int rptwait" with "int hungry", though neither
	    are in use...

	* scheduler/transport.c:
	    Use new directory/file-paths.

	    Prepare for using bi-directional communication in between
	    scheduler, and transporters -- so that scheduler starts
	    a transporter, and gives it synchronously one job at the
	    time, and waits for "#hungry\n" -message before feeding
	    another...

	* scheduler/update.c:
	    Use new directories/file-paths.

	    Support "#hungry\n" -messages

	* smtpserver/rfc821scn.c:
	    Accept domain name components.

	    Increase the  listen()  queue size.

	* smtpserver/smtpserver.c:
	    Voice complaint, when user tries to feed us:
		MAIL FROM: someone@somewhere
	    that is, when the input is against the RFC-821 syntax..

	* transports/errormail/errormail.c, transports/hold/hold.c,
	  transports/mailbox/mailbox.c, transports/sm/sm.c,
	  transports/smtp/smtp.c
	    Support the new "#hungry\n" -style "feed me" messages.

	    Fixed a couple "if (foo = faa)" vs. "if (foo == faa)"
	    errors in the source.


Tue Jun  6 23:35:34 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/sm/sm.c, transports/smtp/smtp.c,
	  transports/hold/hold.c, transports/mailbox/mailbox.c,
	  transports/errormail/errormail.c:
	    Amended acceptable command-entry format to be:
		spool/file/name [ \t host.data ] \n
	    This in preparation to alter scheduler to keep
	    TWO pipes open for each running transporter,
	    and to feed them ONE JOB at the time.

	    To achieve syncronization the report-back format
	    is amended with a blank line after the last responce
	    from entries in a file. (That is, an extra "\n".)

Sat Apr 15 02:05:18 1995  Matti Aarnio  <mea@nic.funet.fi>

	* transports/sm/sm.c:
	    Fixes on MIME QP-decode conversion mode.
	    Now QP-decode works right.

	    (Somewhat earlier..)
	    Added also couple lseek()s to that the message
	    is now processed with correct headers..

Sun Mar 26 20:56:22 1995  Matti Aarnio  <mea@hamsterix.funet.fi>

	* (almoast all files..)
	    "A bit" more of 64-bit stuff.
	    A change on  splay-tree symbol format caused severe
	    repercussions to occur, namely a widely-held assumtion
	    that "sizeof(void*) == sizeof(int)" caused serious trouble :-(

Thu Mar 23 00:56:05 1995  Matti Aarnio  <mea@hamsterix.funet.fi>

	* transports/libta/ctlopen.c ctladdr():
	    A bit more generic way to scan for control addresses...
	    a way which does not miss the beat when there is 8-bit
	    chars on tokens...

	* router/functions.c:
	    Re-arranged the usage/setting of  errors_to -variable.
	    Now it should not cause spurious errors on free()-time!

	* transports/mailbox/mailbox.c putmail():
	    Parametrize putmail() with "w" (for pipes) and "a+"
	    (for files).  OSF/1 3.2 had problems when pipe was
	    fdopen()ed with "a+"... :-/

	    Instead of using  getservbyname("biff","udp"), do hard-wire
	    the BIFF-port to the client -- sometimes (SunOS 4.1.3 w/ NIS)
	    that library call is extremely SLOW to return...

	    A SCO-user reported, that MMDF-format is:
		C-A C-A C-A C-A
		message1
		C-A C-A C-A C-A
		C-A C-A C-A C-A
		message2
		C-A C-A C-A C-A
		...
	    Instead of (like it was coded here):
		C-A C-A C-A C-A
		message1
		C-A C-A C-A C-A
		message2
		C-A C-A C-A C-A
		...
	    Oops about that...

Thu Feb  9 20:28:22 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dump 2.99.13

	* router/rfc822.c makeLetter():
	    Process all headers, don't just SQUIRREL() away
	    when there is mal-formed envelope information.
	    This way the messages will not just disappear
	    into $POSTOFFICE/postman -directory.

	    One particular bogon format is perhaps detectable..
	    ">From ..." as the FIRST line.  Such case is possible,
	    when a faultly configured  sendmail/smail  feeds
	    our system via SMTP, but is configured to feed UUCP..

	* scheduler/transport.c:
	    Changed all references to number of open files in
	    the system to use common reference platform from
	    library call  resources_query_nofiles().

	    This mattered especially when the  cpids[]-array was
	    allocated by using   resources_query_nofiles(), and
	    other references to it were limited by  FD_SETSIZE
	    (for example), but THAT happened to be larger (like
	    2 or 4 times) than the allocation size...

Wed Feb  8 00:51:59 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c:
	    Yet one more loose thread on the SMTP connection closure
	    survivability.  (Detected by an SIGSEGV on NULL ptr..)

	* transports/mailbox/mailbox.c main():
	    New option: "-h 'hostname'"
	    Assists the success with scheduler configuration containing
	    "byhost", when scheduling this piece of email.
	    (Such scheduling may be used to run "Zillions" of parallel
	     mailboxes -- "maxchan=20, maxhost=1, byhost", and thus
	     have each email recipient processed individually.
	     This REQUIRES that the router stores something personal
	     to each recipients "host"-field, not just "-"...)

	    When this option is not used, it defaults to the original
	    behaviour, where "mailbox" delivers ALL "local/*" -channel
	    emails of the file during one invocation.

	* transports/libta/ctlopen.c ctlopen():
	    Revised a bit the "Cannot open control file..." -message
	    by removing a potential `printf("%s",NULL);' -case..

	* libc/myhostname.c:
	    An extra indirection causing  getmyhostname() to yield
	    wrong data in place of FQDN hostname...
	    Hmm..  Wrestling it to be more commonly available,
	    (various platforms) was a bit difficult -- even inbetween
	    SunOS and Solaris-2..

	* transports/smtp/smtp.c:
	    Rewamped the connection tear-down code.  Now it SHOULD
	    happily use same connection for multiple emails.

Tue Feb  7 00:47:26 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dump 2.99.12

	* scheduler/scheduler.h, scheduler/scheduler.c, scheduler/agenda.c,
	  scheduler/transport.c:
	    Actual long-standing (ever since 1.0 ?) problem was the usage
	    of wrong filepath in the transport.c:tscan(), but without
	    some external help, the right one was not available..
	    (Scrambled especially the "-s" option!)

	    For fixing it was necessary to realize, that
		1) Each file is scheduled only once for each thread
		2) thus can be created a pointer into CTLFILE-block
		   which points to the CURRENT thread-vertex
		   (a companion for "mark" used for tscan() )
		3) the current vertex pointer can now contain an entry
		   to the path where the file is linked to
	    With these pointers in places,  transport.c:tscan()  and
	    after it, the client scheduling, can finally be done reliably.


	* scheduler/scheduler.c, scheduler/transport.c:
	    Once more, re-wamped the SIGCHLD processing, as
	    2.99.11 generated scheduler zombies on SunOS 4.1.x

Mon Feb  6 03:33:03 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dump 2.99.11

	* scheduler/transport.c:
	   The  waitandclose() is called when the file-descriptor
	   is closed, or the read causes an error.  (EINTR is no
	   error..)

	* libc/getopt.c:
	    Wrong system-wide definition file -- must be "hostenv.h"
	    instead of "libsupport.h"..

Sun Feb  5 03:12:02 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* scheduler/resources.c:
	    sysconf()-calls appear to be problematic -- on Solaris
	    it yields wrong data :-/

	    Wow, must check if scheduler uses stdio anywhere,
	    if not, it can run (On Solaris) 1024 fds..

	* scheduler/{transport.c,scheduler.c,scheduler.h}:
	    Defined "USE_SIGREAPER" in the  scheduler.h, and
	    when it is defined (no reason to take it off ?)
	    uses wait() immediately on the childs, and if
	    it matches to actual transporter child, marks
	    it as reaped on  cpids[] -array.
	    End of "Scheduler Zombies" ?

Sat Feb  4 17:34:14 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* hostenv/00README, include/libz.h, include/mailer.h, lib/pwdgrp.c:
	    Inverted the test, and changed the variable name..  Now if we
	    ever DO need to use our own version of  getpw{nam,uid}() and
	    getgrnam(), we can define  ZGETPWNAM on the host environment.
	    I doubt we ever do.  (This change removed one COMMON problem
	    on porting to other platforms..)

	* transports/smtp/smtp.c:
	    Revised the timeouts.  Now output will abort if it can't
	    write at the rate of 1kB/5 minutes, rearm after every kilobyte.
	    If commands don't respond within 5 minutes (earlier was 10 minutes)
	    it also timeouts -- except with "." to "250 OK", which is 10 mins.
	    ( RFC 1123 )

	* smtpserver/smtpserver.c:
	    Timeout parameters, now it dies out pretty fast if the
	    remote end does not feed data in fast enough...
		20 minutes for in between SMTP commands
		10 minutes for a kilobyte of SMTP DATA.

	* smtpserver/smtpserver.c mgets():
	    Something funny with responce buffer realloc(); It did scramble
	    the pointer to the chars in the buffer (GCC 2.5.8 on SPARC),
	    and eventually caused a SIGSEGV..  Amazingly small change
	    fixed it :-/

	* A LOT changes right and left, NATIVE port to OSF/1v3.0 on Alpha.
	  Files affected:
		Config.osf1, hostenv/OSF1v3.0-Alpha, lib/rfc822date.c,
		compat/sendmail/sendmail.c, libc/getopt.c,
		include/authuser.h, nclude/limits.h, include/mailer.h,
		libauth/authuser.c, libauth/authuser.h, libmalloc/assert.h,
		livmalloc/externs.h, libsh/execute.c, libsh/interpret.c,
		libsh/sslwalter.c, libsh/trap.c, router/libdb/bind.c,
		router/db.c, router/functions.c, router/prototypes.h,
		router/rfc822.c, router/rfc822hdrs.c, router/router.c,
		scheduler/mailq.c, scheduler/msgerror.c, scheduler/update.c,
		scheduler/scheduler.c, scheduler/transport.c,
		smtpserver/smtpserver.c, transports/mailbox/mailbox.c,
		transports/smtp/smtp.c

	* (no file):
	    Noticed that Rayan Zachariasen no longer has an account on
	    U of Toronto.

Thu Jan 19 02:34:02 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Makefile:
	    Patchlevel=10, DUMP

	* transports/smtp/smtp.c main(): 
	    Fixup of parameters of the  getopt() call.

Wed Jan 18 13:29:50 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c run_listexpand():
	    When "rrouter" evaluation meets a duplicate removal,
	    it returns a list of "()" -- so, an object without
	    contents.  (Again SIGSEGV..)

	* libc/mail.c mail_close():
	    When ZENV-variable  ROUTERDIRS does have invalid elements,
	    use the last valid element (or the default of "router")
	    as the directory name.
	    ( "sendmail", and "smtpserver" are affected by this! )
	    ( Sure, nobody enters invalid elts into the dirlist ? Heh.. )

	* transports/smtp/smtp.c writemimeline():
	    Did wrong thing, when outputing QP coding, had a one-off
	    with "column" variable, when it was a question about
	    line prefixing "."...  (Auch!)

Tue Jan 17 10:53:02 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* hostenv/Linux, hostenv/SunOS5.3:
	    "GETPWNAM=" -- MUST BE DEFINED, as the otherwise default
	    of iterating with  getpwent() is BAD MEDICINE!
	    This has been the reason for several odd problems on POSIX,
	    and alike, systems!
	    ( "include/mailer.h"  has "#define getpwname zgetpwnam" to
	      map the normal library call to ZMailer wrapper.. )

	* scheduler/scheduler.c:
	    A missing "int wrkcnt;" variable declaration..
	    (How on earth it did slip into the dump ?)

Fri Jan 13 13:59:07 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Makefile:
	    PATCHLEVEL=9, dump for public tests.

Thu Jan 12 12:31:02 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c:
	    When the  $ROUTERDIRS  is defined, but not all dirs
	    in it do exist, skip the nonexistent ones.
	    (It was FAST core-drop time at nic.funet.fi ..)

	* Makefile:
	    When cleaning, DO NOT delete libmalloc/version.c !
	    That file is separate from all other version.c's !

	* router/router.c main():
	    Altered XMEM-compile-option related usage of "fileno()" macro.
	    Actually got rid of it...

Wed Jan 11 14:22:14 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/rfc822.c run_rfc822():
	    Open the mail-file as O_RDONLY ( fopen(file,"r") ) instead of
	    "r+" (O_RDWR), thus under no circumstances allow our internal
	    bugs to cause leakage of logs (!) into the mail-body !
	    (Original code claimed the "r+" is needed for locks to succeed,
	     however  link()/rename() -"lock" works quite well without...)

	* scheduler/scheduler.c, scheduler/transport.c, man/scheduler.8:
	    A runtime option "-N ##" to set how many file-handles
	    are to be left open when a client is started.  On most
	    systems that number is low -- under 10 or so, however
	    on Solaris it must be far higher..   Default value (32)
	    works for me (on Solaris), however I have had comments
	    that it isn't enough (on Solaris) :-/

	* router/functions.c run_listexpand():
	    Changed somewhat the address parser -- finally (?) got it right!

	* router/rfc822hdrs.c pureAddressBuf(): (NEW)
	    Outputs pure address into a buffer for usage as router argument.

	* router/libdb/ordered.c, router/libdb/unordered.c, router/db.c:
	    - Moved  readchunk()  to the end of the  .../unordered.c from
	      router/db.c
	    - Teached "db" to flag a case of using "Indirect" post-
	      processor for things other than ordered/unordered relations.

	* libmalloc/, (libmalloc-o/)
	    Mark Moraes'  malloc-1.17.
	    The previous one is in  libmalloc-o, until deleted..

	* transports/smtp/smtp.c, transports/sm/sm.c:
	    When translating to QP, always translate
	    the last SPACE/TAB on the line.

	* transports/libta/mimeheaders.c  check_conv_prohibit():
	    Added another KLUDGE meaning to the "Content-conversion:"
	    header... "forced-qp", which forces QP output.
	    (Applied only into SMTP so far..)

Tue Jan 10 13:46:33 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* smtpserver/smtpserver.c:
	    Analyze headers a bit more.  Now complain immediately,
	    if subjected to 8-bit characters in any header aside of
	    "Subject:".  (Because for example PP will choke on us,
	    when we forward such a message and there is no MIME-HDRS
	    encoding on them..)

	    We can't (easily/portably) do the MIME-HDRS encoding for
	    the user, because we don't know his/her character-set.
	    (We can assume, of course, but it would not be universally
	     usable..  Hmm..  UNKNOWN-8BIT ?)

	* transports/sm/sm.c:
	    New option: -Q to create "narrow-QP-encoding", that is,
	    to encode TABs and SPACEs in QP.  Without this the QP-encoding
	    is created leaving them untouched..

Mon Jan  9 16:16:36 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transporter/mailbox/mailbox.c:
	    If the host does not have  /var/spool/rwho/ -directory,
	    DO NOT complain about it (with exit()!) Failing to RBIFF
	    is NO fault!

	* scheduler/transport.c:
	    Before bind()ing  querysocket, do set  SO_REUSEADDR, so
	    it won't complain just because of old lingering connection
	    trails...

Sun Jan  8 22:26:35 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c, router/rfc822.c:
	    Restore my old (and cumbersome)  "errors_to"  trick
	    on list expansion.  Even though it causes the error
	    address for ALL messages cascading from one source
	    to expand into the LAST expansion's owner, it is better,
	    than no trap at all..  (the rfc822.c:sequencer() needs
	    a serious rewrite with those attributes..)

Fri Jan  6 01:59:09 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Makefile:
	    Patchlevel: 8

	* router/functions.c: rd_{in,}stability(), run_daemon():
	    Revised a bit when it became evident, that the
	    multi-directory picking did not work anymore.

	* smtpserver/smtpserver.c:
	    Process the incoming message for headers.
	    Set "mail_priority" according to what you find
	    on the (possibly) existing "Precedence:" -header:
		- (nothing)	0
		"bulk"		1
		"junk"		9

	* doc/draft-*:
	    Pulled in new IETF SMTP related drafts (and some other)

	* README.UPGRADING:
	    Noted a change on 2.98 when the   proto/cf/*.cf -files
	    were altered to have a new way of processing the
	    "thishost" relation from $MAILVAR/db/localnames -file.

	* smtpserver/smtpserver.c:
	    "-M ###" -option: Absolute maximum (size) ever accepted
	    Code reorganize (a bit), load-aver blocked-access code
	    "421" instead of "400".

	* hostenv/*, libsh/execute.c, scheduler/transport.c,
	  smtpserver/smtpserver.c:
	     WAITPID coding for POSIX.1 waitpid() with WNOHANG ..

Thu Jan  5 00:28:45 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* libc/getzenv.c, libc/mail.c, libc/whathost.c, router/functions.c,
	  router/rfc822.c, router/router.c, scheduler/mailq.c,
	  scheduler/msgerror.c, scheduler/update.c, smtpserver/smtpserver.c,
	  utils/listexpand.c, compat/rmail/rmail.c, compat/sendmail/sendmail.c,
	  transports/errormail/errormail.c, transports/libta/ctlopen.c, 
	  transports/smtp/smtp.c, transports/libta/diagnostic.c,
	  transports/libta/lockaddr.c, transports/libta/markoff.c,
	  transports/mailbox/mailbox.c, transports/sm/sm.c, 
	  transports/hold/hold.c:
	    Converted to use   #include "mail.h"  instead of
	    the previous  #include <mail.h>

	* smtpserver/smtpserver.c, lib/detach.c, lib/loginit.c,
	  libauth/authuser.c, libsh/execute.c, libsh/trap.c,
	  libsh/zmsh.c, router/functionc.c, scheduler/scheduler.c,
	  compat/sendmail/sendmail.c, transports/hold/hold.c,
	  transports/errormail/errormail.c, transports/sm/sm.c,
	  transports/mailbox/mailbox.c:
	    Converted to use the new  "zmsignal.h"

	* include/zmsignal.h: NEW FILE
	    Created a file with all the signal handling that
	    various programs appear to need:
		SIGNAL_HANDLE(SIG,HANDLER)
		SIGNAL_HANDLESAVE(SIG,HANDLER,SAVEVAR)
		SIGNAL_HOLD(SIG)
		SIGNAL_RELEASE(SIG)
		SIGNAL_IGNORE(SIG)
	    (..	and  "#define SIGNAL_TYPE void" if it is not defined
		when using this header file --  libauth/authuser.c ! )

	* transports/smtp/smtp.c appendlet(): 
	    When decoding MIME QP on flight we MUST prepare to
	    meet pathologic input, namely a last line with
	    trailing "=" (so, no trailing "\n" ...)
	    When that occurs, we must inject the "\n"..

	* router/functions.c: run_listaddrs(), run_listexpand():
	    Changed (a bit) of the error message those two
	    can mail out.  "From: Error Channel  <MAILER-DAEMON>",
	    and "Precedence: junk".

	* scheduler/msgerror.c scnotaryreport(): 
	    Changed the function name -- clashed with libta.a ..
	    Made sure it becomes called only when there is real
	    NOTARY-DATA available, not in a case when the NOTARY-
	    DATA is "" ...

	* lib/rfc822scan.c, router/shliase.c:
	    Been wrestling with proper procedures for handling
	    one particular errorneous address ("From:" -line)
	    which used to cause router coredump..

	* transports/mailbox/mailbox.c:
	    Got a report that the new MAILVAR-misconfig-reporter
	    misses a case of valid  MAILVAR when the user does not
	    (yet) have a mailbox file in the mail-spool.  Hmm..
	    (Have not been able to reproduce this SunOS 4.1.3U1
	     reported error on my Solaris, have to try SunOS yet..)

	* libsh/interpret.c fapply():
	    When analyzing argument list (lisp-list), used wrong
	    data source for the for-loop continuation..
	    (Affected  "runas"  facility running "filepriv"...)

Mon Jan  2 00:03:33 1995  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/hold/hold.c:
	    From way back in history a "hold/home" -condition,
	    though I am not sure it really is that usefull.

	* Makefile:
	    Patchlevel: 7

	* README.UPGRADING: (new file)
	    Made some notes on what changes the ZMailer has had
	    during its evolution, and thus what things users should
	    be aware when upgrading from the previous versions.

	* router/libdb/ordered.c:
	    Removed the "seq_remap()" from here too.

Fri Dec 30 23:36:03 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Makefile:
	    Patchlevel: 6

	* Dependencies:
	    Changed the order of *dbm -entries.  The lattest GDBM (1.7.3)
	    has compability functions with DBM and NDBM.  Thus their
	    linkage-order can be used to chooce which *DBM is really used.
	    (And especially if there is a wish to use genuine NDBM in
	     parallel with GDBM!)

	* router/libdb/gdbm.c, man/router.8:
	    Updated it truly to GDBM 1.7.3, and sent wishfull thoughts
	    to the bug-gnu-utils@prep.ai.mit.edu  for a real  gdbm_filefno()
	    function...  The present one is, well, err...
	    Added a few words of advice to the man-page of the router.

	    Using GDBM from a non-standard include/library location is
	    a bit painfull, having following kind defines on hostenv/XXX
	    may help:
		GDBM_INCL=	-I/opt/gnu/include
		GDBM_LIB=	-L/opt/gnu/lib -lgdbm
	    (The example assumes your GNU-things are on  /opt/gnu/ ..)


	* hostenv/Ultrix*, libmalloc/getmem.c:
	    Defined a  NO_MADVICE  cpp-define to have USE_MMAP usable on
	    Ultrix 4.3A (well, I am guessing, I don't have the machine).
	    On a case I got a report about, the system does not have
	    madvice(2) while <sys/mman.h> has defined MADV_RANDOM, why ???
	    Some odd library to be included ?

	    I DO NOT KNOW IF Ultrix3.* HAS MMAP() AT ALL!
	    It is historic stuff anyway, which nobody uses anymore, right ?

	* router/libdb/unordered.c, man/router.8:
	    Disabled/removed  seq_remap() and its associated  fstat()
	    call.  It is better to use "-m" on the relation definition.
	    (Documented it, as if it would be enough to teach people..)

	* libsh/trap.c:
	    Changed the message of pre-compiled FC-file magic mismatch
	    into something which is clearer - I hope.  It reports about
	    automatically recompiling the CF files to FC files, nothing
	    else.

	* smtpserver/smtpserver.c, smtpserver/Makefile, smtpserver/fdstatfs.c:
	    Localized all  *stat*fs()  versions into one file, which now
	    returns valid (?) data for the most systems that are around.
	    (Prompted by "Yet Another Special Case" -- Ultrix..)

Thu Dec 29 08:31:42 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Makefile:
	   Patchlevel: 5

	* smtpserver/smtpserver.c:
	    Gives "a bit" mystic result-codes when the EHLO
	    responce generation procedure is unable to create
	    a mail-spool-file  -- it was used earlier to
	    determine available free storage, but when I became
	    informed that using it in the "SIZE" code would mean:
	    "this server will never accept more than this size.."
	    which for such a dynamic quantity is clearly wrong..

	* transports/smtp/smtp.c:
	    Leaked file-descriptors -- the SMTP channel connections..
	    ( smtpopen() leaked them, to be precise.. )

	* Makefile:
	    Patchlevel: 4

	* transports/smtp/smtp.c, transports/sm/sm.c,
	  transports/mailbox/mailbox.c, router/libdb/unordered.c:
	    The case of NOT having  USE_MMAP  had things missing
	    (being non-tested, but one Ultrix version was done with it..)

Wed Dec 28 01:51:49 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c run_listexpand():
	    Fixed (again) an uninitialized "al" variable.
	    Odd that I THOUGHT of having it fixed at the master source...
	    (I thought this was a bug in ssift/tsift, but no.)

	* Makefile:
	    Set version to be: 2.99.3

	* transports/mailbox/Makefile:
	    Remove the reference to  dotlock.o -- it is INCLUDED into
	    the  mailbox.c, thus no separate compilation!

	* router/rfc822.c, router/rfc822hdrs.c:
	    Gave a deep look to the analysis of "Sender:" -header.
	    In a case when the provided "Sender:" is junk, like:
		to demo
		From: demo2
		Sender: demo3-[12]
	    it used to pick up the mal-formed "Sender:" header, which
	    is stamped as  BadHeader ! .. and used that junk on a call
	    to the router() -- amazingly the router() didn't crash on it..

	    Now it is a bit more persistent on picking up only valid
	    headers (so headers which are not stamped as "BadHeader"),
	    and use them.  If no valid sender header is found, one
	    mkSender() was added for creating a valid sender-header
	    as a last-ditch measure..

	* scheduler/transports.c:
	    Upped the number of FDs for a child-processes from 10 to 32.
	    Solaris childs were unable to mmap() all the necessary dynamic
	    libraries :-/

	* libsh/builtins.c: sh_elements()
	    Replaced it with the new Toronto (22e4) version.

	* libsh/{interpret.c,sh.ssl,sslwalker.c,optimizer.c,zmsh.c}:
	    Found out that  tsift DID NOT work :-/  A lot of wrestling
	    and spotting of tiny details got it finally running...

Sat Dec 24 00:46:15 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Makefile:
	    Did set version number to be  2.99mea

	* Overview, INSTALL, README, README.solaris, README.HP-UX,
	  SiteConfig*, Config*, hostenv/00README, doc/guides/*, man/*:
	    Updates, but no real DOCUMENTING!
	    (that is, no new ZMOG...)

	* lib/nobody.c:
	    A bit of SVR4 features -- will automagically be able to
	    use correct value for "nobody" uid, if no ZENV variable
	    NOBODY is set -- or if it is set to "NOBODY=nobody"

Fri Dec 23 08:50:14 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dependencies:
	    Added "kvm" to the "smtpserver", and "gdbm" to several
	    others.  ALSO DOCUMENTED THE FILE!

	* smtpserver/loadaver.c:
	    Made some TRUE load-average extracters:
		- __linux__
		- SunOS 4.x
		- SunOS 5.x

	* scheduler/resources.c:
	    Made some TRUE resource codes for various platforms:
		- _POSIX_SOURCE
		- __linux__
		- SUNs (SunOS & Solaris)

	* transports/smtp/smtp.c smtpopen():
	    Trevor Paquette  spotted a missing execution path on
	    case when '-E' parameter is used for the smtp transporter,
	    and there is no "ESMTP" on the remote host initial banner.
	    (But my fix is different with less code duplication..)

	* libsh/execute.c, libsh/interpret.c, libsh/io.c,
	  scheduler/msgerror.c, smtpserver/smtpserver.c,
	  transports/sm/sm.c, transports/smtp/smtp.c,
	  router/functions.c, compat/sendmail/Makefile.in
	    Several changes by Byron Rakitzis to suit BSDI
	    (and propably most of the current BSD 4.4)

	    Added also new variable for the  Config:
		SENDMAILLIB=/usr/lib
	    becase for BSDI, BSD4.4, etc. it is desired to be:
		SENDMAILLIB=/usr/sbin

Thu Dec 22 10:38:26 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c, transports/mailbox/mailbox.c:
	    Pulled some more bits from Edwin Allum's Zmailer-2.2e4

	* router/libdb/bind.c:
	    From  Edwin Allum's  Zmailer-2.2e4  a resolved
	    retry tuneup -- to speed the resolver to give up
	    when there is no data coming up..

Thu Dec 15 23:29:59 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* scheduler/mailq.c:
	    Altered a bit the style of "nonlocal" settings.
	    Now the thing should not jam on "localhost" being
	    unavailable, because DNS says so...

	* hostenv/*:
	    Copied in  Edwin Allum's configs for IRIXes, and
	    Guy Middleton's AIX3.2 -- and added DOTLOCK scheme
	    ( + some comments )  to SunOS4.1

	* sendmail/sendmail.c:
	    fchown() call was missing GROUP parameter.
	    Added there "-1"

	* transports/mailbox/mailbox.c:
	    Created   propably_x400()  -function, and altered error
	    reports on anonymous delivery to a file ("/...") to reflect
	    possible X.400 addresses, when such is likely.
	    ("/X=XXXX/Y=YYYY/...")

	    Merged in Ken Lalonde's/Edwin Allum's  DOTLOCK facility.

	* proto/zmailer.sh:
	    Small change on the parameters of the router startup:
		was:	... router -dkn$NROUTERS
		new:	... router -dkn $NROUTERS
	    Now it should start more than 9 routers...
	    (On some platforms there is a behaviour where former
	     would not start 10 routers, only one, while the latter
	     would start all 10.. -- On Solaris 2.3 it works with
	     both ways, SunOS 4.1.3 (I think) had problems. )

	* libsh/interpreter.c, libsh/sh.ssl, ....
	    Altered   sift/in/tfis  construction to do STRINGWISE
	    regexpr matches with GNU regex engine, and converted
	    the old behaviour to name:  tsift/in/tfist

	    -- a bit latter altered the names to be:
		sift/in/tfis	-- Tokens - compability alias
		tsift/in/tfist	-- Tokens  (new PRIMARY name)
		ssift/in/tfiss	-- Strings (new name)

Wed Dec 14 09:12:16 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c:
	    When doing verbose trace to a host without any MX-records,
	    Solaris 2.3 crashed the smtp transport -- printf() doesn't
	    like NULLs as string pointers...

	* transports/libta/lockaddr.c, transports/libta/ctlopen.c,
	  include/mail.h, scheduler/scheduler.c, scheduler/mailq.c,
	  router/rfc822.c:
	    In attempt to create a state-preserving safe multi-invocation
	    transaction locking:

	    A PID based locking -- THIS ALTERS THE SCHEDULER FILE FORMAT
	    AND THUS OLDER  TRANSPORTERS  MUST NOT BE USED IF THE ROUTER
	    IS NEW!  (The scheduler must also match!)
	    Recipient-definition line (lock location) was altered:
		Old:  "r~...."
		New:  "r~PPPPPP...."
	    where "~" is lock-flag, and "PPPPPP" is space for storing
	    transport-client PID -- or 6 spaces, when there is no lock.

	    From now-on, if there is a lock-state on some recipient, the
	    scheduler tests to see if there is a process (pid) processing
	    it, and continues with next job, dropping the locked one for
	    a moment.

	    All NEW jobs arrive both to the $POSTOFFICE/scheduler/,
	    and the $POSTOFFICE/transport/, collecting them happens
	    from the $POSTOFFICE/scheduler (so the current queue need
	    not to be touched), however while there are locked files
	    running, the scheduler will re-scan the $POSTOFFICE/transport/
	    directory every 5 minutes.  If a file from that scan has
	    its i-node number in  spt_mesh[L_CTLFILE] -database, it
	    is skipped (it is an active file, not some previously locked
	    one).

	* transports/smtp/smtp.c: deliver()
	    Oops on parameter processing, the forced 8-bitness didn't
	    happen..

	* router/libdb/bind.c, transports/smtp/smtp.c, transports/hold/hold.c:
	    resolver usage got a little change -- to avoid screwing up
	    request size parameter when doing retry.. (size storage variable
	    was also used as a return value storage -> query screwed up on
	    the retry..)

	* proto/cf/*.cf:
	    Many files, minor changes...  (And a couple major ones)

Tue Dec 13 13:26:05 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* smtpserver/loadaver.c:  NEW
	    A stub for getting the system load-average

	* smtpserver/smtpserver.c:
	    Respond with a
	  "400 Sorry, system is too loaded for email reception at the moment"
	    when the system load-average (from  loadavg_current())
	    is over a given threshold value
	    (XX: that message is most likely wrong.. )
	    (Yes, correct one: "421")

	* router/functions.c: run_listexpand()
	    The pseudo-lisp is tough stuff to get right...
	    Finally it does any arbitary expansion with very
	    little memory consumption :-)

	    => Rendered the  util/listexpand.c  obsolete...

Mon Dec 12 20:42:59 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/libdb/ordered.c, router/libdb/unordered.c,
	  router/libdb/search.h:
	    Use  USE_MMAP  capability and map the textual database
	    file into memory for latter use -- will need less syscalls
	    for the lookup...

	* transports/smtp/smtp.c: writemimeline()
	    Counter each byte twice on the output when producing Q-P
	    encoded output -> output was circa 35 chars wide...  Oops..

Fri Dec  9 08:15:15 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transporters/smtp/smtp.c:
	    One missing "break;" on  getopt() processing.  Oops..
	    Thanks to Terry Combs <combstm@appstate.edu> for the fix
	    (and I guess he uses the "-E" option..)

	* scheduler/
	    The Scheduler got some revampings into the  mux()/ipcpause()
	    routines, and their invocations so that inter-reaper delay
	    should shorten -- should do it via signal handler ?

	* router/libdb/header.c:
	    Re-defined the envelope environment entry "authinfo"
	    to be of  nilUserSemantics -> it will accept any input

	* router/rfc822hdrs.c: hdr_print()
	    Changed the printout of  DateTime -header so that
	    when a previously existing header is available, use
	    it as is, but skip the leading white space -> no
	    more EXTRA SPACE/TAB every time a message goes thru
	    the Zmailer.

	* util/listexpand.c:
	    Add envelope environment entry "via listexpand" to the
	    produced (new) file, thus the output will be like this:

	    Received: by nic.funet.fi via listexpand id <92706-1>;
		Fri, 9 Dec 1994 08:01:41 +0200
	    Received: by nic.funet.fi id <92690-3>; Fri, 9 Dec 1994
		08:01:37 +0200

	* transports/sm/sm.c:
	* transports/smtp/smtp.c:
	    "USE_MMAP"-version had problems at scanning for/advancing/
	    pointing to proper  location in the input file.
	    The net result was a loop in sm, and wrong contents in smtp.

	* smtpserver/smtpserver.c:
	    *Sigh* Solaris signal handling is more complex than "just"
	    "signal(SIGCHLD,reaper)" in the BSD... (a generic problem)
	    Luckily it is enough to handle it with  signal(SIGCHLD,SIG_IGN)
	    which works pretty much everywhere.


Fri Nov 25 09:41:24 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c:
	    One NULL passage to the  sprintf()  caused crash on Solaris,
	    same one prints "(null)" on SunOS...

	* lib/cfgets.c:
	    Forgot to keep an eye on counted length, and thus were
	    able to overflow the buffer...  Uargh..  ("--n;" missing..)

Wed Nov 16 22:57:22 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c: run_daemon()
	    Use  rewinddir()  instead of seekdir().
	    The rewinddir() works better on BSDI systems very least,
	    and apparently works on a major part of the systems
	    (I have yet to come by a system where it doesn't work..)

Fri Nov 11 11:44:28 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* hostenv/README  -- some documenting things (barely begun..)

	* transports/libta/ctlopen.c, include/ta.h, transports/smtp/smtp.c,
	  transports/mailbox/mailbox.c, transports/sm/sm.c:
	    Made a case of using  mmap()  to map into memory the
	    sharable (R/O) parts of the mail-file..

	* router/rfc822hdrs.c: mkMessageId()
	    Altered the created message-id format a bit, previous
	    timezone name "(ett)" will now be presented as "ett", and
	    the file will get a unique sequential number on it as well
	    (unique within each instance of the routing process.)

Thu Nov 10 10:01:55 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Implemented  "Content-Conversion: prohibited" -header
	  to the transporters:
		transports/sm/sm.c
		transports/smtp/smtp.c
		transports/libta/mimeheaders.c
		transports/mailbox/mailbox.c
	  (follow the suite of the Sendmail+Emil..)

	* Eradicted  bcopy()  from the sources.  We can use  memcpy()
	  (possibly inline, possibly optimized library stuff) easily.
	  Files:
		lib/linebuffer.c	lib/token.c
		libc/bcopy.c		libc/whathost.c
		libsh/expand.c		libsh/io.c
		libsh/zsh.c		router/functions.c
		router/rfc822hdrs.c	scheduler/transport.c
		scheduler/readconfig.c	scheduler/mailq.c
		router/libdb/bind.c	transports/smtp/smtp.c
		transports/mailbox/mailbox.c
		support/nfslock/nfslock.c
	  Didn't eradict  bcopy() from  support/vacation/vacation.c !
	  It is a bit sensitive issue in there...

	* Incorporating patches for OSF1v2.0 by 
	  Franz Fischer <fischer@lpr.e-technik.tu-muenchen.de>
	     lib/allocate.c,		libc/getdtblsiz.c
	     libsh/io.c,		router/libdb/bind.c
	     router/prototypes.h,	router/router.c
	     scheduler/msgerror.c,	smtpserver/smtpserver.c
	     transports/smtp/smtp.c,	utils/makendbm/makendbm.c
	     utils/makendbm/ndbmlook.c
	  Those were some ALPHA related problems on the DNS handling,
	  and related declarations...  Also a couple "beauty points"
	  at the makendbm tools.

	* router/libdb/gdbm.c, hostenv/Linux
	    Finally re-tried compiling Zmailer on Linux, and caught
	    problems...  GDBM has changed since my previous touch
	    with it.

Mon Oct 10 01:07:24 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c  run_expandlist():
	    New "lisp-like" function to combine the functions of
	    the  listaddresses, and  zsh-script routine  maprrouter().
	    With this the router core expansion should minimize.

Fri Oct  7 16:21:53 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* lib/allocate.c:
	    Replaced one reference to  bcopy()  with  memcpy()..

	* transports/sm/sm.c:
	    Edited in the same routine as is in the  transports/smtp/smtp.c
	    to handle MIME conversions -- some details do vary..

	* transports/libta/mimeheaders.c, include/ta.h,
	  transports/smtp/smtp.c:
	    Still more restructuring, now clean (?) way to make
	    all the TEXT/PLAIN conversions on transfer:
	      -- 8BIT -> QP
	      -- 7BIT -- no change
	      -- QP   -> 8BIT (if the target is "force_8bit" ...)

Thu Oct  6 09:10:09 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c:
	    Restructured header pre-processing, now it can
	    downgrade "TEXT/PLAIN; CHARSET=ISO-8859-*"+"C-T-E: 8BIT"
	    into "TEXT/PLAIN; CHARSET=US-ASCII"+"C-T-E: 7BIT", when
	    it notices that message body is all in 7-bits..

	* transports/libta/mimeheaders.c downgrade_charset():
	    A new procedure

	* man/*
	    Some updates to man-pages..

	* SiteConfig*, Makefile{,.in}, libc/Makefile{,.in}:
	    "make install" so that it installs also  libzmailer.a
	    into user-defined  LIBRARYDIR, and  zmailer.h  into
	    user-defined INCLUDEDIR..

Thu Sep 29 09:55:40 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/mailbox/mailbox.c:
	    Mailbox access-time preservation test was the wrong way :-(

Wed Sep 28 16:22:40 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/mailbox/mailbox.c:
	    Nasty rewrite bug, which nobody had found for ages..
	    (Nobody but myself uses the MIME-rewritters ?)

Mon Sep 26 09:09:15 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dump 2.97mea

	* transports/mailbox/mailbox.c:
	    - MMDF-style mailbox separators with '-M' option!
	    - MIME-processing is now line oriented to facilitate
	      easier improving of it into handling beasts like
	      "message/alternate"  with multiple bodies..

Thu Sep 22 18:55:47 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c, transports/sm/sm.c, transports/hold/hold.c,
	  transports/mailbox/mailbox.c, transports/errormail/errormail.c,
	  scheduler/msgerror.c, scheduler/update.c, scheduler/transport.c,
	  scheduler/scheduler.c, smtpserver/smtpserver.c, libc/whathost.c,
	  lib/detach.c, transports/libta/warning.c, libmalloc/malloc.c,
	  libmalloc/getsize.c, libc/getdtblsiz.c, libsh/regexp.c,
	  libsh/execute.c, libsh/interpret.c, lib/rfc822date.c, router/db.c,
	  router/functions.c, transports/libta/ctlopen.c, hostenv/Linux:
	    Did port to Linux
	    (Various POSIX.1 problems..
	     Usually solved by "#include NDIR_H" ..)

	* transports/libta/buildbndry.c:
	    Added sequence "=_" into the boundary, thus rendering
	    it such which most likely will not be generated by any
	    MIME-compliant system in their message texts.

	* Makefile, libsh/Makefile, proto/Makefile:
	    Got rid of  /bin/ed  on file editing.
	    Instead uses AWK and SED. (Portability problems
	    to Linux caused this..)

	* Config, SiteConfig, bin/mklibsupport, ...
	    Configuring changed somewhat:
		- Compiler/compilation dependent things are on
		  file  Config
		- Site policy things (location of directories) are
		  on file  SiteConfig

	* transports/mailbox/mailbox.c ( putmail() ):
	    When CREATING a (mailbox) file, create it with ATIME of 0,
	    that is, "NEVER READ"...

Fri Sep 16 12:04:25 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/functions.c ( run_filepriv() ):
	    Added option  -M maxfilepriv  to the  $(filepriv XXX) to
	    get rid of a need to have system-wide compiled value for it.
	    Now I think we can create a system with  644 for ~user/.forward
	    and 664 for $MAILSHARE/lists/...  My users did ask for it..

Thu Sep 15 17:03:58 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/mailbox/mailbox.c ( putmail() ):
	    Added ONE space to the FROM_ line:

	      From SPC from@addr SPC SPC date
				     ^^^ NEW
	    (To be compatible with competition -- err..  sendmail..)

Sat Sep 10 02:37:31 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* After a few days of testing at MAILHOST.UTU.FI, dumped 2.96..

	* smtpserver/smtpserver.c:
	    More fixes to the complex SMTP-option handling..

	* scheduler/readconfig.c:
	    SIGUSR1 -- rereadconfig() -- did crash on memory
	    corruption due to double-freeing a buffer.

	* scheduler/*.c:
	* transports/libta/ctlopen.c:
	    More fixes on the DSN, and related topics.

	* transports/mailbox/mailbox.c:
	    A message from  "channel error" (SMTP MAIL FROM:<>, or alike)
	    got bad UNIX mailbox header.  Now the "From_"-address is
	    always "postmaster" under such circumstances.

	* transports/smtp/smtp.c:
	    Do recognize the "DSN" (and "XDSN") magic tokens of NOTARY-DSN
	    capability on the remote system.
	    (Missing: actual DSN interaction..)

	* router/rfc822.c: ( sequencer() )
	* router/libdb/header.c:
	    Will accept DSN parameters, and carry them as attributes
	    to the router tasks, and in the end will output them to
	    the channels.  The scripts need to address problems on the
	    DSN data alteration, when it comes to list-expansions.
	    (Specs are developing..)

	    Thought: Internal list-expansion needs to be expanded into
		     a full-scale C-code which invokes router for the
		     recipients, and feeds them all the necessary attributes.
		     That way it will (perhaps) be SMALLER with its memory
		     usage as compared to the present   maprrouter()
		     script function.

	* router/rfc822hdrs.c, router/rfc822.c:
	    rfc822date() returns delivered UNIX-time in RFC822
	    format INCLUDING TIMEZONE CORRECTION, but we actually
	    want to create it only when it doesn't already exist,
	    otherwise it shall be left alone.
	    Trouble on translating to the local TZ is on several
	    mismatches in the time-zones, and frankly it is too
	    painfull to be really usefull.  When the full header-
	    string is there already, off we go and use it.

	* router/rfc822.ssl, router/rfc822walk.c, router/rfc822hdrs.c:
	    Parse and "understand" "Received: ... convert XXX;" -token!

Fri Sep  2 11:35:53 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* scheduler/scheduler.c:
	* scheduler/scheduler.h:
	    Initial code for parsing DSN related transporter header
	    entries.

	* scheduler/msgerror.c:
	* scheduler/scheduler.h:
	    Print out  "Original-Envelope-Id:", and "Original-Rcpt:",
	    if data is available (if not, be quiet about them.)

	* smtpserver/smtpserver.c:
	    Accepts (and syntax-checks!) IETF-NOTARY-DRPT parameters,
	    and checks upon illegal characters on the input line, like
	    feed of control/8-bit chars on the SMTP protocol line..
	    (ASCII 0:es are also flagged!)

	* include/mail.h:
	    _CF_RCPTNOTARY-tag -- "DSN parameters for preceeding recipient"
	    _CF_DSNENVID-tag   -- "DSN ENVID data"

	* include/mailer.h:
	    enum HeaderClass got new elts:
		eToDSN, eEnvid

	* router/libdb/header.c:
	    Learned to recognize new transport envelope headers:
		todsn, envid

	* include/ta.h:
	* transports/libta/ctlopen.c:
	    "struct ctldesc" has now "envid" field, and it
	    gets filled in on the  ctlopen()  parser..
	    There is also "dsnflags", which also gets filled..

Thu Sep  1 11:13:03 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* libsh/optimizer.c:
	    Bad interaction with  USE_ALLOCA() -- the  ncode[]
	    array MUST be returnable to the callers scope, thus
	    it can't be alloca() buffer...

Mon Aug 29 22:45:09 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dump 2.95mea, and put it running at NIC.
	  Public release tomorrow ?

	* transports/smtp/smtp.c:
	    EHLO-processing had parameter bug on  smtpwrite()...

	* scheduler/msgerror.c:
	* scheduler/scheduler.c:
	   Still more wrestling with NOTARY error reporting..
	   Now it prints REWRITTEN headers also from within
	   scheduler's error reporter...

Sun Aug 28 22:26:26 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/mailbox/mailbox.c:
	* transports/smtp/smtp.c:
	* transports/libta/diagnostics.c:
	    More wrestling with NOTARY error reporting..

	* transports/errormail/errormail.c:
	    More wrestling with NOTARY error reporting..
	    Will write out REWRITTEN headers -- so that there
	    is local "Received:" entry as well!

	* scheduler/msgerror.c:
	    Still more wrestling with NOTARY error reporting..

Wed Aug 24 02:00:17 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Dumped 2.94mea

	* smtpserver/rfc821scn.c:
	    Address like:  <test@test_vms.domain>  is to be accepted,
	    even though it is illegal, if you have a strict look at
	    the standards..

	* transports/mailbox/mailbox.c:
	* transports/smtp/smpt.c:
	    Testing NOTARY message production.

	* transports/libta/diagnostics.c:
	    Produce the NOTARY diagnostics ( notaryreport() )

	* scheduler/transport.c:
	    Had a peek as to why some machines (SunOS 4.1.3 most notably)
	    can't run more than about 50 (!) channel programs at a time!
	    (Marco Hernandez @ CREN.ORG reported this problem..)
	    At the moment:  NO IDEA  :-/
	    (20 hours latter:
			Each scheduler file is kept open when it is in
			active processing, each active transporter has
			a diagnostics pipe back to the scheduler, and some
			systems have SIGNED CHARs as FD storage in FILE-
			structures..

			If transporters run with GANG-SCHEDULER, that is
			multiple files are spooled to same transporter,
			all those files must be kept open by the scheduler
			until the transporter acks them back..	)
	    (1-Jan-95: Most likely it is Open-Files resource limitation..)

	* scheduler/msgerror.c, scheduler/update.c,
	  transports/libta/diagnostic.c:
	    Revised report-back format, as well as error
	    reporting procedure fairly completely.

	    Now the transporters CAN report IETF-NOTARY data, and the
	    scheduler will then use it to report on the return email.
	    (Exact format evolves still, but one thing is sure:
	     it shall not contain \n's, nor \t's!)

	    Transporter main error reporter is  scheduler/msgerror.c,
	    NOT the  transports/errormsg/errormsg.c !
	    The latter can be used for some trivialities, though..
	    (How the heck it can get NOTARY data ? -- solved three
	     days latter..)

Tue Aug 23 21:52:18 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/smtp/smtp.c:
	    An error in EHLO responce analysis did omit the
	    final responce line, which in one case did have
	    effect:
		250-XXXXX
		250 8BITMIME
	    Thus SMTP didn't learn that the receiver is 8-bit
	    capable..

	    Added an option to  smtp:  -E   -- try EHLO only if
	    the remote system has "EHLO" on one of its initial
	    message lines...  If not, don't do it.
	    Default case is to do  EHLO  ALWAYS, and if it fails
	    ("500 Unknown command", or hangup.., use HELO..)

	* transports/errormail/errormail.c:
	* scheduler/msgerror.c:
	    Skip over the Zmailer envelope lines in the original
	    email so that the file to be written out does not
	    contain anything but RFC-822 (+MIME) headers..

Wed Aug 17 14:12:06 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* utils/listexpand.c:
	    Wrote this to test how much 650 email recipients
	    will really expand the memory of the router.
	    Instead of running a built-in expansion within
	    the aliases.cf, this is to be called externally to
	    produce similar remapping and resubmitting the file
	    back to the router. (Via a trip thru scheduler, that is)
	    	    Internal expansion: 32 MB
	    	    External expansion: 3.5 MB (yes, only about 10 %!)

	* libsh/trap.c (eval): 
	    Carelessness on referring to the "savefile" buffer.
	    It can be NULL ptr under some occasions.
	    ( -> newaliases  crashed )

Tue Aug 16 17:04:43 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Freezing and dumping 2.93mea

	* *.cf -files:
	    Processing of addresses which turn to be LOCAL to the
	    machine will with sample files (proto/cf/) produce
	    results like:
	    	(local nobody /dev/null 123)
		(local postmaster root 0)
		(local somealias "|/path/to/program args" 1234)
	    instead of the old style:
	        (local - /dev/null 123)
		(local - root 0)
		(local - "|/path/to/program args" 1234)
	    (These DO NOT contain my earlier quote additions, which
	     were for helping on expansions of esoteric addresses.
	     Oh well..  'Wrong' set of source scripts..)


	* many files..
	    FINALLY the mystic crashes on "router recipient" got
	    explained.  Stdio uses its own file descriptors, and
	    it takes only so many (resource: filehandles) leaked
	    (non closed) stdio buffers to use them all up, and even
	    though there are lotsa free fd's, there is no free
	    stdiobuf..  Mainly  router/functions.c: run_listaddrs()

	    Now the beast is written in portable manner, which only
	    assumes UNIX fd semantics (and that  dup() and dup2() work)

	    Mystic  libc/__fopen.c -file becomes used, if you define
	    -DDEBUG_FOPEN, Then it traces the usage of stdio files..

	* router/functions.c: run_daemon()
	    Fixed the memory allocation/freeup.  Memory that gets
	    freed explicitely is to be picked up from  MEM_MALLOC
	    space, not from anywhere else (did cause some cores..)

	* libs/ -- all libraries, most Makefile's, ..
	    All library files (*.a) get collected into one directory,
	    the "libs/"-directory.

	* transports/libta/mimeheaders.c:
	    Occasionally a transported file had:
	    	Content-Type: text
	    which caused carelessly written code to crash when
	    subtype (as in "text/plain") was not present at all..

	* hostenv/SunOS4.1:
	    Define  GETDTABLESIZE so that  libc/getdtblsiz.c won't
	    get compiled into a code and thus override system library
	    routine..

	* hostenv/SunOS5.2:
	    Use only  "MAILLOCK"  on Solaris, not the LOCKF at all!

	* transports/mailbox/mailbox.c:
	    On Solaris the file locking shall not be used on
	    "/dev/null"..
	    Incorporated  Edwin Allum's Solaris patches into
	    the code -- maillock() et.al.

	* transports/smtp/smtp.c:
	    Some minor tuneups on detecting when to downgrade headers,
	    and when not to.

	* libsh/interpret.c:
	    Under some conditions under-read varstack.  PURIFY test
	    use did help me to detect that at all..

      ( * At some non-defined point in history did dump
          zmailer-2.92 --- 940802 it appears to be.	)

Wed Jul 27 02:31:28 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Freeze and dump zmailer-2.91mea-940727.tar.gz

	* many files..
	    Converting   emalloc(strlen(buf)+1) + strcpy()
	    to  strsave()  did cause amazing amount of problems.
	    They aren't all gone (don't know for sure, though),
	    and some others may have surfaced.

	* transports/errormail/errormail.c, scheduler/msgerror.c:
	    Alter error reporting towards that of the IETF NOTARY
	    working group draft -- not yet there by million miles,
	    I am afraid..
	    THIS ALTERED ALSO THE SYSTEM ERROR MESSAGE FILES!

	* */Makefile{,.in}:
	    Lotsa things..  Mainly on getting things to compile
	    ALL the related libraries before linking them in.

	* transports/libta/ctlopen.c, transports/libta/mimeheaders.c,
	  transports/libta/writeheaders.c, ...
	    Improve email header conversion facilities.
	    Proper email BODY conversion is still missing..
	    (text/plain gets processed, but  other formats
	     call for improvements..)

Mon Jun 27 07:24:44 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* transports/libta/mimeheaders.c :
	    Improved processing of "Content-Type:", and
	    added "Received: .... convert rfc822-to-XXXX;..."
	    clauses.  ( to "quoted-printable" and to "8bit")

	* BUGS, ChangeLog, README, README.solaris, INSTALL :
	    Updated documentation, worklist, ....


Sun Jun 26 01:31:54 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Freeze and dump   zmailer-2.90-940626.tar.gz

	* router/functions.c (run_listaddrs):
	    An empty "include" file (empty .forward, as was the case)
	    caused SIGSEGV due to a NULL-ptr dereference.
	    Created smarter error handling.

	* router/rfc822.ssl:
	    Teached "AMailboxList" to understand '<>' as a valid
	    address ("channel error" source..) as is often case
	    with error-messages from mailers..  Now it accepts:
			From: <>

	    That unearthed a lot of problems elsewere with NULL-pointer
	    dereferrence and now don't even remember where everywhere...
	    ( s_copy_tree() at least )

Sat Jun 25 01:31:54 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* libsh/builtins.c, libsh/path.c, libsh/vcall.c,
	  router/functions.c, router/rfc822.c:
	    USE_ALLOCA -- use alloca() for some local buffer allocations
	                  which don't need to be preserved over the scope
			  of stack-frame existance.

	* hostenv/ :
	    Don't select on own  getopt() vs. system supplied one.
	    Use the own one always.

	* libsh/interpret.c:
	    Improve interaction with the  getopt()

	* libmalloc/ :
	    Improved the integration with the Zmailer -- this is a new
	    version of the "Toronto Malloc", and quite a headache to
	    integrate..

Tue Jun 21 09:52:21 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* router/rfc822.c (run_rfc822): 
	    Argument processing bombed -- possibly due to usage of
	    the GCC, possibly due to something else.


Tue Jun 21 09:52:21 1994  Matti E. Aarnio  (mea@oj287.astro.utu.fi)

	* Created this file to track changes

	  Building Zmailer 2.90xxx -- that is, alphas/betas of 3.0

	* Pre-ChangeLog transcript follows:


Various features/fixes done at Univ of Turku by Matti Aarnio <mea@utu.fi>


Compiling with  GCC 2.3.3, and 2.4.5 with -Wall  -- generated a lot of
warnings, which one after another have been eradicted..  Found also some
real bugs with that.  (BUT NOT ALL!)

I am compiling it on SunOS 4.1.3 with  GCC 2.5.6, and "-traditional"
option..


Referred <Emil> is IDA's big-brother (IDA-sendmail's MIME processing toolbox)


Multilevel incoming mail priorizing into router:
	- zmailer(3) has  mail_priority  variable, which must be set
	  to desired value before  mail_close() is called.
	  Value 0 means normal behaviour (and is the default).
	  Any positive value means picking further down into
	  ROUTERDIRS Z-environment variable.  (See zmailer(3), and router(8))

	- compat/sendmail/sendmail accepts  -Pnn, which is feed to
	  mail_priority (see above)  As an alternate, it also honours
	  environment variable   MAILPRIORITY which has numeric value.
	<Maybe "Precedence:" header should be processed ?>

	- Router processes at first all files from the  POSTOFFICE/router/
	  directory, and once it is empty, it looks into alternates.
	  If alternate had anything to work upon, directory scanning returns
	  to the first level dir.
	  As an end result, the further messages are into the alternate
	  directories, that less frequently they get processed.

router/functions.c:
router/conf.c:
router/dateparse.c:
router/rfc822.c:
router/router.c:
	- Implemented first real multi-router system with working locks.
	- Extended it with ROUTERDIRS - multiple priority levels.
	- Added some {}'s into dateparse.c
	- Added configurability of  $(filepriv ...) into conf.c
	- Accepted and inserted a patch on RFC header processing which
	  blew on "header"-line like:  ": some text"
	  (Some programs inserted such junk into HEADERS - tin among them.)
	  Source: "Michael S. Shappe" <mss1@cornell.edu>
	- Added option  -E  into $(listaddresses ...) creating
	  an "Errors-To:" header, and making sure the SMTP
	  'MAIL FROM:<>' contains that address.
	<Should use Emil ?>

router/libdb/bind.c:
	- added query-type 'any' to be used in place of '-t cname' on
	  DNS canonization. (In manner of  BSD sendmail.)

smtpserver/smtpserver.c:
	- SMTP-server does check syntax of RFC821 inputs, specifically
	  it checks "MAIL FROM:< .... >" and "RCPT TO:< .... >" syntaxes,
	  and is adamant with them.  -- many misconfigured PC-mail programs
	  have been found with it...   --  rfc821scn.c  does most of it.
	- Uses  Remote Authentication Service (RFC 1413) to (try to)
	  see who is it, who contacts us.  (See also: "libauth/*")

	- SMTP-server supports RFC 1425-1428   EHLO greeting (in place of
	  HELO command), and related  8BITMIME, and SIZE extensions.
	  Summa summarum:  Now we advertice that we can accept 8-bit SMTP,
	  not just blindly accept it..
	- SMTP-server fully uses RFC 1427 SIZE feature (if user defines it),
	  and thus can report "insufficient storage space at the moment",
	  if sender tries to send email which is far too big..
	<Should check MIME-compiance of the message, if it has 8-bit stuff
	 in it, and not give   250 Ok  if check fails.  Also maybe should
	 check syntax of RFC822 headers, and complain at the "." time, if
	 that check fails..  Precedence can be found from PP.>
	<Should use Emil ?>


transports/libta/routermxes.c (new)
	- router can feed target "mx" information, same as it got when
	  analyzing routing, to the actual transporter program.
	  In place of a  hostname,  it codes:  ((mxer)(mxer mxer)(mxer))
	  (This is into the router results!)

transports/libta/ctlopen.c
transports/libta/mimeheaders.c (new)
	- new way to read in the headers, and to handle them when
	  rewriting them.  Original was to get them in as single
	  multiline string.  This splits them to individual lines
	  and keeps track of them in that way..


transports/smtp/smtp.c:
	- Better support for local sender verbose trace
	- If connection setup fails (channel open timeout, or remote
	  closes the channel upon our face -- whatever before HELO),
	  we try to talk to next assigned MX target.
	- Support of RFC 1425-1428  8BITMIME transport
	- Uses RFC 1427 SIZE=, if receiving system knows it (EHLO protocol)
	- Downgrades message to "Content-Transfer-Encoding: QUOTED-PRINTABLE",
	  1) "Content-Transfer-Encoding: 8BIT" is present
	     in the primary headers,
	  2) remote system has no  8BITMIME capability,
	  3) message contains 8-bit characters.
	- Downgrades message header to "Content-Transfer-Encoding: 7BIT",
	  if message data is 7-bit, and said header is present.
	- If "C-T-E:" was turned to "7BIT", and "Content-Type:" was
	  "text/plain; charset=ISO-*", then update "C-T:" to have
	  "charset=US-ASCII" -- simplifies things (?)
	- Doesn't do full job of analyzing things like "Content-Type:",
	  rather assumes that "C-T-E:" is present on "C-T: text/plain"
	  messages, and any complex things are built properly.
	- setsockopt() arguments corrected.
	<Should use Emil>

transports/sm/sm.c:
	- Support for local sender verbose trace
	- Downgrades messages in same manner as smtp does, if "sm"
	  doesn't have "-8" in its options when running some subchannel.
	<Should use Emil>


transports/mailbox/mailbox.c:
	- Allow local addresses to be   user@domain, and use that kind
	  of addresses on storing mails to mailboxes.
	<Really should only do header rewrites into FQDN format, and
	 have local users feed to via scheduler as   `username' (non FQDN)>
	- Use proper NFS locking  ( lockf() )
	<Should use Emil>
	- Partial MIME converter:
		A  text/plain; Quoted-Printable  message will be converted
		into  8BIT  format, IF the "mailbox" program is called with
		argument: "-8"!  (If that argument is not present, nothing
		new is done.)

libc/libc.a:
	- mail_open() does a  whathost() to figure out NFS-mounted
	  postoffices.  <Guy Middleton>
	- using free()d storage -- Matthias Urlichs, et.al. in   mail.c
	- whathost.c  generalizes NFS mountpoint figuring system.
	- mail_close() is affected by  mail_priority variable, as well
	  as  ROUTERDIRS  Z-environment.  See  zmailer(3)

libauth/*:
	- RFC 1413 using identd protocol using library.
	  (Host configuration option  USE_AUTH)


compat/sendmail/sendmail:
	- Accept (and ignore) options:  -oem, -J, -em
	- Accept option -Pnn, see above about  mail_priority (zmailer(3))
	- Making sure "to <address>" -lines contain only valid
	  characters -- well, don't contain newlines!
	- Accept "From " (FROM-SPACE) input (sendmailism), and
	  drop such line away, if next line looks like a real header.
	- Do binary (-t option) processing buffer at a time, instead of
	  a character at a time..
	<Check MIME-headers, and correct 8-bit handling ???>
	<Check submitted headers (syntactically), and barf if fail ???>

compat/rmail/rmail:
	- Bill Wisner's rmail patch applied.


lib/rfc822scan.c:
	- Nested comments fix -- don't remember who
	- Kicked out bit-stripping -- headers are 7-bit stuff!

lib/linebuffer.c:
	- Explicit exits with  ferror() amd feof() conditions!
	  Suggested by  haa@cs.hut.fi
	- Made a serious mistake, and two weeks later found it..
	- accepted a patch from  Ken Lalonde <ken@cs.toronto.edu>,
	  finally did it corrently !

ssl/ssl.c:
	- array space reservation one-off, fix by 	Matthias Urlichs

utils/makendbm/
	- wrote whole package

utils/zmstats.perl
	- wrote this small piece

utils/fullnamealiasmaker.perl
	- wrote this (larger) piece

support/vacation/
	- extended to behave somewhat like SunOS  vacation(1), only better :)

scheduler/mailq.c:
	- Moved function   getmntpt()  to  (new file) libc/whathost.c