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
|
2008-10-26 Paul J Stevens <paul@nfg.nl>
* VERSION:
bump version
2008-10-25 Paul J Stevens <paul@nfg.nl>
* db.c:
more fixes for #725
2008-10-07 Paul J Stevens <paul@nfg.nl>
* VERSION:
bump version
2008-10-06 Paul J Stevens <paul@nfg.nl>
* dbmail.conf, dbmodule.c, man/Makefile.am, man/dbmail.conf.txt:
add missing entries to dbmail.conf (fixes #731)
2008-10-05 Paul J Stevens <paul@nfg.nl>
* db.c:
accomodate simulaneous mailbox creation and subscription (hinote)
(fixes: #723)
2008-10-04 Paul J Stevens <paul@nfg.nl>
* check_dbmail_misc.c, misc.c, test-scripts/testlist.txt:
allow #Users* type list patterns (fixes: #725)
* ChangeLog, db.c:
use MAX/MIN to determine first unseen and uidnext (fixes: #709)
2008-08-26 Paul J Stevens <paul@nfg.nl>
* db.c:
use the mailQuota field in ldap during delivery (fixes: #721)
2008-07-14 Paul J Stevens <paul@nfg.nl>
* modules/dbpgsql.c:
fix for bug #698 (ahodgson)
2008-07-02 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.11-rc1
2008-07-01 Paul J Stevens <paul@nfg.nl>
* debug.c:
fix off-by-one error in debug.c (closes: #712)
* imap4.c:
silence unnecessary errors on read-stream (hinote) (closes: #710)
2008-06-09 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
imap search fixes
2008-04-10 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
force headervalues into the database charset
2008-03-24 Paul J Stevens <paul@nfg.nl>
* debian/control, debian/dbmail.config, debian/rules:
debian updates
* VERSION, debian/changelog, debian/control, debian/dbmail.postrm:
v2.2.10
2008-03-15 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.10-rc2
* modules/authsql.c:
always treat deliver_to as string type in queries (bug: #676)
* sql/mysql/create_tables.mysql:
cleanup the mysql schema
2008-03-07 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.10-rc1
2008-03-05 Paul J Stevens <paul@nfg.nl>
* man/dbmail-imapd.txt:
adjust manpage dbmail-imapd after asciidoc update
* README.usermap:
update README for usermap
* db.c, misc.c:
fix the usermap logic
* dbmail-message.c:
rebuild grelation headercache
2008-03-04 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
make internal grelation table of headers case insensitive
2008-02-09 Paul J Stevens <paul@nfg.nl>
* VERSION, debian/changelog, debian/po/ja.po, imap4.c, timsieve.c:
version 2.2.9
* db.c:
prevent regression in icheck_physmessages
* debian/po/ja.po:
update japanese debian po file
2008-01-21 Paul J Stevens <paul@nfg.nl>
* db.c:
use outer join instead of subselect during icheck_physmessages
2008-01-20 Paul J Stevens <paul@nfg.nl>
* check_dbmail_message.c, dbmail-mailbox.c:
do from escaping during export
* dbmail-message.c:
allocate less and fix firstline logic
2008-01-20 Paul J Stevens <paul@nfg.nl>
* VERSION, debian/changelog:
2.2.9rc1
* dbmail-message.c:
prevent possible segfault
2008-01-19 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
call register_header from dbmail_message_set_header (aaron)
2008-01-10 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
make body searches case-sensitive to accomodate postgresql
2008-01-07 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
fix another segfault during export (bug #668)
2008-01-03 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
use join compatible with mysql 4.1 during export
* dbmail-mailbox.c:
fix segfault (bug #668)
* man/dbmail-users.8:
update generated manpage
2007-12-17 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, dbmail-message.c:
do not add From_ header as part of the message during insertion
* check_dbmail_message.c, dbmail-mailbox.c:
add a missing case of dm_strtoull in dbmail_mailbox_get_set
2007-12-16 Paul J Stevens <paul@nfg.nl>
* modules/authldap.c:
ldap reconnect fix (bug #663)
* modules/authldap.c:
ldap anonbind fix (bug #662)
* check_dbmail_common.c, config.c, debug.c, debug.h:
silence log messages from glib (bug #656)
2007-12-13 Paul J Stevens <paul@nfg.nl>
* debian/changelog:
update debian/changelog
2007-12-12 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.8
2007-12-06 Paul J Stevens <paul@nfg.nl>
* debian/changelog:
update debian changelog
2007-12-05 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.8rc1
* check_dbmail.h, check_dbmail_message.c, dbmail-message.c:
avoid gmime mbox parser to prevent unwanted message truncation
2007-11-29 Paul J Stevens <paul@nfg.nl>
* modules/dbmysql.c:
remove silent autoreconnects in the mysql driver to prevent resetting
the client encoding (bug #655)
* dbmail-mailbox.c:
add correct From_ headers while exporting email (closes #656)
2007-11-25 Paul J Stevens <paul@nfg.nl>
* check_dbmail_misc.c, dbmail-mailbox.c, misc.c, misc.h:
add dm_strtoull call that will return 0 and set errno when the string
conversion would result in a negative integer
2007-11-22 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-mailbox.c, imapcommands.c,
test-scripts/testimap.py:
disallow negative seq-numbers
2007-11-18 Paul J Stevens <paul@nfg.nl>
* INSTALL:
minor pgsql update in INSTALL
2007-11-17 Paul J Stevens <paul@nfg.nl>
* check_dbmail_misc.c, misc.c:
fix misunderstanding of rfc2047 encoded addresses (bug #655)
2007-11-15 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_imapd.c, check_dbmail_message.c,
check_dbmail_misc.c, misc.c:
make imap_cleanup_address also handle addresslists
2007-10-29 Paul J Stevens <paul@nfg.nl>
* debug.c:
fix ifdef for BSDs
2007-10-27 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.7
2007-10-26 Paul J Stevens <paul@nfg.nl>
* contrib/startup-scripts/debian/dbmail-imapd,
contrib/startup-scripts/debian/dbmail-lmtpd,
contrib/startup-scripts/debian/dbmail-pop3d:
removed old debian scripts
2007-10-24 Paul J Stevens <paul@nfg.nl>
* check_dbmail_misc.c, misc.c:
fix a mistake in the state machine used in dbmail_iconv_text_decode
2007-10-20 Paul J Stevens <paul@nfg.nl>
* pool.h:
decrease HARD_MAX_CHILDREN to 300 to avoid segfaults
2007-10-19 Paul J Stevens <paul@nfg.nl>
* VERSION:
v2.2.7-rc4
* pool.h:
increase HARD_MAX_CHILDREN to 1024
* modules/authldap.c:
small logging change in dm_ldap_mod_field
* man/dbmail-export.8, man/dbmail-imapd.8, man/dbmail-lmtpd.8,
man/dbmail-pop3d.8, man/dbmail-sievecmd.8, man/dbmail-smtp.1,
man/dbmail-timsieved.8, man/dbmail-users.8, man/dbmail-util.8,
man/dbmail.1, man/dbmail.conf.5:
updated manpages
2007-10-16 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_imapd.c, check_dbmail_message.c,
check_dbmail_misc.c, dbmail-message.c, misc.c, misc.h:
cleanup the iconv infrastructure a bit more
2007-10-12 Paul Stevens <paul@nfg.nl>
* dbmail-message.c:
missed a case of utf7 decoding (bug #649)
* debian/dbmail.init, debian/dbmail.postinst, debian/dbmail.preinst:
packaging updates
2007-10-09 Paul J Stevens <paul@nfg.nl>
* debian/dbmail.init, debian/dbmail.postinst, debian/dbmail.preinst:
packaging updates
2007-10-06 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, imapcommands.c:
make noop work again
2007-10-05 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-imapsession.h, imapcommands.c:
allow IDLE command after authentication (bug #648)
* modules/dbsqlite.c:
remove sqlite3 internals
* VERSION:
v2.2.7-rc3
* ChangeLog, check_dbmail_misc.c, misc.c, misc.h:
work around incomplete utf7 decoding by gmime (bug #649)
* ChangeLog, dbmail-mailbox.c, dbmail-mailbox.h:
respect charset argument during search (bug #646)
* dbmail.h.in:
fix build for freebsd after _XOPEN_SOURCE change
2007-10-02 Paul Stevens <paul@nfg.nl>
* ChangeLog, pipe.c:
limit the scope of the transaction during message insertion to avoid
deadlocks
* check_dbmail_misc.c, misc.c:
generate better randomness by using the glib calls in create_unique_id
2007-09-30 Paul J Stevens <paul@nfg.nl>
* dbmail.h.in:
fix bug #643
2007-09-28 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c, dbmail-mailbox.h:
respect charset argument during search (bug #646)
2007-09-23 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.c:
Comment out send_alert for execution errors (always caused by
malformed addresses at this time, and very annoying).
Clean up the send_notify function and clarify that it is unsupported
at this time.
2007-09-18 Paul J Stevens <paul@nfg.nl>
* VERSION:
tag and release 2.2.7-rc1
2007-09-16 Paul Stevens <paul@nfg.nl>
* ChangeLog, misc.c:
fix regression
2007-09-15 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/control, debian/dbmail.postinst,
debian/dbmail.postrm, debian/patches/00-etch.dpatch,
debian/patches/00list, debian/rules:
debian updates
* debian/changelog:
v2.2.6
* ChangeLog:
blah
2007-09-14 Paul J Stevens <paul@nfg.nl>
* check_dbmail_message.c, db.c, dbmail-imapsession.c, misc.c:
valgrind cleanups
2007-09-05 Paul J Stevens <paul@nfg.nl>
* db.c:
fix regression for bug #634 (bug #642)
2007-09-02 Paul J Stevens <paul@nfg.nl>
* sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_from_2.0_to_2.2.pgsql:
fix typo
2007-08-31 Paul J Stevens <paul@nfg.nl>
* check_dbmail_db.c, db.c:
fix regression for bug #639 (bug #641)
2007-08-27 Paul J Stevens <paul@nfg.nl>
* db.c, db.h, dbmail-mailbox.c, dbmail.h.in, dbmailtypes.h,
man/Makefile.in, modules/dbmysql.c, modules/dbpgsql.c,
modules/dbsqlite.c, sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_from_2.0_to_2.2.pgsql:
add partial index to headervalue field (bug #634)
2007-08-26 Paul J Stevens <paul@nfg.nl>
* memblock.c, memblock.h:
memblock cleanup (bug #628)
2007-08-24 Paul J Stevens <paul@nfg.nl>
* check_dbmail_db.c, db.c:
escape underscore in mailbox names during matching (bug #639)
2007-08-13 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.c:
More testing and better debugging on fix for bug #632.
2007-08-07 Aaron Stone <aaron@serendipity.cx>
* sievecmd.c:
Added new -e option to edit scripts in-place.
* export.c:
Added new -D option to set deleted status on messages.
* main.c, user.c:
Cleaned up the help text a little bit.
* modules/sortsieve.c:
Accepted modified version of patch for bug #632.
2007-07-28 Paul J Stevens <paul@nfg.nl>
* db.c, db.h, maintenance.c:
add missing integrity check (bug #305)
* serverchild.c:
fix trivial compiler warning
2007-07-27 Aaron Stone <aaron@serendipity.cx>
* imapcommands.c:
Accepted patch from Jonathan Fealy to allow unsubscribe from
nonexistent mailboxes.
2007-07-26 Paul J Stevens <paul@nfg.nl>
* sql/mysql/create_tables.mysql, sql/postgresql/create_tables.pgsql,
sql/sqlite/create_tables.sqlite:
add missing indexes
2007-07-22 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
update client state after authentication
* pool.c:
retry locking before logging an error
* serverchild.c:
final selfpipe mod
* dbmail-imapsession.c, dbmail-imapsession.h,
test-scripts/testimap.py:
speedup fetch by buffering output
2007-07-21 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-imapsession.h, imap4.c:
login_/timeout cleanup
* dbmail.h.in:
GETCONFIGVALUE trimmed
* serverchild.c:
selfPipe modification
2007-07-19 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
do not add x-dbmail-physmessage-id header during retrieval
2007-07-16 Aaron Stone <aaron@serendipity.cx>
* export.c, man/dbmail-export.txt:
Require the -u argument, add support for wildcards.
2007-07-15 Paul J Stevens <paul@nfg.nl>
* modules/authldap.c:
use sigaction instead of signal in ldap code
2007-07-14 Paul Stevens <paul@nfg.nl>
* VERSION:
v2.2.6-rc1
2007-07-12 Aaron Stone <aaron@serendipity.cx>
* export.c, man/dbmail-export.txt:
New options: -b basedir, -r recursive.
* dbmail-mailbox.c:
Tell GMime that it does not own the dbmail_mailbox_dump file pointer.
* contrib/dbmail-removeversion.patch contrib/expirebox.sh:
Removed obsolete patch (see banner option in dbmail.conf) and obsolete
mail expiry script (see dbmail-export -s, -m, -d options).
2007-07-06 Aaron Stone <aaron@serendipity.cx>
* dsn.c, dsn.c, pipe.c, main.c:
Properly fixed incorrect dsn class for mailbox over quota (closes bug
#617)
* dbmailtypes.h, config.c, dbmodule.c, modules/dbsqlite.c,
modules/dbmysql.c, modules/dbpgsql.c:
Added three new config options for escalating the trace level of slow
queries. Moved query timing from each modules/dbfoo.c to dbmodule.c.
* export.c:
Removed extra words from help output.
2007-07-05 Paul J Stevens <paul@nfg.nl>
* modules/dbsqlite.c:
add incremental sleep time between retries in case of sqlite locks
2007-07-04 Paul Stevens <paul@nfg.nl>
* modules/dbsqlite.c:
add retry loop to sqlite db_query
2007-07-02 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
fix g_strncasecmp problem (JF)
* ChangeLog, serverparent.c:
allow zero spare children
* dbmail-imapsession.c, imapd.c:
fix sig11 in iconv code (bug #579)
2007-07-01 Paul Stevens <paul@nfg.nl>
* Makefile.in, list.c, man/Makefile.in:
minor g_list_dedup fix and update of autoconf chain
2007-06-30 Aaron Stone <aaron@serendipity.cx>
* dbmail-user.c:
Some cleanups.
* list.c:
Some work on the g_list_dedup function.
* maintenance.c:
Added new option '-s' to remove dangling aliases.
* check_dbmail_list.c, Makefile.am:
Added test of the g_list_dedup function.
2007-06-29 Aaron Stone <aaron@serendipity.cx>
* dsn.c:
Fixed incorrect dsn class for mailbox over quota (closes bug #617)
* db.c, modules/dbmysql.c, modules/dbpgsql.c, modules/dbsqlite.c:
Added query and transaction timing
* sievecmd.c:
General cleanups
* modules/authsql.c:
Fixed query result getting freed out from under us (closes bug #618)
2007-06-29 Paul J Stevens <paul@nfg.nl>
* lmtp.c:
make lmtpd return temp failure in case of database failure during
insertion
* check_dbmail_db.c, db.c:
catch potential segfault
2007-06-28 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
send fetch updates during mailbox_status run
2007-06-25 Aaron Stone <aaron@serendipity.cx>
* imap4.c, lmtp.c, pop3.c, timsieve.c, man/dbmail.conf.txt:
Added configurable login banner (closes bug #611)
* pop3.c, dbmail.conf, serverparent.c, timsieve.c, serverchild.c,
lmtp.c, dbmailtypes.h, server.c, dbmail-imapsession.c,
dbmail-imapsession.h:
Added configurable login timeout (closes bug #616)
2007-06-24 Aaron Stone <aaron@serendipity.cx>
* sort.c:
Resolved a trivial compiler warning.
* dbmail-user.c:
List forwards as part of 'dbmail-user -l' output (closes bug #605)
* auth.h, authmodule.h, authmodule.c, modules/authsql.c,
modules/authldap.c:
New function auth_get_known_aliases.
* list.h, list.c:
New function g_list_dedup.
* man/fixsp.pl, man/Makefile.am:
Added a Perl script to fix the man page output.
2007-06-23 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-mailbox.c, serverparent.c,
test-scripts/testimap.py:
fixing leaks
* dbmail-imapsession.c, dbmail-mailbox.c, imapcommands.c:
add some checks to avoid segfaults
* imapcommands.c:
issue BAD for thread=references
* dbmail-imapsession.c:
silence false error
2007-06-22 Aaron Stone <aaron@serendipity.cx>
* server.c:
Reopen log files after a HUP (closes bug #615)
2007-06-21 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
collapse BETWEEN clause if hi and low values are equal
* dbmail.conf, imapcommands.c:
allow override of CAPABILITY message so people can disable stuff like
IDLE
2007-06-19 Paul Stevens <paul@nfg.nl>
* modules/authldap.c, serverchild.c:
add sigpipe handling during ldap disconnect
* dbmail-imapsession.c, dbmail.conf:
add idle_timeout to dbmail.conf
* db.c, dbmailtypes.h, modules/dbmysql.c, modules/dbpgsql.c,
modules/dbsqlite.c:
add timewindow to suppress_duplicate detection
2007-06-18 Paul Stevens <paul@nfg.nl>
* sort.c:
log suppress_duplicate at TRACE_MESSAGE
* ChangeLog, dbmail.conf, sort.c:
add suppress_duplicate to dbmail.conf
* db.c:
check for resent-message-id during duplicate check
* db.c, db.h, sort.c:
avoid duplicate message-ids in a mailbox
* dbmail-imapsession.h:
add missing prototype declaration
2007-06-18 Paul J Stevens <paul@nfg.nl>
* dbmail.conf, sort.c:
add suppress_duplicate to dbmail.conf
* db.c:
check for resent-message-id during duplicate check
* db.c, db.h, sort.c:
avoid duplicate message-ids in a mailbox
* dbmail-imapsession.h:
add missing prototype declaration
2007-06-17 Paul Stevens <paul@nfg.nl>
* ChangeLog, dbmail-imapsession.c, imap4.c:
test and finish IDLE using thunderbird and outlook
* dbmail-imapsession.c, dbmailtypes.h, debian/rules, imap4.c,
imap4.h, imapcommands.c, imapcommands.h, server.c, serverchild.c:
add IDLE capability
2007-06-17 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, imap4.c:
test and finish IDLE using thunderbird and outlook
2007-06-16 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmailtypes.h, debian/rules, imap4.c,
imap4.h, imapcommands.c, imapcommands.h, server.c, serverchild.c:
add IDLE capability
* dbmail-imapsession.c, dbmail-imapsession.h,
test-scripts/testimap.py:
include deleted messages while looking for msginfo
2007-06-03 Paul J Stevens <paul@nfg.nl>
* check_dbmail_misc.c, dbmail-imapsession.c, dbmail-message.c,
misc.c, misc.h:
iconv cleanup
2007-06-02 Paul Stevens <paul@nfg.nl>
* ChangeLog, VERSION:
bump version
* ChangeLog, sql/mysql/create_tables.mysql:
add default encoding to mysql tables to match the default config file
2007-06-10 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.c:
Now use the correct Sieve name for vacation :handle (closes bug #608).
2007-06-02 Paul J Stevens <paul@nfg.nl>
* VERSION:
bump version
2007-06-01 Paul J Stevens <paul@nfg.nl>
* sql/mysql/create_tables.mysql:
add default encoding to mysql tables to match the default config file
2007-05-30 Paul Stevens <paul@nfg.nl>
* ChangeLog, db.c:
avoid segfault while getting uidnext for empty mailbox
* debug.c:
add hostname, process name and id to error log
* test-scripts/cleanlog.sh:
add new file
2007-05-30 Paul J Stevens <paul@nfg.nl>
* db.c:
avoid segfault while getting uidnext for empty mailbox
* debug.c:
add hostname, process name and id to error log
* test-scripts/cleanlog.sh:
add new file
2007-05-27 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-mailbox.c:
fix NOT searches and add optimization (bug #602)
* ChangeLog, check_dbmail_mailbox.c, dbmail-mailbox.c, imapcommands.c:
fix the annoying invalid message range problem
2007-05-26 Paul J Stevens <paul@nfg.nl>
* imapcommands.c:
fix search response for empty boxes or empty results
* acl.c, test-scripts/testimap.py:
make username in ACL response a proper astring (bug #599)
2007-05-22 Paul J Stevens <paul@nfg.nl>
* VERSION:
bump version
* ChangeLog, dbmail-mailbox.c, imapcommands.c:
be more carefull before sending BAD invalid message range response
2007-05-20 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-imapsession.h, dbmail-mailbox.c,
imap4.c, imapcommands.c:
fix double free
* ChangeLog, imapcommands.c:
always cleanup after FETCH
* configure, dbmail-imapsession.c, imapcommands.c:
release bodyfetch earlier
* dbmail-imapsession.c, dbmail-mailbox.c, imapcommands.c,
test-scripts/testimap.py:
work on expunge response (bug #591)
* dbmail-imapsession.c, imapcommands.c, test-scripts/testimap.py:
merge
* db.c:
cosmetics
* test-scripts/torture.sh:
fix typo
* test-scripts/torture.sh:
add torture imapsync test by Peter Rabbitson
2007-05-16 Paul Stevens <paul@nfg.nl>
* ChangeLog, check_dbmail_deliver.c, check_dbmail_imapd.c,
check_dbmail_message.c, check_dbmail_util.c, config.in, db.c,
dbmail-imapsession.c, dbmail-mailbox.c, dbmail-user.c, dm_match.c,
export.c, imapcommands.c, imapd.c, main.c, maintenance.c, misc.c,
user.c:
g_list_free cleanup
* .gitignore:
add file
* debian/dbmail.postrm:
don't depend on debconf during purge
* debian/patches/00-dbmail_conf.dpatch,
debian/patches/00-etch.dpatch, debian/patches/00list:
debian updates
* debian/changelog:
update
2007-05-19 Aaron Stone <aaron@serendipity.cx>
* dbmail-imapsession.c:
Fixes for two more memory leaks
2007-05-16 Paul J Stevens <paul@nfg.nl>
* check_dbmail_deliver.c, check_dbmail_imapd.c,
check_dbmail_message.c, check_dbmail_util.c, config.in, db.c,
dbmail-imapsession.c, dbmail-mailbox.c, dbmail-user.c, dm_match.c,
export.c, imapcommands.c, imapd.c, main.c, maintenance.c, misc.c,
user.c:
g_list_free cleanup
* .gitignore:
add file
* debian/dbmail.postrm:
don't depend on debconf during purge
* debian/patches/00-dbmail_conf.dpatch,
debian/patches/00-etch.dpatch, debian/patches/00list:
debian updates
* debian/changelog:
update
2007-05-15 Paul Stevens <paul@nfg.nl>
* ChangeLog, check_dbmail_mailbox.c, dbmail-mailbox.c,
test-scripts/testimap.py:
rebuild uid_msn mapper (bug #578)
* debian/changelog:
update debian changelog for upcoming release
* misc.c:
fix small leaks
2007-05-15 Aaron Stone <aaron@serendipity.cx>
* db.c, dbmail-imapsession.c, dbmail-mailbox.c:
Fixed memory leaks around g_list_slices
* configure.in, dbmail.h.in, acinclude.m4, VERSION:
Added a note that the version number is kept in this new VERSION file,
both to cut down on automake regenerations between releases and to
allow for a Subversion post-commit script to plant the version number
* export.c main.c maintenance.c serverparent.c sievecmd.c user.c:
Use the new PRINTF_THIS_IS_DBMAIL macro.
2007-05-15 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-mailbox.c, test-scripts:
rebuild uid_msn mapper (bug #578)
* debian:
update debian changelog for upcoming release
* misc.c:
fix small leaks
2007-05-14 Paul Stevens <paul@nfg.nl>
* ChangeLog, debian, man:
downcase all debconf keys
* configure, configure.in, debian:
2.2.5-rc2
2007-05-14 Paul J Stevens <paul@nfg.nl>
* debian:
downcase all debconf keys
* configure, configure.in, debian:
2.2.5-rc2
2007-05-13 Paul Stevens <paul@nfg.nl>
* ChangeLog, misc.c:
only iconv_strdup non-utf8 values from database
* check_dbmail_misc.c, dbmail-message.c, dbmail-message.h, misc.c,
misc.h, test-scripts:
cleanup the convert_8bit functions
* dbmail-imapsession.c, imapcommands.c, test-scripts:
be more careful about re-opening mailbox during sessions
2007-05-13 Aaron Stone <aaron@serendipity.cx>
* maintenance.c, db.h, db.c, man/dbmail-util.txt:
Added new option '-r time' to clear old replycache entries. Cleaned
up the timestrings used to find old ipllog and replycache entries.
2007-05-13 Paul J Stevens <paul@nfg.nl>
* misc.c:
only iconv_strdup non-utf8 values from database
* check_dbmail_misc.c, dbmail-message.c, dbmail-message.h, misc.c,
misc.h, test-scripts:
cleanup the convert_8bit functions
* dbmail-imapsession.c, imapcommands.c, test-scripts:
be more careful about re-opening mailbox during sessions
2007-05-12 Paul Stevens <paul@nfg.nl>
* Makefile.in:
autotools update
* Makefile.am, db.c, dbmail-imapsession.c, dbmail-mailbox.c,
dbmailtypes.h, dm_imaputil.c, dm_imaputil.h, export.c, imap4.c,
modules:
add message selection using IMAP SEARCH syntax and stdout output to
export
* dbmail-imapsession.c:
fix typo
* ChangeLog, dbmail-imapsession.c:
send EXISTS response when message count stays the same (bug #591)
2007-05-12 Aaron Stone <aaron@serendipity.cx>
* pop3d.c, pop3.c, imapd.c, server.c, serverchild.c, dbmailtypes.h,
lmtpd.c, lmtp.c, timsieved.c, timsieve.c, dbmail-imapsession.c:
Changes to timeout handling (closes bug #517)
* export.c:
Added -d command line option to delete messages after they have been
exported (closes bug #380)
* man/dbmail-export.txt man/dbmail-conf.txt man/footer.txt:
Added documentation for the encoding options in dbmail.conf, for the
new command line options in dbmail-export, and changed my title.
2007-05-11 Aaron Stone <aaron@serendipity.cx>
* dbmail-imapsession.c:
Set IMAP args array members to NULL after freeing them (closes bug
#590)
* dbmail-message.c:
Remove setvbuf call (closes bug #587)
2007-05-10 Aaron Stone <aaron@serendipity.cx>
* dbmail-imapsession.c:
Changed exists and recent to be unsigned integers, as they are
elsewhere (closes bug #586)
2007-05-10 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
always send EXISTS response during status update
* AUTHORS, ChangeLog, dbmail-imapsession.c, dbmail-mailbox.c,
test-scripts:
minor cleanups
* dbmailtypes.h:
define u64_t guint64
2007-05-10 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-mailbox.c, test-scripts:
minor cleanups
* dbmailtypes.h:
define u64_t guint64
2007-05-09 Paul Stevens <paul@nfg.nl>
* dbmail-mailbox.c, misc.c, test-scripts:
work on merging search results correctly
2007-05-08 Paul Stevens <paul@nfg.nl>
* check_dbmail_db.c, dbmail-message.c, dbmailtypes.h, modules:
only use lower(headername) in dbpgsql
2007-05-08 Aaron Stone <aaron@serendipity.cx>
* lmtp.c:
Accepted modified patch to handle invalid commands (closes bug #585)
2007-05-06 Paul Stevens <paul@nfg.nl>
* AUTHORS:
make the AUTHORS file git compliant
2007-05-06 Aaron Stone <aaron@serendipity.cx>
* dbmail.h.in authmodule.c dm_getopt.h modules/authsql.c
modules/authldap.c modules/dbpgsql.c sortmodule.c dbmailtypes.h
dbmodule.c:
Cleaned up the files that weren't getting headers from dbmail.h.
2007-05-01 Aaron Stone <aaron@serendipity.cx>
* modules/dbpgsql.c:
Added a message about sqlsocket (closes bug #527)
2007-04-27 Aaron Stone <aaron@serendipity.cx>
* dbmail.h.in, main.c, user.c, sievecmd.c, export.c, maintenance.c:
Version and copyright cleanup on -V command line option.
2007-04-25 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4, configure.in, dbmail.h.in, dbmail.conf, authmodule.c,
dbmodule.c, sortmodule.c:
Added compile and runtime configuration of 'pkglibdir' for
runtime loaded modules.
* acinclude.m4, configure.in, Makefile.am:
Added support for --disable-manual configure flag.
* db.c, check_dbmail_db.c:
Fixed db_replycache_validate and added test cases to prove it.
2007-04-23 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c:
replace lingering dm_free call
* imapcommands.c:
re-initialize msginfo in session before _do_store (closes #565)
* pool.c:
dont access scoreboard during cli server run
2007-04-20 Aaron Stone <aaron@serendipity.cx>
* dsn.c, check_dbmail_dsn.c:
Corrected bounds checking for dsn_tostring (closes bug #570)
2007-04-13 Aaron Stone <aaron@serendipity.cx>
* db.c:
Some work in db_set_msgflag to help with bug #568
2007-04-09 Paul J Stevens <paul@nfg.nl>
* pool.c, pool.h, serverchild.c:
fix a couple of minor compiler warnings
* check_dbmail_imapd.c:
replace lingering dm_free call
* imapcommands.c:
re-initialize msginfo in session before _do_store (closes #565)
* pool.c:
dont access scoreboard during cli server run
2007-04-08 Aaron Stone <aaron@serendipity.cx>
* check_dbmail_deliver.c dbmail-user.c lmtp.c user.c imap4.h db.c
modules/authsql.c modules/authldap.c modules/sortsieve.c quota.c
debug.h acl.c imapcommands.c dsn.c pipe.c dm_base64.c dbmail-message.c
check_dbmail_db.c sievecmd.c dbmail-imapsession.c main.c timsieve.c
memblock.c misc.c:
Changed all instances of dm_free, dm_malloc, dm_strdup to g_free,
g_new0 or g_malloc, g_strdup, respectively.
* dbmail-mailbox.c dbmail-message.c misc.c sort.c:
Corrected printf arguments that made 32 bit platform assumptions.
2007-04-07 Aaron Stone <aaron@serendipity.cx>
* pool.h, pool.c, lmtp.c, pop3.c, timsieve.c, imapcommands.c,
serverchild.c:
Further work on the scoreboard status output, and added currently
logged in user (pop3, imap, timsieve) or mail sender (lmtp)
* main.c, serverparent.c, dbmail-user.c:
Added definitions for yes_to_all, no_to_all, etc.
2007-04-06 Paul J Stevens <paul@nfg.nl>
* README.usermap, UPGRADING:
documentation update
2007-04-06 Aaron Stone <aaron@serendipity.cx>
* dbmail-user.c, user.c:
Moved definitions of the verbosity variables from dbmail-user.c to
user.c to avoid multiple definitions
* pool.h, pool.c, serverchild.c:
Added client entry to the shared memory status, and functions to pass
the ip/resolved name of the current client to the pool manager
2007-04-05 Paul J Stevens <paul@nfg.nl>
* Makefile.in, configure, man/Makefile.in, modules/Makefile.in:
regenerate autoconf files
2007-04-03 Aaron Stone <aaron@serendipity.cx>
* dbmailtypes.h, db.c:
Moved definition of _db_params from the header to the C file (closes
bug #453)
2007-04-02 Aaron Stone <aaron@serendipity.cx>
* configure.in, Makefile.am, modules/Makefile.am:
Accepted patch to check if -lcrypt is necessary (closes bug #554)
2007-04-05 Paul J Stevens <paul@nfg.nl>
* db.c:
make the UIDNEXT value more rfc compliant
* imapcommands.c:
during expunge call remove_uid without re-opening mailbox
2007-03-31 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
work around for OE bug
2007-03-29 Paul J Stevens <paul@nfg.nl>
* ChangeLog, pop3.c, tags:
undo accidental changes
* README.postfix, README.qmail, README.sieve, README.smtp,
README.solaris, README.usermap, acinclude.m4, check_dbmail_auth.c,
check_dbmail_common.c, check_dbmail_db.c, check_dbmail_deliver.c,
check_dbmail_dsn.c, check_dbmail_imapd.c, check_dbmail_mailbox.c,
check_dbmail_message.c, check_dbmail_misc.c, check_dbmail_server.c,
check_dbmail_user.c, check_dbmail_util.c, config.c,
contrib/mailbox2dbmail/mailbox2dbmail, db.c, dbmail-imapsession.c,
dbmail-message.c, dbmail-user.c, dbmodule.c, debian/README.Debian,
debug.c, dm_imaputil.c, dm_md5.c, dsn.c, export.c, imap4.c,
imapcommands.c, imapd.c, list.c, lmtp.c, lmtpd.c, main.c,
maintenance.c, memblock.c, misc.c, modules/Makefile.am,
modules/Makefile.in, modules/authldap.c, modules/sortnull.c,
modules/sortsieve.c, pipe.c, pop3.c, pop3d.c, quota.c, server.c,
serverchild.c, serverparent.c, sievecmd.c, sort.c,
sql/mysql/create_tables.mysql,
sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql,
sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_from_1.x_to_2.0.pgsql,
sql/postgresql/migrate_from_2.0_to_2.2.pgsql,
sql/sqlite/create_tables.sqlite, test-scripts/testimap.py,
test-scripts/testpop.py, timsieve.c, timsieved.c, user.c:
remove svn variables
* dbmail-imapsession.c, imapcommands.c, test-scripts/testimap.py:
fix uid copy (bug #552)
* dbmail-imapsession.c:
minor fixes
* imapcommands.c:
fix _ic_copy
* dbmail-mailbox.c, test-scripts/testsort.imap:
imap sort sometimes returns ids more than once (bug #557)
2007-03-27 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
small msginfo cleanup to avoid race condition
* misc.c:
fix regression in _fetch_headers and remove some more g_mime_iconv_close
call
2007-03-26 Paul J Stevens <paul@nfg.nl>
* imapcommands.c:
fix fallout from imap args cleanup
* misc.c:
fix minor memleaks (ljackson)
* dbmail-imapsession.c, misc.c, test-scripts/testimap.py:
integrate and finish patches by AntonZ and LJackson
2007-03-25 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, dbmail-imapsession.c, dbmail-imapsession.h,
imap4.c, imapcommands.c, misc.c:
applied patch to fix argument parsing in imap (ljackson) (bug #546)
* debug.c, debug.h:
cleanup trace calls (closes #532)
* db.c:
small recent_flag fix
* dbmail-imapsession.c, dsn.c, imapd.c, lmtpd.c, pop3d.c, timsieved.c:
valgrind fixes (ljackson)
2007-03-24 Aaron Stone <aaron@serendipity.cx>
* serverparent.c, dbmailtypes.h, server.c:
Fixes to SIGHUP handling (closes bug #546).
* dbmail-message.c:
Set the tmpfile not to use C library buffering.
2007-03-24 Paul J Stevens <paul@nfg.nl>
* db.c, dbmail-imapsession.c, dm_base64.c, modules/authsql.c:
valgrind fixes
* check_dbmail_imapd.c, misc.c:
fix bug #551
2007-03-23 Aaron Stone <aaron@serendipity.cx>
* imapd.c, lmtpd.c, pop3d.c, timsieved.c:
Accepted patch from Leif Jackson to formally initialize some variables.
* misc.c, serverparent.c:
Accepted patch from Leif Jackson to close some minor memory leaks.
2007-03-23 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-imapsession.h, imap4.h:
do chunked queries during header and envelope retrieval when opening
large mailboxes (bug #539)
* dbmail-message.c:
avoid segfaults on empty messages (bug #544)
* dbmail-imapsession.c:
dont log raw password (closes: #545)
* dbmail.conf:
set default sieve port to 2000
* debian/dbmail.postinst:
add dbmail user during postinst preconfigure
* pop3.c, dbmail-imapsession.c:
log source ip on failed login (closes #543)
* dbmail-imapsession.c:
wrap flushing the recent flag in a transaction (bug #539)
2007-03-22 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.c:
Change from g_mime_stream_write_string to g_mime_stream_write to
handle embedded \0 characters (closes bug #549)
2007-03-17 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-message.c:
remove some redundant joins
2007-03-16 Aaron Stone <aaron@serendipity.cx>
* misc.c:
More logging in imap_get_partspec to try to nail down bug #533.
2007-03-16 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
add x-dbmail-physmessage-id header only during retrieval, not during
insertion (closes: #502)
* check_dbmail_imapd.c, configure, dbmail-message.c, misc.c, misc.h:
merging 8bit header patches (bug #538)
2007-03-14 Paul J Stevens <paul@nfg.nl>
* pop3.c:
check return value on db_update_pop (closes: #530)
* dbmail-imapsession.c, imapcommands.c, test-scripts/testexpunge.imap,
test-scripts/testimap.py:
fix expunge response (closes #535)
2007-03-14 Aaron Stone <aaron@serendipity.cx>
* db.c:
Skip Recent flag because it is now hardcoded into the query (closes
bug #534)
* serverparent.c:
Rearranged ClearConfig and new ResetConfig to avoid freeing an
uninitialized pointer, as well as not leak a few bytes on SIGHUP
(closes bug #537)
2007-03-11 Paul J Stevens <paul@nfg.nl>
* acinclude.m4, configure:
final touch on sqlite autocreate
* debian/changelog:
2.2.4 packages
* config.c:
expand tilde char in db path (closes #529)
* debian/dbmail.postinst:
fix sed error
2007-03-10 Paul J Stevens <paul@nfg.nl>
* debian/dbmail.postinst:
avoid slash in sed s commands
* debian/changelog, debian/dbmail.postinst:
2.2.4 rc1 packages
* dbmail-mailbox.c:
fix for export problem #590
2007-03-09 Paul J Stevens <paul@nfg.nl>
* debian/po/ml.po, debian/po/pt.po, debian/po/ta.po:
fix broken po files
* contrib/sql2sql/mysql2pgsql.sh:
minor fixes
* Makefile.in, acinclude.m4, configure, configure.in, dbmail.h.in,
man/Makefile.in, modules/Makefile.in, modules/dbsqlite.c:
add auto-creation of database to sqlite driver
2007-03-08 Paul J Stevens <paul@nfg.nl>
* debian/po/ml.po, debian/po/pt.po, debian/po/ta.po:
debian po updates
2007-03-07 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.c:
It is not a short write if getslen == 1 and putslen == 0 (why does
this happen?) (closes bug #525)
* dbmail-mailbox.c:
Always prepend headers to a dumped message, in case the header block
does not come first. Also try asking the database to give the blocks
in the correct order in the first place (closes bug #520)
2007-03-07 Paul J Stevens <paul@nfg.nl>
* db.c, dbmail-imapsession.c, dbmail-imapsession.h, dbmail-message.c,
dbmailtypes.h, imap4.c, imapcommands.c, test-scripts/testbox,
test-scripts/testimap.py:
fix and extend imap flags handling (bug #519, #381)
2007-03-06 Paul J Stevens <paul@nfg.nl>
* check_dbmail_misc.c:
added testcase for mailbox_remove_namespace
* check_dbmail_imapd.c:
add envelope test
* test-scripts/testimap.py:
fix false negatives after recent_flag changes
* debian/dbmail.postinst, debian/dbmail.postrm:
debian postinst fixes
* contrib/sql2sql/mysql2pgsql.sh:
adding migration script
* contrib/mailbox2dbmail/mailbox2dbmail:
add alternative config file option
* dbmail-imapsession.c, imapcommands.c, test-scripts/testimap.py:
recent_flag fixes
2007-03-05 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.c:
Sadly we have to flush after every fwrite to be sure that we don't fit
an entire email into the C library's buffers and then lose it all when
the filesystem is full and the tmpfile cannot be closed out (really
closes bug #511 this time).
* dbmail-mailbox.c:
Support IMAP's SEARCH LARGER and SEARCH SMALLER (closes bug #512).
2007-03-04 Aaron Stone <aaron@serendipity.cx>
* misc.c, check_dbmail_misc.c:
More work on mailbox_remove_namespace to handle search patterns and
missing usernames when in the #Users namespace.
2007-03-02 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.c:
Handle read and write errors from incoming message stream and its tmp
file during the filter process (closes bug #511).
* server.c:
Accepted Bernard Johnson's umask patch (closes bug #516).
* misc.c, check_dbmail_misc.c:
More work on mailbox_remove_namespace to handle search patterns and
missing usernames when in the #Users namespace.
2007-03-01 Paul J Stevens <paul@nfg.nl>
* dbmail-user.c, user.c:
revert changes at aarons request
* debian/changelog, debian/dbmail.templates, debian/po/cs.po,
debian/po/de.po, debian/po/es.po, debian/po/fr.po, debian/po/gl.po,
debian/po/it.po, debian/po/ja.po, debian/po/ml.po, debian/po/nl.po,
debian/po/pt.po, debian/po/pt_BR.po, debian/po/ru.po,
debian/po/ta.po, debian/po/templates.pot:
updates by Chistian Pellier
* misc.c:
fix mailbox_remove_namespace to work with search patterns
* db.c, imapcommands.c:
misc fixes
* Makefile.in, aclocal.m4, configure, man/Makefile.in, modules/Makefile.in:
regenerate autoconf files
2007-02-28 Paul J Stevens <paul@nfg.nl>
* debian/dbmail-mysql.postinst, debian/dbmail-pgsql.postinst:
remove configure code from postinst, leaving the driver alone
* debian/dbmail.templates, debian/po/cs.po, debian/po/de.po,
debian/po/es.po, debian/po/fr.po, debian/po/gl.po, debian/po/it.po,
debian/po/ja.po, debian/po/nl.po, debian/po/pt_BR.po,
debian/po/ru.po, debian/po/templates.pot:
i10n updates
* ChangeLog, dbmail-user.c, user.c:
adapt aarons ui patch
* imap4.c:
avoid an errno race
* dbmail-user.c:
remove spurious output
* Makefile.in, aclocal.m4, configure, man/Makefile.in:
rebuild autoconf tools
2007-02-27 Aaron Stone <aaron@serendipity.cx>
* user.c, dbmail-user.c:
Enable use of -y/-n to protect against doing anything unintended
and irreversible without explicitly authorizing the changes.
2007-02-26 Paul J Stevens <paul@nfg.nl>
* modules/Makefile.am, modules/Makefile.in:
do not build empty so files (closes: #510)
* dbmail.conf:
replace tabs with spaces (closes: #509)
* export.c:
append .mbox to mailbox-name during export
* pop3.c:
issue +OK after QUIT (closes: #513)
2007-02-08 Paul J Stevens <paul@nfg.nl>
* db.c:
fix bogus return value
* dbmail-mailbox.c, dbmail-mailbox.h, dbmailtypes.h:
refactor uid/msn mapper
* dbmail-mailbox.c:
use outlook quirk
* dm_imaputil.c, dm_imaputil.h, imapcommands.c:
cleanups
* check_dbmail_imapd.c, db.c, db.h, dbmail-imapsession.c,
dbmail-imapsession.h, imapcommands.c, test-scripts/testimap.py:
refactor _ic_copy and _ic_store
2007-02-06 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
headernames in cache must be case-insentitive
2007-02-05 Aaron Stone <aaron@serendipity.cx>
* db.c:
Strip namespace off of mailbox searches (closes bug #474).
2007-02-03 Paul J Stevens <paul@nfg.nl>
* check_dbmail_user.c, dbmail-user.c, dbmail-user.h:
removing is_valid test. Validating usernames is deferred to the storage
layer (closes #490)
2007-01-31 Paul J Stevens <paul@nfg.nl>
* debian/rules:
remove --libdir from debian configure run
* dbmail-message.c, misc.c, misc.h:
convert 8bit header values to utf8 during insertion (AntonZ)
2007-01-30 Paul J Stevens <paul@nfg.nl>
* misc.c:
only encode subjectvalues in the envelope response if the subject is
both 8bit and utf8 clean
* dbmail-imapsession.c:
remove the Recent flag from the PERMANENTFLAGS response
* test-scripts/testbox:
add bogus 8bit message to testbox
2007-01-24 Paul J Stevens <paul@nfg.nl>
* README:
minor update
* Makefile.in, configure, man/Makefile.in, misc.c, modules/Makefile.in:
do rfc2047 encoding of 8bit subjects during envelope construction
2007-01-23 Paul J Stevens <paul@nfg.nl>
* Makefile.in, check_dbmail.h, check_dbmail_imapd.c, misc.c,
modules/Makefile.in, test-scripts/testimap.py:
working on #497
2007-01-21 Paul J Stevens <paul@nfg.nl>
* debian/po/cs.po, debian/po/de.po, debian/po/es.po, debian/po/fr.po,
debian/po/it.po, debian/po/ja.po, debian/po/nl.po,
debian/po/pt_BR.po, debian/po/templates.pot:
updating PO files
* db.c, db.h:
adding db_replycache_unregister
* Makefile.in, config.in, configure, man/Makefile.in, modules/Makefile.in:
updating autoconf files
2007-01-20 Aaron Stone <aaron@serendipity.cx>
* serverparent.c:
Unrecognized options cause the daemons to bail out with an error.
* Makefile.am, modules/Makefile.am:
Accepted patch to use pkglib_LTLIBRARIES rather than hardcoding the
lib paths (closes bug #492).
* acinclude.m4, configure.in, Makefile.am:
Wire up the SOCKETLIB variable into the link stage (closes bug #489).
2007-01-20 Paul J Stevens <paul@nfg.nl>
* debian/control, debian/dbmail-dev.install, debian/dbmail-ldap.config,
debian/dbmail-ldap.docs, debian/dbmail-ldap.examples,
debian/dbmail-ldap.install, debian/dbmail-ldap.postinst,
debian/dbmail-ldap.templates, debian/dbmail-mysql.config,
debian/dbmail-mysql.postinst, debian/dbmail-mysql.templates,
debian/dbmail-pgsql.config, debian/dbmail-pgsql.postinst,
debian/dbmail-pgsql.templates, debian/dbmail-sieve.dirs,
debian/dbmail-sieve.docs, debian/dbmail-sieve.install,
debian/dbmail-sieve.lintian-override, debian/dbmail-sieve.manpages,
debian/dbmail-sieve.postinst, debian/dbmail-sqlite.config,
debian/dbmail-sqlite.examples, debian/dbmail-sqlite.install,
debian/dbmail-sqlite.postinst, debian/dbmail-sqlite.templates,
debian/dbmail.config, debian/dbmail.docs, debian/dbmail.examples,
debian/dbmail.init, debian/dbmail.install, debian/dbmail.manpages,
debian/dbmail.postinst, debian/dbmail.templates,
debian/po/POTFILES.in, debian/po/cs.po, debian/po/de.po,
debian/po/es.po, debian/po/fr.po, debian/po/it.po, debian/po/ja.po,
debian/po/nl.po, debian/po/pt_BR.po, debian/po/templates.pot,
debian/rules:
debian package reorganized
2007-01-17 Aaron Stone <aaron@serendipity.cx>
* pop3.c:
Accepted patch from bug #483 to call db_cleanup before sending OK
response to QUIT command.
* dsn.c:
Fix to sub-domain catch-alls.
* misc.c:
A really small cleanup.
* dbmail-message.h, dbmail-message.c, check_dbmail_message.c:
dbmail_message_get_internal_date takes a second argument to limit the
maximum year. Newly inserted messages cannot be more than 1 + the
current year at delivery time (closes bug #475).
* dbmail-mailbox.c:
Update for the max year argument.
* user.c, maintenance.c:
Bail out when given invalid command line args (closes bug #448).
* configure.in, acinclude.m4:
Added a test for socket libraries (see bug #489).
2007-01-10 Paul J Stevens <paul@nfg.nl>
* imap4.c:
fix errno race
* dbmail-imapsession.c:
fix leakage problem partially
* db.c:
fix bug in db_replycache_register
* config.in, configure, man/dbmail-sievecmd.8:
misc updates
2007-01-01 Paul J Stevens <paul@nfg.nl>
* modules/dbmysql.c:
change from OPTIMIZE TABLE to ANALYZE TABLE in mysql driver during cleanup
2006-12-31 Aaron Stone <aaron@serendipity.cx>
* modules/authldap.c, dbmail.conf, acinclude.m4:
Accepted ldap_initialize patch from Uemura Tetsuya.
* dsn.c:
Sub-domain catch-alls supported in the form @.domain (bug #452).
* pipe.c:
If forwards fail, report a temporary SMTP error.
* serverchild.c:
Removed unused variable 'serr'.
2006-12-30 Paul J Stevens <paul@nfg.nl>
* check_dbmail_auth.c, modules/authldap.c:
fix return value for invalid login (closes #481)
2006-12-18 Paul J Stevens <paul@nfg.nl>
* configure.in, configure:
cleanup AM_CONDITIONALS after acinclude.m4 changes
2006-12-17 Paul J Stevens <paul@nfg.nl>
* Makefile.in, config.in, configure, man/Makefile.in, modules/Makefile.in:
rebuild configure after changes in automake files
2006-12-16 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4:
Fixed bug #195 fix that left AUTHLDAP and SIEVE always defined.
2006-12-16 Paul J Stevens <paul@nfg.nl>
* check_dbmail_server.c, db.c, test-scripts/testfetch.txt:
fix bug #464
2006-12-15 Aaron Stone <aaron@serendipity.cx>
* pipe.c:
Fixed parse_and_escape to handle incomplete addresses (closes bug #477)
2006-12-13 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4, configure.in, Makefile.am, modules/Makefile.am:
Updated tests for libSieve and LDAP headers and libraries (closes bug #195).
2006-12-12 Paul J Stevens <paul@nfg.nl>
* dm_imaputil.c, dm_imaputil.h, imap4.c, test-scripts/testsearch.imap:
remove redundant checkchars function from imap code (closes #473)
2006-12-11 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-mailbox.c:
prevent excessive merging of search results in OR subsearches (closes
#471)
2006-12-10 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, dbmail-imapsession.c, dbmail.h.in, dm_imaputil.c,
imap4.c, imapcommands.c:
cleanup MAX_LIZESIZE and set to 65k
* Makefile.in, aclocal.m4, buildtools/compile, buildtools/config.guess,
buildtools/config.sub, buildtools/depcomp, buildtools/install-sh,
buildtools/ltmain.sh, buildtools/missing, config.in, configure,
contrib/expirebox.sh, man/Makefile.in, man/dbmail-export.8,
man/dbmail-imapd.8, man/dbmail-lmtpd.8, man/dbmail-pop3d.8,
man/dbmail-sievecmd.8, man/dbmail-smtp.1, man/dbmail-timsieved.8,
man/dbmail-users.8, man/dbmail-util.8, man/dbmail.1,
man/dbmail.conf.5, modules/Makefile.in:
add files that belong in the stable branch
* check_dbmail_message.c, dbmail-message.c, dbmail-message.h:
reduce copying in message code
* list.c:
fix minor leak
2006-12-08 Aaron Stone <aaron@serendipity.cx>
* misc.c:
Fixed segfault on NULL or zero-length strings in imap_cleanup_address
(closes bug #461).
2006-12-06 Aaron Stone <aaron@serendipity.cx>
* imapcommands.c:
Fixed incorrect strlen in _ic_list (closes bug #467).
* misc.c:
Added # sign to AcceptedMailboxnameChars (bug #467).
2006-12-04 Paul J Stevens <paul@nfg.nl>
* sql/mysql/create_tables.mysql, sql/mysql/migrate_from_2.0_to_2.2.mysql,
sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_from_2.0_to_2.2.pgsql,
sql/sqlite/create_tables.sqlite:
adding useful indexes to headername/headervalue tables
* db.c:
fix fallout from #457
2006-11-27 Paul J Stevens <paul@nfg.nl>
* check_dbmail_db.c, check_dbmail_message.c, db.c, dbmail-imapsession.c,
dbmail-message.c, modules/dbpgsql.c:
remove the query global
* db.c:
fix bug #457
* debian/compat, debian/control, debian/dbmail-ldap.postinst,
debian/dbmail-mysql.postinst, debian/dbmail-pgsql.postinst,
debian/dbmail-sieve.config, debian/dbmail-sieve.postinst,
debian/dbmail-sieve.templates, debian/dbmail-sqlite.postinst,
debian/dbmail.dirs, debian/dbmail.examples, debian/dbmail.init,
debian/dbmail.postinst, debian/dbmail.preinst, debian/dbmail.prerm,
debian/dbmail.templates, debian/po/cs.po, debian/po/de.po,
debian/po/es.po, debian/po/fr.po, debian/po/it.po, debian/po/ja.po,
debian/po/nl.po, debian/po/pt_BR.po, debian/po/templates.pot,
debian/rules:
cleanup in the debian packaging
* dbmail.schema:
cleanup dbmail ldap schema
2006-11-18 Paul J Stevens <paul@nfg.nl>
* dbmail.conf:
add missing directive
* THANKS:
update
* INSTALL:
update INSTALL
* UPGRADING, dbmail.conf:
updates and corrections
* debian/changelog, debian/dbmail-sieve.config, debian/dbmail.config:
debconf fixes
2006-11-17 Paul J Stevens <paul@nfg.nl>
* sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_from_2.0_to_2.2.pgsql:
add index for lower(userid) in postgres schema
* server.c, serverchild.c:
simplify the non-blocking setup
2006-11-16 Aaron Stone <aaron@serendipity.cx>
* serverchild.c:
Fix for the O_NONBLOCK dance (closes bug #449).
2006-11-16 Paul J Stevens <paul@nfg.nl>
* debian/dbmail-ldap.config, debian/dbmail-sieve.config,
debian/dbmail.config:
fix typo
* debian/changelog:
update changelog for debian
* imap4.c:
fix for fatal sigpipe
* serverchild.c:
disable the O_NONBLOCK dance
2006-11-15 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, misc.c, test-scripts/testimap.py:
fix for lsub (jonathan feally)
* debian/dbmail.init:
fix reload bug
* server.c:
bail out if drop_privileges fails
* serverchild.c:
remove confusing error message
2006-11-12 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/dbmail-ldap.config, debian/dbmail-mysql.config,
debian/dbmail-pgsql.config, debian/dbmail-sieve.config,
debian/dbmail-sieve.postinst, debian/dbmail-sieve.templates,
debian/dbmail-sqlite.config:
debconf fixes
* debian/changelog, debian/dbmail-ldap.config, debian/dbmail-sieve.config,
debian/dbmail.config:
more debconf fixes
* serverchild.c:
reset flags on clientsocket after accept
2006-11-10 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_imapd.c, misc.c, misc.h, serverchild.c:
some minor cleanups related to const char types and compiler warnings
2006-11-09 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.c:
Always set charset=utf-8 in dbmail_construct_message (closes bug
#429).
* misc.c:
Fixed an invalid test for invalid addresses in append_alist_as_plist
(closes bug #444).
2006-11-09 Paul J Stevens <paul@nfg.nl>
* serverchild.c:
work on #437
* db.c:
only retrieve header for envelope reconstruction
* dbmail-message.c:
fix segfault
* db.c:
fix potential turnover
* maintenance.c:
reshuffle cache maintenance
2006-11-08 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.c:
Revert result logic in sort_process.
Corrected a for loop index typo (closes bug #441).
2006-11-07 Paul J Stevens <paul@nfg.nl>
* db.c:
make allocation fail louder in db_icheck_envelope
* modules/sortsieve.c:
invert result logic in sort_process
* check_dbmail_util.c:
make allocation fail louder in db_icheck_envelope
2006-11-06 Aaron Stone <aaron@serendipity.cx>
* dbmail.h.in:
Add LDAP_DEPRECATED because we haven't switch LDAP API's to the new
ldap_bind_sasl and friends.
* configure.in:
Version bump to 2.2
2006-11-06 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/dbmail.postinst:
pre-release updates
* db.c:
revert mysql optimization (closes #440)
* debian/control, test-scripts/testimap.py:
fix depends
2006-11-05 Aaron Stone <aaron@serendipity.cx>
* serverparent.h, serverparent.c, pop3.c, timsieve.c, lmtp.c:
Moved validchars into serverparent.c as ValidNetworkChars, with a
wider tolerance for allowed characters (closes bug #435).
* misc.c:
Removed an unused variable.
2006-11-05 Paul J Stevens <paul@nfg.nl>
* imapcommands.c:
fix sort/search/thread bug
* debian/control:
update dependencies
2006-11-04 Paul J Stevens <paul@nfg.nl>
* check_dbmail_util.c, db.c, modules/dbmysql.c:
re-add the MR optimization
2006-11-03 Aaron Stone <aaron@serendipity.cx>
* sql/mysql/migrate_from_2.0_to_2.2.mysql,
sql/mysql/2_1_7-2_2_0.mysql:
Make the envelope table creations consistent.
2006-11-03 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c, modules/dbpgsql.c:
fully revert the utf8 behaviour. sql_ascii is the only supported db
encoding again for postgresql
* dbmail-message.c:
removed remaining utf8 conversion
2006-11-02 Aaron Stone <aaron@serendipity.cx>
* authmodule.c, dbmodule.c, sortmodule.c:
Changed count of paths to attempt, and added a comment about it.
Added more debugging info, closed a minor memory leak.
* debug.h, modules/authsql.c:
Removed relics of memtst and func_memtst.
2006-11-02 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_message.c, misc.c, modules/dbpgsql.c:
push utf8 conversion to pgsql driver and remove utf7 encoding from
subject in envelope
2006-11-01 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/dbmail-ldap.templates,
debian/dbmail-sieve.postinst, debian/po/cs.po, debian/po/de.po,
debian/po/es.po, debian/po/fr.po, debian/po/it.po, debian/po/ja.po,
debian/po/nl.po, debian/po/pt_BR.po, debian/po/templates.pot,
test-scripts/testlmtp.txt:
po files updated after completing the templates
* misc.c:
add missing va_end call in g_list_append_printf
* config.c:
trace conversion
* serverparent.c:
minor cleanup
* Makefile.am:
AM_LDFLAGS modified
* misc.c:
TRACE migration and imap_cleanup_address fix
* acl.c, authmodule.c, check_dbmail.h, check_dbmail_mailbox.c, config.c,
dbmail-mailbox.c, dbmail-message.c, dbmail-user.c, dbmail.h.in,
dbmodule.c, debug.c, dm_base64.c, dm_imaputil.c, dm_md5.c, dsn.c,
imap4.c, imapcommands.c, lmtp.c, main.c, modules/authldap.c,
modules/authsql.c, modules/dbmysql.c, modules/dbpgsql.c,
modules/dbsqlite.c, modules/sortnull.c, modules/sortsieve.c, pop3.c,
quota.c, serverchild.c, sortmodule.c:
complete TRACE migration
2006-10-31 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, check_dbmail_message.c, dbmail-message.c, misc.c:
convert cache table values to utf8 before inserting them into the database
* modules/authldap.c:
log last login in sql also for authldap
* lmtp.c:
TRACE cleanups
* misc.c:
guard against empty subject lines
* db.c:
fix inconsistency in usermap resolving
2006-10-30 Aaron Stone <aaron@serendipity.cx>
* db.c:
Use db_find_create_mailbox for POP3 user's INBOX.
Converted all trace calls to TRACE.
2006-10-30 Paul J Stevens <paul@nfg.nl>
* db.c:
autocreate INBOX for pop3 users
* dbmail-message.c:
work on bug 429
* dbmail-mailbox.c, imapcommands.c:
handle fetch/search/sort on empty mailboxes
* debian/control, debian/dbmail-ldap.postinst,
debian/dbmail-ldap.templates, debian/dbmail-mysql.postinst,
debian/dbmail-mysql.templates, debian/dbmail-pgsql.templates,
debian/dbmail-sqlite.templates, debian/dbmail.postinst,
debian/dbmail.preinst, debian/dbmail.templates,
debian/po/POTFILES.in, debian/po/cs.po, debian/po/de.po,
debian/po/es.po, debian/po/fr.po, debian/po/it.po, debian/po/ja.po,
debian/po/nl.po, debian/po/pt_BR.po, debian/po/templates.1po,
debian/po/templates.pot:
update debconf templates and po files
* dbmail-message.c:
fix minor memleak
* debian/control, debian/dbmail-ldap.templates, debian/dbmail-sieve.config,
debian/dbmail-sieve.templates, debian/dbmail.templates:
fix lintian warnings
* dbmail.h.in:
bump version
* db.c:
revert change
2006-10-29 Aaron Stone <aaron@serendipity.cx>
* ChangeLog:
Corrected typos in ChangeLog
* dbmail-imapsession.c, timsieve.c:
More conversions of trace to TRACE.
2006-10-27 Paul J Stevens <paul@nfg.nl>
* debian/dbmail-ldap.config, debian/dbmail-ldap.postinst,
debian/dbmail-ldap.templates, debian/dbmail-mysql.config,
debian/dbmail-mysql.postinst, debian/dbmail-mysql.templates,
debian/dbmail-pgsql.config, debian/dbmail-pgsql.postinst,
debian/dbmail-pgsql.templates, debian/dbmail-sieve.config,
debian/dbmail-sqlite.config, debian/dbmail-sqlite.postinst,
debian/dbmail-sqlite.templates, debian/dbmail.config,
debian/dbmail.postinst, debian/dbmail.preinst,
debian/dbmail.templates, debian/po/cs.po, debian/po/de.po,
debian/po/es.po, debian/po/fr.po, debian/po/it.po, debian/po/ja.po,
debian/po/nl.po, debian/po/pt_BR.po, debian/po/templates.1po,
debian/po/templates.pot:
merge packaging work by Lars Kneschke
* debian/control, debian/dbmail-pgsql.templates,
debian/dbmail-sqlite.templates, debian/dbmail.config,
debian/dbmail.preinst, debian/rules:
minor cleanups in packaging
* dbmail.conf:
beautify dbmail.conf
* debian/dbmail-ldap.postinst, debian/dbmail-mysql.postinst,
debian/dbmail-pgsql.postinst, debian/dbmail-sqlite.postinst,
debian/dbmail.postinst:
cleanup postinst files
* db.c:
make db_purge_deleted scale better
* debian/changelog, debian/dbmail-mysql.examples,
debian/dbmail-pgsql.examples, debian/dbmail-sqlite.examples,
debian/rules:
debian packaging
* Makefile.am, modules/Makefile.am:
installation of libdbmail and modules
* check_dbmail_message.c, db.c, dbmail-message.c, misc.c,
test-scripts/testbox:
handle unencoded 8bit headers
2006-10-26 Paul J Stevens <paul@nfg.nl>
* sql/mysql/2_1_7-2_1_8.mysql, sql/mysql/2_1_7-2_2_0.mysql,
sql/mysql/migrate_from_2.0_to_2.1.mysql,
sql/mysql/migrate_from_2.0_to_2.2.mysql,
sql/postgresql/2_1_7-2_1_8.pgsql, sql/postgresql/2_1_7-2_2_0.pgsql,
sql/postgresql/migrate_from_2.0_to_2.1.pgsql,
sql/postgresql/migrate_from_2.0_to_2.2.pgsql,
sql/sqlite/2_1_7-2_1_8.sqlite, sql/sqlite/2_1_7-2_2_0.sqlite:
rename migration scripts
* Makefile.am, modules/Makefile.am:
make PREFIX/lib/dbmail default location for libdmail and modules
* check_dbmail_message.c, dbmail-message.c:
work on bug 429
* debian/changelog, debian/control, debian/dbmail-sieve.dirs,
debian/dbmail-sieve.install, debian/dbmail-sieve.lintian-override,
debian/dbmail.init, debian/dbmail.install, debian/dbmail.postinst,
debian/dbmail.postrm, debian/rules:
cleanup packaging
* dbmail-imapsession.c, imap4.c, serverchild.c:
remove redundant logmessages
* dbmail-imapsession.c, dbmail-mailbox.c, test-scripts/testimap.py,
test-scripts/testsearch.imap:
fix some fallout from thread implementation
* dbmail-message.c:
edit comments
2006-10-25 Aaron Stone <aaron@serendipity.cx>
* pool.c:
Call ftruncate on the state files to the length of data written.
2006-10-24 Aaron Stone <aaron@serendipity.cx>
* serverchild.c:
Do an fcntl dance to make sockets non-blocking around accept, lest we
block forever if a socket dies just between select and accept.
2006-10-24 Paul J Stevens <paul@nfg.nl>
* modules/dbpgsql.c:
remove unused vars
* debian/changelog, debian/control, debian/dbmail.dirs,
debian/dbmail.install, debian/dbmail.postinst, debian/dbmail.postrm,
debian/libdbmail0.dirs, debian/libdbmail0.install,
debian/libdbmail0.postinst, debian/libdbmail0.postrm,
debian/manpages, debian/rules:
remove the libdbmail package
* Makefile.am, authmodule.c, dbmodule.c, modules/Makefile.am, sortmodule.c:
install libdbmail in PREFIX/lib/dbmail and dont scan PREFIX/lib for
modules
* debian/dbmail.install:
cleanups
2006-10-23 Aaron Stone <aaron@serendipity.cx>
* pipe.c:
Limit the alert rate to one-per-day, other cleanups.
2006-10-23 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, imapcommands.c:
always update recent flags on mailbox close
* check_dbmail_db.c, dbmail-message.c, dbmodule.c, modules/dbmysql.c,
modules/dbpgsql.c, modules/dbsqlite.c:
cleanups in the db layer
2006-10-22 Aaron Stone <aaron@serendipity.cx>
* serverchild.c, pool.c, server.c:
To prevent leaking shared memory segments, scoreboard_delete is
registered with atexit and an isGrandChildProcess variable is used to
allow only the middle process to delete the shared memory segments.
* pipe.c:
Changed many debug calls from trace to TRACE.
New messages are generated using dbmail_message_construct.
* dbmail-message.c, check_dbmail_message.c:
Changed order of sender, recipient arguments to recipient, sender in
dbmail_message_construct.
* modules/sortsieve.c:
First pass at giving the user an alert when Sieve scripts fail.
2006-10-21 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-imapsession.h, dbmail-mailbox.c, imap4.c,
imap4.h, imapcommands.c, imapcommands.h:
added unselect capability to imap
2006-10-20 Aaron Stone <aaron@serendipity.cx>
* db.h, dbmail.h.in:
Moved three constants from db.h to dbmail.h.in.
* db.c, misc.c, dbmailtypes.h:
More better handling of #Public mailboxes and changed instances of
'status IN (0, 2)' to 'status < 2' for better use of indexes.
* sql/sqlite/create_tables.sqlite, sql/postgresql/create_tables.pgsql,
sql/mysql/create_tables.mysql:
Create the __public__ user at table creation time.
* pipe.c, maintenance.c:
Minor updates.
* check_dbmail_db.c, check_dbmail_mailbox.c:
Comment out unused functions.
2006-10-20 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, check_dbmail_mailbox.c, dbmail-mailbox.c,
dbmail-mailbox.h, dbmailtypes.h, imap4.c, imap4.h, imapcommands.c,
imapcommands.h, test-scripts/testthread.txt:
added thread=orderedsubject capability to imap
2006-10-19 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c, export.c:
allow export to dump all mailboxes for a user
* check_dbmail.h, check_dbmail_imapd.c, dbmail-imapsession.c,
debian/control, misc.c:
properly descend into message/rfc822 mime-parts during fetch (closes #399)
2006-10-13 Paul J Stevens <paul@nfg.nl>
* dbmail.schema:
updated schema file (lars)
* modules/dbsqlite.c:
set busy handler on sqlite driver (jwagner)
2006-10-09 Paul J Stevens <paul@nfg.nl>
* dbmail.h.in, modules/authldap.c, modules/authsql.c:
minor cleanups in PUBLIC_FOLDER_USER usage
* db.c, dbmail-imapsession.c, dbmail-mailbox.c, dbmail-message.c,
modules/authsql.c:
remove quoting on numbers in queries
2006-10-07 Aaron Stone <aaron@serendpity.cx>
* misc.h, misc.c:
Added two more return pointers to mailbox_remove_namespace, for the
namespace itself and the username under #Users namespace.
* db.c:
Modified db_imap_split_mailbox and db_mailbox_create_with_parents to
correctly handle permissions in other namespaces (closes bug #424).
2006-10-06 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
check for NULL trees
* debian/control, debian/copyright:
debian policy
2006-10-05 Aaron Stone <aaron@serendipity.cx>
* serverchild.c:
Implement "self-pipe trick" to prevent signal races with select(2).
2006-10-04 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.h, dbmail-message.c:
Added wrappers around get_crlf_encoded to switch between dot-stuffed
and non-dot-stuffed filters -- dot stuffing is needed for POP3 and
sendmail pipes (closes bug #403).
* dbmailtypes.h, serverparent.c, server.c, serverchild.c, dbmail.conf:
Bind to multiple IPs and use select(2) to see what's active (closes
bug #269).
* pidfile.c, server.c, pool.c:
Added variable isChildProcess to avoid trying to remove pidfile and
statefile atexit on the child and grandchild processes.
2006-10-04 Paul J Stevens <paul@nfg.nl>
* debian/dbmail.init:
remove --posix switch and fix minor typos
* check_dbmail_imapd.c, misc.c:
add more cleanups to imap_clean_address (closes #377)
2006-10-03 Aaron Stone <aaron@serendipity.cx>
* dbmail.conf, man/dbmail.conf.txt:
Documentation and example to use dos2unix before calling Qmail's
sendmail (closes bug #396).
2006-10-03 Paul J Stevens <paul@nfg.nl>
* THANKS:
update THANKS
* export.c:
fix typo
* sql/mysql/migrate_from_2.0_to_2.1.mysql,
sql/postgresql/migrate_from_2.0_to_2.1.pgsql:
update migrations
* db.c:
remove messages before removing mailbox (closes #348)
2006-10-01 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.c, dbmail.conf:
Options SIEVE_VACATION, SIEVE_NOTIFY and SIEVE_DEBUG in the DELIVERY
section of dbmail.conf work now.
* misc.c, check_dbmail_imapd.c:
Added an additional hack to imap_cleanup_address (closes bug #377).
2006-09-30 Aaron Stone <aaron@serendipity.cx>
* misc.h, misc.c, sievecmd.c:
Removed read_script_file and extended read_from_stream to handle
reading until an EOF is found. Improved handling of EOF marker.
2006-09-30 Paul J Stevens <paul@nfg.nl>
* sql/mysql/create_tables.mysql, sql/postgresql/create_tables.pgsql,
sql/sqlite/create_tables.sqlite:
update create scripts to include the envelope cache
* check_dbmail.h, check_dbmail_message.c, dbmail-message.c:
uniqify reference ids during insertion (closes #398)
2006-09-27 Paul J Stevens <paul@nfg.nl>
* timsieve.c:
minor cleanups
* debian/dbmail.init:
fix typo in debian init
* check_dbmail_imapd.c, debian/control, misc.c:
switch from gmime2.1 to gmime2.2
2006-09-27 Aaron Stone <aaron@serendipity.cx>
* db.c:
Fixed typo in g_new0 call (closes bug #418).
* dbmail-mailbox.c:
Accepted patch from Maenaka to suppress Glib tree warnings (closes bug
#419).
2006-09-26 Aaron Stone <aaron@serendipity.cx>
* dbmail-imapsession.c:
Only create INBOX if INBOX doesn't exist, rather than INBOX and
anything below it (closes bug #417).
2006-09-22 Aaron Stone <aaron@serendipity.cx>
* db.c:
Changed the query for db_check_sievescript_active_byname (closes bug
#412).
2006-09-22 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
cleanup dbmail_message_construct
* modules/dbmysql.c:
downgrade tracelevel for row=NULL
* db.c:
fix typo (closes #411)
* check_dbmail_util.c:
activate testcase
* check_dbmail_message.c, dbmail-message.c, dbmail-message.h:
add dbmail_message_construct call
2006-09-20 Aaron Stone <aaron@serendipity.cx>
* dm_md5.c:
Moved typedef uint32 above byteReverse function (closes bug #410).
2006-09-19 Paul J Stevens <paul@nfg.nl>
* db.c, test-scripts/testsort.imap:
phase-in TRACE macro
* dbmail-imapsession.c:
fix bug #408
* modules/dbsqlite.c:
revert to old behaviour
* db.c:
dm_malloc to g_new0
* sql/mysql/2_1_7-2_1_8.mysql:
update mysql create script for envelope cache (closes #409)
2006-09-18 Aaron Stone <aaron@serendipity.cx>
* db.c:
Don't order POP3 messages by status, only message_idnr.
2006-09-16 Aaron Stone <aaron@serendipity.cx>
* dbmail-user.h, maintenance.c:
Minor cleanup of verbosef, qprintf, qerrorf defines.
* db.h, db.c:
Added function db_check_sievescript_active_byname.
* sievecmd.c:
Better handling when updating/overwriting scripts by using the
common -y option to control overwrites.
2006-09-15 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
fix bug #408
2006-09-12 Aaron Stone <aaron@serendipity.cx>
* pop3.c, db.c:
Minor formatting changes, deterministic message sort order.
Removed a superfluous TRACE_FATAL message.
* pidfile.c, pool.c:
Chmod the pidfile and statefile to 0644.
* sort.c:
Plugged a memory leak. Zapped another FIXME.
2006-09-11 Aaron Stone <aaron@serendipity.cx>
* debug.c:
Return right away if there's no logging to be done.
2006-09-10 Aaron Stone <aaron@serendipity.cx>
* imapcommands.c:
Give parentmboxid an initial value to prevent garbage mailbox ACL
lookups.
2006-09-10 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
deal with missing envelopes
* dbmail-imapsession.c:
newtrace cleanups
* ChangeLog, modules/dbsqlite.c:
fix tiny leak in sqlite code
* dbmail-imapsession.c, imapcommands.c:
reopen the mailbox for each fetch
2006-09-09 Paul J Stevens <paul@nfg.nl>
* db.c, db.h, dbmail-imapsession.c, dbmail-imapsession.h, dbmail-message.c,
dbmail-message.h, dm_imaputil.c, dm_imaputil.h, imapcommands.c,
maintenance.c, misc.c, misc.h, sql/mysql/2_1_7-2_1_8.mysql,
sql/postgresql/2_1_7-2_1_8.pgsql, sql/sqlite/2_1_7-2_1_8.sqlite:
precache ENVELOPE to allow more FETCH speedups
* serverparent.c, sql/mysql/2_1_7-2_1_8.mysql:
finish envelope caching
2006-09-09 Aaron Stone <aaron@serendipity.cx>
* imapcommands.c:
Allow mailbox renaming destination to be top-level.
2006-09-08 Paul J Stevens <paul@nfg.nl>
* pop3.c, test-scripts/testpop.txt:
more pop3 cleanups
* check_dbmail_imapd.c, dbmail-imapsession.c, dm_imaputil.c:
speedup fetch by changing a join in _fetch_headers
* serverparent.c:
fix double free
* check_dbmail_imapd.c, db.h, dbmail-imapsession.c, dbmail-imapsession.h,
dm_imaputil.c, imapcommands.c, list.c, list.h, misc.c, misc.h:
massive speedup in fetch code by retrieving headerfields in one query
* test-scripts/testfetch.txt:
added fetch sequence used by evolution
* dbmail-imapsession.c, imapcommands.c, test-scripts/testfetch.txt:
fix a memleak and add OE fetch to testscript
* dbmail-imapsession.c:
make the fetch speedup scale up
2006-09-08 Aaron Stone <aaron@serendipity.cx>
* db.c, acl.c, imapcommands.c:
Clarify the ACL checks for IMAP delete and rename.
* lmtpd.c, pop3d.c, imapd.c, timsieved.c:
Removed call to serverparent_config.
Added service argument to call serverparent_mainloop.
* server.c, server.h, serverparent.c, serverparent.h:
Consolidated serverparent_config with serverparent_getopt,
moved ClearConfig and LoadServerConfig to serverparent.
Actually re-read the config file on receipt of SIGHUP.
* pidfile.c:
Add a trailing newline to the pidfile.
* pool.c:
Dump the initial scoreboard state from manage_start_children.
2006-09-07 Paul J Stevens <paul@nfg.nl>
* pop3.c:
code style cleanups
* check_dbmail_imapd.c, dbmail-imapsession.c, dm_imaputil.c:
speedup fetch by changing a join in _fetch_headers
2006-09-06 Aaron Stone <aaron@serendipity.cx>
* sievecmd.h, sievecmd.c:
Removed superfluous header file, made functions static.
* check_dbmail_imapd.c:
More checks for proper address parsing.
* serverparent.h, serverparent.c:
All the duplicated code from the main daemons.
* lmtpd.c, pop3d.c, imapd.c, timsieved.c:
Lost some weight, now using common serverparent functions.
* pidfile.c:
Makes a local copy of the name of the file to unlink.
* pool.h, pool.c:
Generates a state file with a human readable scoreboard dump.
* config.c:
Analogues of pidfile functions for the statefile.
* server.c:
Dump the scoreboard on receipt of SIGUSR1.
* dbmail.h.in, dbmailtypes.h, acinclude.m4, Makefile.am:
Tie up some loose datatypes for the common daemon code.
2006-09-05 Paul J Stevens <paul@nfg.nl>
* db.c, dbmail-imapsession.c, imap4.c, imapcommands.c:
remove some spurious warnings and redundant calls to db_getmailbox
2006-09-03 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-message.c:
fix typo
* dbmail-message.c:
do not truncate dbmail_headervalue.headervalue (closes #338)
* dbmail-mailbox.c:
plug the memleak in the sort code
2006-09-02 Paul J Stevens <paul@nfg.nl>
* maintenance.c:
issue warning when dbmail-util doesn't specify -y
* check_dbmail_imapd.c, check_dbmail_mailbox.c, dbmail-mailbox.c,
dbmail-mailbox.h, dbmailtypes.h:
test and fix search/sort sequences with and without uid, but
introduces a memleak.
* check_dbmail_mailbox.c, misc.c:
moved some tree testing into mailbox testcode
* check_dbmail_mailbox.c, dbmail-mailbox.c, test-scripts/testsort.imap:
fix dbmail_mailbox_get_set
2006-08-31 Aaron Stone <aaron@serendipity.cx>
* contrib/startup-scripts/gentoo:
Unified startup script with conf.d configuration file.
2006-08-29 Aaron Stone <aaron@serendipity.cx>
* check_dbmail_imapd.c, dm_imaputil.h, dm_imaputil.c:
Handle RFC 2822 address list group syntax more correctly (closes bug
#386) and expanded test coverage of dbmail_imap_append_alist_as_plist.
* modules/authsql.c, pipe.c, dbmail-message.c, dm_md5.c,
dbmail-imapsession.c, misc.c:
Silenced signedness warning (closes bug #397).
* dm_imaputil.c:
Added a default parameter to imap_append_header_as_string that allows
us to specify that Content-Encoding should default to "7BIT" rather
than NIL (closes bug #404).
2006-08-27 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, check_dbmail_misc.c, dbmail-imapsession.c,
dbmail-imapsession.h:
minor changes in dbmail_imap_session_mailbox_open and
dbmail_imap_session_mailbox_get_idnr
* debian/control:
fix debian/control
2006-08-22 Aaron Stone <aaron@serendipity.cx>
* lmtp.c:
Added ? and ' to validchars (closes bug #400).
2006-08-21 Aaron Stone <aaron@serendipity.cx>
* contrib/startup-scripts/ubuntu/dbmail:
Added Ubuntu startup script mysteriously posted to the wiki.
2006-08-20 Aaron Stone <aaron@serendipity.cx>
* db.h, db.c:
Added function to count messages needing delete status.
* maintenance.c:
Call the new count function above.
* debug.h, debug.c:
Added __LINE__ to the newtrace function. Started adding more debugging
information for TRACE macro calls.
2006-08-20 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
fix bug #392
2006-08-18 Paul J Stevens <paul@nfg.nl>
* dbmail-imapsession.c:
modify debug message after timeout in fgetc in build_imap_args_ext
2006-08-17 Paul J Stevens <paul@nfg.nl>
* debian/changelog:
fix bogus vc stuff in debian/changelog
* check_dbmail_db.c:
fix testcase after aaron changed mailbox_create_with_parents
* dbmail-imapsession.c:
minor changes in build_imap_args_ext to try get a grip on #392
2006-08-14 Aaron Stone <aaron@serendipity.cx>
* dbmailtypes.h, db.h, db.c:
Added source argument to the db_create_mailbox_with_parents function
to determine if permission checks should be skipped or not.
* main.c, man/dbmail-smtp.txt:
Added -M flag, like -m, but skip all permission checks and Sieve
scripts (closes bug #391 and bug #393).
* imapcommands.c, sort.c:
Updated calls to the lower level mailbox creation and delivery
functions with the additional source arguments.
* debug.h, debug.c:
Added argument to the newtrace function to know if it was called from
the trace or TRACE macro.
2006-08-13 Aaron Stone <aaron@serendipity.cx>
* export.c:
Only find mailboxes, don't create them.
* db.c:
db_find_create_mailbox may now look for mailboxes owned by other
users, as for mailboxes in the #Users or #Public hierarchies.
* acl.c:
Minor change to let gcc check for possible switch cases.
* sort.c:
Check the POST ACL on a mailbox before delivering mail to it.
* dbmail-message.c:
Fixed a corner case memory leak in _message_insert.
* sievecmd.c:
Fixed some output that was marked as quiet.
2006-08-05 Aaron Stone <aaron@serendipity.cx>
* db.c:
Lowered the number of messages per database query from 100 to 80 to
prevent creating truncated queries (closes bug #390).
2006-08-01 Aaron Stone <aaron@serendipity.cx>
* pipe.c:
Proper fix to prevent passing addresses with full names on the
sendmail command line (closes bug #372).
2006-07-30 Aaron Stone <aaron@serendipity.cx>
* sql/mysql/create_tables.mysql, migrate_from_2.0_to_2.1.mysql:
Accepted patch from Maenaka to only create Sieve tables once, in
InnoDB format (closes bug #386).
* pipe.c:
Attempt to resolve bug #372.
* config.c, dbmail.conf, dbmailtypes.h, modules/dbmysql.c:
Accepted patch from Maenaka to allow configurable MySQL connection
encoding (closes bug #385).
2006-07-27 Aaron Stone <aaron@serendipity.cx>
* debug.c:
Added fflush after fprintf (closes bug #388).
* modules/sortsieve.c:
Make sure that the msgflags pointer is NULL if there are no special
flags (closes bug #383).
2006-07-26 Paul J Stevens <paul@nfg.nl>
* debian/control, modules/sortsieve.c:
depend on libsieve1_2.1.12 and activate sort_getsubaddress callback in
sieve code
* INSTALL.exim, INSTALL.postfix, INSTALL.qmail, README.exim,
README.postfix, README.qmail, debian/dbmail.docs:
rename a couple of files
* debian/changelog, debian/control, debian/dbmail.install,
debian/libdbmail0.dirs, debian/libdbmail0.install:
split out shared libs into separate packages
* debian/control, debian/dbmail.postinst, debian/dbmail.postrm,
debian/libdbmail0.postinst, debian/libdbmail0.postrm:
update debian files
* debian/dbmail.init:
make debian initscript lsb compliant
2006-07-26 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.c:
Accepted patch from maenaka (closes bug #383) to clear the IMAP flags
if none are given by the Sieve script.
* db.c:
Accepted patch from Leif Jackson to close a memory leak in
db_imap_split_mailbox.
2006-07-25 Paul J Stevens <paul@nfg.nl>
* misc.c:
fix g_strcasestr
* Makefile.am, check_dbmail_misc.c, misc.c:
add check_dbmail_misc.c testsuite
2006-07-24 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
remove mailbox_search_parsed and friends
* ChangeLog, Makefile.am, check_dbmail_db.c, check_dbmail_imapd.c, db.c,
db.h, dbmailtypes.h, debug.c, debug.h, dm_imaputil.c, imap4.h,
imapcommands.c, misc.c, modules/sortsieve.c, pipe.c, sort.c, sort.h,
sql/mysql/create_tables.mysql,
sql/mysql/migrate_from_2.0_to_2.1.mysql:
re-merge aarons patch
* db.h:
minor typo
* dsn.c:
do not free statics
* modules/sortsieve.c:
use strstr instead of undefined g_strstr
* dbmail-message.c:
use GString in _header_cache
* check_dbmail_imapd.c, db.c, dbmail-imapsession.c, dm_imaputil.c,
modules/sortsieve.c:
cleanups after recent mergings
2006-07-21 Aaron Stone <aaron@serendipity.cx>
* Makefile.am:
Added acl.c to the general build; it's needed for the mailbox
hierarchy creation function now found in db.c
* check_dbmail_db.c, dbmail_dbmail_imapd.c:
Added test coverate for mailbox parent hierarchy and
undisclosed-address parsing.
* db.c, db.h:
Added function db_mailbox_create_with_parents and
db_imap_split_mailbox to handle mailbox hierarchy.
* dbmailtypes.h, imap4.h:
Names of the supported IMAP message flags made universal.
* debug.c, debug.h:
Further work on the newtrace function and the TRACE macro.
* dm_imaputil.c:
Made _imap_append_alist_as_plist non-static for test coverage.
* imapcommands.c:
Call db_mailbox_create_with_parents rather than db_createmailbox.
* pipe.c:
Better handling of exit status from sendmail command.
* sort.c, sort.h, modules/sortsieve.c:
Updated to work with libSieve 2.1.11.
* sql/mysql/create_tables.mysql,
sql/mysql/migrate_from_2.0_to_2.1.mysql:
Removed BINARY qualifier from the name column of dbmail_mailboxes.
2006-07-21 Paul J Stevens <paul@nfg.nl>
* ChangeLog, Makefile.am, check_dbmail_db.c, check_dbmail_imapd.c, db.c,
db.h, dbmailtypes.h, debug.c, debug.h, dm_imaputil.c, imap4.h,
imapcommands.c, modules/sortsieve.c, pipe.c, sort.c, sort.h,
sql/mysql/create_tables.mysql,
sql/mysql/migrate_from_2.0_to_2.1.mysql:
back out Aarons patch
* acinclude.m4:
fix minor typo (cshug)
* acinclude.m4:
fix loopholes in configure logic
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql:
add missing column in migration script (jnorell)
2006-07-20 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-mailbox.c, dbmail-mailbox.h,
debian/changelog:
cleanup old search_parsed code and properly use uid sets in search results
2006-07-18 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
move content-type extraction from _header_cache to _register_header
* debian/dbmail.init:
cleanup dbmail init.d script for debian
* dbmail-message.c:
prevent fieldwidth overflow during headername insertion
* dbmail-imapsession.c, imapd.c, lmtp.c, lmtpd.c, pool.c, pop3.c, pop3d.c,
server.c, serverchild.c, serverchild.h, timsieve.c, timsieved.c:
accepted signal safety patch from ryo (#361)
2006-07-16 Paul J Stevens <paul@nfg.nl>
* pool.c, pool.h, serverchild.c:
rename State_t to child_state_t in pool code
* dbmail-mailbox.c:
add missing group by clause in body search
2006-07-15 Paul J Stevens <paul@nfg.nl>
* dm_imaputil.c, modules/dbsqlite.c:
minor cleanups
* check_dbmail_imapd.c, dm_imaputil.c:
skip double-quotes in rfc2047 encoded strings
* modules/dbsqlite.c:
remove redundant free call
* dbmail-mailbox.c, dbmailtypes.h, modules/dbmysql.c, modules/dbpgsql.c,
modules/dbsqlite.c:
encode messageblks while doing body search if necessary
2006-07-12 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
do body searches directly against the messageblk making the other
changes irrelevant
* dbmail-mailbox.c, dbmailtypes.h:
ignore charset in search; change bodysearch approach
* dbmail-mailbox.c:
make headersearches case insensitive
2006-07-03 Paul J Stevens <paul@nfg.nl>
* debian/dbmail-ldap.docs, debian/dbmail-sieve.docs:
add more docs to debian packages
* debian/dbmail.docs:
update
* pool.c, server.c, serverchild.c:
rework the preforking code after doing some serious stress tests
(bug #361)
2006-06-24 Paul J Stevens <paul@nfg.nl>
* pool.c, server.c:
accepted patch from ryo (closes: #370)
* pool.c:
revert previous failed fix on reap_child
* dm_imaputil.c:
try to fix broken gmime parsing of some addresses
* imapcommands.c:
minor cleanup in _ic_authenticate
* dbmail-imapsession.c:
remove redundant error checking on g_new0 calls
* modules/authldap.c, server.c:
misc cleanups
2006-06-21 Paul J Stevens <paul@nfg.nl>
* modules/authldap.c, modules/dbsqlite.c, sql/sqlite/create_tables.sqlite:
sqlite now passes all the unit-tests (with some help from Geo)
2006-06-20 Paul J Stevens <paul@nfg.nl>
* sql/sqlite/create_tables.sqlite:
finished create_tables.sqlite
* debian/control:
relax build-deps on debhelper version a little
* acinclude.m4, modules/dbsqlite.c:
shift to sqlite3 api
2006-06-18 Paul J Stevens <paul@nfg.nl>
* db.c, db.h, modules/authldap.c, modules/authsql.c:
rebind after authentication in ldap (bug #367). Added
db.c,db_user_log_login to add logging of last login in ldap as well
* check_dbmail_deliver.c, dbmail-message.c, misc.c, misc.h:
added misc.c,dm_strnesc which provides correct trunctation of sql-escaped
strings
2006-06-17 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c:
add string escaping to query constructors in search code
2006-06-16 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_message.c, dbmail-message.c,
dbmail-message.h, imapcommands.c:
avoid duplicate insertion of headername/headervalue pairs (bug #282)
2006-06-14 Aaron Stone <aaron@serendipity.cx>
* contrib/dbmail-removeversion.patch, contrib/dbmail.spec,
contrib/startup-scripts/redhat/:
RedHat-style RPM spec and init scripts contributed by J. Simonetti.
* sql/mysql/migrate_from_2.0_to_2.1.mysql:
The dbmail_physmessage table must be InnoDB in order to be a target of
foreign keys from the header cache tables.
* dbmail-message.c:
Downgraded some minor errors to TRACE_MESSAGE level.
* pipe.c, modules/sortsieve.c:
Get the Delivered-To header for a from address for redirect. Don't use
To as a backup for redirect or reply because it's untrustworthy. Use
envelope recipient if Delivered-To is not found.
2006-06-13 Paul J Stevens <paul@nfg.nl>
* ChangeLog:
cleanup Changelog
* dbmail.schema:
added mailHost attribute. dbmail.schema now conflicts with misc.schema
so use one or the other
* pool.c:
prevent parent from hanging when child fails to die (bug: #363)
2006-06-09 Aaron Stone <aaron@serendipity.cx>
* pipe.c:
Couple more from and memory cleanups (closes bug #359 again).
* debug.h, debug.c:
Added trace level to the debug output. Started sketching newtrace
function.
* dbmail-imapsession.c:
Removed TRACE_FATAL from dbmail_imap_session_printf (closes bug #361).
2006-06-08 Aaron Stone <aaron@serendipity.cx>
* pipe.h, pipe.c, modules/sortsieve.c:
Removed free's of returns from dbmail_message_get_headers as they are
const. Added handle argument to send_vacation to prevent loops. Added
headers to declare all generated messages as UTF-8.
* db.c, dbmail-imapsession.c:
Accepted memory leak patch by Ryo (closes bug #360).
* pipe.c, modules/sortsieve.c:
Resolved corner cases of missing from's and to's for replies and
vacations (closes bug #359).
2006-06-07 Aaron Stone <aaron@serendipity.cx>
* db.h, db.c, modules/db*.c, dbmailtypes.h:
Dropped the REGEXP stuff and switched to LIKE/ILIKE pairs. Added sql
fragments to get the appropriate case sensitive / insensitive LIKE
operators. Thanks to Geo Carncross for his suggested algorithm.
* imapcommands.c:
Removed the filter arguments from db_listmailboxchildren because it's
now internal to the LIKE function above.
2006-06-06 Paul J Stevens <paul@nfg.nl>
* check_dbmail_message.c, dbmail-message.c, dbmail-message.h,
modules/sortsieve.c:
make dbmail_message_get_header_repeated case-insensitive
* check_dbmail_message.c, dbmail-message.c, dbmail-message.h,
modules/sortsieve.c:
redone dbmail_message_get_header_repeated
2006-06-05 Aaron Stone <aaron@serendipity.cx>
* db.c, dbmailtypes.h, modules/db*.c:
Changed up the case insensitive modified utf7 thing to use SQL regular
expressions. Added a function to SQLite to provide REGEXP.
* dbmail-message.h, dbmail-message.c, modules/sortsieve.c:
Added new function dbmail_message_get_header_repeated to grab all
instances of a header (closes bug #358).
* pool.c:
Added a static function declaration to quash a compiler warning.
2006-06-04 Aaron Stone <aaron@serendipity.cx>
* dm_match.c, check_dbmail_user.c:
Fixed zero length matching for ?. Added more testcases.
* db.c:
Modified db_findmailbox_owner to be case-insensitive.
2006-06-03 Paul J Stevens <paul@nfg.nl>
* db.c, db.h:
fix POP3 TOP command (closes: #330)
2006-06-02 Aaron Stone <aaron@serendipity.cx>
* dbmail-imapsession.c, dbmail-mailbox.c, dbmail-message.c,
imapcommands.c, list.c, misc.c, user.c:
Accepted g_string_* memory cleanup patch by kaname (closes bug #355).
* dm_imaputil.c:
Accepted g_object_unref patch by ryo (from bug #139).
* auth.h, authmodule.c, authmodule.h, modules/authldap.c,
modules/authsql.c:
Added function auth_get_aliases_ext (for bug #174).
* dm_match.h, dm_match.c, dbmail.h.in, Makefile.am:
Added functions match_glob and match_glob_list (for bug #174).
* check_dbmail_user.c, dbmail-user.c:
Handle wildcards ? and * for aliases and forwards (closes bug #174).
2006-06-01 Paul J Stevens <paul@nfg.nl>
* debian/:
debian cleanups
* dbmail-mailbox.c, dbmail-message.c, dm_imaputil.c:
add g_object_unref calls (bug #139)
2006-05-27 Paul J Stevens <paul@nfg.nl>
* debian/control, debian/rules:
fix debian setup so we can build on ubuntu breezy
* man/dbmail-timsieved.txt:
fix typo in dbmail-timsieved.txt
* modules/dbsqlite.c:
add missing function to sqlite module
* dbmail-message.c:
disable savepoint support for now
2006-05-26 Aaron Stone <aaron@serendipity.cx>
* sievecmd.h, sievecmd.c:
Added new option '-c [scriptname]' to print out a script.
2006-05-26 Paul J Stevens <paul@nfg.nl>
* debian/changelog, dm_imaputil.c:
properly descend into multipart containing rfc822 subpart
2006-05-24 Aaron Stone <aaron@serendipity.cx>
* misc.c:
dm_stresc should not check the returns values of g_new0 or
db_string_escape; there's nothing to check for (closes bug #352).
2006-05-23 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/control, debian/dbmail-dev.files,
debian/dbmail-dev.install, debian/dbmail-ldap.files,
debian/dbmail-ldap.install, debian/dbmail-mysql.files,
debian/dbmail-mysql.install, debian/dbmail-pgsql.files,
debian/dbmail-pgsql.install, debian/dbmail-sieve.files,
debian/dbmail-sieve.install, debian/dbmail-sqlite.files,
debian/dbmail-sqlite.install, debian/dbmail.install,
debian/dbmail.postinst, debian/dbmail.postrm, debian/rules:
replace db_movefiles with dh_install and fix some lintian warnings
* man/Makefile.am:
make sure manpage for dbmail-timsieved gets build
* dbmail-mailbox.c:
fix empty sort results
* acl.c:
compiler warning
* dbmailtypes.h:
remove unused values in search_key_t
* debian/dbmail-mysql.install, debian/dbmail-pgsql.install,
debian/dbmail-sieve.install, debian/dbmail.install:
reinstall all so* modules
2006-05-22 Paul J Stevens <paul@nfg.nl>
* sort.c:
add INFO level trace to sort_deliver_to_mailbox
* debian/rules, man/dbmail-export.8, man/dbmail-imapd.8,
man/dbmail-lmtpd.8, man/dbmail-pop3d.8, man/dbmail-sievecmd.8,
man/dbmail-smtp.1, man/dbmail-timsieved.8, man/dbmail-timsieved.txt,
man/dbmail-users.8, man/dbmail-util.8, man/dbmail.1,
man/dbmail.conf.5:
remove post-make files from man/
* imapcommands.c:
preliminary cleanup of _ic_create
* pipe.c:
do not prepend empty headers when forwarding
2006-05-19 Paul J Stevens <paul@nfg.nl>
* acl.c, db.c, db.h, debian/changelog, imapcommands.c:
add mailbox_is_writable to acl_hasright (bug: #298)
* check_dbmail.h, check_dbmail_imapd.c, dm_imaputil.c, dm_imaputil.h:
work around parsing of broken addresses in envelope code
* modules/dbpgsql.c:
fix memleak (closes: #350)
* dbmail-message.c:
do crlf-dot-crlf decoding on lmtp stream (closes: #349)
2006-05-18 Paul J Stevens <paul@nfg.nl>
* db.c, test-scripts/testimap.py:
fix lsub
* dbmail-mailbox.c:
fix imap search without sequence set
2006-05-17 Paul J Stevens <paul@nfg.nl>
* debian/control:
update debian depends
* check_dbmail_imapd.c, serverchild.c:
fix a couple of minor compiler warnings
* debian/default.dbmail:
disable startup of timsieved by default in debian scripts
* sql/sqlite/create_tables.sqlite:
partial finish of sqlite create_tables
* dm_imaputil.c:
tweak escaping of from in envelope
2006-05-13 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4, authmodule.c, dbmodule.c, sortmodule.c:
Use the --prefix or its default to find the loadable modules.
* dbmail-imapsession.c, dbmail-messageg.c:
Applied a memory leak patch by Leif Jackson.
2006-05-12 Aaron Stone <aaron@serendipity.cx>
* sievecmd.h, sievecmd.h:
Various improvements and updates to bring dbmail-sievecmd in line with
the other command line tools. Inserting a script from a file now
works (closes bug #346).
* check_dbmail_imapd.c:
Added testcase for dbmail_imap_session_prompt and functions to create
a temporary fifo to simulate a network connection.
2006-05-10 Paul J Stevens <paul@nfg.nl>
* debug.c:
cut down the number of strlen calls
* THANKS:
thank metaways for helping out on solaris
* dm_imaputil.c, test-scripts/testimap.py:
fix string quoting and encoding in message-id and content-disposition
atoms
2006-05-09 Paul J Stevens <paul@nfg.nl>
* debug.c:
replace vsyslog with g_strdup_vprintf to placate solaris
* dbmail-imapsession.c:
avoid passing null pointer to trace call
* dm_imaputil.c:
properly descend into message/rfc822 message part during bodystructure
construction
* debian/dbmail.init, debian/default.dbmail:
include sieve in debian startup scripts
* check_dbmail_imapd.c, check_dbmail_message.c, dm_imaputil.c:
detect illegal message-ids during envelope construction
2006-05-06 Aaron Stone <aaron@seerendipity.cx>
* dbmail.conf:
Added comment for anonymous ldap bindings.
* misc.h, misc.c, dm_imaputil.h, dm_imaputil.c,
md5.h, md5.c, dbmd5.h, dbmd5.c:
Removed all MD5 and Base64 encoding and decoding code.
* dm_md5.h, dm_md5.c:
One stop shop for MD5. Uses same code as before, but now it's static.
* dm_base64.h, dm_base64.c:
One stop shop for Base64. Uses a faster public domain algorithm.
* user.c, dbmail-user.c, modules/authsql.c:
Added support for MD5-Base64 passwords.
* modules/sortsieve.c, dbmail-imapsession.c, timsieve.c:
Use new MD5 and Base64 functions with far fewer casts.
* check_dbmail_auth.c:
Test suite for all password encryption types.
2006-05-05 Paul J Stevens <paul@nfg.nl>
* sql/mysql/update_headervalue_01.mysql:
remove redundant index from update script
* sql/mysql/create_tables.mysql, sql/mysql/migrate_from_2.0_to_2.1.mysql:
update mysql scripts for new headervalue type
* debian/changelog, debian/dbmail-sieve.manpages, debian/dbmail.manpages:
updates for new manpages
* dm_imaputil.c:
smash another envelope bug
2005-05-04 Paul J Stevens <paul@nfg.nl>
* sql/mysql/update_headervalue_01.mysql:
added update script for headervalue storage type (mysql)
* sql/mysql/update_headervalue_01.mysql:
finish update script for headervalue width
* dbmail-message.c:
headervalues are no longer truncated in the headercache
* pool.c:
add simple retension mechanism to the pooling code
2006-05-02 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4:
Changed SIEVE, AUTHLDAP, USE_DM_GETOPT over to AC_DEFINE, which
means that they don't have to appear on the compile command line.
2006-05-02 Paul J Stevens <paul@nfg.nl>
* db.c, dbmail-imapsession.c:
minor cleanups in mailbox.seq_list construction
* dbmail.h.in:
add some defines for solaris and glibc2
* debian/control:
add asciidoc to the build dependencies
2006-05-01 Aaron Stone <aaron@serendipity.cx>
* man/*:
Converted all mangpages to AsciiDoc format. Lots of updating. Added
missing manpages and the start of an introductory 'dbmail' manpage.
* modules/dbmysql.c:
Check that collation_connection matches collation_database.
2006-04-30 Paul J Stevens <paul@nfg.nl>
* db.c, db.h:
add savepoint handling (idk)
* dbmail-message.c:
use savepoints in storing header cache values (closes: #282)
2006-04-30 Aaron Stone <aaron@serendipity.cx>
* dbmail.conf, dbmail.h.in, pipe.c, config.c:
Added AUTO_NOTIFY_SENDER, AUTO_NOTIFY_SUBJECT to dbmail.conf, now
respects POSTMASTER in pipe.c, sane fallbacks (closes bug #257).
* dbmailtypes.h, server.h, server.c, serverchild.c:
Just one version of loading the server config file.
* lmtpd.c, timsieved.c, pop3d.c, imapd.c:
Zap the old, duplicated versions of SetConfigItems.
Call the new LoadServerConfig function.
2006-04-29 Aaron Stone <aaron@serendipity.cx>
* server.c, lmtpd.c, pop3d.c, imapd.c, timsieved.c, dbmailtypes.h:
Accepted hsn's backlog patch (closes bug #202).
* db.c:
Accepted kaname's memory leak patch (closes bug #336).
2006-04-29 Paul J Stevens <paul@nfg.nl>
* modules/authldap.c:
dereference bug in auth_user_validate
* debian/rules, dm_imaputil.c, test-scripts/testimap.py:
use dbmail_imap_astring_as_string for quoting string elements in the
envelope response
* debian/changelog, dm_imaputil.c, test-scripts/testimap.py:
an other envelope fix
* THANKS:
add Matthew Sayler to THANKS
* dm_imaputil.c, test-scripts/testimap.py:
collapse address lists in envelope response
2006-04-28 Paul J Stevens <paul@nfg.nl>
* dbmail-mailbox.c, dm_imaputil.c, test-scripts/testimap.py:
beware of double-quotes in email-addresses
* Makefile.am, check_dbmail_deliver.c, check_dbmail_misc.c:
move tests from check_dbmail_misc.c to check_dbmail_deliver.c and remove
check_dbmail_misc.c
* dm_imaputil.c, modules/Makefile.am, modules/authldap.c,
test-scripts/testimap.py:
escape the subject before quoting in envelope response (closes: #279)
2006-04-24 Paul J Stevens <paul@nfg.nl>
* dm_imaputil.c, test-scripts/testimap.py:
fix double quoting in ENVELOPE response (closes: #329)
* debian/control:
update mysql build dependancy
* misc.c:
provide fallback for internaldate where %z is not provided
2006-04-24 Aaron Stone <aaron@serendipity.cx>
* configure.in, acinclude.m4, Makefile.am:
Added latest getopt.m4 from Gnulib that will activate USE_DM_GETOPT
on systems with an unfriendly getopt (closes half of bug #331).
Added USE_DM_GETOPT flags to conditionally build gm_getopt.c.
* misc.h, misc.c:
Zapped two unused functions dm_valid_folder, dm_strip_folder.
* pipe.c:
valid_sender avoids strcasestr (closes the other half of bug #331).
2006-04-21 Paul J Stevens <paul@nfg.nl>
* config.c, dbmail.h.in, imapd.c, lmtpd.c, modules/authldap.c, pop3d.c,
timsieved.c:
fix creation of pid files (closes: #327)
* db.c, modules/authldap.c:
auto-create shadow user and inbox for ldap-authenticated users
2006-04-18 Aaron Stone <aaron@serendipity.cx>
* modules/dbmysql.c:
Set the current connection's collation to match the database. Prevents
"Illegal mix of collations" errors as MySQL switches to UTF8 by default.
2006-04-18 Paul J Stevens <paul@nfg.nl>
* Makefile.am, dbmail.h.in, forward.c, forward.h, modules/sortsieve.c,
pipe.c, pipe.h:
applying aarons fix for popen/pipe delivery (fixes: #325)
* serverchild.c:
catch failed forks
* db.c, dbmail-message.c:
add some db_free_result calls (kaname) (closes: #324)
* sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_from_2.0_to_2.1.pgsql:
fix the postgres creation and migration scripts for
datefield (kaname) (closes: #328)
* NEWS, VERSION, debian/README.Debian, debian/changelog, debian/control,
debian/dbmail-dev.files, debian/dbmail-ldap.examples,
debian/dbmail-ldap.files, debian/dbmail-mysql.examples,
debian/dbmail-mysql.files, debian/dbmail-pgsql.examples,
debian/dbmail-pgsql.files, debian/dbmail-sieve.files,
debian/dbmail-sqlite.examples, debian/dbmail-sqlite.files,
debian/dbmail2.2-dev.files, debian/libdbmail-ldap.examples,
debian/libdbmail-ldap.files, debian/libdbmail-mysql.examples,
debian/libdbmail-mysql.files, debian/libdbmail-pgsql.examples,
debian/libdbmail-pgsql.files, debian/libdbmail-sieve.files,
debian/libdbmail-sqlite.examples, debian/libdbmail-sqlite.files,
debian/rules:
cleaning up the debian packaging
* debian/dbmail-mysql.examples, debian/dbmail-pgsql.examples,
debian/dbmail.substvars,
sql/postgresql/add_auto_replies_fields.pgsql,
sql/postgresql/add_header_tables.pgsql,
sql/postgresql/add_replycache.pgsql,
sql/postgresql/add_sieve_tables.pgsql,
sql/postgresql/add_usermap.psql, sql/postgresql/create_tables.pgsql,
sql/postgresql/migrate_2.0_to_2.1.pgsql,
sql/postgresql/migrate_from_2.0_to_2.1.pgsql:
cleaning up the debian packages
* NEWS:
re-add empty file
* pool.h:
increase HARD_MAX_CHILDREN
* debian/control, debian/dbmail-mysql.examples, debian/dbmail.postrm:
debian package cleanup
* sql/sqlite/create_tables.sqlite:
update sqlite create_tables file
* dbmail-message.c:
only look for From_ at the first line of a message (closes: #326).
* serverchild.c:
do _exit if child_register failes. This needs more work.
* debian/changelog, debian/dbmail.examples, debian/dbmail2.2-base.examples:
more cleanups in debian packaging
2006-04-14 Paul J Stevens <paul@nfg.nl>
* check_dbmail_mailbox.c, dbmail-mailbox.c, dbmailtypes.h:
search-not is now fixed.
* modules/dbpgsql.c:
fix some compiler warnings
* dbmail-message.c:
fix a memory leak.
* dbmail-mailbox.c:
fix a double free
2006-04-13 Paul J Stevens <paul@nfg.nl>
* dbmail.h.in:
remove empty header files
* check_dbmail_mailbox.c, check_dbmail_misc.c, dbmail-mailbox.c,
dbmailtypes.h, test-scripts/testimap.py:
tracking down the SEARCH NOT problem
2006-04-10 Paul J Stevens <paul@nfg.nl>
* INSTALL.postfix, Makefile.am, README.usermap, acl.c, check_dbmail.h,
check_dbmail_common.c, check_dbmail_db.c, check_dbmail_deliver.c,
check_dbmail_dsn.c, check_dbmail_imapd.c, check_dbmail_mailbox.c,
check_dbmail_message.c, check_dbmail_misc.c, check_dbmail_server.c,
check_dbmail_user.c, check_dbmail_util.c, config.c, db.c, db.h,
dbmail-imapsession.c, dbmail-imapsession.h, dbmail-mailbox.c,
dbmail-mailbox.h, dbmail-message.c, dbmail-message.h, dbmail-user.c,
dbmail-user.h, dbmailtypes.h, debug.c, debug.h, dm_cidr.c, dm_cidr.h,
dm_imaputil.c, dm_imaputil.h, export.c, imap4.c, imap4.h,
imapcommands.c, imapcommands.h, imapd.c, list.c, list.h, main.c,
main.h, maintenance.c, memblock.c, misc.c, misc.h, pidfile.h, pipe.h,
pool.c, pool.h, pop3.c, pop3d.c, quota.c, server.c, server.h,
serverchild.c, serverchild.h, user.c:
remove empty files and update copyright notices all over the place
* check_dbmail_db.c, db.c, db.h, imapcommands.c, maintenance.c:
expand unit-test coverage and do some cleanups in db.c along the way
* check_dbmail_imapd.c, check_dbmail_mailbox.c, check_dbmail_message.c,
check_dbmail_misc.c:
reorganize a couple of test cases
* dbmail-mailbox.c, dbmail-mailbox.h:
g_list_length does not rewind before counting
* dbmail-message.c:
defensive correction
* pool.c:
revisit the scaling algorithm in the prefork code
* check_dbmail_mailbox.c, misc.c, misc.h:
some cleanups in the tree-merge code wrt glib-2.10
2006-04-07 Paul J Stevens <paul@nfg.nl>
* misc.c:
apply fix on discard_client_input by geo (closes: #200)
* contrib/mailbox2dbmail/mailbox2dbmail:
make mailbox2dbmail include the From_ line when sending data to
dbmail-smtp
* sql/postgresql/migrate_2.0_to_2.1.pgsql:
added partial migration script for postgres. The add_ files are still
needed for now
* sql/postgresql/add_auto_replies_fields.pgsql,
sql/postgresql/add_sieve_tables.pgsql:
fixed the add_ sql scripts for postgres-7.4
* debian/rules:
switch main development to postgresql
* db.c, maintenance.c:
apply fix by kaname (closes: #321)
* db.c:
apply fix by kaname (closes: #320)
* dbmail-message.c:
apply fix by kaname (closes: #319)
* dbmail-message.c:
fix by kaname (closes: #318)
2006-04-03 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_imapd.c, check_dbmail_message.c,
dbmail-message.c, dm_imaputil.c, test-scripts/testimap.py:
return NIL when content-disposition has no paramaters
* check_dbmail_imapd.c, check_dbmail_message.c, dbmail-message.c,
dbmail-message.h, main.c:
initialize the internal_date during insertion by scanning the From_
line if possible (closes: #316).
2006-04-01 Paul J Stevens <paul@nfg.nl>
* sql/mysql/create_tables.mysql, sql/mysql/migrate_from_2.0_to_2.1.mysql:
cleanup mysql scripts
* debian/control, debian/dbmail.prerm, debian/rules:
fix some debian bugs
* check_dbmail_mailbox.c, dbmail-mailbox.c, dbmail-message.c,
dbmail-message.h, debian/control, mime.c, misc.c, modules/authsql.c,
modules/sortsieve.c, serverchild.c:
fix compiler warnings
* Makefile.am, check_dbmail_imapd.c, check_dbmail_message.c,
dbmail-message.c, dbmail-message.h, dbmail.h.in, debian/rules,
main.c, mime.c, mime.h:
removed mime.[ch]
2006-03-31 Paul J Stevens <paul@nfg.nl>
* db.c, modules/authsql.c:
added some missing db_free_result calls (kaname) (closes: #315)
* INSTALL, sql/mysql/add_auto_replies_fields.mysql,
sql/mysql/add_header_tables.mysql, sql/mysql/add_replycache.mysql,
sql/mysql/add_sieve_tables.mysql, sql/mysql/add_usermap.mysql,
sql/mysql/create_tables.mysql, sql/mysql/create_tables_innoDB.mysql,
sql/mysql/migrate_from_1.x_to_2.0.mysql,
sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql,
sql/mysql/migrate_from_2.0_to_2.1.mysql:
update mysql sql scripts
2006-03-27 Paul J Stevens <paul@nfg.nl>
* ChangeLog, check_dbmail_mailbox.c, db.c, dbmail-imapsession.c,
debian/changelog, dm_imaputil.c, imapcommands.c,
test-scripts/testimap.py:
start new refactoring round of _ic_fetch and do some misc cleanups
* README:
update
* dbmail-mailbox.c, dbmail-mailbox.h:
make dbmail_mailbox_get_set more generic
* debian/changelog, debian/control:
debian package update
* check_dbmail_mailbox.c, imap4.h:
refactoring _ic_fetch
2006-03-25 Paul J Stevens <paul@nfg.nl>
* misc.c, check_dbmail_message.c:
decode and encode subject dm_base_subject
* ChangeLog, check_dbmail_imapd.c, check_dbmail_message.c,
dbmail-imapsession.c, dbmail-message.c, dbmail-message.h,
dm_imaputil.c, imap4.c, imap4.h, mime.c:
cleanups and memleak fixes
2006-03-24 Aaron Stone <aaron@serendipity.cx>
* sql/mysql/add_header_tables.mysql:
Added a note about transactions. Closes bug #296.
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql:
Added CASCADE after each DROP INDEX. Closes bug #167.
* dbmail.conf, modules/authldap.c:
Added LDAP_VERSION support, defaulting to version 3.
Closes bug #288.
* dbmail-message.c:
Moved a g_new0 into an anon block only where it is needed.
2006-03-23 Paul J Stevens <paul@nfg.nl>
* check_dbmail.h, check_dbmail_imapd.c, check_dbmail_message.c,
dm_imaputil.c, test-scripts/testbox:
recode name element in imap envelope fetch response
2006-03-21 Paul J Stevens <paul@nfg.nl>
* imapcommands.c:
check for invalid characters in _ic_create and _ic_rename
* sql/postgresql/add_auto_replies_fields.pgsql,
sql/postgresql/add_usermap.psql:
add missing statements in postgres sql files
* test-scripts/testimap.py, check_dbmail_db.c, check_dbmail_dsn.c,
check_dbmail_imapd.c:
cleanups
* ChangeLog, dbmail-imapsession.c, dbmailtypes.h, debug.c, misc.c:
make INTERNALDATE response rfc compliant (closes: #300)
* Makefile.am, check_dbmail_db.c:
add testframe for db.c
* debug.c, debug.h:
make trace level=0 really silent except for fatal errors
* modules/dbmysql.c, db.c:
fix db_query for mysql so it doesn't ignore some errors
2006-03-20 Paul J Stevens <paul@nfg.nl>
* ChangeLog, debian/changelog, tags:
remove tags file
* dbmail-imapsession.c, dbmail-imapsession.h, imap4.c, imapcommands.c,
test-scripts/testimap.py:
merge and finish Matthews patch to deal with too-long imapcommands
* db.c, misc.c, test-scripts/testimap.py:
merge Matthews patch for allowing single-quotes in mailbox names
2006-03-18 Paul J Stevens <paul@nfg.nl>
* timsieve.c:
excessive if/then depth cleanup
* main.c:
use delivered-to header for default delivery
* main.c:
restore -u delivery for dbmail-smtp
2006-03-17 Paul J Stevens <paul@nfg.nl>
* ChangeLog, debian/dbmail.logrotate:
added debian/dbmail.logrotate
* debian/dbmail.postinst, debian/rules:
call ldconfig and install logrotate file
* timsieve.c:
replace fprintf calls with ci_write wrapper
* debug.c:
fix race condition in accessing va_list in trace calls
* debian/control:
update for allowing builds on amd64
* debian/changelog, debian/control, debian/rules:
fix debian build
* acinclude.m4, configure.in, dbmail.h.in, debian/rules:
fix autobuild chain to allow for sane defaults
* check_dbmail_imapd.c:
fix testcases after mime.c cleanup
* server.c:
fix unlinking of unix socket on exit
* serverchild.c:
make accept failure fail louder
* acl.c, acl.h:
minor cleanups
* list.c, list.h:
remove unused code
* dbmail-imapsession.c:
make _imap_show_body_section rfc compliant by always including a
blank line
* db.c, dm_imaputil.c, main.c:
minor cleanups
2006-03-16 Aaron Stone <aaron@serendipity.cx>
* mime.h, mime.c:
Cut back to one function: find_deliver_to_header_addresses that will
pull up a single header value and search for email addresses in it.
* main.c:
Got rid of calls to the other functions in mime.c.
* db.c:
Deleted db_get_main_header because it relied upon structs from mime.h.
* imapd.c, pop3d.c, timsieved.c, lmtpd.c:
The -v option overrides trace levels and sets them all to maximum;
thanks to Matthew Saylor for the patch and suggestion to fix this.
2006-03-16 Paul J Stevens <paul@nfg.nl>
* dbmail-message.c:
fix segfault
* misc.c:
fix false positive error
* dbmail-imapsession.c, dbmail-imapsession.h:
make filtered stream persistent
2006-03-15 Paul J Stevens <paul@nfg.nl>
* imapd.c, lmtpd.c, pop3d.c, server.c, timsieved.c:
read config before freopen on file descriptors, and bail out in case
of failure
* db.c, misc.c:
escape query in nochildren code (closes: #314)
2006-03-14 Paul J Stevens <paul@nfg.nl>
* ChangeLog, check_dbmail_imapd.c, dbmail-message.c, misc.c:
fix date_sql2imap
* dbmail-mailbox.c:
ignore charset in searching mailbox
2006-03-11 Paul J Stevens <paul@nfg.nl>
* ChangeLog, configure.in, dbmail.h.in:
partial fix of autoconf
2006-03-10 Paul J Stevens <paul@nfg.nl>
* configure.in, dbmail-message.c, debian/patches/00list, debug.c, debug.h,
dsn.c, dsn.h, imap4.c, lmtp.c, main.c, misc.c, pop3.c, timsieve.c:
resync
* db.c:
wrap imap append in transaction (closes: #312)
* dbmail-imapsession.c, imapcommands.c:
make imap expunge deal with empty mailboxes
* config.c, dbmail.conf, dbmail.h.in, dbmailtypes.h, imapd.c, lmtpd.c,
pop3d.c, server.c, server.h, timsieved.c:
make logfiles and pid-directory configurable
* debian/changelog, modules/authldap.c, pool.c:
minor cleanups
2006-03-07 Aaron Stone <aaron@serendipity.cx>
* misc.h, misc.c:
Added dm_shellesc to escaped potentially unsafe shell chars.
* pipe.c:
Use dm_shellesc before calling popen(sendmail_command).
* lmtp.c:
Allow | (pipe) in the validchars. If it gets into an email address,
and that address is used when calling sendmail, we'll be ready.
2006-03-06 Aaron Stone <aaron@serendipity.cx>
* debug.h, debug.c:
Removed TRACE_STOP, moved TRACE_MESSAGE to be less-serious than
TRACE_WARNING.
* db.c, dbmail-message.c, main.c:
Removed references to TRACE_STOP.
* dbmail.conf:
Changed description of TRACE_SYSLOG config item.
* acl.c, db.c, dbmail-imapsession.c:
Fixed an uninitialized structure in the new ACL code.
* list.c, misc.c, dbmail-mailbox.c:
Accepted a patch from Matthew Sayler to prevent O(n^2) behavior
in the list code.
2006-03-06 Paul J Stevens <paul@nfg.nl>
* ChangeLog, debian/changelog, imapd.c, lmtpd.c, pop3d.c, server.c,
server.h, timsieved.c:
freopen the standard streams and redirect stdout/stderr to log files. This
will allow dbmail daemons to dissociate properly from the terminal
* dbmail-imapsession.c:
set loglevel to warning in case of closed socket (closes: #308)
* sql/mysql/create_tables.mysql, sql/mysql/create_tables_innoDB.mysql,
sql/mysql/migrate_from_1.x_to_2.0.mysql,
sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql:
set proper default on datetime fields for mysql scripts (closes: #309)
* dm_cidr.c:
correct copyright
* ChangeLog, debian/control:
fix depends for module packages
* INSTALL, debian/changelog, debian/rules, test-scripts/testimap.py:
minor updates
* acl.c, acl.h, db.c, db.h, dbmail-imapsession.c, dbmailtypes.h,
imapcommands.c:
fix bug #125 by making getacl more efficient
2006-03-04 Paul J Stevens <paul@nfg.nl>
* db.c:
fix the logic in db_imap_append_msg
* db.c:
remove temp message after imap append
* imapcommands.c, lmtp.c, test-scripts/testimap.py:
test for, and allow padding in timestring during imap append
2006-03-03 Paul J Stevens <paul@nfg.nl>
* lmtp.c:
remove double free and release 2.1.5
2006-03-01 Paul J Stevens <paul@nfg.nl>
* check_dbmail_deliver.c, db.c, debian/changelog, dsn.c, lmtp.c, main.c:
fix a small leak in dsnuser usage
2006-02-28 Aaron Stone <aaron@serendipity.cx>
* db.c:
Added calls to db_free_result per Leif Jackson's testing.
* timsieve.c:
Added saner support for the HAVESPACE command per Oleg Lapshin.
* dbmail-imapsession.c:
Added code to free the_args at each call to build_args_array_ext.
2006-02-28 Paul J Stevens <paul@nfg.nl>
* check_dbmail_deliver.c, debian/changelog, debian/rules, server.c,
serverchild.c:
fix race condition in StartServer
* pool.c, serverchild.c:
signal cleanup in progress
* check_dbmail_imapd.c, misc.c:
date_sql2imap fix in progress
* config.c:
make failure to read config-file fatal
* imapd.c, server.c:
perform clean restart in case of SIGHUP
2006-02-24 Aaron Stone <aaron@serendipity.cx>
* sortmodule.c, modules/sortnull.c, Makefile.am, modules/Makefile.am:
Ok, let's do sortnull.c and drop the -DSHARED and -DSTATIC stuff. It
now Works For Me (TM) in all combinations of shared, static, with
sieve and without.
2006-02-24 Aaron Stone <aaron@serendipity.cx>
* sort.h, sortmodule.h, sortmodule.c, modules/sortsieve.c,
timsieved.c, timsieve.c:
Added a proper listextensions function and the existing
CAPABILITY command of managesieve now uses it.
* db.c:
Moved two calls to db_free_result to the right places.
* serverchild.c:
Reports PID of process handling a new connection, for ease
of attaching GDB.
2006-02-20 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4, configure.in:
Made shared/static into an either-or dichotomy.
* dbmail.conf:
Moved auto_reply, auto_notification to DELIVERY section,
and sendmail to the DBMAIL section.
* dbmail.h:
Moved a few definitions here.
* lmtp.c, main.c:
Slowly getting rid of headerfields list.
* timsieve.c:
Delete the temp script if it's got errors.
* db.c:
Added a few more db_free_result calls.
* misc.h, misc.c:
Moved discard_from_stream from pipe.c here.
* pipe.h, pipe.c:
Rewrite of send_reply, send_notification with send_mail as the core.
Added send_vacation as another simple wrapper/consumer of send_mail.
* sortmodule.h, modules/sortsieve.c, sort.c:
Vacation works. Reject works.
2006-02-20 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4:
Trying to get smarter about shared, static.
* check_dbmail_deliver.c:
Zapped the returnpath argument to insert_messages.
* db.h, db.c:
Added db_check_sievescript_active, escaped script in
db_add_sievescript.
* dsb.h, dsn.c, pipe.c:
Changed the prototype for set_dsn a little bit.
* sort.h, sort.c, sortmodule.c:
Added sort_get_reject and handling for reject return codes.
* forward.c:
Handle a null pointer in the from address variable.
* misc.c:
Always return a valid string from read_from_stream, which will be a
copy of "" if the requested length is 0. But not NULL.
* modules/sortsieve.c:
Work on reject, vacation, getenvelope, fileinto. Now clears memory
allocated for the result structure to prevent unexpected cancelkeeps.
2006-02-17 Aaron Stone <aaron@serendipity.cx>
* dbmail-message.h, dbmail-message.c:
Changed get/set envelope to get/set envelope_recipient, i.e. the
current delivery address, totally different from the Return-Path. Duh.
* pipe.h, pipe.c, main.c, lmtp.c:
Removed the returnpath lists, put in single valued return path
variables, and directly set the Return-Path header.
* sort.h, sort.c, modules/sortsieve.c:
Updated return path to get the Return-Path header, and updated the
getenvelope function to actually get the envelope recipient.
2006-02-16 Aaron Stone <aaron@serendipity.cx>
* sortmodule.c, sortmodule.h, sort.h:
Updated to match latest function prototypes.
2006-02-16 Paul J Stevens <paul@nfg.nl>
* AUTHORS:
removed reference to iniparser
* check_dbmail_dsn.c:
some cleanups so tests dont fail
2006-02-15 Aaron Stone <aaron@serendipity.cx>
* db.c:
Changed all instances of db_escape_string to dm_stresc;
Added more escaping of %s values in queries;
Made db_user_exists case insensitive.
* dsn.c:
Refactors dsnuser_resolve into little pieces.
* dbmail_check_dsn.c:
Unit tests for dsnuser_resolve.
* misc.c:
Added function zap_between.
* dbmail_check_misc.c:
Unit tests for zap_between and find_bounded.
* auth.h, authmodule.c, modules/authsql.c, modules/authldap.c:
Added function auth_check_userid that works like
auth_get_userid, but doesn't return allocated memory.
* dbmail.conf:
Changed TIMSIEVED section to SIEVE. Added DELIVERY section.
2006-02-12 Paul J Stevens <paul@nfg.nl>
* authmodule.c, dbmail-mailbox.c, dbmodule.c, debian/changelog,
debian/rules, imap4.c, misc.c, modules/authsql.c,
modules/sortsieve.c, sort.c, sortmodule.c:
misc minor cleanups
2006-02-07 Aaron Stone <aaron@serendipity.cx>
* Makefile.am:
Moved the Sieve programs in sbin with everything else.
* authmodule.c, dbmodule.c, sortmodule.c:
Safer handling of null driver values.
* db.c:
Adding and renaming Sieve scripts are now atomic by
placing the queries inside of begin and commit transaction.
* sort.h, sort.c, modules/sortsieve.c, sievecmd.c, timsieve.c:
Sort results are returned in an independent sort_result_t struct,
and the sort_connect, sort_disconnect functions have been zapped.
* pipe.c:
Set the envelope sender address in the dbmail-message struct.
2006-02-03 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/rules, imap4.h:
enable QUOTA in capability string
* ChangeLog, acinclude.m4, config.c, configure.in, db.c, db.h,
dbmail-message.c, dbmail-message.h, dbmail-user.c, dbmail.conf,
debian/rules, modules/dbmysql.c, modules/dbpgsql.c,
modules/sortsieve.c, pipe.c, sievecmd.c, sort.c, sort.h,
sortmodule.c, sql/postgresql/add_replycache.pgsql:
resync git tree
* dbmail-mailbox.c, debian/rules:
fix false positive in search
2006-01-29 Aaron Stone <aaron@serendipity.cx>
* sort.h, sort.c, sortmodule.c, modules/sortsieve.c:
major work on the Sieve interface.
* sievecmd.c:
bugfixes.
* configure.in, acinclude.m4:
Added a rudimentary summary at the end.
* db.h, db.c:
added arguments to db_replycache functions, changed them to work by
days since the last reply rather than seconds, bugfixes in the
db_rename_sievescript function.
* modules/dbmysql.c, modules/dbpgsql.c, pipe.c:
change the replycache sql chunk to days rather than seconds.
* dbmail-message.h, dbmail-message.c:
added envelope sender's address (more to do on this though).
* sql/postgresql/add_replycache.pgsql:
added a handle field to the table.
2006-01-24 Aaron Stone <aaron@serendipity.cx>
* dbmail-user.c:
prettier output when adding a user.
* config.c, dbmail.conf:
support for common settings in [DBMAIL] section.
* db.c:
escaped name, script arguments for Sieve SQL queries.
* modules/sortsieve.c:
plugging away at Sieve support.
2006-01-24 Paul J Stevens <paul@nfg.nl>
* ChangeLog, db.c:
fix minor typo in sieve call
* timsieved.c:
allow timsieved to run non-forking
* Makefile.am, check_dbmail_deliver.c, check_dbmail_imapd.c,
check_dbmail_util.c, dbmail-imapsession.c, dbmail-mailbox.c,
dbmail.h, dm_imaputil.c, dm_search.c, dm_search.h, mime.c, mime.h,
misc.c, misc.h, serverchild.c:
cleanup unused code
2006-01-23 Paul J Stevens <paul@nfg.nl>
* ChangeLog, Makefile.am, acinclude.m4, check_dbmail_mailbox.c,
debian/rules, modules/Makefile.am:
tweak the autotools setup for static builds
* check_dbmail_imapd.c, check_dbmail_mailbox.c, dbmail-imapsession.c,
dbmail-mailbox.c, dbmail-message.c, dbmailtypes.h, dm_imaputil.c,
imapcommands.c, tags:
plugging memoryleaks, and killing bugs in sort code
* dbmail-mailbox.c, dbmail-mailbox.h, debian/changelog, imapcommands.c,
tags:
show sorted ids in imap response
* dbmail-imapsession.h, dbmail-mailbox.c, imapcommands.c:
cleanups in imap sort code
* db.c:
fix faulty query
* ChangeLog, authmodule.c, dbmail.conf, dbmodule.c, debian/rules,
modules/Makefile.am, sortmodule.c:
minor cleanups in modular setup
* check_dbmail_mailbox.c, dbmail-mailbox.c, misc.c:
fix g_tree_merge
* dbmail-mailbox.c, dbmail-mailbox.h, imapcommands.c:
plugin the new search setup into imapcommands
* check_dbmail_deliver.c, dbmail-mailbox.c, imap4.h, imapcommands.c,
test-scripts/testimap.py:
SORT now fully supported
2006-01-18 Paul J Stevens <paul@nfg.nl>
* debian/dbmail2.2-base.examples, debian/dbmail2.2-dev.files:
add forgotten files
* check_dbmail_common.c, check_dbmail_deliver.c, check_dbmail_imapd.c,
check_dbmail_mailbox.c, check_dbmail_message.c,
check_dbmail_server.c, check_dbmail_user.c, check_dbmail_util.c:
fixes for new trace setup
* Makefile.am, auth.h, check_dbmail_deliver.c, db.c, db.h, dbmailtypes.h,
dbmodule.c, dbmodule.h, debian/changelog, debian/control,
debian/dbmail2-mysql-ldap.examples, debian/dbmail2-mysql.examples,
debian/dbmail2-pgsql-ldap.examples, debian/dbmail2-pgsql.examples,
debian/dbmail2-sqlite-ldap.examples, debian/dbmail2-sqlite.examples,
debian/libdbmail-ldap.examples, debian/libdbmail-ldap.files,
debian/libdbmail-mysql.examples, debian/libdbmail-mysql.files,
debian/libdbmail-pgsql.examples, debian/libdbmail-pgsql.files,
debian/libdbmail-sieve.files, debian/libdbmail-sqlite.examples,
debian/libdbmail-sqlite.files, debian/rules, modules/Makefile.am,
modules/authldap.c, modules/dbmysql.c, modules/dbpgsql.c,
modules/dbsqlite.c, test-scripts/testimap.py:
cleanup modular build
* authmodule.c, check_dbmail_deliver.c, dbmodule.c, debian/changelog,
debian/control, debian/rules, modules/authsql.c, modules/dbsqlite.c,
sortmodule.c:
more cleanups in modular setup and debian packages
2006-01-08 Paul J Stevens <paul@nfg.nl>
* debian/changelog, debian/po/es.po:
updates
* dm_imaputil.c:
lower headers in _fetch_headers
* db.c:
update query in db_get_msgflag_all
* main.c:
minor cleanups
* debian/dbmail.postrm, debian/rules:
fix postrm
* db.c, dbmailtypes.h, imap4.h, imapcommands.c:
added CHILDREN capability (rfc3348)
* dbmail-mailbox.c, misc.c, misc.h, check_dbmail_mailbox.c:
minor fixes in the g_tree code
* dbmail-message.c:
gmime bugs out on some messages
2005-12-30 Aaron Stone <aaron@serendipity.cx>
* config.c, debug.c, debug.h:
Eliminated TRACE_LEVEL config item, replaced by
TRACE_STDERR and TRACE_SYSLOG, with sane defaults.
* dbmail.conf:
Documented the new trace level config items.
2005-12-22 Aaron Stone <aaron@serendipity.cx>
* modules/sortsieve.h:
Deleted.
* dbmail.h pipe.c pipe.h sievecmd.c timsieve.c sort.c sort.h
sortmodule.c sortmodule.h modules/sortsieve.c:
Lots of work on the Sieve sort module.
* auth.h authmodule.c authmodule.h db.c modules/authldap.c
modules/authsql.c:
Remove #define AUTHLDAP, replace with a loadable auth call.
* config.c export.c user.c:
A hack to handle our config file comments neatly.
2005-12-10 Paul J Stevens <paul@nfg.nl>
* debian/rules, python/__init__.py, python/app/IMailFolder.py,
python/app/IMailMessage.py, python/bin/autoreplier.py,
python/lib/Dbmail.py, python/lib/DbmailAutoreply.py,
python/lib/DbmailConfig.py, python/lib/dbmail.py,
python/tests/testDbmail.py:
reorganized the python code a bit
* dbmail-mailbox.c:
minor cleanups
* dbmail.conf:
minor updates
* Makefile.am, check_dbmail_mailbox.c, dbmail-mailbox.c, dbmail-mailbox.h,
dbmail-message.c, dbmailtypes.h, dm_search.c, dm_search.h, misc.c:
more steps toward the new search framework
2005-12-04 Paul J Stevens <paul@nfg.nl>
* ChangeLog, dbmail.h:
replace iniparser
* config.c, configure.in:
resync trees
* Makefile.am, acinclude.m4, configure.in, debian/control, debian/rules,
modules/Makefile.am:
fix for automake1.9
* python/app/IMailFolder.py, python/app/IMailMessage.py,
python/app/IPerson.py, python/app/__init__.py:
add stubs for python app
* dbmail.h, config.c, lib/Makefile.am, lib/iniparser-2.14/AUTHORS,
lib/iniparser-2.14/INSTALL, lib/iniparser-2.14/LICENSE,
lib/iniparser-2.14/Makefile.am, lib/iniparser-2.14/README,
lib/iniparser-2.14/html/doxygen.css,
lib/iniparser-2.14/html/doxygen.png,
lib/iniparser-2.14/html/index.html,
lib/iniparser-2.14/html/iniparser_8h.html,
lib/iniparser-2.14/html/iniparser_8main.html,
lib/iniparser-2.14/src/Makefile.am,
lib/iniparser-2.14/src/dictionary.c,
lib/iniparser-2.14/src/dictionary.h,
lib/iniparser-2.14/src/iniparser.c,
lib/iniparser-2.14/src/iniparser.h, lib/iniparser-2.14/src/strlib.c,
lib/iniparser-2.14/src/strlib.h,
lib/iniparser-2.14/test/iniexample.c:
replace iniparser with glib GKeyFile
* ChangeLog, check_dbmail_mailbox.c, dbmail-mailbox.c:
re-implement TEXT search
2005-11-30 Paul J Stevens <paul@nfg.nl>
* Makefile.am, acinclude.m4, configure.in, debian/rules,
modules/Makefile.am:
re-enable static builds to facilitate debugging and development
2005-11-29 Paul J Stevens <paul@nfg.nl>
* Makefile.am, debian/rules:
build shared libs so check works again
2005-11-28 Aaron Stone <aaron@serendipity.cx>
* dbmodule.c, dbmodule.h, authmodule.c, authmodule.h: few updates to
better handle library search paths.
* sort.c, sort.h: now the home of sort_and_deliver().
* dbmail-message.c, dbmail-message.h: old home of sort_and_deliver().
* config.c: config item for sortdriver.
* configure.in, acinclude.m4, Makefile.am, modules/Makefile.am:
autoconf fixed for Sieve and LDAP.
2005-11-27 Aaron Stone <aaron@serendipity.cx>
* modules/, sort/, sortmodule.c, sortmodule.h: moving sort into the
new modular framework.
2005-11-27 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, check_dbmail_mailbox.c, check_dbmail_message.c,
dbmail-mailbox.c, dbmail-message.c, dbmail-message.h, main.c:
crlf encode messages retrieved before passing them to the parser to
improve reliability
* modules/, pgsql/, mysql/, sqlite/, auth/, Makefile.am,
configure.in, dbmodule.c, authmodule.c:
consolidating modular setup in modules/.
2005-11-26 Paul J Stevens <paul@nfg.nl>
* db.c:
moved db_find_create_user to db_createmailbox
* ChangeLog, check_dbmail_deliver.c, check_dbmail_mailbox.c,
dbmail-mailbox.c, misc.c:
minor cleanups
* debian/rules:
start building debian packages --with-sieve
* dbmail-mailbox.c:
fix problem in export
* check_dbmail.h, check_dbmail_imapd.c, check_dbmail_mailbox.c,
check_dbmail_message.c, dbmail-message.c:
skip From_ lines in messages during message parsing to bypass some corner
case problem in gmime
2005-11-25 Paul J Stevens <paul@nfg.nl>
* misc.c:
fix for glib-2.6
2005-11-24 Paul J Stevens <paul@nfg.nl>
* auth/authldap.c, check_dbmail_imapd.c, dm_imaputil.c, mysql/dbmysql.c,
test-scripts/testimap.py:
minor cleanups
* dm_imaputil.c:
cleanup imap_message_fetch_headers
* check_dbmail_imapd.c, check_dbmail_mailbox.c, dbmail-imapsession.c,
dm_imaputil.c, dm_imaputil.h, misc.c:
prepare to fetch headers for whole ranges
* check_dbmail_mailbox.c, dbmail-mailbox.c, dbmail-mailbox.h, dbmail.h,
debug.c, misc.c, misc.h:
partial search/sort rework
* misc.c:
final cleanups in g_tree_merge
* dm_imaputil.c, misc.c:
prevent assertion errors in g_strsplit calls
* check_dbmail_mailbox.c, dbmail-mailbox.c, dbmail-mailbox.h, tags:
fix result set merging in _merge_search and orderedsubject threading
2005-11-19 Paul J Stevens <paul@nfg.nl>
* sql/mysql/add_sieve_tables.mysql:
adding sieve table to mysql as well
* check_dbmail_mailbox.c:
fix calls to db_mailbox_find_create
2005-11-17 Aaron Stone <aaron@serendipity.cx>
* export.c, timsieve.c, timsieved.c, sievecmd.c: removed OLDSIEVE
sections, replacing where necessary with updated validation calls.
* sort/sortsieve.c, sort/sortsieve.h: changes to the validation calls
and removed obsolete function prototypes.
* db.c, db.h: renamed db_replace_sievescript with
db_rename_sievescript, some work in db_find_create_mailbox to handle
untrusted mailbox specifications.
* dsn.c, dsn.h, pipe.c, dbmail-message.c, dbmail-message.h: support
for untrusted mailbox specification.
* dbmailtypes.h: added enum type mailbox_source_t.
* sql/postgresql/add_sieve_tables.pgsql: added the sievescripts table.
* README.sieve: added a README file for Sieve.
2005-11-11 Paul J Stevens <paul@nfg.nl>
* Makefile.am, dbmail-message.c, dbmail-message.h, dbmail.h, dbmsgbuf.c,
dbmsgbuf.h:
phase-out dbmsgbuf files
* sql/postgresql/add_header_tables.pgsql:
change subjectfield with to 255
* check_dbmail_imapd.c, check_dbmail_message.c, dbmail-message.c,
dm_imaputil.c:
Minor plist cleanup. Truncate fieldvalues during cache insertion
* debian/po/es.po:
adding spanish translation of debconf files
* sql/mysql/create_tables_innoDB.mysql:
fix usermap table
* db.c, db.h, sql/postgresql/create_tables.pgsql,pgsql/dbpgsql.c:
change messageblk storage to bytea for pgsql
* check_dbmail_deliver.c, check_dbmail_imapd.c, dbmail-mailbox.c,
dm_imaputil.c:
minor postgresql fixes
2005-11-07 Aaron Stone <aaron@serendipity.cx>
* acinclude.m4: updated libSieve checks to find the
headers for libSieve 2.1.7 and higher.
* db.c (db_get_sievescript_active): fixed this function
to return the name of the script (per the function spec).
* sort/sortsieve.c: compiles cleanly with libSieve 2.1.7 and
higher.
2005-11-04 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, db.c, dbmail-imapsession.c, dbmail-message.c,
imapcommands.c, pipe.c, pop3.c, test-scripts/testimap.py:
resync git tree
* man/Makefile.am, man/dbmail-export.8:
added manpage for dbmail-export
* db.c, debian/changelog, misc.c:
speedup _ic_list a little
* dsn.c:
ignore empty addresses in delivery chain
* dbmail-message.c:
add missing message-id header during insertion as required by threading
* check_dbmail_imapd.c, check_dbmail_mailbox.c, db.c, db.h,
dbmail-imapsession.c, dbmail-imapsession.h, dbmail-mailbox.c,
dbmail-mailbox.h, dbmailtypes.h, dm_imaputil.c, dm_imaputil.h,
dm_search.c, dm_search.h, imap4.c, imapcommands.c, misc.c, misc.h,
test-scripts/testimap.py:
partial sort fix and memory cleanups
* misc.c, misc.h:
added simple GTree utils
* dbmail-imapsession.c:
minor cleanups
* dbmail-mailbox.c:
move some stuff from dm_imaputil
* check_dbmail_imapd.c, check_dbmail_mailbox.c, dbmail-mailbox.c,
dbmail-mailbox.h, dbmail.h, dbmailtypes.h, dm_imaputil.c,
dm_imaputil.h, dm_search.c, imapcommands.c, misc.c, misc.h,
pgsql/dbpgsql.c, sql/postgresql/add_header_tables.pgsql,
test-scripts/testbox:
partial sort cleanup
* check_dbmail_imapd.c, check_dbmail_mailbox.c, dbmail-imapsession.c,
dm_imaputil.c, dm_imaputil.h, misc.c:
collapse plists for bodystructure
2005-10-17 Paul J Stevens <paul@nfg.nl>
* ChangeLog, check_dbmail_imapd.c, db.c, pipe.c, pop3.c,
test-scripts/testpop.py:
fixed pop3 and added testsuite for pop3d
* dbmail-message.c:
add content-type as headervalue during insertion
* check_dbmail_imapd.c, dbmail-imapsession.c, dm_imaputil.c, dm_imaputil.h,
imapcommands.c, tags:
fixed some leaks and added massive speedup for header fetches
* check_dbmail_imapd.c, dm_imaputil.c:
fix some imap protocol errors
* dbmail-imapsession.c, dbmail-imapsession.h, imapcommands.c,
test-scripts/testimap.py:
speed up fetch by using header tables for header-fetches
2005-10-12 Paul J Stevens <paul@nfg.nl>
* db.c, db.h, dbmail-message.c, dbmailtypes.h, maintenance.c, pipe.c,
test-scripts/testimap.py:
resync before release 2.1.3
* dbmail-message.c, dbmail-message.h:
cleanup mime-filter in message initialization
* dbmail-imapsession.c:
fix memory leakage in cache initializer
* dbmail-mailbox.c:
change default date define for From escape in mailbox_dump
2005-10-11 Paul J Stevens <paul@nfg.nl>
* ChangeLog, Makefile.am, check_dbmail_mailbox.c, dbmail-mailbox.c,
dbmail-mailbox.h, dbmailtypes.h, debian/changelog, export.c:
first stab at dbmail-export tool
* dm_imaputil.c, dm_search.c:
more searches using the headercache
* db.c, db.h, maintenance.c:
added check/fix for rfcsize
* test-scripts/testimap.py:
more searches using the headercache
* check_dbmail_mailbox.c, dbmail-mailbox.c, dbmail-message.c,
debian/changelog, export.c:
dbmail-export now creates valid mbox files
2005-10-07 Paul J Stevens <paul@nfg.nl>
* ChangeLog:
blah
* auth/authldap.c, check_dbmail_common.c, check_dbmail_imapd.c, db.c, db.h,
dbmail-imapsession.c, dbmail-message.c, dbmail.h, dbmailtypes.h,
dbmd5.c, dbmd5.h, dbmsgbuf.c, imapcommands.c, mime.c, mime.h, misc.c,
pop3.c, serverchild.c, sievecmd.c, sievecmd.h, sort/Makefile.am,
sort/sortsieve.c, sort/sortsieve.h, test-scripts/testimap.py,
timsieve.c, timsieve.h, timsieved.c:
resync git tree
* dbmail-message.c, pipe.c:
fix delivery problem where temporary message record was not copied to
final record
* debian/changelog, debian/control, debian/dbmail.init,
debian/dbmail.preinst:
remove bashisms from debian files and upgrade to policy version 3.6.2
* debian/dbmail.config:
remove bashisms from debian files and upgrade to policy version 3.6.2
* auth/authldap.c, debian/changelog, dm_imaputil.c, imapcommands.c:
fix problem in mime traversal
2005-10-05 Paul J Stevens <paul@nfg.nl>
* check_dbmail_common.c, check_dbmail_deliver.c, check_dbmail_imapd.c,
check_dbmail_message.c, check_dbmail_server.c, config.c, db.c, db.h,
dbmail-imapsession.c, dbmail-message.c, dbmail-user.h, dbmail.h,
dbmailtypes.h, dbmd5.c, dbmd5.h, dbmsgbuf.c, debug.c, debug.h, dsn.c,
dsn.h, forward.c, forward.h, imap4.c, imap4.h, imapcommands.c,
imapcommands.h, imapd.c, lib/Makefile.am, list.c, list.h, lmtp.c,
lmtp.h, lmtpd.c, main.c, maintenance.c, md5.c, md5.h, memblock.c,
memblock.h, mime.c, mime.h, misc.c, misc.h, pipe.c, pipe.h, pop3.c,
pop3.h, pop3d.c, python/bin/autoreplier.py, python/lib/dbmail.py,
quota.c, quota.h, rfcmsg.c, rfcmsg.h, server.c, server.h,
serverchild.c, serverchild.h, sievecmd.c, sievecmd.h, sort.h,
sort/sortsieve.c, sort/sortsieve.h, sql/mysql/create_tables.mysql,
sql/mysql/create_tables_innoDB.mysql, test-scripts/testimap.py,
timsieve.c, timsieve.h, timsieved.c, user.c:
resync git tree
* auth/authsql.c, dbmail-user.c, dbmd5.c, dbmd5.h, dm_imaputil.c,
dm_imaputil.h, imapcommands.c, mime.c, misc.c, pop3.c, rfcmsg.c,
serverchild.c, tags:
fix compiler warnings after moving to gcc4
* Makefile.am, check_dbmail_common.c, check_dbmail_imapd.c,
dbmail-imapsession.c, dbmail.h, dbmailtypes.h, dbmsgbuf.c,
dbmsgbuf.h, dm_search.c, mime.c, mime.h, rfcmsg.c, rfcmsg.h:
removing the last of the old mime code
* Makefile.am, acinclude.m4, check_dbmail_imapd.c, check_dbmail_util.c,
db.c, dbmail-imapsession.c, dbmail-imapsession.h, dbmail-message.c,
dbmail-message.h, dbmail.h, dbmailtypes.h, debian/control,
debian/rules, dm_imaputil.c, dm_search.c, imapcommands.c, sievecmd.c,
sievecmd.h, sort/Makefile.am, sort/sortsieve.c, sort/sortsieve.h,
test-scripts/testimap.py, timsieve.c, timsieve.h, timsieved.c:
fixes for libsieve and search
2005-09-10 Paul J Stevens <paul@nfg.nl>
* ChangeLog, check_dbmail_imapd.c, check_dbmail_message.c,
dbmail-imapsession.c, mime.c, test-scripts/testimap.py:
more cleanups in the mime code
2005-09-09 Paul J Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, check_dbmail_message.c, db.c, dbmail-imapsession.c,
dbmail-message.c, dbmail-message.h, dbmsgbuf.c, imapcommands.c,
lmtp.c, test-scripts/testimap.py:
partial cleanup retrieval chain
* check_dbmail_message.c, dbmail-message.c, test-scripts/testimap.py:
fix dbmail_message_to_string
* server.c:
fix excessive db reconnects (closes #266)
* python/lib/dbmail.py:
added postgres support to python libs
* dbmsgbuf.c, dbmsgbuf.h, rfcmsg.c:
minor cleanups
* check_dbmail_deliver.c, check_dbmail_message.c, dbmail-imapsession.c,
dbmail-message.c, dbmail-message.h, dbmsgbuf.c, dbmsgbuf.h, lmtp.c,
main.c, pipe.c, tags, test-scripts/testimap.py:
more cleanups in the retrieval and caching code
2005-09-04 Paul J Stevens <paul@nfg.nl>
* ChangeLog, dbmail-imapsession.c, dbmail-imapsession.h, imaputil.c,
imaputil.h, test-scripts/testimap.py:
moved imap command parser to dbmail-imapsession.c
* python/lib/dbmail.py:
added postgres (psycopg) support to python lib
* db.c:
do not use NOW() in query (closes: #254)
* check_dbmail_imapd.c, db.c, dbmail-imapsession.c, dbmail-message.c,
dbmailtypes.h, dbmsgbuf.c, debug.c, imaputil.c, imaputil.h, rfcmsg.c,
rfcmsg.h, test-scripts/testimap.py:
push forward svn changes
2005-09-02 Paul J Stevens <paul@nfg.nl>
* ChangeLog, sql/mysql/create_tables_innoDB.mysql,
sql/postgresql/create_tables.pgsql:
added ON UPDATE CASCADE to create_table files
2005-08-31 Paul J Stevens <paul@nfg.nl>
* debug.c:
revert earlier changes
* dbmail-message.c, dbmailtypes.h:
minor cleanups
* dbmail-imapsession.c:
minor cleanups
* dbmsgbuf.c:
fix segfault
2005-08-23 Paul J Stevens <paul@nfg.nl>
* imaputil.c:
set search_cost for IST_HDR
* debug.c:
make string buffer in trace a static one
* pool.c:
make locking code non-blocking to avoid deadlocks
* server.c:
sleep and exit in case of segfaults
* dm_search.c:
fix prototype for db_search
* test-scripts/testimap.py:
add non-forking support to test-script
* check_dbmail_imapd.c, dbmsgbuf.c, rfcmsg.c, rfcmsg.h:
start cleaning out the old mime-parser from the retrieval chain
* ChangeLog, pop3.c:
resync git-tree
2005-08-23 Ilja Booij <ilja@ic-s.nl>
* pop3.c: AUTH command no longer returns list of supported
authentication mechanisms when issued without arguments. closes #237
2005-08-17 Aaron Stone <aaron@serendipity.cx>
* dsn.c: Missing comma in the class status
codes. (closes #248).
2005-08-17 Paul J Stevens <paul@nfg.nl>
* ChangeLog, debian/changelog, debian/rules:
update python
* python/bin/inserter.py, python/lib/__init__.pyc, python/lib/dbmail.pyc:
cleanup python
* pool.c:
make getKey failure non-fatal in scoreboard_release
* Makefile.am, dbmail-imapsession.c, dbsearch.c, dbsearch.h, dm_search.c,
dm_search.h, imaputil.c:
rename dbsearch.[ch] to dm_search.[ch]
* dm_search.c, dm_search.h, imaputil.c, tags, test-scripts/testimap.py:
do imap header searches using the new header tables
2005-08-12 Paul J Stevens <paul@nfg.nl>
* ChangeLog, python/bin/autoreplier.py, python/bin/inserter.py,
python/lib/__init__.py, python/lib/__init__.pyc,
python/lib/dbmail.py, python/lib/dbmail.pyc:
initial python libs and scripts
2005-08-11 Paul J Stevens <paul@nfg.nl>
* ChangeLog, debian/changelog:
debian snapshot release
* dbmail-message.c:
fix leaking file-descriptors (closes: #243)
2005-08-10 Paul J Stevens <paul@nfg.nl>
* imapd.c, pop3d.c:
added missing SOCKET config-item
* check_dbmail_deliver.c, misc.c, misc.h:
preliminary code for folder patch
* debian/dbmail.init:
init script update
* db.c:
auto-subscribe auto-created mailboxes
2005-08-09 Paul J Stevens <paul@nfg.nl>
* sql/postgresql/add_usermap.psql:
update pgsql usermap table (closes: #224).
* sql/postgresql/add_header_tables.pgsql:
add missing tables (closes: #225).
* main.c:
minor cleanups
* misc.c:
strip remaining artifacts from base subject
2005-08-08 Paul Stevens <paul@nfg.nl>
* mysql/dbmysql.c: remove spurious double-free warning from
db_free_result.
* pool.c: make failure in getKey more verbose, and reorganize locking
code a little.
* db.c, sql/mysql/add_auto_replies_fields.mysql,
sql/postgresql/add_auto_replies_fields.pgsql: add support for
activation of auto_replies by date.
2005-08-04 Paul Stevens <paul@nfg.nl>
* auth/authldap.c: fix addition and removal of extra deliver_to
addresses for external forwards (closes: #236).
2005-08-01 Paul Stevens <paul@nfg.nl>
* README.ldap: added some more info.
* imapcommands.c, imaputil.c, imaputil.h, dbmail-imapsession.c:
closing some memory leakages.
* dbmail-imapsession.c: fix double-free (closes: #230).
* check_dbmail_deliver.c, auth/authldap.c, dbmail-imapsession.c: fix
auth_reconnect for ldap so we don't disconnect/connect for every call.
* pgsql/dbpgsql.c: fixed some typos regarding bug #218's fix.
2005-07-22 Aaron Stone <aaron@serendipity.cx>
* pop3.c: added what appear to be missing initializations in the
variable PopSession_t session (closes #223).
* server.c, server.h: added function ClearConfig which memsets
the serverConfig_t config to 0 (closes #226).
* lmtpd.c, imapd.c, pop3d.c: added calls to ClearConfig.
* pgsql/dbpgsql.c: added some code to db_check_connection to throw
a separate error if called before db_connect (related to #221).
* pgsql/dbpgsql.c: added code to db_connect to check against
UNICODE encodings prior to PostgreSQL 8.1 (closes: #218).
2005-07-16 Aaron Stone <aaron@serendipity.cx>
* db.c: added DBPFX prefixes instead of dbmail_ in several places.
* config.c: fixed faulty code for user-specified DBPFX value.
2005-07-14 Aaron Stone <aaron@serendipity.cx>
* db.c: added the new tables into the DB_TABLENAMES field (closes #229).
2005-07-12 Aaron Stone <aaron@serendipity.cx>
* pgsql/dbpgsql.c (db_query): clear the result set in the failure case
(closes: #227).
* lmtp.c (lmtp, LMTP_DATA): be sure to free the string returned from
dbmail_message_to_string in a trace call, and free the message at the
end of delivery as well as the failure case (closes: #227).
2005-06-23 Paul Stevens <paul@nfg.nl>
* dbmail-message.c: escape strings during insertion (closes: #222).
2005-06-21 Paul Stevens <paul@nfg.nl>
* db.c, pgsql/dbpgsql.c, server.c, mysql/dbmysql.c: minor cleanups.
2005-06-20 Paul Stevens <paul@nfg.nl>
* Makefile.am, dm_cidr.c, dm_cidr.h, misc.c, check_dbmail_server.c: support
cidr notation in usermap sock_allow/sock_deny fields.
* mime.c: minor cleanups.
* misc.h, db.c, dm_cidr.c, check_dbmail_server.c, misc.c: use best match
on sock_allow in db_usermap_resolve.
2005-06-17 Paul Stevens <paul@nfg.nl>
* db.c, db.h, pgsql/dbpgsql.c, sql/postgresql/add_replycache.pgsql,
sql/mysql/add_replycache.mysql, sqlite/dbsqlite.c, pipe.c,
mysql/dbmysql.c: cleaned up the auto-reply code so we behave like a
good net citizen.
2005-06-16 Paul Stevens <paul@nfg.nl>
* auth/authsql.c, auth/authldap.c (auth_check_user_ext): added loop
detection.
* dsn.c, dbmail-user.c: start auth_check_user_ext with check at zero
instead of minus one.
* mime.c (mail_address_build_list): cleanup using gmime.
2005-06-14 Paul Stevens <paul@nfg.nl>
* dbmail-user.c, db.c, list.c, auth/authldap.c, dbmail-imapsession.c,
misc.c: added check when looping over GLists to avoid memory leakage.
* dbmail-message.c, dbmail-message.h: added header caching of to, cc,
from and replyto fields.
2005-06-07 Paul Stevens <paul@nfg.nl>
* many files: added ip-based virtual hosting and user-mapping.
2005-05-31 Paul Stevens <paul@nfg.nl>
* imaputils.c (date_sql2imap): revert to gnuish behavior which should
work just fine on linux and bsd (closes #79).
2005-05-30 Paul Stevens <paul@nfg.nl>
* imapcommands.c (_ic_expunge): return non-fatal error in case of NO
response.
2005-05-25 Paul Stevens <paul@nfg.nl>
* db.h, db.c, auth/authsql.c, auth/authldap.c,
sql/mysql/add_usermap.mysql, sql/mysql/create_tables_innoDB.mysql,
sql/postgresql/add_usermap.pgsql, sql/postgresql/create_tables.pgsql:
reimplemented Jesse Norell's usermap patch in 2.1.
* misc.h, config.c, dbmail.h, check_dbmail_imapd.c, misc.c: added the
serverid parameter and the dm_getguid call. Together they will be used
for replacing auto_increment columns with a GUID value.
2005-05-24 Paul Stevens <paul@nfg.nl>
* server.c(ParentSigHandler): finalize fix for #199.
* imaputil.c, check_dbmail_imapd.c (dbmail_imap_astring_as_string): cleanup and fixes.
* db.c, db.h: start using symbolic return codes.
2005-05-18 Paul Stevens <paul@nfg.nl>
* check_dbmail_deliver.c, config.c, lmtpd.c, check_dbmail_server.c,
pop3d.c, mime.c, imapd.c, dbmail-message.c, check_dbmail_imapd.c,
main.c, check_dbmail_message.c: move the g_mime_init/shutdown hooks to
the main loop of each program. This fixes some possible double frees.
* debian/po/cz.po: added czech translations for debconf.
2005-05-17 Paul Stevens <paul@nfg.nl>
* misc.h, db.c, db.h, imapcommands.c, imaputil.c, imaputil.h,
dbmail.h, test-scripts/testimap.py, misc.c: replaced regex code in
_ic_list with new listex_match.
2005-05-13 Paul Stevens <paul@nfg.nl>
* imaputil.c, imaputil.h, check_dbmail_imapd.c: integrated Geo's
listex_match code in the test-frame.
2005-05-11 Paul Stevens <paul@nfg.nl>
* server.h, server.c, serverchild.c, lmtpd.c, dbmail.conf: added
unix socket support for lmtp.
2005-05-09 Paul Stevens <paul@nfg.nl>
* pool.c (manage_stop_children): guard against sending broadcast
signals (closes: #198).
* server.c (ParentSigHandler): wait for zombies (closes: #199).
2005-05-06 Paul Stevens <paul@nfg.nl>
* check_dbmail_deliver.c, dbmail-user.c, config.c, lmtp.c, dsn.c,
check_dbmail_common.c, pipe.c, dbmail-message.c, auth/authldap.c,
main.c, check_dbmail_message.c: plugged lots of memory leakage.
* dbmail-imapsession.c: fixed a double free.
* server.c: use db_check_connection instead of
db_connect/db_disconnect in main loop.
2005-05-03 Paul Stevens <paul@nfg.nl>
* check_dbmail_common.c, check_dbmail_deliver.c, check_dbmail_imapd.c,
check_dbmail_message.c, check_dbmail_server.c, check_dbmail_user.c,
check_dbmail_util.c: removed suite_free call.
* db.c, dbmail-message.c, dbmail-message.h, misc.c, misc.h,
sql/mysql/add_header_tables.mysql: expanded the headercaching code to
include support for (base)subject, (sent)date, and references.
2005-04-19 Paul Stevens <paul@nfg.nl>
* dbmail-message.c, dbmail-message.h, check_dbmail_message.c: add
initial support for base subject.
* list.c, list.h, and many others: move the internal list
implementation to the dm_ namespace to avoid conflicts with gmime2.1's
own internal list setup.
* server.c, serverchild.c, pool.c: make dbmail servers in prefork mode
die when the database backend dies (closes #190).
2005-04-08 Paul Stevens <paul@nfg.nl>
* db.c, db.h, server.c, main.c: db_check_version added.
* README.ldap: added file to package root.
* README, TODO, BUGS, EXTRAS: update files for 2.1 release.
* acinclude.m4, INSTALL: document and enforce the glib/gmime
build dependency.
* db.c (db_set_headercache): ignore errors in individual messages and
remove a double free.
2005-04-06 Paul Stevens <paul@nfg.nl>
* imap4.c: set COMMAND_SHOW_LEVEL to TRACE_INFO.
2005-04-05 Paul Stevens <paul@nfg.nl>
* auth/authsql.c: prevent loop in auth_check_user_ext where
alias==deliver_to.
* auth/authldap.c: define configFile as extern.
* imaputil.c: fix date_sql2imap. Closes bug #79.
* Makefile.am: remove redundant AM_CFLAGS
* server.c, serverchild.c: save and restore errno in signal handler.
2005-04-01 Paul Stevens <paul@nfg.nl>
* auth/authldap.c: make forwarding actually work.
* lmtp.c: removed a double free causing segfaults.
2005-03-22 Paul Stevens <paul@nfg.nl>
* pool.c: make shmget failure more verbose using strerror.
* maintenance.c: remove all references to -r.
* maintenance.c, db.c, db.h, dbmail-message.c, dbmail-message.h: let
-b do_is_header and do_header_cache.
* dbmail-message.c, dbmail-message.h: added GHashTable cache of
headernames to DbmailMessage struct to minimize db lookups of
dbmail_headername.id.
2005-03-19 Paul Stevens <paul@nfg.nl>
* pipe.c, lmtp.c: add Return-Path header on final delivery (closes:
#145)
* dbmail-message.c, dbmail-message.h, pipe.c: cleanup over-quota patch.
2005-03-10 Ilja Booij <ilja@ic-s.nl>
* INSTALL.qmail: fixed by Javier Carlos
2005-03-10 Paul Stevens <paul@nfg.nl>
* db.c (db_getmailbox): optimized query for postgresql which can't
handle SUM aggregates fast enough.
2005-03-09 Paul Stevens <paul@nfg.nl>
* dbmail-message.c: added prototype for header caching during
insertion.
* sort/sort.c: moved sort_and_deliver to dbmail-message.c
* configure.in, acinclude.m4: dbmail now compiles --with-sieve,
well almost that is.
2005-03-08 Paul Stevens <paul@nfg.nl>
* db.c: added new calls db_user_create_shadow and db_user_find_create
to better accomodate automatic shadow accounts for ldap users.
* serverchild.c: code layout
* dbmail-message.c: added inline documentation
* server.c, serverchild.c: removed #ifdef _USE_STR_SIGNAL and use
strsignal by default.
* check_dbmail_imapd.c, mime.c: renamed mail_adr_list to
mail_address_build_list and added a testcase for this function.
2005-03-07 Paul Stevens <paul@nfg.nl>
* clientinfo.h: removed file and moved struct to dbmailtypes.h
* server.c: stylistic cleanup
* user.c: fix handling of lists of aliases so dbmail-user works
almost as documented.
* proctitleutils.c: removed PROC_TITLE deadwood.
* dbmail-message.c: add X-DBMail-PhysMessage-ID message header during
insertion.
* sql/mysql/add_headers_tables.mysql: fix for foreign keys.
2005-03-01 Paul Stevens <paul@nfg.nl>
* Makefile.am, acinclude.m4: changed the autotools setup to build
libdbmail as a convenience lib only, and renamed the backend modules
to libsqldbmail for every backend. All libs execpt libsqldbmail are
now noinst_ type static convenience libs.
2005-02-23 Paul Stevens <paul@nfg.nl>
* check_dbmail.h: use separate config in /etc/dbmail/dbmail-test.conf
for test-cases.
* imaputil.c (perform_imap_search): return if setlen is zero.
* imapcommands.c (_ic_login): return if authentication fails.
* dbmail_imapsession.c (dbmail_imap_session_mailbox_open): send tagged
NO response to client if mailbox doesn't exists.
* db.c, misc.c: string cleanups in mailbox_add_namespace.
* sql/sqlite/create_tables.sqlite: fixed dbmail_acl_constraint_update
trigger.
* debian/rules, debian/control: added support for sqlite based debian
packages.
2005-02-18 Paul Stevens <paul@nfg.nl>
* pop3d.c, imapd.c, lmtpd.c, server.c, serverchild.c: added
non-forking support for inetd users, aka cli-server.
* dbmail.h, auth/authldap.c: moved GETCONFIGVALUE macro to dbmail.h
2005-02-18 Paul Stevens <paul@nfg.nl>
* sqlite/dbsqlite.c: added initial sqlite support provided by Geo
Carncross. Also fixed the autoconf files to support this.
* user.c: remove percentage from user listing.
* dbmail.schema: added uidNumber to MUST fields in dbmailUser.
2005-02-14 Paul Stevens <paul@nfg.nl>
* create_tables_innoDB.mysql, create_tables.pgsql, migrate_from_1.x_to_2.0.mysql,
migratie_from_1.x_to_2.0.pgsql: added ON UPDATE CASCADE to all foreign keys.
* Makefile.am, acinclude.m4: define AUTHLDAP for authldap builds.
* auth.h, check_dbmail_deliver.c, db.c, db.h, dbmail-imapsession.c,
auth/authldap.c, auth/authsql.c: authldap is now feature complete.
* dbmail.schema: ldap schema file which defines dbmailUser and
dbmailForwardingAddress objects.
* dbmail.conf: LDAP stanza included.
2005-02-07 Paul Stevens <paul@nfg.nl>
* auth.h, auth/authsql.c, auth/authldap.c: first wave of authldap
fixes.
* check_dbmail_deliver.c: implement testcases for auth.h api. The rest
of the tests for the delivery chain is still todo.
* user.c: change output from dbmail-users -l to make it machine
parseable and emulate unix getent standard.
* db.c, dbmail-message.c: move db_insert_message functionality to dbmail-message.c
* misc.c, imaputil.c: move some generic utilities to misc.c.
* list.c (g_list_copy_list): added shallow copy of old-style list to
glist.
* pipe.c, dbmail-message.c: cleanup dbmail_message_store_temp.
2005-01-26 Paul Stevens <paul@nfg.nl>
* imaputil.c, imapcommands.c (_ic_search): introduce sort_search which
optimizes the search keys.
* dbmail-message.c, pipe.c, main.c, lmtp.c: move chunks of the insertion
logic to dbmail-message.c.
* check_dbmail_message.c, Makefile.am: added another test suite.
* lib/iniparser-2.14/Makefile.orig, lib/iniparser-2.14/test/Makefile:
removed redundant files.
* dbmail-imapsession.c: added UIDNEXT to select response.
* dbmail-imapsession.c: removed redundant parentheses around envelope
response.
* imaputil.c: reverted plist construction to old behaviour because OE
won't work otherwise.
2005-01-22 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/migrate_from_1.x_to_2.0.mysql: applied patch by
Christian Haugg to make script work on MySQL 4.1.x
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: applied patch by
Christian Haugg to make script work on MySQL 4.1.x
2005-01-19 Ilja Booij <ilja@ic-s.nl>
* INSTALL.postfix: updated information, mainly for Postfix 2.0
users.
2005-01-18 Aaron Stone <aaron@serendipity.cx>
* user.c (do_show): return -1 if userspec is neither a user nor an
alias. Fixes bug #163.
2005-01-18 Paul Stevens <paul@nfg.nl>
* imapcommands.c (_ic_store): treat seqnum of 0xffffffff as '*' to
accomodate outlook express.
* pool.c: use different shm lockfiles per daemon.
* imaputil.c: fix plist construction.
2005-01-14 Paul Stevens <paul@nfg.nl>
* db.h, mysql/dbmysql.c, pgsql/dbpgsql.c (db_check_connection): moved
static function to db.h so we can call db_check_connection from
serverchild.c.
* serverchild.c: call db_check_connection before each incoming
connection (closes #156).
* imap4.c, pop3.c, lmtp.c: call db_check_connection before handling
commands.
* serverchild.c: remove non-functional SIGPIPE handler so we can allow
libmysql to use it's own handler in mysql_ping.
* imapcommands.c (_ic_search): only resync mailbox if
out-of-sync detected.
* imaputil.c: removed unused functions retrieve_structure and
show_address_list.
* imapcommands.c (_ic_search), imaputil.c (perform_imap_search),
dbsearch.c (db_search_parsed, db_sort_parsed): try to be smarter about
retrieving messages when searching/sorting.
2005-01-08 Paul Stevens <paul@nfg.nl>
* imapcommands.c (_ic_search): resync mailbox after detecting
out-of-sync condition.
* db.c (db_search): revert to returning out-of-sync.
2005-01-07 Paul Stevens <paul@nfg.nl>
* debug.c: changed all usage of the my_ prefix to dm_ to avoid
conflicts with the mysql namespace.
* imapcommands.c (_ic_search): reverse the sub_search list.
* imapcommands.c (_ic_search): fix possible race condition in retry
loop.
* db.c (db_search): return error if mailbox out-of-sync.
2005-01-06 Paul Stevens <paul@nfg.nl>
* imaputil.c, dbmail-imapsession.c: some changes in bodystructure
response construction.
* sort.h (sort_and_deliver): removed redundant rfcsize argument.
* main.c, pipe.c, lmtp.c, dbmail-message.c, dbmail-message.h,
check_dbmail_common.c: unified read_whole_message functions.
2005-01-04 Paul Stevens <paul@nfg.nl>
* Makefile.am, check_dbmail_common.c: added new test suite for testing
db interactions.
* check_dbmail_imapd.c, auth.h, auth/authsql.c, user.c: refactored
auth_get_known_users to use GList.
* dbmail-imapsession.c, imap4.c, imap4.h, imapcommands.c: misc
cleanups in code formatting and string handling.
* imaputil.c (dbmail_imap_list_slices): fix error in slice
construction.
* mime.c (mime_readheader): minor cleanups after refactoring.
* server.c, serverchild.c: cleanup of trace calls. Also make
serverchild.c sleep for 60 seconds on segfault to allow attachment of
debugger.
2004-12-23 Paul Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, dbmail-imapsession.c, dbmail-imapsession.h,
imaputil.c, imaputil.h, imapcommands,c: First attempt at unsetting
the recent flag on messages (closes #97).
2004-12-22 Paul Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, mime.c, rfcmsg.c, dbmail-message.c,
dbmail-message.h: correctly handle both messages and messageparts as
parsed by mime_readheader.
* mime.c (mime_readheader): removed redundant cruft after cleanup.
2004-12-21 Aaron Stone <aaron@serendipity.cx>
* dbmd5.c (makemd5): return NULL if passed NULL.
* user.c (mkpassword): replaced two instances of strncat with
null_strncpy, which handles NULL pointers with ease. This resolves
bug #141.
2004-12-19 Paul Stevens <paul@nfg.nl>
* check_dbmail_imapd.c, db.c, imap4.h, imaputil.c, lmtp.c, main.c,
mime.c, mime.h: start refactoring of mime_readheader by introducing
mime_fetch_headers.
* check_dbmail_imapd.c, dbmail-message.c, dbmail-message.h, mime.c,
rfcmsg.c: modify mime_readheader to use mime_fetch_headers for actual
parsing.
2004-12-15 Paul Stevens <paul@nfg.nl>
* dbmail-message.c, dbmail-message.h: abstracted message code a bit
to handle mimeparts as well.
* dbmail-imapsession.c, dbmail-imapsession.h, check_dbmail_imapd.c:
fix in fetch code for octet-ranges.
2004-12-14 Paul Stevens <paul@nfg.nl>
* main.c, lmtp.c, dbmail-message.c, dbmail-message.h: removed
redundant whole_message_size parameter from split_message.
* acinclude.m4, Makefile.am, configure.in, check_dbmail_imapd.c: added
unit-testing support using check.
2004-12-12 Paul Stevens <paul@nfg.nl>
* imapcommands.c (_ic_copy): added transactional support
* imapcommands.c: refactored several functions to remove duplicate
code.
2004-12-10 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c, imapcommands.c: added full logging of imap
server response.
* mime.c (mime_readheader), list.c: several glib cleanups.
* main.c, lmtp.c, header.c, dbmail-message.c: removed header.[ch]
2004-12-08 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c, dbmail-imapsession.h, imap4.h, imapcommands.c:
converted bodyfetch item to GList to allow fetching of multiple body
parts in one fetch command.
* dbmail-imapsession.c, imapcommands.c, imaputil.c, imaputil.h: replaced
give_chunks and free_chunks by their glib counterparts g_strsplit and
g_strfreev.
2004-12-08 Paul Stevens <paul@nfg.nl>
* acinclude.m4, configure.in, debug.h, lmtp.c, main.c, mime.c, misc.c,
sievecmd.c: adding garbage collection through the configure switch
--with-gc and map all non-glib memory allocation calls to their my_
variants.
* acl.c, config.c, db.c, dbsearch.c, dbsearch.h, debug.c, debug.h,
imapcommands.c, imaputil.c, imaputil.h, list.c, list.h, main.c,
mime.c, misc.c, quota.c, sievecmd.c, smtp-convert.c, sort/sortsieve.c,
timsieve.c, user.c: change all strdup call to my_strdup which uses
my_malloc.
2004-12-06 Aaron Stone <aaron@serendipity.cx>
* lmtp.c: changed around a bunch of list handling to alleviate
memory leaks. Fixes bug #119.
* maintenance.c: fixed verbosity and error reporting problems
according to bug #103.
2004-12-03 Ilja Booij <ilja@ic-s.nl>
* lib/iniparser-2.14: directory added. Added Makefile.am in
lib/ lib/iniparser-2.14 and lib/iniparser-2.14/src to
include it in the build process.
* config.c: changed ReadConfig() to config_read() and
GetConfigValue() to config_get_value(). These functions
now use the code in the iniparser library to do their
job, which simplifies parsing of the ini-file a *lot*.
* dbmail.h: changed prototypes for config_read() (was
ReadConfig()) and config_get_value() (was
GetConfigValue()).
* forward.c, imapd.c, lmtpd.c, main.c, maintenance.c,
pipe.c, pop3d.c, rfcmsg.c, sievecmd.c, timsieved.c,
user.c, auth/authldap.c, sort/sort.c: changed calls
to config_read() and config_get_value().
* auth/authsql.c(auth_get_deliver_from_alias): fixed a
return value (-1 was returned instead of NULL).
2004-11-27 Paul Stevens <paul@nfg.nl>
* imapcommands.c (_ic_copy, _ic_store): add call to
db_getmailbox to force resync.
* dbmail-imapsession.c, imaputil.c: various refactorings.
* list.c (list_nodeadd): fix possible race condition.
2004-11-24 Aaron Stone <aaron@serendipity.cx>
* main.c: handle new DSN_STATUS_NONE.
* dsn.h, dsn.c: added new DSN_STATUS_NONE values.
* pipe.c: more intelligent handling of nonexistent users,
including the use of DSN_STATUS_NONE to avoid changing the
delivery status for users already not-found by dsnuser_resolve.
2004-11-24 Ilja Booij <ilja@ic-s.nl>
* pop3.c (pop3): changed AUTH response to return a '.' after
the list of authentication mechanisms. fixed bug #111
2004-11-23 Aaron Stone <aaron@serendipity.cx>
* main.c: added a check to see if there are any deliveries
to be made before bothering to store a message not being
delivered to anybody.
2004-11-22 Aaron Stone <aaron@serendipity.cx>
* sort/sortsieve.c: latest libSieve API.
* sievecmd.c: up to date with sortsieve.c.
* timsieved.c: couple of changes.
2004-11-22 Paul Stevens <paul@nfg.nl>
* imaputils.h: added mime_unwrap
* imaputils.c: use mime_unwrap in show_body_structure_list to unwrap
mime fieldvalues containing newlines.
2004-11-22 Ilja Booij <ilja@Ilja-Booijs-Computer.local>
* pipe.c (send_reply): Reverted back from "Delivered-To" to
"Deliver-To".
* main.c (do_showhelp): Reverted back from "Delivered-To" to
"Deliver-To".
(main): Reverted back from "Delivered-To" to
"Deliver-To".
* header.c: Reverted back from "Delivered-To" to
"Deliver-To".
2004-11-15 Aaron Stone <aaron@serendipity.cx>
* db.c, db.h: added count-only counterparts db_count_iplog
and db_deleted_count.
* maintenance.c: basically a rewrite. -n, -y flags are respected,
-a flag is added. messages are cleaner, -v more useful.
2004-11-15 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c, imapcommands.c: fixed the segfaults caused by
double frees.
2004-11-10 Paul Stevens <paul@nfg.nl>
* db.c, db.h, dbmail-imapsession.c, dbmail-imapsession.h: changed
db_get_msginfo_range to dbmail_imap_session_get_msginfo_range and
moved it to dbmail-imapsession.c
* imapcommands.c: minor cleanup in _ic_fetch.
2004-11-04 Paul Stevens <paul@nfg.nl>
* dbmail-imapsession.c: fixed broken fetch command.
2004-11-01 Aaron Stone <aaron@serendipity.cx>
* INSTALL: couple of minor edits, per Sean Kelly.
* maintenance.c: changed references to "-f... fix" to "-r... repair"
2004-10-31 Aaron Stone <aaron@serendipity.cx>
* db.c, dbmail.conf, dbmailtypes.h, sievecmd.c, sievecmd.h,
sort/sortsieve.c, ql/mysql/create_tables.mysql,
sql/mysql/create_tables_innoDB.mysql, timsieved.c: fully
accepted libSieve patch by Leif Jackson, nice work!
2004-10-31 Aaron Stone <aaron@serendipity.cx>
* user.c (do_delete): now deletes aliases belonging to a user
before the user is deleted; the prototype to the function now
includes useridnr.
* maintenance.c: -q quiet flag is respected.
* auth/authsql.c: added escaping code for all SQL strings, and
suggest building a better framework for this in the future.
2004-10-25 Paul Stevens <paul@nfg.nl>
* db.c,dbsearch.c: stripped redundant unique_id<>'' from the queries.
* dbmail-imapsession.c, dbmail-imapsession.h, imap4.c, imapcommands.c,
imaputil.c: _ic_fetch split up.
* db.c, create_tables(_innoDB).(p/my)sql: db_getmailbox speedup.
* mysql/dbmysqldb.c: db_get_result speedup (MR).
2004-10-21 Paul Stevens <paul@nfg.nl>
* Makefile.am, dbmail-imapsession.c, dbmail-imapsession.h, imap4.c,
imap4.h, imapcommands.c, imapcommands.h, imaputil.c, imaputil.h:
adding support for ImapSession as first phase of the imapcommands.c
cleanup.
2004-10-14 Paul Stevens <paul@nfg.nl>
* acconfig.h: removed.
* acinclude.m4: applied Gerrit Haase's cleanup patch.
* Makefile.in, config.in, configure, aclocal.m4: rerun of autoreconf.
2004-10-13 Paul Stevens <paul@nfg.nl>
* dbmail-message.c: convert all messages to crlf->lf before insertion.
* imaputil.c,imaputil.h (dbmail_imap_astring_as_string,
dbmail_imap_plist_as_string): return char * instead of GString *.
* imapcommands.c: some further cleanups of _ic_list. Also fixed
signedness in calls to perform_imap_search.
2004-10-13 Ilja Booij <ilja@ic-s.nl>
* INSTALL.postfix: fixed typo. (closes #101).
* db.c (db_createsession): adjusted a useful comment line.
2004-10-12 Paul Stevens <paul@nfg.nl>
* Makefile.in, aclocal.m4, configure: updating the autotools generated
files.
* db.c, imapcommands.c, imaputil.h, dbmailtypes.h: cleanup in _ic_list
which cuts the number of queries by three.
* dbmail-message.c: some string cleanups.
* db.c (db_list_mailboxes_by_regex): removed redundant trace calls.
2004-10-06 Paul Stevens <paul@nfg.nl>
* dbmsgbuf.c (db_update_msgbuf): fix off-by-one error.
2004-10-06 Paul Stevens <paul@nfg.nl>
* dbmail-message.c, dbmail-message.h: new files implement
DbmailMessage object and interfaces.
* Makefile.am: added dbmail-message.c to COMMON files list
* acinclude.m4, configure.in: added gmime support
* db.c, db.h, header.c, header.h, lmtp.c, main.c, pipe.c,
pipe.h: use new gmime code in dbmail-message.c for message
insertion.
2004-10-05 Paul Stevens <paul@nfg.nl>
* imapcommands.c (_ic_fetch): check mailbox permissions before
updating the mailbox or message flags.
2004-10-04 Paul Stevens <paul@nfg.nl>
* dbmail.h: add include glib.h
* imapcommands.c (_ic_status): refactored with glib
* imaputil.c, imaputil.h: added several glib based utility functions.
* pool.h: removed overloaded boolean defines.
* sort/Makefile.am: set CFLAGS to AM_CFLAGS.
2004-09-20 Ilja Booij <ilja@ic-s.nl>
* pool.c (child_reg_disconnected): trace message to TRACE_DEBUG
level.
(child_reg_connected): trace message to TRACE_DEBUG level.
(scoreboard_delete): tries to remove SCOREBOARD_LOCK_FILE when
shutting down.
(scoreboard_new): no longer allocates unused (and un-freed) memory.
* config.c (ReadConfig): added missing my_free() statements.
(config_free): added a statement to free global config list.
(GetDBParams): changed so it's possible to set a table prefix
of "".
(GetConfigValue): now returns 1 if config value is found. 0 otherwise.
2004-09-17 Ilja Booij <ilja@ic-s.nl>
* db.c (db_list_mailboxes_by_regex): Fixed queries. I fscked them
up in the changes make on 2004-09-14. They work now!
(db_get_msgflag): fixed error with table prefix.
2004-09-16 Ilja Booij <ilja@ic-s.nl>
* man/dbmail-util.8: commented out -n and -y switches docs.
* maintenance.c (main): disabled -n and -y switches.
* man/dbmail-users.8: commented out -n and -y switches docs.
* user.c: disabled -n and -y switche.
* db.c (db_get_msgdate): fixed error in query. Strings were in the
wrong order, causing a weird query.
* imaputil.c (date_sql2imap): add daylight savings time information.
(retrieve_structure): fixed white issue in IMAP output.
2004-09-15 Ilja Booij <ilja@ic-s.nl>
* INSTALL.postfix: host -> hosts in postfix-mysql config.
2004-09-15 Paul Stevens <paul@nfg.nl>
* db.c, db.h, dbmsgbuf.c, dbmsgbuf.h, pipe.c, rfcmsg.c,
smtp-convert.c: start using the is_header field during message
insertion.
2004-09-15 Paul Stevens <paul@nfg.nl>
* config.c, db.c, dbmail.conf, dbmail.h, dbmsgbuf.c, dbsearch.c,
mysql/dbmysql.c, pgsql/dbpgsql.c: adding dynamic table prefixes by
Leif Jackson.
2004-09-15 Ilja Booij <ilja@ic-s.nl>
* db.c (db_set_deleted): removed db_free_result() call that shouldn't
have been there.
(db_imap_append_msg): removed db_free_result() call that shouldn't
have been there.
(db_set_rfcsize): added two db_free_result() calls.
* auth/authsql.c (auth_validate): added a db_free_result() statement
where one was missing.
* pop3.c (pop3_handle_connection): added call to db_session_cleanup()
to clean up session messagelist after disconnect.
2004-09-14 Ilja Booij <ilja@ic-s.nl>
* acl.c (acl_has_right): changed from ACL_ANYONE_USER to
DBMAIL_ACL_ANYONE_USER
* acl.h: DBMAIL_ACL_ANYONE_USER moved to db.h
* db.h (DBMAIL_ACL_ANYONE_USER): moved to db.h
* db.c (db_list_mailboxes_by_regex): changed queries to work with
DBMAIL_ACL_ANYONE_USER. Mailboxes with ACL for anyone can now also
be listed.
* INSTALL.postfix: trivial fix. changed reference to 'aliases' table
to 'dbmail_aliases'.
2004-09-14 Paul Stevens <paul@nfg.nl>
* dbmailtypes.h, dbsearch.c, dbsearch.h, imap4.c, imap4.h, imapcommands.c,
imapcommands.h, imaputil.c, imaputil.h, list.c, list.h: applied Leif
Jackson's sort patch wich adds server-side sorting.
2004-09-10 Paul Stevens <paul@nfg.nl>
* auth.h, db.h, db.c, user.c, auth/authldap.c, auth/authsql.c:
moved all functions that refer to the dbmail_aliases and dbmail_users
tables to the auth module as part of ldap effort.
2004-09-09 Paul Stevens <paul@nfg.nl>
* Makefile.ami, imap4.c, imapd.c, lmtpd.c, pool.c, pool.h,
pop3d.c, server.c, server.h, serverchild.c, serverchild.h,
dbmail.conf: applying the preforking patch.
2004-09-09 Paul Stevens <paul@nfg.nl>
* acinclude.m4 configure.in: adding glib-2.0 support. This is now
a build requirement.
2004-09-09 Paul Stevens <paul@nfg.nl>
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: fixed several
foreign key constraints that still refered to the old users and
mailboxes tables.
2004-09-08 Ilja Booij <ilja@ic-s.nl>
* INSTALL: added notice about the use of GNU Make to INSTALL.
* imaputil.c (date_sql2imap): now also gets the localtime with
time(). Didn't do this before (was a bug).
2004-09-07 Ilja Booij <ilja@ic-s.nl>
* db.c (db_commit_transaction): if committing a transaction fails, we
want to make sure that the database is not in an inconsistent state.
To be sure of this, a rollback is performed.
(db_rollback_transaction): if a rollback fails, disconnect from the
database server, then reconnect again.
* imaputil.c (date_sql2imap): changed from array magic function to
function using strptime() and strftime() for data parsing and
formatting. Now adds timezone to IMAP Internal Date.
(date_imap2sql): removed array magic and now uses strptime and
strftime for date parsing and formatting.
2004-09-06 Ilja Booij <ilja@ic-s.nl>
* imapcommands.c (_ic_list): change in regex to fix "%" operator. It
does not match "/" now.
2004-09-03 Ilja Booij <ilja@ic-s.nl>
* sql/, all database creation and migration scripts: added 'anyone'
in dbmail_users table for ACL handling.
2004-09-01 Aaron Stone <aaron@serendipity.cx>
* user.c: changed cleartext -> plaintext in the syntax help.
* man/user.1: changed cleartext -> plaintext in the syntax help.
* auth/authsql.c: changed cleartext -> plaintext in a debug trace.
2004-08-31 Ilja Booij <ilja@ic-s.nl>
* user.c (main): fixed missing handling of -u command line
switch.
2004-08-29 Aaron Stone <aaron@serendipity.cx>
* dsn.c, dsn.h: added dsnuser_resolve to resolve just a single
deliver_to_user_t struct.
* dsn.c (dsnuser_resolve_list): this is a list wrapper around
the single-user resolver.
* lmtp.c: now replies after each RCPT TO command. fixed two
memory leaks within the 'rcpt' list of dsnuser's.
2004-08-25 Ilja Booij <ilja@ic-s.nl>
* user.c (main): if the command fails, return message to
command line.
(do_add): returns -1 directly if user already exists.
2004-08-24 Ilja Booij <ilja@ic-s.nl>
* user.c (do_add): now adds aliases if needed.
* acl.c (acl_has_right): adapted function to also check for rights
of 'anyone' user. This code also functions if there's no anyone
user in the database, it just won't find any rights for the anyone
user.
* acl.h: added ACL_ANYONE_USER define
* imapcommands.c (_ic_myrights): removed comma which was send
after IMAP tag.
2004-08-23 Ilja Booij <ilja@ic-s.nl>
* dbmail.conf: moved POSTMASTER entry from SMTP to DBMAIL section.
Removed DBMAIL_FROM_ADDRESS from config file because it's no
longer used.
* rfcmsg.c (db_parse_as_text): now sets POSTMASTER address
from dbmail.conf as From address.
* imap4.c (IMAPClientHandler): reset nfaultyresponses after
a command was sent to the server that parsed OK.
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: fixed faulty
foreign key reference thanks to ville at thesubmachine dot com
* vut2dbmail.c: removed from distribution. Also removed from
Makefile.am and ran automake && autoreconf after that.
2004-08-20 Aaron Stone <aaron@serendipity.cx>
* man/dbmail-users.1: options -s and -S had been left out of
part of the SYNONSIS section.
2004-08-20 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: removed old foreign
key constraint.
* lmtp.c (lmtp): fixed off by one error adding element to list.
2004-08-16 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: now also renames
primary keys, which are not automatically renamed when renaming
a table.
2004-08-06 Ilja Booij <ilja@ic-s.nl>
* dbsearch.c (db_search_range): changed query that wasn't using
indexes properly in PostgreSQL to one that does.
* dbmsgbuf.c (db_dump_range): changed query that wasn't using
indexes properly in PostgreSQL to one that does.
(db_init_msgfetch): changed query that wasn't using
indexes properly in PostgreSQL to one that does.
2004-08-05 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/migrate_from_1.x_to_2.0.mysql: removed removal
of same indexes because they're not present in all installations.
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: removed removal
of same indexes because they're not present in all installations.
* pipe.c (store_message_temp): changed reference to
dbmail-maintenance to dbmail-util.
* dbmail.conf: changed all references to dbmail-maintenance to
dbmail-util
* db.h: changed all references to dbmail-maintenance to
dbmail-util
* db.c: changed all references to dbmail-maintenance to
dbmail-util
* INSTALL: changed references to dbmail-maintenance to dbmail-util and
from dbmail-adduser to dbmail-users. Also changed their command lines
to represent the new getopt() way of doing things.
2004-08-04 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/create_tables.pgsql: changed foreign key definitions
and removed some unecessary indexes.
* sql/mysql/create_tables.mysql: all indexes now have the right names.
* sql/mysql/create_tables_innoDB.mysql: all indexes and foreign keys now have the
right names.
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: added 'dbmail_'
prefix to all tables. Changed script to do less copying of data.
all indexes now have the right names.
* sql/mysql/migrate_from_1.x_to_2.0.mysql: added 'dbmail_'
prefix to all tables. Changed script to do less copying of
data. all indexes now have the right names.
2004-08-03 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/create_tables_innoDB.mysql: add 'dbmail_' prefix
to all tables.
* sql/mysql/create_tables.mysql: added 'dbmail_' prefix to all
tables.
* sql/postgresql/create_tables.pgsql: added 'dbmail_' prefix
to all tables, sequences and indexes
* pgsql/dbpgsql.c (db_insert_result): added 'dbmail_' to
the sequence identifier.
* sql/mysql/migrate_from_1.x_to_2.0.mysql: auto_replies
and auto_notifications tables are only created if they don't
exist. If they do, an index on user_idnr is added to them.
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: auto_replies
and auto_notifications tables are only created if they don't
exist. If they do, an index on user_idnr is added to them.
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: auto_replies and
auto_notifications tables are only created if they don't exist.
If they do, an index on user_idnr is added to them.
Also, more importantly, all tables, sequences and indexes now
have the 'dbmail_' prefix.
Finally, a lot of data copying has been avoided by doing all
changes in place. This should save a lot of time.
2004-08-02 Ilja Booij <ilja@ic-s.nl>
* lmtp.c (lmtp): my_free(whole_message) added
if (headersize > READ_BLOCK_SIZE)
(lmtp): my_free(whole_message) added if (mime_readheader() < 0)
* server.c (StartServer): changed malloc() to my_malloc()
(StartServer):free() -> my_free()
* quota.c (quota_alloc): changed malloc() to my_malloc()
(quota_set_root): free() -> my_free()
(quota_free): free() -> my_free()
* proctitleutils.c (init_set_proc_title): changed malloc() to
my_malloc().
* config.c (ReadConfig): changed malloc and free to my_malloc and
my_free. Added code to prevent memory leakage in event of errors.
(config_free): changed free() to my_free()
2004-07-27 Aaron Stone <aaron@serendipity.cx>
* main.c: added support for address+mailbox@host syntax, needed for
integration with amavis-new and others, also adding the -M option to
be able to override the "address detail mailbox."
2004-07-24 Aaron Stone <aaron@serendipity.cx>
* man/dbmail-users.1, man/dbmail-util.1, man/dbmail-smtp.1: updated
several options and polished out a few formatting problems.
2004-07-24 Aaron Stone <aaron@serendipity.cx>
* main.c, user.c, vut2dbmail.c, maintenance.c: improved handling
of several common command line options and added more comments.
* user.c: fixed missing options in the optstring argument to getopt.
* user.c: added prompt and processing for password on stdin.
2004-07-22 Aaron Stone <aaron@serendipity.cx>
* db.c: added acl, pbsp and subscription to the list of tables
and added the dbmail_ prefix to them in all queries.
* db.c: also added auto_replies and auto_notifications to the
list of tables and added the dbmail_ prefix to them in all queries.
* contrib/startup-scripts/gentoo/dbmail-lmtpd,imapd,pop3d:
pidfiles now go into /var/run rather than /var/run/dbmail
as most people won't have that directory already existing.
* pidfile.c (pidfile_create): added an fflush call so that filesystems
like XFS which cache agressively will be forced to write out the pid.
* pidfile.c (pidfile_remove): added atexit call so that the
pidfile is cleaned up upon program termination.
2004-07-21 Aaron Stone <aaron@serendipity.cx>
* user.c: overhaul of argument handling ended up being a near
rewrite of the entire utility. possibly added GCC style macro
dependencies; they should be supplemented with portable code.
* main.c, maintenance.c, vut2dbmail.c: improved command line
argument handling.
* timsieved.c, imapd.c, lmtpd.c, pop3d.c: added pidfile support
and common command line argument handling.
* dbmail.h: added pidfile defaults.
* pidfile.c, pidfile.h: these are borrowed from Samba; heavily
edited though for better compatibility with DBMail, though.
* dbmd5.c, dbmd5.h (makemd5): added const keywords.
* debug.h: removed a previously commented out line.
* lmtp.c: applied patch that fixes Exim by resetting variables
after a message has been successfully delivered.
* db.c, dbmsgbuf.c, dbsearch.c: added dbmail_ table prefixes.
* auth/authsql.c: added dbmail_ table prefixes.
* auth.h (auth_adduser): now passing userid and clientid
numerically as a u64_t rather than as a char string.
* contrib/startup-scripts/dbmail-imap: deleted.
* contrib/startup-scripts/dbmail-pop3: deleted.
* contrib/startup-scripts/dbmail-imapd-gentoo: deleted.
* contrib/startup-scripts/dbmail-pop3d-gentoo: deleted.
* contrib/startup-scripts/gentoo/dbmail-imapd: added.
* contrib/startup-scripts/gentoo/dbmail-lmtpd: added.
* contrib/startup-scripts/gentoo/dbmail-pop3d: added.
* contrib/startup-scripts/debian/dbmail-imapd: added.
* contrib/startup-scripts/debian/dbmail-lmtpd: added.
* contrib/startup-scripts/debian/dbmail-pop3d: added.
* contrib/startup-scripts/README: added, to explain the new
subdirectories of startup-scripts and to ask that those adding
support for new distribution please contribute their scripts.
* Makefile.am, man/Makefile.am: renamed dbmail-maintenance to
dbmail-util and dbmail-addusers to dbmail-users.
* man/dbmail-imapd.1: edited.
* man/dbmail-lmtpd.1: added.
* man/dbmail-pop3d.1: edited.
* man/dbmail-smtp.1: edited.
* man/dbmail-adduser.1: renamed to dbmail-users.
* man/dbmail-users.1: edited.
* man/dbmail-maintenance.1: renamed to dbmail-util.
* man/dbmail-util.1: edited.
* README: edited.
2004-07-15 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/create_tables.mysql: messages.status changed
to default to '0' instead of '000'
* sql/mysql/create_tables_innoDB.mysql: messages.status changed
to default to '0' instead of '000'
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql:messages.status
changed to default to '0' instead of '000'
* sql/mysql/migrate_from_1.x_to_2.0.mysql: messages.status changed
to default to '0' instead of '000'
* sql/postgresql/create_tables.pgsql: added partial index to messages
table. Changed psbp.ipnumber to INET type and added transaction
statements around creation statements.
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: instead of copying
all entries from all tables from one table to another, the tables
are simply renamed. Also, the whole migration happens within a single
transaction.
Also added a partial index on the messages table and changed ipnumber
in pbsp to INET type.
2004-07-14 Ilja Booij <ilja@ic-s.nl>
* timsieve.c (tims_handle_connection): memleaks fixed.
* misc.c (mailbox_add_namespace): possible memleak fixed.
2004-07-13 Ilja Booij <ilja@ic-s.nl>
* lmtp.c (lmtp_handle_connection): possible memleak fixed
* imapcommands.c: added my_free to fix possible memory leak.
* dsn.c (dsnuser_init): added my_free() to fix possible
memory leak.
* dbmsgbuf.c (db_init_msgfetch): fixed some possible memory
leaks after reports by Hans Kristian Rosbach.
2004-07-09 Ilja Booij <ilja@ic-s.nl>
* db.c (db_calculate_quotum_all): added my_free statements for
freeing user_idnrs when returning with error code.
* pop3.c (pop3_handle_connection): fixed some possible mem leaks
after reports from Hans Kristian Rosbach.
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: changed pbsp.idnr
FROM BIGINT to INT8.
* sql/postgresql/create_tables.pgsql: changed pbsp.idnr from BIGINT
to INT8
2004-07-06 Ilja Booij <ilja@ic-s.nl>
* maintenance.c (main): gives more useful help. -f options is now
used for setting config file, -f for repairing broken integrity.
* man/dbmail-maintenance.1: updated wrt changes in command line
options.
2004-06-29 Ilja Booij <ilja@ic-s.nl>
* INSTALL.postfix: updated wrt to return path setting.
* forward.c (forward): now calls the sendmail executable with the
-f switch to set the return path to the original return path.
2004-06-28 Ilja Booij <ilja@ic-s.nl>
* imaputil.c (build_args_array_ext): also accepts {681+} as mail size (not only
{681} (681 is a random number!). This fixes an IMAP APPEND problem with
Mozilla Thunderbird.
2004-06-18 Ilja Booij <ilja@ic-s.nl>
* main.c (read_whole_message_pipe): added (void *) casts to memcpy's
arguments.
* imaputil.c (build_args_array_ext): added (void *) casts to memcpy's
arguments.
(build_args_array): added (void *) casts to memcpy's arguments.
* imapcommands.c (_ic_expunge): added (void *) casts to memcpy's
arguments.
* imap4.c (IMAPClientHandler): added (void *) casts to memcpy's
arguments.
* db.c (convert_inbox_to_uppercase): added (void *) casts to memcpy's
arguments.
* lmtp.c (read_whole_message_network): check if a line that's been
read has length 0 or 1. If so, step over the line. Secondly, memcpy's
arguments are now cast to (void *)
2004-06-16 Ilja Booij <ilja@ic-s.nl>
* misc.c (ci_write): ci_write() moved here
* misc.h: ci_write() moved here.
* lmtp.c: now uses ci_write instead of fprintf to write to socket.
* imaputil.h: ci_write() removed (moved to misc.h)
* imaputil.c: ci_write() removed (moved to misc.c)
* imap4.c: now #includes misc.h for ci_write()
* dbmail.conf: number of children and maxconnects for LMTP upped
to 20 and 10000.
2004-06-14 Ilja Booij <ilja@ic-s.nl>
* pgsql/dbpgsql.c (db_query): now checks and resets the connection
by itself. No longer uses db_check_connection.
(db_check_connection): removed function. Was no longer in use.
2004-06-13 Aaron Stone <aaron@serendipity.cx>
* main.c (main): initialize the variable 'header' to NULL
so that it can be conditionally freed without a segfault.
Thanks to Blake Mitchell for identifying this bug.
2004-06-11 Ilja Booij <ilja@ic-s.nl>
* config.c (config_free): fixed memory leaks by really freeing all
memory in the list.
* All database files: added is_header flag in messageblks
table, and index to this flag. The flag is not used in any
code yet, but is present because we'll need it later on.
2004-06-09 Ilja Booij <ilja@ic-s.nl>
* dbmsgbuf.c (db_dump_range): changed query to cut down
on the number of queries. Patch by Paul J Stevens
(db_init_msgfetch): changed query to cut down
on the number of queries. Patch by Paul J Stevens
2004-06-03 Aaron Stone <aaron@serendipity.cx>
* dbmail.h: added macro PRINTF_ARGS as a wrapper around
__attribute__(format(printf...))), which is GCC specific.
* debug.h, pop3.c, lmtp.c: now using PRINTF_ARGS.
2004-06-03 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_user_exists): escape user name using
db_escape_string() before putting it in a query.
(auth_md5_validate): escape username using db_escape_string()
before putting it in a query.
* all_files: changed from __FUNCTION__ preprocessor macro to
__func__, which is used in C99.
* serverchild.c (PerformChildTask): changed call to setlinebuf()
to setvbuf() to make it work on non-BSD and non-GNU systems. The
new call is functionally completely equivalent, it just looks
different.
* lmtp.c (lmtp_error): only add __attribute__ if __GNUC__
is defined.
* pop3.c (pop3): uses values from MessageStatus_t instead
of hard coded values.
(pop3_error): only add __attribute__ if __GNUC__ is defined.
* maintenance.c (main): uses MESSAGE_STATUS_ERROR from
MessageStatus_t instead of hard-coded value.
* db.c: all queries which use status now use values from
MessageStatus_t instead of hard-coded values.
* dbsearch.c: all queries which use status now use values from
MessageStatus_t instead of hard-coded values.
* dbmailtypes.h: struct message now hold MessageStatus_t values
* db.c (db_set_message_status): now accepts a MessageStatus_t
as argument instead of an int.
* dbmail.h: added enum MessageStatus_t to hold the different
statusses a message can have.
2004-06-02 Aaron Stone <aaron@serendipity.cx>
* INSTALL: reflowed text to 78 columns and consolidated two
paragraphs about LMTP vs. SMTP into one.
* auth/authldap.c (__auth_get_config): updated GetConfigValue
helper macro and ReadConfig calls to new function signature.
2004-06-01 Ilja Booij <ilja@ic-s.nl>
* db.c (db_findmailbox_owner): now searches for a literal
'INBOX' if we're searching for the INBOX. No longer uses
lower() to get the lowercase version.
(convert_inbox_to_uppercase): function to change the first
5 characters of the mailbox name to INBOX
(db_begin_transaction): function used to begin a transaction
(db_commit_transaction): function used to commit a transaction
(db_rollback_transaction): function used to roll back a transaction
(db_calculate_quotum_all): now also checks for correct status.
* pop3.c (pop3): AUTH command changed slightly to give
X-NONE-SO-USE-APOP as authentication list and return an
error when another AUTH mechanism is asked.
2004-05-28 Ilja Booij <ilja@ic-s.nl>
* db.h (DBMAIL_DELIVERY_USERNAME): define moved here from pipe.c
* db.c (user_idnr_is_delivery_user_idnr): new function: checks if
the user_idnr that is given is the user_idnr of the internal
delivery user. Uses local static variables to reduce nr of queries.
(db_add_quotum_used): now uses user_idnr_is_delivery_user_idnr
(db_subtract_quotum_used): now uses user_idnr_is_delivery_user_idnr
* main.c (main): small change. whole_message is initialised to NULL.
2004-05-25 Ilja Booij <ilja@ic-s.nl>
* THANKS: added Dan Weber for autoconf work
* INSTALL: changed after removing install-dbmail.sh
* install-dbmail.sh: removed file because it's no longer needed.
* Makefile.am (DELIVER): change by Dan Weber: using 'make install'
executables now install in /usr/local/sbin. This makes
install-dbmail.sh obsolete.
* sort/sort.c: no longer includes bounce.h
(sort_and_deliver): no longer calls bounce()
* pipe.c: no longer includes bounce.h
* forward.c: no longer includes bounce.h
* lmtp.c (init_session): simple function to initialize an
LMTP session
(lmtp_handle_connection): now calls init_session.
* db.c (db_calculate_quotum_all): changed query. It should now
work when there are no messages in a user's mailbox.
2004-05-19 Ilja Booij <ilja@ic-s.nl>
* lmtp.c (lmtp): fixed use of list in loop. An element was sometimes
removed, after which it was still used -> illegal read.
2004-05-14 Ilja Booij <ilja@ic-s.nl>
* pipe.c (store_message_in_blocks): new function that stores
the body of a message in several blocks (if necessary).
(store_message_temp): changed to get message from a string,
instead of from a stream.
(insert_messages): changed to get message from a string instead
of from a stream.
* main.c (read_whole_message_pipe): new function to read a
complete message from a pipe.
(main): now uses read_whole_message_pipe to get message.
* lmtp.c (read_whole_message_network): new function to read
a complete message from a network connection.
(lmtp): now uses read_whole_message_network() to get the
message from the network.
* header.c (split_message): new function for splitting a
message in header and body.
(get_rfc_size): new function for getting the rfc size of
a message body
(consume_header_line): new function used to get header size
and signal end of headers.
* header.h: removed prototype for read_header()
(split_message): added function used for splitting message
2004-05-11 Aaron Stone <aaron@serendipity.cx>
* imapcommands.c: removed carriage returns and newlines
from calls to trace (with help of a patch by Thomas Mueller).
2004-05-11 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: added BINARY to
mailboxes.name to be able to use it case sensitively.
* sql/mysql/migrate_from_1.x_to_2.0.mysql: added BINARY to
mailboxes.name to be able to use it case sensitively.
* sql/mysql/create_tables.mysql: added BINARY to mailboxes.name to
be able to use it case-sensitively.
* sql/mysql/create_tables_innoDB.mysql: added BINARY to mailboxes.name
to be able to use it case sensitively.
* EXTRAS: removed info on raw-convert and mysql2pgsql
2004-05-10 Ilja Booij <ilja@ic-s.nl>
* db.c (db_insert_message): added assert() statements for out paramaters.
2004-05-06 Ilja Booij <ilja@ic-s.nl>
* pipe.c (store_message_temp): makes use of MOD macro to determine
position in the ringbuf ring buffer.
(store_message_temp): added extra check to detect empty message body
* header.c (read_header): changed some trace formats to have
the right format (e.g. %zd for size_t etc)
* imaputil.c (stridx): return type is now size_t. It used to
be unsigned. The prototype already had size_t as return type,
but by mistake it wasn't changed in the definition.
2004-05-04 Aaron Stone <aaron@serendipity.cx>
* pipe.c (store_message_temp): the ring buffer now only looks
for \n.\r\n, as some messages are in an "\n-only" format.
* lmtp.c: changed a debugging message from TRACE_ERROR
to TRACE_DEBUG.
2004-05-03 Aaron Stone <aaron@serendipity.cx>
* pipe.c (store_message_temp): added a small ring buffer to
keep track of when a message-terminating \r\n.\r\n sequence
arrives.
2004-04-28 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_adduser): no longer creates the mailbox
for the new user.
* user.c (do_add): calls db_createmailbox() to create mailbox
for the new user.
2004-04-28 Aaron Stone <aaron@serendipity.cx>
* header.c (read_header): switched from fread to fgetc.
* pipe.c (store_message_temp): switched from fread to fgetc.
* main.c (print_usage): added two spaces to line up the columns.
2004-04-23 Aaron Stone <aaron@serendipity.cx>
* dsn.c/dsn.h (dsn_tostring): added new function dsn_tostring,
which take a delivery_status_t argument and returns corresponding
text for the class, subject and detail codes.
* header.c (read_header): switched from fgets to fread.
* pipe.c (store_message_temp): switched from fgets to fread.
2004-04-22 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_adduser): now adds the current timestamp
in the last_login field of the users table if a user is added.
2004-04-21 Ilja Booij <ilja@ic-s.nl>
* imap4.c (IMAPClientHandler): changed i to size_t
* imaputil.c (stridx): changed return type to size_t
* imapcommands.c (_ic_authenticate): no checks return value of
fgets.
* header.c (read_header): added some my_free statements for
freeing tmpheader on unexpected events (read errors etc).
* forward.c (forward): prevented some buffer overflows by
using snprintf instead if sprintf.
* dbsearch.c (db_exec_search): added a return statement
for case IST_DATA_TEXT. Otherwise, it could fall through
to IST_DATA_BODY.
* bounce.c (bounce): changed sprintf to snprintf and added
free statements for freeing sendmail_command.
* db.c (db_get_reply_body): fixed a FIXME by replacing complex
code with a strdup()
(db_isselectable): fixed a FIXME by adding extra check
(db_noinferiors): fixed a FIXME by adding extra check
(db_getmailboxname): fixed a FIXME by replacing complex
code with a strdup()
(db_update_pop): added a check to only calculate the new quotum
if the user_idnr is set earlier in the function.
(db_send_message_lines): added check to fwrite. This is needed
for when fwrite fails.
(db_list_mailboxes_by_regex): free temporay arrays if malloc
fails.
2004-04-19 Ilja Booij <ilja@ic-s.nl>
* db.c (db_get_deliver_from_alias): now returns strdup() of ""
instead of the literal itself. Also, we just use strdup() to
copy the query result to a new string.
(db_get_notify_address): use strdup instead of complicated stuff..
* config.c (ReadConfig): added checks to satisfy splint warnings
(GetConfigValue): corrected some checks that did not work in the
form they were in (tests for null pointers that were never null!)
* acl.c (acl_get_acl): added checks and annotations.
(acl_listrights): changed to return a string that has
to be freed by caller. added splint annotation.
* auth.h: (auth_user_exists) added splint annotation to 'out'
parameter.
* pipe.c (send_reply): initialise escaped_send_address to hold only '\0'
characters before sprintf-inf to it.
(execute_auto_ran): check if GetConfigValue() actually works.
(execute_auto_ran): changed some function calls to include checks for
return values indicating errors.
(discard_client_input): changed return type to int to be able to signal
error.
(discard_client_input): changed handling of fgets to be able to continue
in case of a failing fgets().
(store_message_temp): solved some possible memory leaks. Added some extra
checks for return values.
2004-04-16 Ilja Booij <ilja@ic-s.nl>
* pipe.c (send_notification): fixed some possible memory leaks
and error-prone statements (sprintf to snprintf), thanks to
using splint.
(send_reply): fixed some possible memory leaks
and error-prone statements (sprintf to snprintf), thanks to
using splint.
* imap4.c: ci_write() function removed (moved to imap4.c)
* imaputil.c (ci_write): ci_write function is now added to
imaputil.c (was in imap4.c)
* imapcommands.c: all fprintf statements are replaced by ci_write
calls to add error checking.
2004-04-15 Ilja Booij <ilja@ic-s.nl>
* db.c (db_check_quotum_used): changed query so it also returns 1 if
over quotum on PostgreSQL (and Oracle). Added db_free_result() to
also free result if over quotum. The function now just checks if the
query returns any rows.
2004-04-14 Ilja Booij <ilja@ic-s.nl>
* header.c (read_header): use strncat instead of strncpy to add new
line to message
* mysql/dbmysql.c: auth_res removed
* mime.c (mime_readheader): now makes a copy of the block data before
finding headers. Before, the block data was altered, which it should
not be doing! The block is now passed a const char*
* pgsql/dbpgsql.c: auth_res removed
* db.c (db_get_notify_address): changed query_result to const char*
(db_get_reply_body): changed query_result to const char*
(db_get_useridnr): changed query_result to const char*
(db_icheck_messageblks): changed query_result to const char*
(db_icheck_messages): changed query_result to const char*
(db_icheck_mailboxes): changed query_result to const char*
(db_icheck_null_physmessages): changed query_result to const char*
(db_send_message_lines): changed query_result to const char*
(db_createsession): changed query_result to const char*
(db_listmailboxchildren): changed query_result to const char*
(db_isselectable): changed query_result to const char*
(db_noinferiors): changed query_result to const char*
(db_get_message_size): changed query_result to const char*
(db_getmailboxname): changed query_result to const char*
(db_get_msgdate): changed query_result to const char*
(db_get_main_header): changed query_result to const char*
(db_get_user_aliases): changed query_result to const char*
(db_acl_get_identifier): changed query_result to const char*
(db_get_result_int): changed tmp to const char*
(db_get_result_bool): changed tmp to const char*
(db_get_result_u64): changed tmp to const char*
* dbsearch.c (db_search_range): changed query_result to const char*
* auth/authsql.c (auth_user_exists): changed query_result to
const char*
(auth_get_known_users): changed_query result to const char*
(auth_getclientid): changed query_result to const char*
(auth_getmaxmailsize): changed query_result to const char*
(auth_getencryption): changed query_result to const char*
(auth_check_user): changed query_result to const char*
(auth_check_user_ext): changed query_result to const char*
(auth_validate): changed query_result to const char*
(auth_md5_validate): changed query_result to const char*
(auth_get_userid): changed query_result to const char*
* dbmsgbuf.c (db_init_msgfetch): added a memset() to clear msgbuf before
anything is written to it.
2004-04-13 Ilja Booij <ilja@ic-s.nl>
* db.c (db_findmailbox_by_regex): corrected a small error. There was a check to see
if nchildren == 0, which should of course be *nchildren == 0
(db_list_mailboxes_by_regex): now stores all info from database before constructing
full names of mailboxes.
2004-04-08 Ilja Booij <ilja@ic-s.nl>
* pipe.c (insert_messages): now does an extra check. If a recipient is bound
to be labelled with TEMP_FAIL, a final check is made to check if perhaps we
only need to forward the messages to another server. If this is the case,
it gets the DSN_CLASS_OK label.
* auth/authsql.c (auth_user_exists): removed use of
db_use_auth_result() and db_store_auth_result().
(auth_get_known_users): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_getclientid): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_getmaxmailsize): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_getencryption): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_check_user): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_check_user_ext): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_adduser): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_delete_user): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_change_username): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_change_password): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_change_clientid): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_change_mailboxsize): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_validate): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_md5_validate): removed use of db_use_auth_result() and
db_store_auth_result().
(auth_get_userid): removed use of db_use_auth_result() and
db_store_auth_result().
(__auth_insert_result): removed use of db_use_auth_result() and
db_store_auth_result().
* mysql/dbmysql.c: removed db_store_auth_result(), db_use_auth_result()
* pgsql/dbpgsql.c: removed db_store_auth_result(), db_use_auth_result()
2004-04-05 Ilja Booij <ilja@ic-s.nl>
* serverchild.c (SetChildSigHandler): add handler for SIGCHLD
(ChildSigHandler): add case in switch for handling SIGCHLD, by
just ignoring it!
* db.c (db_insert_message_block_physmessage): added a memset() to
clear the escaped_query string before using it.
* dbsearch.c (db_search_range): corrected query to use physmessage
table. This error was found by Paul F. De La Cruz and a fix
was provided by Paul J Stevens.
2004-04-02 Ilja Booij <ilja@ic-s.nl>
* header.c (read_header): at one place, read_header returned -1,
instead of 0.
* auth/authsql.c (auth_validate): checks if username or password
is NULL
* auth/authldap.c (auth_validate): checks if username or password
is NULL
2004-04-01 Ilja Booij <ilja@ic-s.nl>
* imap4.c (IMAPClientHandler): add ci_cleanup() calls before
returning from function. All fprintf() calls are exchanged
for ci_write() calls, which add error checking.
* lmtp.c (lmtp_handle_connection): initialize session state to
STRT
* mysql/dbmysql.c (db_get_length): uses mysql_data_seek() directly
again, without trying to do smart things which should be resolved
by the library
(db_get_result): uses mysql_data_seek() directly
again, without trying to do smart things which should be resolved
by the library.
(db_query): now always calls mysql_store_result(). This will result
in res being NULL sometimes, but this should not be a problem, because
if mysql_store_result() is not called, it will also be NULL.
2004-03-31 Ilja Booij <ilja@ic-s.nl>
* db.c (db_findmailbox_by_regex): now calls regfree() to free the
possibly allocated memory in the preg regex struct. This fixes a
memory leak
(db_listmailboxchildren): Now first makes a strdup() of the mailbox
name from db_get_result() before freeing the result set. This should
fix some crashes.
2004-03-22 Ilja Booij <ilja@ic-s.nl>
* db.c (db_imap_append_msg): use db_insert_message_block_physmessage()
instead of db_insert_message_block()
(db_imap_append_msg): now uses db_message_set_unique_id instead
of db_update_message to set just the unique id of the messages and
uses db_physmessage_set_sizes for setting message size
This saves another query!
(db_physmessage_set_sizes): new function to set messagesize and
rfcsize of a physmessage.
(db_update_message): uses db_physmessage_set_sizes
* imapcommands.c (_ic_list): change to how regex patterns are
constructed to allow LIST to work on shared mailboxes
* main.c (main): now allows two or more arguments to a getopt()
option.
2004-03-19 Ilja Booij <ilja@ic-s.nl>
* pipe.c (discard_client_input): new function, used to empty a
file stream coming from a client.
* lmtp.c (lmtp): messages with headers that are bigger than
READ_BLOCK_SIZE are rejected. Some changes were made to make sure
that we don't get anymore data from the client before sending
a message indicating the failure.
* main.c (main): now rejects headers that are bigger than READ_BLOCK_SIZE.
This lets dbmail-smtp fail with a "data format error".
2004-03-18 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: added pbsp table
* sql/mysql/migrate_from_1.x_to_2.0.mysql: added pbsp table
* sql/mysql/migrate_from_1.x_to_2.0_innodb.mysql: added pbsp table.
* sql/mysql/create_tables.mysql: added pbsp table.
* sql/postgresql/create_tables.pgsql: added pbsp table.
* sql/mysql/create_tables_innoDB.mysql: added pbsp table.
* pipe.c (store_message_temp): the strblock and tmpline buffers
were not properly initialised, because they were not set to
contain only '\0's, which was problematic for messages containing
an empty body.
2004-03-16 Ilja Booij <ilja@ic-s.nl>
* dbmsgbuf.c (db_dump_range): now only adds '\r' to every line
if no preceeding '\r' has been found before the '\n'.
* mime.c: removed mime_list() function because it was unused.
(mime_readheader): now deals correctly with messages that
have '\r\n' instead of '\n' as end of line markers.
(is_end_of_header): function for signaling the end of a header
* mime.h: removed mime_list() function because it was unused.
2004-03-15 Ilja Booij <ilja@ic-s.nl>
* mysql/dbmysql.c: added quotes around TO_DATE string
* db.c (db_insert_physmessage_with_internal_date): removed the
quotes that Aaron has just put in. They've moved to dbmysql.c to
make sure PostgreSQL handling does not break.
(db_send_message_lines): a db_get_length() call asked for the length
of field 2 (3rd field), while there was only one field in the result
set.
2004-03-14 Aaron Stone <aaron@serendipity.cx>
* db.c: MySQL 4.0.14 or higher required for INSERT ... SELECT!
* db.c (db_imap_append_msg): changed from db_check_sizelimit to
db_check_quotum_used, eliminating three related queries.
(db_check_quotum_used): added function to check, in just one
query, if a user has a maxmail quotum and if a message of the
specified size would exceed that quotum or not.
(db_copymsg): rewritten to use the db_check_quotum_used function,
and to use a single INSERT INTO ... SELECT FROM query, and to use
the canonical create_unique_id function and rather than its own.
(db_insert_physmessage_with_internal_date): fixed missing quotes.
* dsn.c (dsnuser_free_list): added function to free a list
containing dsnuser structures, followed by freeing the list itself.
(dsnuser_worstcase_list): added function to find the worst
delivery condition from a list of dsnusers.
(dsnuser_worstcase_int): added function to find the worst
delivery condition from three indicators: OK, TEMP, FAIL.
* main.c (main): now uses the dsnuser_worstcase functions.
* pipe.c (insert_messages): now uses the dsnuser_worstcase functions.
* sort/sort.c (sort_and_deliver): return type is now dsn_class_t,
which provides a better indicator of the success or failure of
the delivery.
2004-03-12 Ilja Booij <ilja@ic-s.nl>
* acl.c (acl_get_acl): now correctly returns an ACL string with
the ACL of the owner of the mailbox displayed.
* imapcommands.c (_ic_getacl): now embeds the mailbox name in
quotes to correctly deal with mailbox names that have spaces
(_ic_listrights): now embeds the mailbox name in
quotes to correctly deal with mailbox names that have spaces
(_ic_myrights): now embeds the mailbox name in
quotes to correctly deal with mailbox names that have spaces
* auth.h (auth_get_userid): param user_idnr is now a normal
parameter (call by value)
* auth/authsql.c (auth_get_userid): param user_idnr is now a normal
parameter (call by value)
* auth/authldap.c (auth_get_userid): param user_idnr is now a normal
parameter (call by value)
2004-03-11 Ilja Booij <ilja@ic-s.nl>
* imapcommands.c (_ic_append): passes the internal date through
to to db_imap_append_msg().
(_ic_append): sets flags for messages if needed by calling
db_set_msgflag()
* db.c (db_imap_append_msg): according to the rfc, the recent flag
of a message that is append using imap append should always be set.
this is now taken care of. db_imap_append_msg() used to set the
\seen flag to '1', but according to the rfc, this should not be done,
so it's been removed.
(db_insert_physmessage_with_internal_date): new function to insert
physmessages with an internal date.
(db_imap_append_msg): uses db_insert_physmessage_with_internal_date()
if an internal date is supplied. Otherwise it just uses
db_insert_physmessage().
2004-03-10 Ilja Booij <ilja@ic-s.nl>
* maintenance.c (main): uses 0 for update_curmail_size.
* imapcommands.c (_ic_delete): uses db_delete_mailbox() instead
of db_removemailbox(). Uses 1 for update_curmail_size.
(_ic_close): calls db_expunge() with the user_idnr
(_ic_expunge):calls db_expunge() with the user_idnr
* db.h (db_insert_message_with_physmessage): removed because not used.
(db_removemailbox): removed because not used.
(db_rollback_insert): removed because not used
* db.c (db_subtract_quotum_used): new function. subtract a certain
amount from the users used quotum.
(db_get_mailbox_size): new function. gets the total size of all
messages in a mailbox.
(db_removemsg): now updated the used quotum of a user after removing
the messages.
(db_insert_message_with_physmessage): removed because not used.
(db_removemailbox): removed because not used
(db_delete_mailbox): added parameter update_curmail_size. If this
parameter is non-zero, the curmail_size of the user has to be
updated after removing the mailbox (or only emptying it).
(db_empty_mailbox): uses db_delete_mailbox with 1 for
update_curmail_size.
(db_rollback_insert): removed because not used
(db_expunge): uses db_subtract_quotum_used to subtract from used quotum.
has a new parameter. It now expects the user_idnr of the for whom the
mailbox is expunged. This saves a new lookup of the mailbox owner.
2004-03-09 Ilja Booij <ilja@ic-s.nl>
* db.h: removed db_update_message_multiple()
* sort/sort.c (sort_and_deliver): uses db_message_set_unique_id()
to set the unique id of a message.
* db.c (db_copymsg): does not compute the new quotum on a copy, but
only adds the messagesize to the used quotum, which saves looking
at all messagesize on every copy.
(db_add_quotum_used): new functions: add a value to the current
curmail_size of a user.
(db_imap_append_msg): uses db_add_quotum_used instead of doing
a complete recalculation of the used quotum.
(db_update_message): uses db_add_quotum_used instead of doing
a complete recalculation of the used quotum.
(db_message_set_unique_id): new function that only updates the
unique id of a message.
(db_update_message): uses db_message_set_unique_id()
(db_update_message_multiple): removed function. Was not in use.
* forward.c (forward): only send header through pipe if there's no
message to send. Otherwise get the whole message from the database.
(forward): added __FILE__ and __FUNCTION__ to all trace() calls.
* rfcmsg.c (db_reverse_msg): changed function calls from list_reverse()
to dbmail_list_reverse()
* lmtp.c (lmtp): changed function call from list_reverse() to
dbmail_list_reverse()
* imapcommands.c (_ic_fetch): changed function call from list_reverse()
to dbmail_list_reverse()
* list.c (dbmail_list_reverse): renamed function from list_reverse()
to dbmail_list_reverse()
* list.h: renamed list_reverse() to dbmail_list_reverse() to
fix conflict with function exported by some MySQL versions.
2004-03-08 Aaron Stone <aaron@serendipity.cx>
* lmtp.c: improved compliance with RFC 2033, LMTP, in two key areas:
proper replies to the DATA command and removal of failed recipients
from the recipients list, to prevent reporting their failures twice.
* lmtp.c: allow for zero length envelope senders, which is common
practice for MTA's sending bounces and other error messages.
* misc.c (find_bounded): a zero length bounded string is now returned
as a pointer to a zero length string (exactly one nul character)
rather than as a NULL pointer to a nonexistant string.
2004-03-06 Aaron Stone <aaron@serendipity.cx>
* md5.h: removed an old hack that actually broke 32 bit assumptions
by making wrong assumptions (they may have been correct circa 1993).
* md5.c: added check for WORDS_BIGENDIAN, corresponding to the
autoconf script, as a backup in case the system lacks endian.h.
* configure.in: added AC_C_BIGENDIAN to test the host for endianness.
2004-03-05 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_check_user_ext): uses lower(alias) to find
the alias. This makes sure that searching for aliases is always done
case-insensitively.
2004-03-04 Aaron Stone <aaron@serendipity.cx>
* pipe.c (resolve_deliveries): moved to dsn.c, renamed, not static.
* dsn.c (dsnuser_resolve_list): newly relocated from pipe.c.
* dsn.h: added enum types for dsn class, updated structs to match.
* lmtp.c: modified the delivery resolution loop to first call
dsnuser_resolve_list and then to directly check for DSN_STATUS_OK
rather than less reliable heuristics.
* lmtp.c: replaced clumsy pointer math with a call to find_bounded,
thereby also fixing a crash bug and a memory leak both relating to
malformatted "mail from" commands.
* lmtp.c (lmtp_handle_connection): added calls to lmtp_reset to ensure
that memory held in the session struct is freed/zeroed when finished.
* main.c: added a call to dsnuser_resolve_list.
2004-03-03 Ilja Booij <ilja@ic-s.nl>
* db.c (db_get_msgdate): uses the date2char function to construct a
TO_CHAR (PostgreSQL) or DATE_FORMAT (MySQL) string.
(db_get_msginfo_range): uses the date2char function to construct a
TO_CHAR (PostgreSQL) or DATE_FORMAT (MySQL) string.
(date2char_str): construct date formatter for use in queries. This
will always output the same format of date
(char2date_str): construct date formatter for use in queries. This
will make the database always handle the same format of date.
(db_insert_physmessage): inserts the CURRENT_TIMESTAMP instead of
making the timestamp using libc() calls.
2004-03-02 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/migrate_from_1.x_to_2.0.pgsql: alter internal_date
field in physmessage. This is now a TIMESTAMP WITHOUT TIME ZONE column.
* sql/postgresql/create_tables.pgsql: alter internal_date field in
physmessage. This is now a TIMESTAMP WITHOUT TIME ZONE column.
2004-03-01 Ilja Booij <ilja@ic-s.nl>
* db.c (db_copymsg): always set Recent flag of new message to '1'. The
RFC states that this should always be the case.
2004-02-26 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/create_tables_innoDB.mysql: removed a comma after the
last directive in a table.
* bounce.c (bounce): fixed a type which caused crashes when doing a
trace.
2004-02-24 Ilja Booij <ilja@ic-s.nl>
* pipe.c (store_message_temp): change made by Chingson Chen
<chingson@msquaretech.com> to also accept messages larger than 512 kB.
patch was altered slightly by Ilja to make it really work :)
2004-02-02 Ilja Booij <ilja@ic-s.nl>
* db.c (db_getmailboxname): fixed bugs with strncpy's, which resulted
in segfaults.
* misc.c: added missing #include <time.h>
2004-01-29 Ilja Booij <ilja@ic-s.nl>
* imap4.c (IMAPClientHandler): No only rebuilds mailbox_t structure
after a NOOP, CHECK, SELECT or EXPUNGE
* mysql/dbmysql.c (db_connect): added auto reconnect flag to MYSQL
structure.
(db_check_connection): added attempt to reconnect to database.
* db.c (db_delete_message): added db_free_result() statements to
always free result set.
(db_send_message_lines): added a db_free_result statements to always
free result set.
(db_delete_mailbox): change from getting the owner of the mailbox to
the beginning of the function. The owner_idnr is now found using
the db_get_mailbox_owner() function.
(db_listmailboxchildren): now does a check to see if any mailboxes
can be found instead of using db_get_result() without this check.
2004-01-28 Ilja Booij <ilja@ic-s.nl>
* db.c (db_get_users_from_clientid): added db_free_result()
statements to always free result set.
(db_get_notify_address): added db_free_result() statement.
* auth/authsql.c (auth_validate): added to free() statements to
always free the memory allocated for escuser
2004-01-27 Ilja Booij <ilja@ic-s.nl>
* sql/mysql/create_tables_innoDB.mysql: tables shared_mailbox and
shared_mailbox_access removed.
* sql/mysql/create_tables.mysql: tables shared_mailbox and
shared_mailbox_access removed.
* misc.c (mailbox_remove_namespace): new function which makes a
simple mailbox name from a mailbox name with namespace information
* db.c (db_createmailbox): uses the mailbox_remove_namespace() function
to remove possible namespace information from the mailbox name.
(db_calculate_quotum_all): changed query. Now also counts mailbox
size for user '0'.
* imap4.c (imap_handler_functions): added _ic_namespace
added IMAP_COMM_NAMESPACE to commands
* imap4.h (IMAP_CAPABILITY_STRING): added NAMESPACE
* imapcommands.c (_ic_namespace): added namespace command
(_ic_create): _ic_create now uses namespace information for
creation of mailboxes.
2004-01-26 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_get_userid): fixed a bug. a strncpy was called
with strlen(query_result) instead of strlen(query_result) + 1
* db.c (db_get_mailbox_owner): added function which can be used to get
the user_idnr of the user owning the mailbox.
2004-01-23 Ilja Booij <ilja@ic-s.nl>
* imapcommands.c (_ic_store): checks ACLs. does different checks
for the store of different flags. \Deleted needs 'd', \Seen needs 's'
and other flags need 'w' permissions.
(_ic_create): checks ACLs. Currently only checks acl of parent mailboxes.
This should be enhanced by adding checks for namespaces when adding
namespace stuff.
* imap4.h (imap_store_flag_t): new enum to denote store flags.
* db.c (db_list_mailboxes_by_regex): subscribed mailbox already looks
at all mailboxes a user is subscribed to (probably it should only look
at mailboxes the user has access to via ACL's!)
(db_subscribe): uses the new subscription table.
(db_unsubscribe): uses the new subscription table.
(db_list_mailboxes_by_regex): updated to make sure it only looks at
mailboxes the user has access to using ACLs. This makes for some
very interesting, complex queries (Performance..?)
2004-01-21 Ilja Booij <ilja@ic-s.nl>
* imapcommands.c (_ic_select): uses ACLs
(_ic_examine): uses ACLs
(_ic_delete): checks if user is owner of mailbox
(_ic_rename): checks if user is owner of mailbox
(_ic_subscribe): checks ACL_RIGHT_LOOKUP
(_ic_unsubscribe): checks ACL_RIGHT_LOOKUP
(_ic_status): checks ACL_RIGHT_READ
(_ic_append): checks ACL_RIGHT_INSERT
(_ic_check): checks ACL_RIGHT_READ
(_ic_close): checks ACL_RIGHT_DELETE
(_ic_expunge): checks ACL_RIGHT_DELETE
(_ic_search): checks ACL_RIGHT_READ
(_ic_fetch): checks ACL_RIGHT_READ
* imap4.h (IMAP_CAPABILITY_STRING): added ACL
2004-01-20 Ilja Booij <ilja@ic-s.nl>
* db.c (db_findmailbox): now functions correctly by returning 0 if
no mailbox found.
2004-01-15 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_validate): use create_current_timestring
to get timestring
* auth/authldap.c (auth_validate): use create_current_timestring
to get timestring
* misc.c (create_current_timestring): added implementation
of functions create_current_timestring.
* misc.h (create_current_timestring): added function
create_current_timestring() which creates the timestrings used
throughout DBMail.
* db.c (db_insert_physmessage): use create_current_timestring to
get timestring
* dbmail.h: created the timestring_t typedef, which is used
for storing timestrings.
* imapcommands.c (_ic_logout): use create_current_timestring to
get timestring
(_ic_login): use create_current_timestring to get timestring
(_ic_authenticate): use create_current_timestring to get timestring
2003-12-15 Ilja Booij <ilja@ic-s.nl>
* db.h (db_get_user_from_alias): removed function. It was not
in use
* db.c (db_get_main_header): added an ORDER BY clause to the
query getting the messageblocks. When this is omitted, no can
tell which block will come first, when, of course, the first
block, with the headers, should come first. This gave nasty
behaviour on PostgreSQL, which did not always return the blocks
in the right order. This PostgreSQL behaviour is completely
compliant with SQL by the way.
(db_get_user_from_alias): removed function. It was not in use
2003-12-11 Ilja Booij <ilja@ic-s.nl>
* db.c (db_get_main_header): changed query to do away with an
error generated by the wrong use of an aggregate function without
a GROUP BY. Thanks to Thomas Mueller <dbmail@mueller.com> for
reporting this bug
* sql/postgresql/create_tables.pgsql: added is_subscribed to
shared_mailbox_acc. It was missing. Thanks to Thomas Mueller
<dbmail@mueller.com> for reporting this bug.
2003-12-04 Ilja Booij <ilja@ic-s.nl>
* Makefile.am: removed raw-convert and mini-injector from
programs and sources lists.
* raw-convert.c: removed
* mini-injector.c: removed
2003-12-01 Ilja Booij <ilja@ic-s.nl>
* db.c (db_imap_append_msg): fixed a bug. db_insert_result() asked
for "physmessages_id" instead of "physmessage_id". Thanks to
Thomas Mueller <dbmail@tmueller.com> for this fix.
(db_calculate_quotum_all): added a column to group by in the
query. "usr.currmail_size" has to be in here. In MySQL, this does
not have to be here, but PostgreSQL demands it (and rightly so)
Thanks to Thomas Mueller <dbmail@tmueller.com> for pointing
out this problem.
2003-11-27 Ilja Booij <ilja@ic-s.nl>
* pgsql/dbpgsql.c (db_connect): the connectionstring now only has
the port number in it if the user has explicitely given the port
number in dbmail.conf
* maintenance.c (main): adding check for physmessages without
messageblocks, if the -n switch is used.
* db.c (db_icheck_messageblks): now checks for messageblks that are
linked to a non-existent physmessage entry.
(db_icheck_null_messages): now checks for messages that are linked
to a non-existent physmessage entry
(db_icheck_null_physmessages): checks for physmessage entries that
are not linked to messageblocks
2003-11-26 Ilja Booij <ilja@ic-s.nl>
* db.c (db_delete_physmessage): new. deletes a physmessage and
messageblocks
(db_delete_message): now uses db_delete_physmessage()
(db_delete_message): now uses db_get_physmessage_id()
2003-11-24 Ilja Booij <ilja@ic-s.nl>
* db.c (db_insert_message_with_physmessage): inserts a message into the
messages table for a given physmessage
(db_insert_physmessage): insert a new physmessage record
(db_update_physmessage): update physmessage record
(db_insert_message_block_physmessage): inserts a messageblock for a
given physmessage
(db_insert_message): now uses db_insert_physmessage
(db_update_message): now uses db_update_physmessage
(db_insert_message_block): now uses
db_insert_message_block_physmessage()
2003-11-21 Ilja Booij <ilja@ic-s.nl>
* shared_mailbox.c (shared_mailbox_list_by_regex): same change as
made by Alex Wheeler's patch to db_list_mailboxes_by_regex() in db.c
* db.c (db_list_mailboxes_by_regex): patch by Alex Wheeler
<awheeler@royall.com>. If no mailboxes match the pattern, realloc would
yield a NULL pointer. The function has been changed to return 0 when
there is no matching mailbox. The patch has been changed slightly to
also free the tmp-pointer before returning.
(db_findmailbox_by_regex): now only calls my_free() on normal_mailboxes
and shared_mailboxes if these are non-NULL.
(db_findmailbox_by_regex): if no matching mailboxes are found, 0
is returned, and *nchildren is set to 0.
* mysql/dbmysql.c (db_get_result): patch by Alex Wheeler
<awheeler@royall.com>. mysql_data_seek causes performance penalty.
Changed to use a mysql_fetch_row() instead of mysql_data_seek() when
possible.
(db_get_length): same patch by Alex Wheeler as db_get_result()
2003-11-20 Ilja Booij <ilja@ic-s.nl>
* imaputil.c (binary_search): bugfix. high could become a maxint-1
when high = mid-1 would be calculated if mid == 0.
2003-11-12 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_validate): changed interface of auth_validate
to return int instead of u64_t.
* auth/authldap.c (auth_validate): changed interface of auth_validate
to return int instead of u64_t.
* imaputil.c (binary_search): changed function. The binary search did
a check that was not needed. Interface of function has also changed
to return int instead of unsigned int.
* imap4.c (IMAPClientHandler): removed two compiler warnings by casting
the result from strlen to an int.
* pop3.c (pop3): included some extra checks to verify that two numbers
given to the POP-server are actually unsigned ints in a string.
(pop3): change call to auth_validate because of interface change
* quota.c: changed call to db_findmailbox()
* imapcommands.c (_ic_examine): changed call to db_findmailbox()
(_ic_select): changed call to db_findmailbox()
(_ic_copy): changed call to db_findmailbox()
(_ic_create): changed calls to db_findmailbox()
(_ic_delete): changed call to db_findmailbox()
(_ic_rename): changed calls to db_findmailbox()
(_ic_subscribe): changed call to db_findmailbox()
(_ic_unsubscribe): changed call to db_findmailbox()
(_ic_status): changed call to db_findmailbox()
(_ic_append): changed call to db_findmailbox()
(_ic_authenticate): changed call to auth_validate()
(_ic_login): changed call to auth_validate()
(_ic_fetch): changed call to db_getrfcsize()
(_ic_fetch): casted some variables to stop warnings. This probably a
bit error prone (as was the original code), so this should be fixed
in the near future.
* db.c (db_findmailbox): changed interface to return int instead of
u64_t.
(db_createsession): changed call to db_findmailbox()
(db_insert_message): changed call to db_findmailbox()
(db_get_rfcsize): changed interface. now returns int instead of u64_t
2003-11-11 Ilja Booij <ilja@ic-s.nl>
* quota.c (quota_get_quota): changed call to auth_get_maxmail_size()
to reflect change in interface.
* auth/authldap.c (auth_user_exists): changed implementation to reflect
change in interface.
* vut2dbmail.c (process_piece): changed call to auth_user_exists()
to reflect change in interface.
* user.c (do_empty):changed call to auth_user_exists() to reflect
change in interface.
(do_add): changed call to auth_user_exists() to reflect
change in interface.
(do_change): changed call to auth_user_exists() to reflect
change in interface.
(do_show): changed call to db_get_quotum_used to reflect change
in interface.
* pop3.c (pop3): changed call to auth_user_exists() to reflect
change in interface.
* mini-injector.c (main): changed call to db_insert_message_block
to reflect change in interfave of this function.
* pipe.c (insert_messages): changed call to db_insert_message_block
to reflect change in interfave of this function.
(insert_messages): changed call to auth_user_exists() to reflect
change in interface.
* db.c (db_update_message): changed call to db_get_physmessage_id()
to reflect change in interface of this function
(db_get_physmessage_id): changed interface of this function to return
a signed int instead of an u64_t.
(db_imap_append_msg): changed calls to db_insert_message_block to
reflect change in interface of this function.
(db_insert_message_block): changed interface of this function to
return signed int instead of u64_t.
(db_copymsg): changed call to db_get_quotum_used to reflect change
in interface.
(db_get_quotum_used): changed interface of this function to return
signed int interface of u64_t.
* dbmsgbuf.c (db_dump_range): changed call to db_get_physmessage_id()
to reflect change in interface of this function
(db_init_msgfetch): changed call to db_get_physmessage_id()
to reflect change in interface of this function
* mime.c (mime_readheader): fixed comparison between signed and
unsigned by changing variables fieldlen and vallen from unsigned
int to int
* auth/authsql.c (auth_check_user_ext): fixed comparison between signed
and unsigned
(auth_check_user): fixed comparison between signed and unsigned
(auth_getmaxmailsize): change interface, now returns int instead
of u64_t.
* maintenance.c (main): changed direct printf's of time values to
use difftime(). This is used to fix warnings on some compilers.
2003-11-07 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/create_tables.pgsql: added shared mailbox tables
* sql/mysqlsql/create_tables.mysql: added shared mailbox tables
* sql/mysqlsql/create_tables_innodb.mysql: added shared mailbox tables
* pipe.c: changed send_notification() and send_reply to static
because these are local functions.
* imap4.c (IMAPClientHandler): changed call to db_getmailbox(),
because interface has changed.
* quota.c (quota_get_quotaroot): changed call db_get_mailboxid() to
db_findmailbox()
(quota_get_quota): fixed use of maxmail_size to not compare it to
'>0' because that's always true
2003-11-06 Ilja Booij <ilja@ic-s.nl>
* dbsearch.h: also removed db_search_messages from the prototypes
* dbsearch.c: removed function db_search_messages because it looked
buggy and was not used.
* pipe.h: removed prototype of create_unique_id(), which is now
prototyped and implemented in misc.h & misc.c
2003-10-29 Ilja Booij <ilja@ic-s.nl>
* db.h, db.c (db_getmailbox_id): removed function. The same
functionality is already handled by db_findmailbox()
* pipe.c (send_reply): removed a erronous my_free() that was triggered
only when no address was found to reply to.
2003-10-28 Ilja Booij <ilja@ic-s.nl>
* db.c, db.h (db_getmailbox): removed owner_idnr from parameter
list. Also removed these from all calls to db_getmailbox
2003-10-24 Ilja Booij <ilja@ic-s.nl>
* misc.c: added create_unique_id and changed name of
drop_priviledges to drop_privileges (also changed calls to this
function in imapd.c and pop3d.c
* misc.h: added create_unique_id and doxygen comments and changed
drop_priviledges to drop_privileges
* smtp-convert.c (process_mboxfile): use create_unique_id from misc.h
* raw-convert.c (add_msg): use create_unique_id from misc.h
* pipe.c (insert_messages): use create_unique_id() from misc.h
* mini-injector.c (main): use create_unique_id() from misc.h
* pop3.c (pop3_handle_connection): use create_unique_id for construc-
ting APOP stamp
* injector.c (main): now uses create_unique_id function from misc.h
* pop3d.c (main): use getopt for command line options. from patch
against dbmail 1.2 by Jesse Norell
2003-10-23 Ilja Booij <ilja@ic-s.nl>
* pipe.c (send_reply): now sends an escaped command to the shell. fixes a security risk where arbitrary commands could be sent to the shell.
2003-10-22 Ilja Booij <ilja@ic-s.nl>
* acinclude.m4, configure.in: changed to use mysql_config and pg_config
for getting include and lib paths
* bounce.h (bounce): added doxygen comment
* config.c: changed some parameter names
* dbmail.h: added doxygen comment. removed FIELDLEN define.
* pop3d.c, serverchild.c, imapd.c: changed to use FIELDSIZE instead of
FIELDLEN
* dbmailtypes.h: added enum Pop3State_t which holds the different states
of a POP3 connection. Added PopSession_t accordingly
* pop3.c, pop3.h: added enum Pop3Cmd_t to replace list of defines.
* sql/postgresql/create_tables.pgsql: added foreign key constraints and
extra indexes
2003-10-14 Ilja Booij <ilja@ic-s.nl>
* server.c (CreateSocket): added '= 1' to int so_reuseaddress, so a socket can now be created, even if a port is used.
* db.c (db_get_main_header): changed query to only yield one row.
* user.c (main): update to match new GetDBParams function
* maintenance.c (main): update to match new GetDBParams function
* main.c (main): update to match new GetDBParams function
* pop3d.c (main): update to match new GetDBParams function
* imapd.c (main): update to match new GetDBParams function
* pgsql/dbpgsql.c: use db_param_t instead of seperate field_t variables for connection
(db_connect): use db_param_t instead of seperate field_t variables for connection. db_param_t.sock is not used at the moment.
* mysql/dbmysql.c:
(db_connect): use db_param_t instead of seperate field_t variables for connection
* dbmail.h (GetDBParams): changed database paramaters to use a struct instead of seperate field_t parameters. Also added port and socket to this db_param_t
2003-10-13 Ilja Booij <ilja@ic-s.nl>
* bounce.h (bounce): added doxygen comment. now uses bounce_reason_t to signal which reason the bounce has
(bounce_reason_t): created this enumeration which holds all reasons why a message can be bounced. This replaces the old #defines which were used here.
* bounce.c (bounce): improved trace messages. now uses bounce_reason_t to signal which reason the bounce has
* dbmd5.h (makemd5): added doxygen comments
2003-10-10 Ilja Booij <ilja@ic-s.nl>
* pop3.c (pop3): added case for POP3_CAPA command (patch by Ryan Buttler)
(commands): add capa command in command list (patch by Ryan Buttler)
* pop3.h: added POP3_CAPA to command defines.
* db.c (db_expunge): fixed segfault. *msg_idnrs array was used in the wrong way (syntax mistake).
(db_get_main_header): changed query to return only the messageblk (SELECT messageblk instead of SELECT *) and adapted db_get_result() call accordingly
(db_get_reply_body): changed sprintf to snprintf
(db_get_notify_address): changed sprintf to snprintf
(db_send_message_lines): removed use of sprintf for filling buffer. Now use the buffer as an array instead of a string. This looks ugly but should speed things up a bit. It will also make sure we do not have to use sprintf.
2003-10-08 Ilja Booij <ilja@ic-s.nl>
* db.h: removed the database enumerations. They were ugly and were not used in any of the code.
2003-10-06 Ilja Booij <ilja@ic-s.nl>
* db.c (db_get_msginfo_range): corrected error: (*result)[i].uid was never set.
* db.c (db_copymsg): now returns id of newly inserted message
2003-10-02 Ilja Booij <ilja@ic-s.nl>
* db.c (db_get_physmessage_id): corrected doing query.
(db_update_message): corrected query: added missing space
2003-10-01 Ilja Booij <ilja@ic-s.nl>
* acinclude.m4 (DBMAIL_CHECK_SQL_LIBS): now use mysql_config and pg_config to find location of library files. finding of include files is still done in the "old" way. This should be fixed.
* maintenance.c (main): now recalculates quota when set_deleted is set (when messages that are deleted (status=2) are being set to status=3).
* sql/postgresql/create_tables.pgsql: added currmail_size to users table
* sql/mysql/create_tables_innoDB.mysql: added currmail_size to users table
* sql/mysql/create_tables.mysql: added currmail_size to users table
* db.h: (db_calculate_quotum_all): added prototype for this function
* db.c (db_calculate_quotum_all): finds out which users need to have their quotums updated and calls db_set_quotum() to update them
(db_set_quotum_used): sets a used quotum (currmail_size) for a user
(db_update_message): changed return type to int
2003-09-30 Ilja Booij <ilja@ic-s.nl>
* sql/postgresql/create_tables.pgsql: added physmessage table. changed messages and messageblks tables.
* sql/mysql/create_tables_innoDB.mysql: added physmessage table. changed messages and messageblks tables. removed tmpmessage and tmpmessageblks.
* db.h: (db_get_physmessage_id): prototype added
* db.c (db_get_physmessage_id): added. finds the physmessage_id of a message_idnr
(db_get_quotum_used): added. Reads the used_quotum value from the users table
(db_calculate_quotum_used): renamed from db_get_quotum_used.
(db_update_message): now calls db_calculate_quotum_used.
(db_imap_append_msg): calls db_calculate_quotum_used to update quotum
(db_delete_mailbox): calls db_calculate_quotum_used to update quotum
* dbmsgbuf.c (db_dump_range): added use of physmessage entry.
(db_init_msgfetch): added use of physmessage entry.
* sql/mysql/create_tables.mysql: added physmessage table. changed messages and messageblks table. removed tmpmessage and tmpmessageblks table
2003-09-29 Ilja Booij <ilja@ic-s.nl>
* db.c: added physmessage to DB_TABLENAMES array
(db_get_quotum_used): changed to fit addition of physmessage table
(db_insert_message): now inserts an entry into the physmessage table as well as one into the messages table
(db_update_message): now inserts information into messages table and into physmessage table
(db_insert_message_block): finds the right physmessage_id with a message_idnr and inserts the message block
(db_insert_message_block_multiple): updated to support physmessage table
(db_rollback_insert): use db_delete_message() to remove the message instead of copying code..
(db_icheck_null_messages): updated to support physmessage table
(db_icheck_messageblks): updated to support physmessage table
(db_delete_message): deletes message. if this was the last message with a certain physmessage_id, the physmessage and message blocks are also deleted.
(db_delete_mailbox): deletes mailbox and call db_delete_message for all messages in it.
(db_createsession): updated to support physmessage table.
(db_update_pop): corrected omission of quotes around value in query
(db_set_deleted): corrected omission of quotes around value in query
(db_removemsg): corrected omission of quotes around value in query
(db_copymsg): radically changed. copy now only copies an entry in the messages table and gives that entry a new unique_id. messageblocks are untouched.
(db_get_msgflag): corrected omission of quotes around value in query
(db_set_msgflag_range): corrected omission of quotes around value in query
(db_get_main_header): changed to also use physmessage table
(db_get_msginfo_range): changed to also use physmessage table
(db_get_rfcsize): changed to also use physmessage table
(db_set_rfcsize): changed to also use physmessage table
(db_get_msgdate): changed to also use physmessage table
(db_get_msgflag_all): changed to also use physmessage table
* db.h (enum table_message): removed entries that were added in enum table_physmessage
(enum table_physmessage): created this enum. Will hold physical message info
(enum table_messageblk): changed link to table_message to link to table_physmessage
(db_insert_message): changed doxygen comment
2003-09-26 Ilja Booij <ilja@ic-s.nl>
* db.c (db_do_cleanup): changed to a static local function
(db_get_message_mailboxid): removed because function was unused
* db.h (db_do_cleanup): removed function declaration
(db_get_message_mailboxid): removed, because function was unused
(db_get_msgflag_all_range): removed, because function was unused
2003-09-19 Ilja Booij <ilja@ic-s.nl>
* pgsql/dbpgsql.c (db_check_connection()): fixed a typo
(db_use_auth_result, db_store_auth_result): added.. were missing
* THANKS: addition of the GNU THANKS file
|