1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089
|
2006-06-15 Tor Lillqvist <tml@novell.com>
* camel.c (camel_init): On Win32, NSS wants the directory name in
system codepage, not UTF-8. No need to handle g_atexit()
differently on Win32 any longer, in current GLib it is on Win32
just a #define for atexit().
2006-06-09 Chris Heath <chris@heathens.co.nz>
* camel-net-utils.c (camel_getnameinfo): Fix memory leak
* camel-folder-search.c (camel_folder_search_search): Ditto
* camel-digest-folder.c (digest_add_multipart): Ditto.
Fixes bug #335423.
2006-06-02 Tor Lillqvist <tml@novell.com>
* camel-file-utils.c (camel_read, camel_write, camel_read_socket)
(camel_write_socket): Improve doc comment, mention the Win32
aspects.
2006-05-05 Jeffrey Stedfast <fejj@novell.com>
* camel-charset-map.c (camel_charset_best_mask): Fixed a
mis-ordering of an if-statement clause that caused bug #340717.
2006-04-19 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-filter-pgp.c (filter_run): You cannot CANNOT modify
the input strings. EVER. Fixed to not do that and to also work if
there is preface before the pgp block (previous code failed in
that case).
(reset): Reset the filter state.
2006-04-12 Jeffrey Stedfast <fejj@novell.com>
* Fixes to many C/H files to suppress compiler warnings thanks to
Kjartan Maraas.
2006-04-04 Jeffrey Stedfast <fejj@novell.com>
* camel-charset-map.c (main): Set appropriate structs/struct
elements to static/const.
* camel-charset-map-private.h: Regenerated.
2006-04-05 Simon Zheng <simon.zheng@sun.com>
** Fixes bug #333698
* camel-search-private.c (header_match):
(camel_search_header_match):
To traverse strings by utf8 char order rather than one by one byte,
use camel_utf8_getc() and other utf8-specific routines instead.
2006-03-02 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug 272307
* camel-mime-utils.c: (header_decode_mailbox):
Do not decode_lwsp if there is a space in mail id, just append it.
Also do not truncate address if addr is not NULL.
2006-02-21 Rohini S <srohini@novell.com>
** See bug 318697
* camel-url-scanner.c (camel_url_addrspec_start): conditions modified
to parse only valid mailto links
2006-02-21 Rohini S <srohini@novell.com>
** Fixes bug #328322
* camel-mime-filter-tohtml.c : add new pattern for sftp urls.
2006-02-21 Rohini S <srohini@novell.com>
* camel-url-scanner.c (camel_url_web_end): Modified to accept urls
with ./ Fixes bug#256142
2006-02-16 Parthasarathi Susarla <sparthasarathi@novell.com>
* camel-disco-diary.c: (camel_disco_diary_log):
proceed only if diary is a valid pointer
2006-02-13 Rohini S <srohini@novell.com>
**See bug 328384
* camel-url-scanner.c (camel_url_addrspec_start):
modified to remove all invalid characters in the beginning
of a email address
2006-02-02 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug 328481
* camel-gpg-context.c: (gpg_ctx_parse_status): do not
search if the gpg->need_id is NULL
2006-02-02 Parthasarathi Susarla <sparthasarathi@novell.com>
* camel-object.c:
(object_finalise):
(camel_message_info_free):
decrement Ref count properly
2006-02-02 Tor Lillqvist <tml@novell.com>
* camel-net-utils.h
* camel-net-utils.c: Make it compile on Win32 also without
getaddrinfo() (with NEED_ADDRINFO).
2006-01-25 Not Zed <NotZed@Ximian.com>
* camel-folder-search.c (search_match_threads): add new
match-thread type "unreplied", matches messages that are unreplied
to.
Committed to head on behaf of Notzed
2006-01-23 Parthasarathi Susarla <sparthasarathi@novell.com>
* camel-mime-utils.c (camel_content_type_unref):
Id the content-type refcount is <1 then free it and
assign it to NULL
2006-01-17 Parthasarathi Susarla <sparthasarathi@novell.com>
* camel-service.c (camel_service_disconnect):
set the service-status to CAMEL_SERVICE_DISCONNECTED
2006-01-10 Simon Zheng <simon.zheng@sun.com>
* camel-file-utils.h:
* camel-file-utils.c:
Delete function camel_mkdir().
* camel-data-cache.c: (camel_data_cache_new):
* camel-object.c: (camel_object_state_write):
* camel-session.c: (get_storage_path):
* camel-uid-cache.c: (camel_uid_cache_new):
* providers/imap/camel-imap-folder.c: (camel_imap_folder_new):
* providers/imap4/camel-imap4-folder.c: (camel_imap4_folder_new):
* providers/imapp/camel-imapp-folder.c: (camel_imapp_folder_new):
* providers/local/camel-local-store.c: (get_folder):
* providers/local/camel-mbox-store.c: (get_folder):
(create_folder):
(rename_folder):
* providers/local/camel-spool-store.c: (spool_get_meta_path):
* providers/nntp/camel-nntp-folder.c: (camel_nntp_folder_new):
Because of deletion of camel_mkdir(), all the callers use
e_util_mkdir_hier() instead and add the related header file
<libedataserver/e-data-server-util.h>.
* camel-debug.c:
* camel-win32.c:
As file e-util.h is renamed, replace "libedataserver/e-util.h"
as "libedataserver/e-data-server-util.h".
2006-01-05 Kjartan Maraas <kmaraas@gnome.org>
* camel-session.c: (camel_session_get_network_state): Return
stuff from this non-void function.
* providers/imap4/camel-imap4-store.c: (connect_to_server):
Move some vars inside #ifdef HAVE_SSL
* providers/local/camel-local-store.c: (xrename): Use NULL
not 0 as the last parameter to g_strconcat().
2006-01-04 Tor Lillqvist <tml@novell.com>
* camel-win32.c (setup): Modify calls to e_util_replace_prefix()
according to its changed interface.
* Makefile.am (INCLUDES): Need to pass also E_DATA_SERVER_PREFIX
to the compilation because of the above.
2005-12-22 Shreyas Srinivasan <sshreyas@novell.com>
* Network Manager Support
* camel-session.[h,c]: Add a gboolean network_state
which the shell uses to set the current network state.
Add new api's camel_session_get_network_state and
camel_session_set_network_state.
* camel-offline-folder.c: If network down then dont
sync folders while going offline and send clean as FALSE
to camel_service_disconnect.
* camel-disco-folder.c: If network down then dont
sync folders while going offline and send clean as FALSE
to camel_service_disconnect.
2005-12-13 Tor Lillqvist <tml@novell.com>
* camel-filter-driver.c: Use gstdio wrappers. Use
g_filename_to_uri().
* camel-filter-driver.c (pipe_to_system)
* camel-filter-search.c (run_command): Use
g_spawn_async_with_pipes() instead of manual fork/dup/exec dance.
* camel-folder.c
* camel-junk-plugin.c: Just cosmetics.
* camel-lock.c: Use g_usleep() instead of sleep() which isn't
available (as such) on Win32. No locking implementation for Win32
yet (none of USE_DOT, USE_FCNTL or USE_FLOCK get defined on
Win32), I wonder whether it is necessary t ohave one? Is locking
used to guard against several threads in Evolution (or Evolution
and the E-D-S or E-E processes) accessing the same files
simultaneously, not just against other apps accessing them while
Evolution is?
* camel-object.c: Use gstdio wrappers. Use binary mode when
opening files. Use g_path_get_dirname().
Use a separate have_owner boolean flag field to indicate whether
the pthread_t owner field is valid in the _CamelObjectBagKey
struct. There is no portable way to check a pthread_t for
uninitializedness. Remove the E_THREAD_NONE magic constant. Use
pthread_equal() to compare pthread_t values.
* camel-tcp-stream.h: Include Winsock headers on Win32.
* camel-tcp-stream-raw.h (struct _CamelTcpStreamRaw): There is no
way to find out a socket's blockingness state on Win32, so keep
the state in a separate flag field on Win32.
* camel-tcp-stream-raw.c: Use socket API wrapper macros to hide
Unix/Winsock differences. Use camel_read_socket() and
camel_write_socket() to read and write from sockets. Use
ioctlsocket(FIONBIO) to set and clean nonblocking mode on Win32.
* camel-tcp-stream-ssl.c (set_errno): Most of the network related
errno values don't exist in the Win32 C library, so use ifdef
around those cases.
(stream_read, stream_write): Check PR_GetError() instead of errno.
No ETIMEDOUT on Win32, so use the catch-all EIO instead.
(cert_fingerprint): The fingerprint is used as a file name, and
there can't be colons in file names on Win32, so use underscore
instead.
(camel_certdb_nss_cert_get, camel_certdb_nss_cert_set): Use gstdio
wrappers. Use g_get_home_dir() on Win32 instead of $HOME.
2005-12-11 Tor Lillqvist <tml@novell.com>
* camel-gpg-context.c: Use gstdio wrappers. Ifdef out
implementation on Win32 for now. Will have to come back to this
later. Probably running a gpg subprocess is not the right way to
do this on Windows.
(swrite): Use g_get_tmp_dir(), g_build_filename(), g_mkstemp().
* camel-net-utils.c (gai_strerror): Implement gai_strerror() for
Win32.
(cs_waitinfo): Use select() instead of poll() on Win32. Use
g_win32_error_message(WSAGetLastError()) for socket API error
messages on Win32.
* camel-net-utils.h: Include the Winsock2 headers on Win3.
* camel-session.c (get_storage_path): No need to have ifdefs for
g_access() here, camel-private #defines g_access as access when
builing against an older GLib.
2005-12-07 Jeff Cai <jeff.cai@sun.com>
* camel-vee-folder.c: (vee_search_by_expression),
(vee_search_by_uids):
if search expression of a vfolder is null, make it an empty string.
Fix #323433
2005-12-08 Tor Lillqvist <tml@novell.com>
* camel-file-utils.c: Win32 port: Include <winsock2.h>. Use
g_htonl() and g_ntohl().
(camel_mkdir): Implement using g_mkdir_with_parents() when
compiling against GLib 2.8 or later.
(camel_file_util_safe_filename): Need to encode more unsafe chars
on Win32.
(camel_read, camel_write): Not cancellable on Win32. But then
these functions should be used only with regular files, not
sockets.
(camel_read_socket, camel_write_socket): New functions, to be used
for sockets. On Unix just call camel_read() and camel_write(). On
Win32 use recv() and write(). read() and write() can not be used
on sockets in Windows. read() and write() are in the C library,
which knows nothing about sockets.
(camel_file_util_savename): Clarify doc comment. Use
g_path_get_dirname() instead of looking for '/'. Use
g_path_get_basename(), and g_build_filename() to construct the
savename.
2005-12-06 Tor Lillqvist <tml@novell.com>
* camel-index.c
* camel-mime-filter-basic.c
* camel-mime-filter-charset.c
* camel-mime-filter-from.c
* camel-mime-filter-index.c
* camel-mime-filter-windows.c
* camel-mime-filter.c
* camel-mime-part-utils.c
* camel-multipart-encrypted.c
* camel-multipart-signed.c
* camel-multipart.c
* camel-offline-folder.c
* camel-offline-store.c
* camel-operation.c
* camel-sasl-anonymous.c
* camel-sasl-cram-md5.c
* camel-sasl-digest-md5.c
* camel-sasl-kerberos4.c
* camel-sasl-login.c
* camel-sasl-ntlm.c
* camel-sasl-plain.c
* camel-sasl.c
* camel-search-private.c
* camel-service.c
* camel-smime-context.c
* camel-store.c
* camel-stream-buffer.c
* camel-stream-filter.c
* camel-stream-process.c
* camel-stream.c
* camel-transport.c
* camel-url-scanner.c
* camel-vee-folder.c
* camel-vee-summary.c
* camel-vtrash-folder.c
* camel.c: Unify header inclusion order and style purely for
cosmetic reasons.
2005-12-02 Shi Pu <shi.pu@sun.com>
** See bug #321139
* camel-exception.c: (camel_exception_get_description):
Don't return NULL.
2005-12-01 Tor Lillqvist <tml@novell.com>
* camel-private.h: If building against a GLib older than 2.8, map
those gstdio wrappers that were introduced only in 2.8 to their
normal counterparts here. (When building for Win32, we require
GLib and GTK+ 2.8, so this is for Unix only.)
2005-12-01 Chenthill Palanisamy <pchenthill@novell.com>
* camel-data-cache.c:
* camel-session.c: (get_storage_path):Use the functions
defined in glib -2.8 only for win32 as it fails to build
for OS which has glib 2.4.
2005-12-01 Tor Lillqvist <tml@novell.com>
* camel-mime-message.c: Add gmtime_r() implementation (a simple
macro) for Win32.
* camel-win32.c: Drop the realpath() implementation. realpath() is
only used in one place in providers/local/camel-local-folder.c,
and it's better to just enclose that code snippet (which isn't
needed on Win32 anyway) in an ifdef.
* camel-private.h: Drop the realpath() declaration from
here. Remove the S_ISLNK() and lstat() dummy definitions. They are
also used only in the place mentioned above.
2005-12-01 Chenthill Palanisamy <pchenthill@novell.com>
reviewed by Srinivasa Ragavan <sragavan@novell.com>
* camel-private.h: Declare the functions _camel_get_*
only for win32 as camel-win32.c is inlcuded only for
win32. Fixes a build break.
2005-11-30 Tor Lillqvist <tml@novell.com>
* camel-file-utils.h: Define O_BINARY as 0 on Unix. Add
declarations for camel_read_socket() and camel_write_socket(). (In
a not yet committed addition to camel-file-utils.c.)
* camel-block-file.c
* camel-certdb.c
* camel-data-cache.c
* camel-disco-diary.c
* camel-folder-summary.c
* camel-mime-parser.c
* camel-offline-journal.c
* camel-provider.c
* camel-session.c
* camel-store-summary.c
* camel-stream-fs.c
* camel-text-index.c
* camel-uid-cache.c
* camel-vee-store.c: Use gstdio wrappers for full non-ASCII
filename support on Windows.
* camel-block-file.c (key_file_use)
* camel-certdb.c (camel_certdb_save)
* camel-disco-diary.c (camel_disco_diary_new)
* camel-folder-summary.c (camel_folder_summary_load)
* camel-offline-journal.c (camel_offline_journal_construct)
* camel-store-summary.c (camel_store_summary_load,
camel_store_summary_save, camel_store_summary_header_load)
* camel-stream-fs.c (camel_stream_fs_new_with_name)
* camel-text-index.c (dump_raw)
* camel-uid-cache.c (camel_uid_cache_new, camel_uid_cache_save):
Open file in binary mode.
* camel-data-cache.c (data_cache_expire)
* camel-provider.c (camel_provider_init): Use GDir instead of
dirent API for portability and full non-ASCII filename support on
Windows.
* camel-folder-summary.c (camel_folder_summary_load): On Win32
unlink destination before attempting a rename.
* camel-mime-parser.c: Drop unused includes. Use
g_ascii_strcasecmp() instead of strcasecmp() for well-definedness,
and the other string being compared is an ASCII literal anyway.
* camel-provider.c (camel_provider_init) Use G_MODULE_SUFFIX
instead of hardcoding .so.
* camel-session.c (session_thread_wait): Use g_usleep() instead of
usleep() for portability.
* camel-utf8.c: Use g_htons() and g_ntohs() instead of htons() and
ntohs() for portability.
2005-11-25 Tor Lillqvist <tml@novell.com>
* camel-private.h: Add declaration for our Win32-only fsync() and
realpath() implementations. Define S_ISLNK() as 0 and lstat() as
stat().
(realpath): Use gstdio wrappers.
* camel-win32.c (_camel_get_localedir, _camel_get_libexecdir,
_camel_get_providerdir): Run-time path construction
machinery. Maybe these should just be in libedataserver instead,
like _libedataserver_get_extensiondir() etc.
2005-11-18 Jeff Cai <jeff.cai@sun.com>
* camel-disco-store.c: (disco_connect):
If no diary is created, no need to do resync.
2005-11-15 Ross Burton <ross@burtonini.com>
* camel-provider.c:
Use lazy bindings (#321515)
2005-11-15 Harish Krishnaswamy <kharish@novell.com>
* providers/Makefile.am: Add hula to SUBDIRS.
2005-10-23 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug #218177
* camel-vtrash-folder.c: (vtrash_remove_folder):
check if mi->real exists, continue otherwise.
2005-10-11 Vivek Jain <jvivek@novell.com>
** See bug #318508
* camel-folder-summary.c : (camel_folder_summary_info_new_from_parser)
Null check for p->index before using it.
2005-09-22 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug #316287
* camel-mime-filter-bestenc.c:(camel_mime_filter_bestenc_get_best_encode):
Remove the last return statement that can never be reached.
2005-09-15 Sankar P <psankar@novell.com>
* camel-store.h:
Defined new macro CAMEL_FOLDER_TYPE_SENT for identifying sent-folder.
Needed for fixing #257321
2005-09-15 Tor Lillqvist <tml@novell.com>
* broken-date-parser.c (get_wday, get_month)
* camel-folder-search.c (check_header)
* camel-http-stream.c (http_connect, http_get_statuscode)
* camel-mime-filter-enriched.c (param_parse_colour, enriched_to_html)
* camel-mime-part.c
* camel-mime-utils.c
* camel-movemail.c
* camel-sasl-popb4smtp.c
* camel-string-utils.c
* camel-url.c: Use g_ascii_str(n)casecmp() instead of
str(n)casecmp(). The strings we are comparing in these cases
should be just ASCII anyway, so spell it out that we really do
need ASCII casefolding only.
* camel-debug.c: Use e_util_pthread_id() to identify threads.
2005-09-12 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug #314574
* camel-lock-client.c: (camel_lock_helper_init):
remove an spurious ','.
2005-09-01 Parthasarathi Susarla <sparthasarathi@novell.com>
* camel-lock-client.c: (camel_lock_helper_init):
use API_VERSION instead of the BASE_VERSION
2005-08-22 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_rename_folder): init folders and only
use it if set.
* camel-offline-journal.c (CAMEL_OFFLINE_JOURNAL_GET_CLASS):
move redefined macro to .h.
* camel-gpg-context.c (gpg_decrypt): cast args properly.
* camel-text-index.c (camel_text_index_validate): cast to int for
printf.
* camel-object.c (co_metadata_get): assign metalast to remove
spurious warning.
2005-08-19 Not Zed <NotZed@Ximian.com>
** See #312668.
* camel-tcp-stream-ssl.c (stream_close): handle re-closing a
closed socket.
2005-08-18 Not Zed <NotZed@Ximian.com>
** See bug #271894.
* camel-gpg-context.c (gpg_decrypt): use the content part's
mime-type to determine options.
2005-08-17 Tor Lillqvist <tml@novell.com>
* camel-operation.c (stamp): Use g_get_current_time() instead of
gettimeofday() for portability.
* camel-cipher-context.c
* camel-vee-folder.c: Drop unneeded <pthread.h>.
* camel-block-file.c
* camel-index-control.c
* camel-index.c
* camel-partition-table.c
* camel-text-index.c
* camel-vee-summary.c
* providers/groupwise/camel-groupwise-summary.c
* providers/imap/camel-imap-summary.c
* providers/local/camel-local-summary.c
* providers/local/camel-mh-summary.c
* providers/local/camel-spool-summary.c
* providers/nntp/camel-nntp-summary.c: Drop unneeded <sys/uio.h>.
* camel-sasl-digest-md5.h: Drop unneeded <netdb.h>.
* camel-sasl-kerberos4.h
* camel-sasl-kerberos4.c: Move inclusion of <netdb.h> to the
source file so we don't need any Win32 ifdefs in the
header. Include also <netinet/in.h> and "camel-net-utils.h" in the
source file.
* camel-service.c: Drop unneeded <sys/poll.h>
* providers/pop3/camel-pop3-store.c
* providers/smtp/camel-smtp-transport.c: Drop unneeded <sys/socket.h>
<netinet/in.h> and <arpa/inet.h>.
2005-08-15 Not Zed <NotZed@Ximian.com>
** backported from disksummary-branch
* camel-object.c: Change all ref-counting and bag-related
operations to use a simple mutex rather than a recursive one.
Then change the bag to use a cond rather than a semaphore. Fixes
some nasty races exposed by extra paralellism in the code.
(camel_iterator_*): small iterator interface, not used on this
branch; backported to make later merging easier.
2005-08-12 Not Zed <NotZed@Ximian.com>
* camel-mime-filter-windows.c (filter_filter): same.
* camel-mime-filter-charset.c
(camel_mime_filter_charset_new_convert): remove another common
useless warning.
* camel-block-file.c (block_file_validate_root): ifdef out the
'invalid root' stuff.
* camel-folder-summary.c (summary_build_content_info): turn off
the annoying/pointless 'cannot convert xxx' message.
** See bug #313284.
* camel-mime-parser.c (folder_scan_content): make sure *data is
set to something before we exit.
* camel-mime-parser.c (folder_read): use memmove, not memcpy,
since memory areas could overlap.
* camel-html-parser.c (tokenise_step): use the length from the
utf8 conversion, it isn't 0 terminated.
* camel-mime-utils.c (header_decode_quoted_string): if we run out
of string, then don't go past the 0.
2005-08-13 Tor Lillqvist <tml@novell.com>
* camel.c (camel_init): Call atexit() directly on Win32, not
g_atexit(). As g_atexit() is currently implemented, the registered
function gets called when the GLib DLL is detached, not when the
process exits. This causes problems. Calling atexit() in the camel
DLL at least means the function gets called when the camel DLL is
detached, which works OK.
2005-08-12 Tor Lillqvist <tml@novell.com>
* Makefile.am: On Win32: Leave out camel-lock-client and
camel-stream-process from libcamel-provider. Leave out
camel-movemail and camel-sasl-kerberos4 from libcamel. Include
camel-win32 in libcamel. Don't build lock-helper. Use
-no-undefined. Link with CAMEL_LIBS, SOCKET_LIBS and REGEX_LIBS.
* camel-win32.c: New file, some Win32-specific functions.
* providers/Makefile.am: Leave out sendmail on Win32.
2005-08-09 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_get_folder): add some debug logging.
2005-04-17 Changwoo Ryu <cwryu@debian.org>
** See bug #300891
* Makefile.am (INCLUDES): define CAMEL_EXPLICIT_TRANSLATION_DOMAIN
and EVOLUTION_LOCALEDIR.
* camel.c (camel_init): initialize gettext with bindtextdomain()
and bind_textdomain_codeset().
2005-08-09 Changwoo Ryu <cwryu@debian.org>
** See bug #300115.
* camel-mime-utils.c (rfc2047_encode_word): if the last unicode
character in the input string is non-ASCII, it is always encoded
as a separated chunk.
2005-08-08 Not Zed <NotZed@Ximian.com>
** See bug #312831.
* camel-folder-thread.c (prune_empty): change to depth-first
search so we check for empty children before checking if we have
children.
(dump_tree_rec): update debug func.
2005-08-03 Not Zed <NotZed@Ximian.com>
** See bug #274382.
* camel-mime-message.c (process_header): return false if we have a
to/cc/etc, we can have multiple instances of all of these, and we
dont want to strip them.
2005-07-28 Not Zed <NotZed@Ximian.com>
** See bug #311731.
* camel-store.c (camel_folder_info_build): fix this, again, minor
simplification. it was messing up the namespace != "" case
somewhat.
2005-07-28 Shreyas Srinivasan <sshreyas@novell.com>
* camel-offline-folder.c (camel_offline_folder_init): Revert old
patch. Copy folder contents locally by default makes evolution
crawl.
2005-07-27 Mengjie Yu <meng-jie.yu@sun.com>
* camel-store.c (camel_isubscribe_subscribe),
(camel_isubscribe_unsubscribe): Void function should not return
value.
Fixes #310198
2005-07-25 Shreyas Srinivasan <sshreyas@novell.com>
* camel-offline-folder.c (camel_offline_folder_init): Copy
folder contents locally by default.
2005-07-20 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_get_folder_info): Changed the
semantics slightly. !FAST makes no guarantees about message
counts anymore.
* camel-disco-store.c: fix up some stupid hidden logic here.
2005-07-19 Not Zed <NotZed@Ximian.com>
* camel-folder.c (camel_folder_refresh_info): remove the folder
lock.
* camel-disco-store.c (disco_get_folder_info): dont force a
connect here, it doesn't belong here.
* camel-store.c (camel_store_get_folder_info): remove subscription
assert.
2005-07-13 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_init): initialise the mode to
something which reflects the actual mode.
* camel-store.h: fix the permission bit names and mode name.
* camel-session.c (camel_session_class_init,
camel_session_set_online): Create/emit a new event 'online'.
2005-07-10 Shreyas Srinivasan <sshreyas@novell.com>
* camel-store.h: Add a new #define to identify proxy stores
and a new data member permissions to hold store specific permissions.
2005-07-08 Harish Krishnaswamy <kharish@novell.com>
** Patch submitted by Greg Hudson <ghudson@mit.edu>
** See bug #308209
* camel-sasl-login.c (login_challenge): Wait for the server to
initiate the challenge.
2005-07-06 Vivek Jain <jvivek@novell.com>
* camel-folder.c (folder_changed) check if junk_plugin is
supplied before starting any junk specific operation
* camel-junk-plugin.[ch]: pass CamelJunkPlugin object in all the
callbacks
* camel-junk-plugin.c (camel_junk_plugin_init) use csp->init(csp)
style in place of (* csp->init)(csp) similar change in all other
callbacks
2005-06-24 Matt Brown <matt@mattb.net.nz>
* camel-gpg-context.c: Extend verify and decrypt functions to
support inline pgp signed messages via
x-inlinepgp-signed/x-inlinepgp-encrypted mime types.
* camel-mime-filter-pgp.h:
* camel-mime-filter-pgp.c: New filter to strip dash encoding from
inline pgp signed messages.
2005-06-09 Sarfraaz Ahmed <asarfraaz@novell.com>
* camel-store.c (camel_folder_info_build): Minor typo in debug message.
2005-05-16 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-filter-basic.c (complete): Call
camel_quoted_encode_close() instead of quoted_decode_close() when
encoding.
* camel-mime-utils.c (camel_quoted_decode_close): This function
was named incorrectly, it's really camel_quoted_encode_close
(camel_quoted_encode_close): New name.
2005-05-07 Sankar P <psankar@novell.com>
* camel-provider.h: Added a new flag
CAMEL_PROVIDER_DISABLE_SENT_FOLDER so as to facilitate disabling
sent button and prevent copying sent items. This flag is
introduced for the GroupWise provider, but can be made use of by
any other type of provider, if needed.
2005-04-26 Ross Burton <ross@burtonini.com>
* camel/broken-date-parser.c:
* camel/camel-block-file.c:
* camel/camel-charset-map-private.h:
* camel/camel-mime-message.c:
* camel/camel-mime-utils.c:
* camel/camel-object.c:
* camel/camel-url-scanner.c:
* camel/camel-utf8.c:
* camel/gentables.pl:
Add the const keyword liberally.
2005-04-18 Jeffrey Stedfast <fejj@novell.com>
* camel-url-scanner.c (camel_url_web_end): Handle the case where
the path doesn't exist in the url. See bug #301037 for more
details.
2005-04-07 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #273945
* camel-mime-utils.c (camel_header_encode_string): If
camel_charset_best() returns NULL, default to UTF-8.
(camel_header_encode_phrase): Same as above.
2005-04-11 Harish Krishnaswamy <kharish@novell.com>
* Makefile.am:
* providers/local/Makefile.am:
* providers/pop3/Makefile.am:
* providers/smtp/Makefile.am:
* tests/folder/Makefile.am:
* tests/lib/Makefile.am:
* tests/message/Makefile.am:
* tests/mime-filter/Makefile.am:
* tests/misc/Makefile.am:
* tests/smime/Makefile.am:
* tests/stream/Makefile.am:
use API_VERSION
2005-03-31 Jeffrey Stedfast <fejj@novell.com>
* camel-sasl-digest-md5.c (camel_sasl_digest_md5_finalize): If the
SASL negotiation fails or is cancelled, then the challenge and/or
response may be NULL and so dereferencing them will cause a
crash. Possible fix for bug #72325.
2005-03-25 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-utils.c (header_append_param): Don't try to convert
boundary param values into UTF-8 even if they contain binary
text. Based on a patch from Pavel Fedin.
2005-03-15 Jeffrey Stedfast <fejj@novell.com>
* camel-stream.c (camel_stream_read): Fix for systems where read
is a macro by David Malcolm.
2005-03-01 Not Zed <NotZed@Ximian.com>
* tests/misc/test2.c: fix the case of the charset specification,
now we properly canonicalise them.
2005-03-01 Not Zed <NotZed@Ximian.com>
** See bug #73015
* tests/misc/test1.c: Test case for references decoding.
* camel-mime-utils.c (header_decode_addrspec): if we get no start
word, then return NULL not "".
2005-03-02 Not Zed <NotZed@Ximian.com>
** See bug #70195
* camel-mime-utils.c (rfc2047_encode_word): if we fail to convert
all the buffer, skip the content we didn't convert - don't just
skip the number of bytes we didn't convert from the start of the
string.
(header_encode_phrase_merge_words): when we merge the word, make
sure we merge the encoding too.
2005-03-02 Not Zed <NotZed@Ximian.com>
** See bug #70590 (again)
* camel-filter-driver.c (camel_filter_driver_filter_message):
don't drop to default folder if we moved it.
(do_move): mark moved, not copied.
2005-03-01 Not Zed <NotZed@Ximian.com>
** See bug #72876
* camel-mime-message.c (process_header): if there are no addresses
in from or reply-to header, don't save empty address list.
2005-02-28 Not Zed <NotZed@Ximian.com>
** See bug #72609
* camel-mime-utils.c (header_encode_param): just call
camel_charset_best once to get the best charset, and handle a NULL
charset name case properly.
* camel-charset-map.c (camel_charset_step): use the camel utf8
functions for robustness (&fix possible buffer-read-overflow).
Perform some short-circuit optimisation when we can.
2005-02-28 Not Zed <NotZed@Ximian.com>
** See bug #70590
* camel-filter-driver.c (do_move): Make this copy+delete, and
terminate processing implicitly.
2005-02-24 Not Zed <NotZed@Ximian.com>
** See bug #68459
* camel-nntp-address.[ch]: cameladdress implementation for list of
newsgroups.
2005-02-11 Radek Doulik <rodo@novell.com>
* camel-filter-search.c (junk_test): use camel debug
* camel-junk-plugin.c: use camel debug
2005-02-09 Jeffrey Stedfast <fejj@novell.com>
* camel-store.c (camel_folder_info_build): Fix the FIXME about
using fragment instead of path for those urls which use fragment
instead. Also fixes bug #71747.
2005-02-07 JP Rosevear <jpr@novell.com>
* camel-iconv.c: remove dead file
2005-02-07 Jeffrey Stedfast <fejj@novell.com>
* tests/folder/test11.c: Fixed junk/trash folder names/paths.
2005-02-04 Not Zed <NotZed@Ximian.com>
* camel-filter-search.c (check_header): don't try to match against
mlist if the mlist entry is NULL.
* camel-store-summary.h: make the store-info flags match the
store:folder_info flags.
* Revert jeffs changes, they weren't needed.
2005-02-02 Jeffrey Stedfast <fejj@novell.com>
* camel-store.h (CAMEL_STORE_FOLDER_INFO_SUBSCRIPTION_INFO):
Added. Hint to the provider that we want the
CAMEL_FOLDER_SUBSCRIBED flag (even if we aren't requesting
CAMEL_STORE_FOLDER_INO_SUBSCRIBED).
* camel-folder-summary.h:
Added some RESERVED bits for the summary->flags (last 24 bits are
for provider specific flags).
2005-02-01 Not Zed <NotZed@Ximian.com>
** See bug #65329
* camel-vee-store.c (camel_vee-store_init): api chanes
* camel-vtrash-folder.c (camel_vtrash_folder_new): api chagne and
translate the short name.
* camel-vee-folder.c (camel_vee_folder_construct): take full-name
argument separately from short-name.
(camel_vee_folder_new): calculate short-name.
* camel-store.c (camel_store_get_folder_info): set the folder type
hint.
* camel-store.h: add a bitfield for a folder-type hint. used to
indicate inbox/trash/etc (mainly for gui icons).
** See bug #38791 and bug #36142.
* camel-gpg-context.c (gpg_ctx_op_step): use poll rather than
select, and listen to the cancellation fd as well. perform all
cancellation here.
(gpg_sign): remove cancellation check/processing.
(gpg_verify): same.
(gpg_encrypt): same.
(gpg_decrypt): same.
(gpg_ctx_op_step): remove the messy execption handling stuff, it
wasn't useful.
(gpg_import_keys, gpg_export_keys): clean up exception case.
** See bug #72020.
* camel-filter-driver.c (do_score): don't use
camel_folder_set_message_user_tag anymore, use the messageinfo
interface.
(do_adjust_score): implement missing function.
* camel-store.c (camel_store_folder_uri_equal): check the path
isn't NULL before dereferencing it. Could happen with badly
formed uris (since we're comparing folders, it MUST contain a path
or fragment).
2005-01-31 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message): fixed a crash
while getting message. also applied lock
when getting message
* providers/groupwise/camel-groupwise-store.c
(gropuwise_get_folder_info),
(groupwise_create_folder),
(groupwise_delete_folder): applied locks which
were missed out previously
2005-01-31 Hans Petter Jansson <hpj@novell.com>
* camel-mime-utils.c (camel_mime_special_table): Remove this, it's
declared externally now.
2005-01-31 Not Zed <NotZed@Ximian.com>
** See bug #70303.
* tests/mime-filter/test1.c: added new test for
camel-mime-filter-canon.c
* camel-mime-filter-canon.c (filter_run): separated out from
filter. Fix a case when it finds an embedded "From " not to
create "=46rom rom".
(complete): Properly canonicalise \n -> \r\n rather than just
copying it across (use filter_run now).
** See bug #68741.
* camel-vtrash-folder.h: move Junk and Trash into the ".#evolution"
'namespace'.
* camel-store.c (add_special_info): only compare the full name for
the special folder.
** See bug #38671.
* camel-filter-search.c (check_header): check all instances of
headers for match string.
2005-01-28 Not Zed <NotZed@Ximian.com>
* camel-provider.h: Added CAMEL_URL_PART_HIDE* options, required
for more flexible extensibility.
2005-01-29 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-store.c
(groupwise_auth_loop) : change the default to 7191
use "use_ssl" param from CamelUrl instead of soap_ssl
2005-01-29 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c
(camel_provider_init) : Make the soap mailer
default for groupwise accounts. exporting USE_IMAP
will cause imap to be used
2005-01-27 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_init): Default the have_mlist bit to TRUE so
that upgraders from 2.0 won't have their summaries rescanned.
(camel_imap4_summary_flush_updates): Always update have_mlist to
reflect reality.
2005-01-27 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_refresh_info):
(gw_update_summary): using getquickmessages instead of get items
* providers/groupwise/camel-groupwise-store.c
(groupwise_get_folder): using get quick messages instead of get
items
2005-01-27 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-summary.c (untagged_fetch_all):
Decode References to improve threading code (In-Reply-To from
ENVELOPE just wasn't good enough to make users happy). See bug
#71808.
(untagged_fetch_all): Look at the Content-Type header to decide if
the message might contain attachments.
(imap4_summary_fetch_all): Added References and Content-Type to
our query.
* providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
Fixed to handle "" as the delim portion of the NAMESPACE. Fixes
bug #71847.
2005-01-26 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (imap4_header_load): Check
whether or not we have mlist info in our summary.
(imap4_header_save): Save have_mlist.
(camel_imap4_summary_flush_updates): Modified to clear the summary
and do a complete refetch if enable_mlist has been newly enabled
and we don't already have mlist info in our summary info's.
(imap4_fetch_all_add): If the \Recent flag is set, also add it to
the "recent" changes structure so the filetr code knows to filter
it.
2005-01-25 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Setup filtering and junk filtering stuff.
2005-01-24 JP Rosevear <jpr@novell.com>
* tests/folder/test6.c: get imap4 not imap
* tests/folder/test4.c: ditto
2005-01-24 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Default enable_mlist to ON.
(imap4_append_message): Don't compare date_received against -1,
compare it to 0 (since that's what it'll be if unset).
2005-01-24 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
Respect the user's namespace override setting.
(imap4_get_folder_info): Changed the behaviour a bit to work like
the old imap code: only use the cache if the network is
unavailable, otherwise always scan the server for the folder
listing.
(imap4_get_folder_info): Always get INBOX (fix for cases where
INBOX wasn't under the namespace and for cases where it's not
subscribed).
2005-01-24 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_transfer_messages_to): using moveItemRequest for moving
messages between folders.
2005-01-23 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-store.c (imap4_construct): Check if
we have the use_lsub url param and set the store->flags
appropriately.
2005-01-24 Not Zed <NotZed@Ximian.com>
** See bug #71427.
* providers/pop3/camel-pop3-store.c (pop3_connect): fix the
exception case for re-prompting for the password.
** See bug #71625, and bug #56110.
* providers/imap/camel-imap-folder.c (get_content): when getting a
simple content for a message, don't get .TEXT, as that is the full
content of a message, not the part itself.
2005-01-23 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-summary.c (untagged_fetch_all):
Handle BODY[HEADER.FIELDS ...] responses for cases where we may
wish to query for mailing-list headers.
(imap4_summary_fetch_all): If enable_mlist is set for this folder,
then query for mailing-list headers as well.
* providers/imap4/camel-imap4-folder.c (imap4_getv): Added a new
property to enable mlist detection (which will change our summary
query to the same as the old imap code).
(imap4_setv): Implemented.
2005-01-21 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (imap4_header_load): Fixed
to load fixed_int32's rather than uint32's.
(imap4_header_save): Fixed to save fixed_int32's rather than
uint32's for compat with old imap code.
* providers/Makefile.am: Removed "imap" from the build and made
"imap4" the default.
* providers/imap4/libcamelimap4.urls: Fixed to only list "imap"
* providers/imap4/camel-imap4-provider.c: Changed the 'protocol'
string to "imap" from "imap4" so we override the old imap urls.
* providers/imap4/camel-imap4-summary.c: Updated to load/save in
the same format as the old imap code so no migration is necessary.
* camel-offline-journal.c: Same.
* camel-offline-folder.c (camel_offline_folder_downsync): Use a
new macro to get the class from the offline folder object, don't
cast the object as a class.
2005-01-20 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message) : support for status
for message tracking.
Removed compiler warnings.
2005-01-20 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message):
Show warning, but display message in case we cannot get
attachments.
Display the itip control for appointments even if no
message body is present
* providers/groupwise/camel-groupwise-store.c
(groupwise_get_folder_info):
Not displaying the Calendar and Contacts folders in the mail
view.
2005-01-20 Not Zed <NotZed@Ximian.com>
* camel-lock-helper.c (main): since malloc(MAXINT+1) returns a
valid pointer, validate the length of the path before using it.
set maximum path to 65000 characters. Spotted by Max Vozeler
<max@hinterhof.net>
2005-01-19 Jeffrey Stedfast <fejj@novell.com>
* camel-offline-folder.c (camel_offline_folder_class_init): Only
init the perperties list once (class_init can be called multiple
times apparently).
* providers/imap4/camel-imap4-utils.c: disable debugging.
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Set a cmeta file path.
* providers/imap4/camel-imap4-command.c: Disable debugging spew
unless imap4:command is enabled.
* camel-offline-folder.c (camel_offline_folder_downsync): Documented.
* camel-offline-store.c (camel_offline_store_set_network_state):
Use NULL as the search expression which forces all messages to be
synced.
2005-01-18 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (imap4_header_load): Load
the IMAP4 summary version.
(imap4_header_save): Save the IMAP4 summary version.
2005-01-13 Jeffrey Stedfast <fejj@novell.com>
* providers/groupwise/camel-groupwise-journal.c
(groupwise_entry_load): Simplified the exception case. Also, in
the exception case don't abort() if entry->type is an unknown type
(keeps us from "crashing" on invalid/corrupted journal data).
(camel_groupwise_journal_append): Don't free the uid here.
(camel_groupwise_journal_transfer): Same.
(groupwise_entry_write): Save the original_uid for TRANSFER types
as we need it when we later replay the journal.
(groupwise_entry_load): Load the original_uid here for TRANSFER
entries.
(groupwise_entry_free): Free the original_uid too.
(groupwise_entry_play_transfer): Untangled from the APPEND entry
replay because the code has very little to nothing in
common. Also, after transfer we need to get the new message info
structure and copy user tags/flags and system flags over or we
lose that information.
(play_update): Removed.
2005-01-19 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message): set the message id as the uid
for the CamelMimeMessage
2005-01-18 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-store.c:
Removed debug statements and compiler warnings
2005-01-17 Sivaiah Nallagatla <snallagatla@novell.com>
* camel-groupwise-provider.c : remove poa ip and
soap ssl settings. We no longer need them as we now use soap for mail
* camel-groupwise-store.c (groupwise_auth_loop) :
when use_ssl is whenever possible try to login
using https and them if it fails using http
2005-01-17 Not Zed <NotZed@Ximian.com>
* tests/lib/folders.c (test_folder_basic): dont enforce local
store == no inbox; maildir implements one now.
* camel-multipart-signed.c (skip_content): in the message state
skip a state, otherwise we go nowhere but down an overflowed stack
drain.
2005-01-14 Not Zed <NotZed@Ximian.com>
** Better fix for #65178.
* tests/folder/test11.c: new maildir test.
* camel-store.c (camel_store_folder_uri_equal): dont pass NULL
values to compare_folder_name.
* providers/local/camel-maildir-store.c (get_folder_info):
reimplemented, now everything isn't a subfolder of INBOX ('.')
anymore.
(get_inbox): call main entry point so we don't create multiple
inboxes each call.
(scan_dirs): re-implemented using non-recursive implementation.
(scan_fi, scan_free, scan_equal, scan_hash): helpers for above.
(md_canon_name): helper to canonicalise old-format names to new
ones.
(maildir_hash_folder_name, maildir_compare_folder_name): implement
custom folder hash functions so canonicalisation works.
(get_folder): canoncalise name before using it. special case '.'
aka 'inbox', so that it is implicitly created if accessed.
(delete_folder): don't let the caller delete ".".
(camel_folder_info_new): removed.
2005-01-14 Jeffrey Stedfast <fejj@novell.com>
* providers/smtp/camel-smtp-transport.c
(connect_to_server_wrapper): if the first connection fails, clear
the exception before trying again.
(connect_to_server): Use ssl_new_raw() for STARTTLS mode
conenctions. Fixes bug #71082.
2005-01-14 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-journal.c (imap4_entry_play_append):
Get the appended_uid from camel_folder_append_message() so that we
can copy all user flags/tags over from the journal info over to
the real summary info once the append has completed (assuming of
course that the server supports UIDPLUS).
(camel_imap4_journal_readd_failed): New function to readd
message-info's from failed journal appends to the folder summary
so that they aren't lost from the user's message-list (they have
to temporarily be removed while the summary updates itself from
the server or Bad Things (tm) would happen).
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_flush_updates): Readd the failed journal
replay info's to the summary so even if messages fail to be
appended to the folder, the user will still see them in his/her
message-list.
2005-01-12 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-provider.c: Use the same key
shortcuts as current imap code.
2005-01-13 Not Zed <NotZed@Ximian.com>
** See bug #65178.
* providers/local/camel-maildir-store.c (get_folder_info)
(get_folder): if the incoming folder name starts with /, convert
it to implicit start with "./".
** See bug #69024.
* providers/nntp/camel-nntp-store.c
(nntp_store_get_subscribed_folder_info): emit a folder_changed
event if refreshing it added any changes.
2005-01-12 Not Zed <NotZed@Ximian.com>
** See bug #47824.
* camel-multipart-signed.c (parse_content): re-implemented to use
camel-mime-parser. For the annoying pathalogical case of re-used
multipart boundary markers.
* camel-mime-parser.c (folder_scan_step): modified the multipart
state so that we don't try to match the same boundary again if
we've already seen an end boundary for this part. This is for the
annoying case of a multipart inside a multipart which shares an
identical boundary marker (groupwise!).
(camel_mime_parser_tell_start_boundary): new function to indicate
the offset of the start of the last boundary.
* tests/message/test3.c (main): remove the nonfatal fixme & put
extra null check for pre/postface text checks.
* tests/message/test2.c (convert): use size_t for iconv length
types.
2005-01-11 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store-summary.c
(camel_imap4_store_summary_get_folder_info): Fixed a possible
uninitialised condition.
2005-01-12 Sushma Rai <rsushma@novell.com>
* camel-provider.[ch]: Removed camel_provider_validate_user()
and added a void pointer to CamelProvider structure.
2005-01-12 Not Zed <NotZed@Ximian.com>
** See bug #70095.
* camel-vee-folder.c (vee_delete): fix past-o, unlock not lock
lock when done.
2005-01-08 Not Zed <NotZed@Ximian.com>
* camel-sasl-ntlm.c: convert all the unsigned long/long stuff to
guint32 since it seems to need 32 bit integers.
* camel-url.c (camel_url_new_with_base): cast length to int.
* providers/imap/camel-imap-command.c
(imap_command_strdup_vprintf): cast strlen to int.
* camel-mime-utils.c (append_quoted_pair, header_decode_text): use
gssize for length to match dumb g-api.
2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-store.c
(groupwise_create_folder): fixed a crash when creating a folder.
was not building the folder info
2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_sync): to sync back flags to the server. currently
can sync only read messages.
(groupwise_append_message): set source based on folder
* providers/groupwise/camel-groupwise-utils.[ch]
(do_flags_diff): finds the difference between flags. Based on the
imap4 code by fejj
2005-01-11 JP Rosevear <jpr@novell.com>
* providers/groupwise/camel-groupwise-transport.h: remove defines
* providers/groupwise/camel-groupwise-transport.c (groupwise_send_to)
(groupwise_send_to): use util routine to build item
* providers/groupwise/camel-groupwise-store.h: new protos
* providers/groupwise/camel-groupwise-store.c
(groupwise_rename_folder): use new api name and don't strdup the
lookup name
(camel_groupwise_store_folder_lookup): find folder from container id
* providers/groupwise/camel-groupwise-journal.[hc]: implement
journalling for append and transfer
* providers/groupwise/camel-groupwise-folder.h: add journal member
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message): use new api name and don't strdup
the lookup name
(groupwise_refresh_info): ditto
(groupwise_append_message): ditto
(groupwise_expunge): ditto
(groupwise_transfer_messages_to): handle being in offline mode
* providers/groupwise/Makefile.am: build journal sources
2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_append_message): support for append messages
into groupwise folders.
* providers/groupwise/camel-groupwise-utils.[ch]
(camel_groupwise_util_item_from_message): creates an groupwise
item from CamelMimeMessage
2005-01-11 Vivek Jain <jvivek@novell.com>
* camel-store.h : defined flags for shared folders
2005-01-11 Not Zed <NotZed@Ximian.com>
** See bug #70919.
* camel-multipart-signed.c (parse_content): treat the post pointer
as binary, not 0 terminated.
2004-12-23 Not Zed <NotZed@Ximian.com>
** See bug #70556.
* providers/imap/camel-imap-command.c (imap_read_untagged): scan
the non-literal contnet for s-expression brackets, and if we seem
to be outside of one, don't try the 'blank line after literal'
hack.
2005-01-10 Jeffrey Stedfast <fejj@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message): Updated the offline check to use
CamelOffline methods.
(groupwise_refresh_info): Same.
(groupwise_cache_message): Removed.
(groupwise_folder_get_message): Use CAMEL_RECIPIENT_TYPE_* rather
than strings.
(groupwise_expunge): Updated to fit the normal CamelStore expunge
API and fixed a deadlock condition.
* providers/groupwise/camel-groupwise-store.c
(groupwise_get_folder_offline): Removed.
(groupwise_get_folder_online): Renamed to groupwise_get_folder()
and made to handle offline case.
(groupwise_connect_offline): Removed.
(groupwise_disconnect_offline): Removed.
(groupwise_get_fodler_info_online): Renamed
groupwise_get_folder_info() - if in offline mode, do the offline
thing.
(groupwise_create_folder): Updated for CamelOfflineStore stuff.
(groupwise_delete_folder): Same.
(groupwise_rename_folder): Same.
* providers/imap4/camel-imap4-stream.c: Disable token debug spew
unless imap4:stream debug is enabled.
2005-01-10 Sushma Rai <rsushma@novell.com>
* camel-provider.[ch] (camel_provider_validate_user):
Given the server URL, validates the user credentials if
the provider supports.
Added temporarily for Exchange connector, will be removed
once connector plugin is made external.
2005-01-10 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message),
(groupwise_refresh_info): included default and notification
in the view list for e_gw_connection_get_item.
* providers/groupwise/camel-groupwise-store.c
(groupwise_get_folder_online):included default and notification
in the view list for e_gw_connection_get_items.
* providers/groupwis/camel-groupwise-transport.[ch]
(groupwise_send_to): sets send options in EGwItem by parsing the
camelmimemessage for send-option headers
2005-01-10 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-store-summary.[ch]:
implements the CamelStoreSummary Class providing support
for store summary for the soap provider.
* providers/groupwise/camel-groupwise-store.c
(groupwise_get_folder_info_online): saves the store summary
after building folder info.
2005-01-07 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_connect): Same as
imap4-folder changes.
(imap4_disconnect): Same.
(imap4_get_folder): Same.
(imap4_query_auth_types): Same.
(imap4_create_folder): Same.
(imap4_delete_folder): Same.
(imap4_rename_folder): Same.
(imap4_subscribe_folder): Same.
(imap4_unsubscribe_folder): Same.
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Instead of checking the session online state, check the
OfflineStore network availability state.
(imap4_sync): Same.
(imap4_refresh_info): Same.
(imap4_get_message): Here too.
(imap4_append_message): Same.
(imap4_transfer_messages_to): Same.
2005-01-07 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-transport.c
(groupwise_send_to): fixed the problem of the mail
message (body) being treated as an attachment
2005-01-07 JP Rosevear <jpr@novell.com>
* providers/groupwise/camel-groupwise-store.c
(groupwise_store_construct): don't free an alloca'd memory pointer
2005-01-06 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c: Changed to use the new
CamelOfflineJournal API.
* providers/imap4/camel-imap4-journal.c: Changed to inherit from
the new CamelOfflineJournal class.
* providers/imap4/camel-imap4-folder.c: Changed to inherit from
CamelOfflineFolder
(camel_imap4_folder_class_init): Removed the properties setup code
- no longer needed as it is handled in our parent class now.
(camel_imap4_folder_finalize): Use camel_offline_journal_write()
* providers/imap4/camel-imap4-store.c: Changed to inherit from
CamelOfflineStore rather than CamelStore.
* camel-offline-journal.[c,h]: New abstract class for keeping a
journal of folder operations done while in offline mode. (Future
replacement for CamelDiscoDiary?)
* camel-offline-folder.[c,h]: New abstract class for offline
folders - handles syncing messages from the server to disk for
offline use. (Future replacement for CamelDiscoFolder?)
* camel-offline-store.[c,h]: New abstract class for offline stores
- handles switching between network avail/unavail. (Future
replacement for CamelDiscoStore?)
2005-01-06 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-store.[ch]
(groupwise_get_folder_info_online): update the total and
unread mail count from soap response
(groupwise_rename_folder): fixed problems in renaming
groupwise folders
(storage_path_lookup): returns the storage path for the
groupwise account
* providers/groupwise/camel-groupwise-folder.c
(groupwise_folder_get_message): support for shared folder
notification type. displaying the itip control for
appoinments.
(groupwise_folder_rename): support function for renaming
cache and summary when a groupwise folder is renamed
(groupwise_transfer_online): function for copying/moving
messages between folders
(convert_to_calendar): function to populate data for
displaying appointments by itip control
* providers/groupwise/camel-groupwise-transport.c
(groupwise_send_to): support for sending attachments
2005-01-04 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-store.c
(groupwise_create_folder) (groupwise_delete_folder)
(groupwise_rename_folder) : prevent these operations in
offline mode
2005-01-04 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-store.c
(groupwise_store_construct): initialise the store summary.
2005-01-04 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-transport.c
(groupwise_send_to): freeing the recipient list and assigning
to NULL, which was causing a crash while sending mails.
2004-12-31 JP Rosevear <jpr@novell.com>
* providers/groupwise/Makefile.am: dist the private header, fix
includes
* tests/smime/pgp.c (main): use define for data location
* tests/smime/Makefile.am: define for the data dir
* tests/mime-filter/test-charset.c (main): load and output to the
correct dir
* tests/message/Makefile.am: clean up generated files
* Makefile.am: clean up the package config data
* tests/Makefile.am: dist the data dir
2004-12-23 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c : changed the
offline_sync setting label
2004-12-23 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-private.h:
Added the file which was missed out in the previous commit.
2004-12-23 Parthasarathi Susarla <sparthasarathi@novell.com>
* providers/groupwise/camel-groupwise-store.[ch]
* providers/groupwise/camel-groupwise-transport.[ch]
* providers/groupwise/camel-groupwise-utils.[ch]
* providers/groupwise/camel-groupwise-store-summary.[ch]
* providers/groupwise/camel-groupwise-summary.[ch]:
Added the above files for implementing mailer for soap based
camel provider for groupwise server.
* providers/groupwise/Makefile.am : added new files to SOURCES
* providers/groupwise/camel-groupwise-provider.c:(camel_provider_module_init):
check for an environment variable SOAP_MAILER, if not present will use IMAP
instead of soap.
2004-12-23 Not Zed <NotZed@Ximian.com>
* camel-folder-search.c (check_header): treat a missing header as
if it was set to "".
* camel-object.c (camel_object_is, camel_object_class_is)
(camel_interface_is): check for null values before dereferencing
them.
2004-12-20 David Mosberger-Tang <David.Mosberger@acm.org>
* camel-mime-parser.c: Include "libedataserver/e-memory.h".
(STRUCT_ALIGN): Remove.
(MemPoolNode): Likewise.
(MemPoolThresholdNode): Likewise.
(MemPool): Likewise.
(mempool_new): Likewise.
(mempool_alloc): Likewise.
(mempool_flush): Likewise.
(mempool_free): Likewise.
(struct _header_scan_stack): Change type of "pool" from MemPool to
EMemPool.
(folder_pull_part): Call e_mempool_destroy() instead of
mempool_free().
(header_append_mempool): Call e_mempool_alloc() instead of
mempool_alloc().
(folder_scan_header): Call e_mempool_new() instead of
mempool_new().
2004-12-20 Not Zed <NotZed@Ximian.com>
* camel-operation.c (camel_operation_init): remove
(camel_operation_shutdown): remove.
(co_getcc): new helper to get the current thread-specific value &
init if need be.
* camel-mime-utils.c (camel_mime_utils_init): removed, taken from
prebuilt tables now.
(header_remove_bits, header_init_bits, header_decode_init)
(base64_init): removed, handled by perl script now.
* camel.c (camel_shutdown): dont shutdown mime utils anymore.
* camel-mime-utils.c (mailing_list_init): move the mailing list
init stuff from camel-mime-utils-init to here.
(camel_header_raw_check_mailing_list): call mailing_list_once to
init the regular expression tables.
(camel_mime_utils_shutdown): removed, it can 'leak' the static
memory.
(base64_init): removed, this data never changes, keep table in
static memory.
2004-12-15 Rodney Dawes <dobey@novell.com>
* Makefile.am: Move camel-search-private.h to libcamelinclude_HEADERS
so we can install it so Evolution can build from a disted tarball
2004-12-14 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c
(imap4_transfer_messages_to): Doh. Unlock the connect_lock at the
end, don't lock it again :)
* providers/imap4/camel-imap4-journal.c
(camel_imap4_journal_append): Now takes an appended_uid
argument. Also fixed to add a message-info place-holder to the
summary.
* providers/imap4/camel-imap4-folder.c (imap4_append_message): get
an appedned_uid for the journalled append.
(imap4_transfer_messages_to): Updated for appended_uid API change.
2004-12-14 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-journal.[c,h]: New source files
implementing a basic journal.
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_flush_updates): Replay the journal.
* providers/imap4/camel-imap4-folder.c
(camel_imap4_folder_finalize): Write/unref the journal.
(camel_imap4_folder_new): Create a journal object.
(imap4_append_message): Journal the message append if we're in
offline mode.
(imap4_transfer_messages_to): Implement offline copy/move support
using the new journal code.
2004-12-09 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (imap4_append_message):
Don't bother sending UID APPEND if the caller doesn't care about
appended_uid.
2004-12-13 Not Zed <NotZed@Ximian.com>
* tests/lib/Makefile.am: put the test-provider stuff back in.
* tests/*/Makefile.am: version libcamel*.
* tests/lib/camel-test-provider.[ch]: duh, re-implement, it got
lost somehow.
2004-12-07 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (imap4_append_message):
Need to have the folder as the first vararg.
2004-12-06 Rodney Dawes <dobey@novell.com>
* camel-lock-client.c (camel_lock_helper_init):
Exec camel-lock-helper-$BASE_VERSION instead of just camel-lock-helper
2004-12-06 Jeffrey Stedfast <fejj@novell.com>
* camel-sasl-gssapi.c: #include "camel-net-utils.h"
* camel-net-utils.h: #include sys/types.h for size_t, etc.
2004-12-06 Rodney Dawes <dobey@novell.com>
* Makefile.am: Fix pkgconfig bits to dist the unversioned .in files
properly
* tests/lib/Makefile.am: Removed camel-test-provider stuff, since it
isn't in the source tree
2004-11-29 Mengjie Yu <meng-jie.yu@sun.com>
* providers/imap/camel-imap-provider.c:add mnemonic for checkboxes.
2004-12-03 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (connect_to_server): Same.
* providers/nntp/camel-nntp-store.c (connect_to_server): Same.
* providers/imap/camel-imap-store.c (connect_to_server): Same.
* providers/pop3/camel-pop3-store.c (connect_to_server): Same.
* providers/smtp/camel-smtp-transport.c (connect_to_server): Wrap
ssl stream stuff in #ifdef's so the code can be built without SSL
support and not contain unresolved symbols.
2004-12-03 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c: Remove
unnecessary includes . Remove camel-gw-listener stuff from here as
we are going to make it a plugin
* providers/groupwise/Makefile.am: Remove camel-gw-listner.c from
SOURCES
* providers/Makefile.am: add groupwise to SUBDIRS
2004-12-02 Not Zed <NotZed@Ximian.com>
** See bug #69533.
* providers/imap/camel-imap-command.c (imap_read_untagged): gross
hack, if we get a blank line after a literal, assume the server
(read: groupwise) made a mistake. Given the complexity of this
code i'm not sure it is the server anyway but what can you do.
2004-12-01 Not Zed <NotZed@Ximian.com>
** See bug #69776.
* camel-multipart-signed.c (parse_boundary): take end of data
argument, so it handles binary data. Use a binary data string
search rather than strstr.
(parse_content): dont bother to append a \0 on the end of the
data, not binary capable.
2004-11-23 Not Zed <NotZed@Ximian.com>
** See bug #69615.
* camel-smime-context.c (sm_get_passwd): removed. All callers
that passed it now pass NULL. This is so we don't override the
password function set by e-cert-db. Seems to work ok, I think.
2004-11-22 Not Zed <NotZed@Ximian.com>
** See bug #69109.
* providers/smtp/camel-smtp-transport.c (smtp_helo): if we have
ipv6 address and it is numeric, prefix it with "IPv6:"
2004-11-30 Not Zed <NotZed@Ximian.com>
* providers/nntp/camel-nntp-stream.c (CAMEL_NNTP_STREAM_LINE):
rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE
enum. Sigh.
(camel_nntp_stream_init): fix for above change.
2004-11-28 S.Çağlar Onur <caglar@uludag.org.tr>
** See bug #69446.
* camel-charset-map.c (camel_charset_iso_to_windows):
* camel-filter-search.c (check_header):
* camel-folder-search.c (check_header):
* camel-folder-summary.c
(message_info_new,summary_build_content_info,camel_system_flag):
* camel-html-parser.c (camel_html_parser_attr):
* camel-mime-filter-enriched.c
(param_parse,camel_mime_filter_enriched_init):
* camel-mime-parser.c (folder_scan_step,main):
* camel-mime-utils.c (camel_header_param,camel_header_set_param),
(camel_content_type_is,camel_transfer_encoding_from_string),
(camel_content_type_format,camel_content_type_simple),
(camel_header_decode_date,header_raw_find_node):
* camel-sasl-digest-md5.c (decode_data_type):
* providers/imap/camel-imap-command.c (camel_imap_response_free):
* providers/imap/camel-imap-folder.c (camel_imap_folder_new),
(camel_imap_folder_selected,imap_refresh_info),
(camel_imap_folder_new,camel_imap_folder_selected):
* providers/imap/camel-imap-store.c (imap_get_capability),
(imap_connect_online,get_folder_online,get_folder_offline),
(get_subscribed_folders,folder_hash,get_folders):
* providers/pop3/camel-pop3-store.c (get_folder):
* tests/lib/folders.c (test_folder_message_ops): some strcasecmp()
calls changed with g_ascii_strcasecmp() for Turkish character
conversiton problems
[http://www.i18nguy.com/unicode/turkish-i18n.html]
2004-10-12 Radek Doulik <rodo@ximian.com>
* camel-junk-plugin.c: new init method implementation
* camel-junk-plugin.h: added junk plugin init declaration
2004-11-10 Not Zed <NotZed@Ximian.com>
** See bug #69109.
* camel-service.c (cs_getnameinfo): honour the NI_NAMEREQD flag.
* providers/smtp/camel-smtp-transport.c (smtp_helo): change the
nameinfo flags a bit so we know when we got a numeric name and
need to wrap it in [].
2004-11-21 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c : added
a setting to mark the account for offline usuage
* providers/groupwise/came-gw-listener.c
(add_esource) (modify_esource) : changed the prototypes
to pass CamelUrl instead of individual properties
Add offline_sync property on e-sources if account is
marked for offline
2004-11-18 Not Zed <NotZed@Ximian.com>
* providers/nntp/camel-nntp-stream.c:
* providers/nntp/camel-nntp-store.c:
* providers/nntp/camel-nntp-summary.c: Make debug run based on
'nntp' debug option.
* providers/nntp/camel-nntp-stream.c (stream_fill): if we get a 0
read, return ECONNRESET. This should really have been put on the
stream for that imap hack fix.
* providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
retry if the password attempt failed.
** See bug #68556.
* providers/nntp/camel-nntp-store.c (xover_setup): don't overwrite
exception if we get a failure.
(camel_nntp_command): if we continue, then set the return code to
-1, so we re-loop rather than abort.
2004-11-15 Jeffrey Stedfast <fejj@novell.com>
* providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
In the fallback cases, clear the exception first.
* providers/imap/camel-imap-store.c (connect_to_server_wrapper):
In the fallback cases, clear the exception first.
* providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
In the fallback cases, clear the exception first.
2004-11-15 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-store.c (connect_to_server): Use
camel_tcp_stream_ssl_new_raw() for STARTTLS stream.
* providers/imap4/camel-imap4-store.c (connect_to_server): Use
camel_tcp_stream_ssl_new_raw() for STARTTLS stream.
* providers/pop3/camel-pop3-store.c: Change default port numbers
to be correct (they shouldn't all be the pop3s port).
(connect_to_server): Moved the last tcp_stream unref to afetr the
last fail-check so that we won't ever get a double-unref on
something we only own one ref on.
(connect_to_server): Unref the tcp_stream if we fail to create an
engine object before returning fail.
(connect_to_server): Use camel_tcp_stream_ssl_new_raw() for
STARTTLS stream.
* providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line):
Fix bug #69408 by filling our input buffer if inptr == inend.
2004-11-13 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-engine.c
(camel_imap4_engine_parse_resp_code): Handle numeric tokens for
the COPYUID set values as well.
2004-11-12 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (camel_imap4_summary_new):
Folder now gets set on the CamelFolderSummary object rather than
the CamelIMAP4Summary.
(imap4_fetch_all_update): Base summary class now has a folder
member, use that instead.
(imap4_fetch_all_add): Same.
(imap4_summary_fetch_all): Same.
(imap4_summary_fetch_flags): Same.
(camel_imap4_summary_set_uidvalidity): Same.
(camel_imap4_summary_expunge): Same.
(camel_imap4_summary_flush_updates): Same.
* providers/imap4/camel-imap4-folder.c (imap4_append_message):
Init appended_uid value to NULL
* providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
Properly handle NILs for the namespace separator (somehow I missed
this, silly me).
2004-12-02 Not Zed <NotZed@Ximian.com>
* Makefile.am: version all the libraries with the base version of the
package. move libcamel-1.2 into libdir, etc.
* camel.pc.in: remove the provider stuff from here.
* camel-provider.pc.in: create a camel-provider pc file.
2004-11-16 Not Zed <NotZed@Ximian.com>
* tests/lib/folders.c (test_folder_message_ops): updated counts for
delete also marking unread.
* tests/lib/camel-test.c (camel_test_provider_init): new api for
initialising test system 'in-build'.
* camel-provider.c: remove the assertions, init if we need to,k
use pthread_once stuff to serialise it.
* tests/folder/test3.c (main): remove gtk stuff (???).
* tests/*: Fix all the makefiles. Made make-check work 'in-build'.
* tests/lib/folders.c (test_folder_counts): update for api changes.
(test_message_info): similar.
* providers/Makefile.am: removed groupwise from the build, this
can't go in here anymore, not in its current state.
* camel-net-utils.c (camel_gethostbyaddr_r)
(camel_gethostbyname_r): the old e_gethost* calls from
e-host-utils.c.
2004-11-15 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-utils.c (imap_path_to_physical):
copied from e-path.c.
(imap_path_find_folders): copied from e-path.c.
* camel.h: remove the provider stuff from the header.
* camel-provider.c: globalise provider_init variable, and asserton
it in all functions that rely on it.
* camel-service.c: removed getaddrinfo/etc.
* camel-net-utils.[ch]: separate out camel_getaddrinfo etc.
* Makefile.am: split camel into 2 libraries, libcamel and
libcamel-store.
* camel-multipart-signed.c (camel_multipart_signed_sign)
(camel_multipart_signed_verify, prepare_sign): remove old
deprecated api.
* camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt)
(camel_multipart_encrypted_decrypt): remove old deprecated api.
2004-11-12 Not Zed <NotZed@Ximian.com>
** Merge in notzed-messageinfo-branch, fix some minor conflicts.
2004-11-11 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_reconnect): Free the
passwd here if we need to retry to authenticate.
2004-11-10 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
Use the expanded ALL macro as on closer inspection of the RFC,
we're not allowed to use macros in conjunction with other FETCH
items (such as UID in our case).
2004-11-09 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (imap_get_message): before
short-circuiting the check for child content, check the child
content info is actually correct.
2004-11-08 Not Zed <NotZed@Ximian.com>
** See bug #69145.
* providers/imap/camel-imap-folder.c (get_message): remove spec
argument, always calculate it from the content-info.
(content_info_incomplete): recursively check the content-info for
completeness, not just one level.
2004-11-09 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-provider.c: Updated the properties
to include all the same settings as the old imap code.
* providers/imap4/camel-imap4-folder.c (imap4_getv): Implemented.
(imap4_setv): Implemented.
2004-11-08 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #69241.
* camel-gpg-context.c (gpg_decrypt): We need to extract just the
application/pgp-encrypted part from the multipart/encrypted that
gets passed in. Added checks to verify that the input part is the
correct type as well. Once we have the application/pgp-encrypted
part, we need to use camel_data_wrapper_decode_to_stream() in case
the part was encoded in any way.
2004-11-09 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line):
Handle not getting the CRLF pair together. Also don't require that
we have at least 3 bytes in the read buffer as it is possible we
don't have that much (see bug #69160).
2004-11-08 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_subscribe_folder):
Note the folder-info just subscribed.
(imap4_unsubscribe_folder): Unnote the folder-info.
2004-11-04 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-engine.c: Added much in-line
documentation.
(engine_parse_capability): Use g_ascii_str[n]casecmp().
(camel_imap4_engine_nstring): New convenience function.
2004-11-02 Not Zed <NotZed@Ximian.com>
* camel-object.c (camel_object_hook_event): check interfaces for
events too.
(camel_object_trigger_event): check interfaces for events too.
(camel_object_class_add_event): more checks for interfaces vs
normal object classes.
(camel_object_class_add_interface): add an interface to a class.
(camel_object_get_interface): query for interfaces on an object.
(camel_object_get_type): register the interface type.
2004-11-02 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_folder_utf7_name):
Don't bother getting the folder delim if the name is "" since we
don't need it in that case.
* providers/imap4/camel-imap4-utils.c
(camel_imap4_get_path_delim): add an assert that s->namespaces is
non-NULL.
* providers/imap4/camel-imap4-stream.c
(camel_imap4_stream_literal): Update stream->inptr after fetching
the literal chunk.
* providers/imap4/camel-imap4-summary.c (envelope_decode_address):
Do proper cleanup in case of error and also handle literals.
* providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
Removed camel_service_connect() call which is no longer needed.
(imap4_connect): If engine is already connected, shortcut to
simply returning success.
(imap4_disconnect): Check engine state rather than poking at
stream state.
2004-11-01 Jeffrey Stedfast <fejj@novell.com>
* providers/smtp/camel-smtp-transport.c
(connect_to_server_wrapper): Do the same SSL->TLS and TLS->CLEAR
fallbacks that the 2.0 (and older) code did.
* providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
Same.
* providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
Same.
* providers/imap/camel-imap-store.c (connect_to_server_wrapper):
Same.
2004-11-01 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_expunge): Remove expunged messages from the
cache.
(camel_imap4_summary_set_uidvalidity): Clear the cache if the
UIDVALIDITY has changed.
* providers/imap4/camel-imap4-folder.c (imap4_get_message): If the
message exists in the cache, use that rather than fetching it from
the server and cache messages fetched from the server for later
use.
(camel_imap4_folder_finalize): Unref the cache if non-NULL.
(camel_imap4_folder_new): Create the CamelDataCache.
* providers/imap4/camel-imap4-store.c (imap4_create_folder): Cache
the folder-info on the summary if successful.
(imap4_delete_folder): Un-cache the folder-info from the summary.
* providers/imap4/camel-imap4-store-summary.c (load_namespaces):
Cleaned up a bit.
(save_namespaces): Same.
(camel_imap4_store_summary_unnote_info): New function.
(camel_imap4_store_summary_get_folder_info): Fixed the logic a
bit.
2004-11-11 Not Zed <NotZed@Ximian.com>
* providers/imap4/*: Update for folder-summary api changes.
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
clean up the logic for getting counts from the folder, we have
code to do this already. Also always run it against the selected
folder, does'nt need to have FAST bit unset.
* camel-folder-summary.c (camel_folder_summary_info_new): removed.
* camel-string-utils.c (camel_pstring_strdup, camel_pstring_free):
pooled string allocators. Oh so much easier than the poolv thing,
and these refcount too.
* camel-folder-summary.h: put message_id back into the summary.
2004-11-08 Not Zed <NotZed@Ximian.com>
* camel-folder.c (camel_folder_get_deleted_message_count): use
getv method to get the deleted count.
(get_deleted_message_count): removed.
* camel-vtrash-folder.c (vtrash_getv): override the unread count
to ignore junked or deleted.
* camel-folder.c (folder_getv): ignore junked and deleted in the
unread count.
* camel-vee-folder.c (camel_vee_folder_finalise): changed the
logic slightly not to call internal functions directly.
(vee_delete): implement, remove all our folders when we're
deleted, to give unmatched at least a snowflakes chance in hell of
working.
* camel-vtrash-folder.c (vtrash_search_by_expression)
(vtrash_search_by_uids, vtrash_folder_changed, vtrash_add_folder)
(vtrash_remove_folder, vtrash_rebuild_folder): implement
vtrash-optimised versions. Much faster.
* camel-vee-folder.c (camel_vee_folder_set_folders): don't rebuild
the folder.
(camel_vee_folder_add_folder): track folders here, but invoke
virtual method to let subclasses know about it.
(camel_vee_folder_remove_folder): similar.
(vee_search_by_uids): free the folder_uids array with TRUE,
plugging memory leak.
2004-11-06 Not Zed <NotZed@Ximian.com>
* camel-vee-folder.c: Removed vname, use Folder->full_name
instead. Make add_folder/remove_folder/set_expression/set_folders
virtual methods.
(vee_add_folder): virtual implementation.
* camel-vee-summary.c (camel_vee_summary_add): remove folder arg.
2004-11-05 Not Zed <NotZed@Ximian.com>
* camel-vee-summary.c (vee_info_set_flags): don't emit changed for
ourselves, let it filter through the changed handler, otherwise we
do it twice.
(vee_info_set_user_tag, vee_info_set_user_flag): same.
* camel-folder-summary.c (message_info_new_from_header): use the
string pool for allocations.
(message_info_load): same here.
(camel_pstring_strdup): noop for NULL or ""
(camel_pstring_free): same.
(summary_assign_uid): don't always assing the flagged bit, der.
2004-11-02 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (camel_pstring_strdup)
(camel_pstring_free, message_info_free, message_info_clone):
'uniquify' the strings.
2004-10-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-summary.c (envelope_decode_nstring):
Handle literal strings.
(envelope_decode_date): Same. Fixes bug #68894.
* providers/imap4/camel-imap4-stream.c
(camel_imap4_stream_next_token): Properly tokenise "\*" as a flag
token. Fixes bug #68869.
2004-10-21 Björn Torkelsson <torkel@acc.umu.se>
* camel-sasl-kerberos4.c: #include "camel-i18n.h"
2004-10-27 Julio M. Merino Vidal <jmmv@menta.net>
* camel-operation.c (camel_operation_shutdown): fix the arguments
to pthread_key_delete.
2004-10-26 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store-summary.[c,h]: New files
implementing a folder-info cache for offline mode (and faster
startup I guess).
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
Cache the folder-info for later use in offline mode.
* providers/imap4/camel-imap4-utils.c
(camel_imap4_get_path_delim): Instead of assigning top = "INBOX",
do strcpy (top, "INBOX") so that we can later modify the
string. Fixes bug #68814.
2004-10-25 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
Updated to use the public function in camel-imap4-utils.c
(camel_imap4_engine_finalize): Same.
* providers/imap4/camel-imap4-store.c (imap4_construct): Setup and
load the store summary.
(camel_imap4_store_finalize): Unref the store summary.
(imap4_get_folder): Implemented offline support.
(imap4_folder_utf7_name): Pass the summary to get_delim rather
than the engine.
(imap4_create_folder): Same.
(imap4_reconnect): Update the namespaces on the store summary.
(connect_to_server): Update the store summary capabilities.
* providers/imap4/camel-imap4-utils.c
(camel_imap4_get_path_delim): Now takes a store-summary rather
than an engine so that it will work in offline mode.
(camel_imap4_namespace_clear): Moved here from
camel-imap4-engine.c
(camel_imap4_namespace_list_copy): New convenience function.
(camel_imap4_namespace_list_free): New.
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Check the return value of summary loading in offline mode (if it
fails, we can't get the folder).
2004-10-21 Jeffrey Stedfast <fejj@novell.com>
* camel-sasl-gssapi.c: #include "camel-i18n.h"
2004-10-20 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-store.c (imap4_get_folder): Don't
allow users to create folders in offline mode. When in offline
mode, use a different codepath to get a folder object.
(imap4_noop): Handle offline mode.
(imap4_unsubscribe_folder): Throw an exception if we are in
offline mode.
(imap4_subscribe_folder): Same.
(imap4_get_folder_info): Started to implement offline
support. Also, even if we are in online mode but the engine has
not yet been connected, we should follow the "offline" code path
and get the folder info's from the cache.
(imap4_rename_folder): Disallow in offline mode.
(imap4_delete_folder): Same.
(imap4_connect): Handle offline mode.
(imap4_disconnect): Handle offline mode and do proper locking.
(imap4_query_auth_types): Same.
2004-10-19 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
Removed an already-fixed FIXME comment.
(imap4_summary_fetch_flags): Same.
* providers/imap4/camel-imap4-folder.c (imap4_get_path_delim):
Removed. Use camel_imap4_get_path_delim() instead.
(camel_imap4_folder_new): Updated.
(imap4_sync): If we aren't online, we're done. nothing to do.
(imap4_refresh_info): Same.
(imap4_append_message): Same but set an exception.
(imap4_transfer_messages_to): Same.
* providers/imap4/camel-imap4-utils.c
(camel_imap4_get_path_delim): Moved here from camel-imap4-store.c
* providers/imap4/camel-imap4-store.c (imap4_try_authenticate):
Change the service string for the sasl mechanism to"imap" rather
than "imap4".
(imap4_get_path_delim): Removed.
(imap4_create_folder): Updated.
(imap4_folder_utf7_name): Same.
2004-10-13 Not Zed <NotZed@Ximian.com>
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new)
(imap4_sync_changes, imap4_sync):
* providers/imap4/camel-imap4-summary.c (untagged_fetch_all): kill
cast as lvalue warning.
* camel-string-utils.h: add prototype for camel_toupper.
* providers/imap4/camel-imap4-utils.c:
* providers/imap4/camel-imap4-summary.c:
* providers/imap4/camel-imap4-folder.c:
* providers/imap4/camel-imap4-engine.c:
* providers/imap4/camel-imap4-command.c:
* providers/imap4/camel-imap4-store.c: include camel-i18n.h.
2004-10-12 Not Zed <NotZed@Ximian.com>
** See bug ???
* providers/nntp/camel-nntp-store.c (connect_to_server): if we
have a username, try to authenticate before doing anything else.
** See bug #67895.
* providers/nntp/camel-nntp-summary.c (add_range_xover)
(add_range_head): use raw_command_auth since we might need auth
here.
* providers/nntp/camel-nntp-store.c (camel_nntp_raw_command_auth):
new almost-raw command that also does auth.
(xover_setup, connect_to_server, camel_nntp_command): use
raw_command_auth since we might need auth here.
2004-10-12 Not Zed <NotZed@Ximian.com>
** See bug #67898 and probably others.
* providers/imapp/camel-imapp-store.c (connect_to_server):
* providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
* providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
* providers/imap/camel-imap-store.c (connect_to_server_wrapper):
* providers/nntp/camel-nntp-store.c (connect_to_server_wrapper):
* providers/smtp/camel-smtp-transport.c (connect_to_server_wrapper):
Fallback to hard-coded port number if the name lookup fails and no
port was supplied.
2004-10-11 Not Zed <NotZed@Ximian.com>
** See bug #67211.
* camel-mime-utils.c (camel_header_raw_check_mailing_list):
initialise the match start/end pointers, since some regexec's
don't seem to do it.
2004-10-09 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listner.c (add_esource) : add the
source uid to list of selected calendar and tasks so that
groupwise calendar and tasks are automatically selected
(remove_esource) : remove the uids from corresponding gconf keys
Fixes #62053
2004-10-08 Not Zed <NotZed@Ximian.com>
** See bug #67170.
* providers/nntp/camel-nntp-store.c
(nntp_store_get_cached_folder_info): compare newsgroup names case
sensitively.
2004-10-05 Jeffrey Stedfast <fejj@novell.com>
* camel-service.c (camel_getaddrinfo): Check msg->result for error
and set an exception if appropriate.
(camel_getnameinfo): Same.
2004-10-04 Jeffrey Stedfast <fejj@novell.com>
* camel-service.c (camel_getaddrinfo): Add a non-const cast for
hints when changing the ai_family member in the IPv6-disabled
case. Fixes bug #67028.
2004-10-05 Not Zed <NotZed@Ximian.com>
** See bug #67527.
* camel-service.c (cs_getaddrinfo, cs_getnameinfo): don't loop on
EAI_AGAIN, it doesn't appear to mean the same as EAGAIN does with
system calls (i guess 'no shit sherlock' really).
2004-10-04 JP Rosevear <jpr@novell.com>
* providers/imap4/camel-imap4-provider.c: include camel-i18n.h
2004-10-01 Jeffrey Stedfast <fejj@novell.com>
* camel-service.c (camel_getaddrinfo): Avoid assigning a value to
the member of a const struct (which newer gcc's apparently break
over) by casting to non-const.
2004-09-28 Not Zed <NotZed@Ximian.com>
** See bug #66509.
* providers/nntp/camel-nntp-store.c (camel_nntp_command): if we
get an error selecting the folder, disconnect/include it in the
re-try loop.
(camel_nntp_command): don't set the exception based on errno,
exception processing is already done. don't clear it if we're on
the 3rd retry.
2004-09-27 Not Zed <NotZed@Ximian.com>
* providers/nntp/camel-nntp-store.c (nntp_get_folder_info): don't
do any locking here.
(nntp_store_get_folder_info_all): move the locking here.
(nntp_store_get_subscribed_folder_info): and some here too.
* providers/nntp/camel-nntp-store.c:
* providers/nntp/camel-nntp-folder.c: Remove nntp command_lock and
just use the service connect lock for serialisation.
2004-09-14 Jeffrey Stedfast <fejj@novell.com>
* providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
s/not/no/ in the error string. Fixes bug #65828.
2004-09-24 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (camel_vee_store_finalise): free the unmatched
uid values as well.
* camel-vee-folder.c (vee_folder_remove_folder): lock main folder
summary lock before doing the unmatched stuff, so the order is
right.
2004-08-25 Ed Catmur <ed@catmur.co.uk>
** See bug #63881.
* camel-vee-store.c:
* camel-vee-folder.c: move the unmatched
folder onto the camel-vee-store object. Removede the global
unmatched folder and associated locks/etc, fixed all the code up
to work with the new unmatched folder, if present.
2004-09-27 Not Zed <NotZed@Ximian.com>
* providers/local/camel-spool-folder.c (camel_spool_folder_new):
make sure body indexing is turned off always, missed the ~ bit.
* providers/local/camel-spool-store.c (camel_folder_info_new):
dont take unread count.
(spool_fill_fi): copied from mbox more or less.
(scan_dir): use fill_fi to setup counts.
(spool_new_fi): replace camel_foldeR_info_new with one that does
most of the work, also generates uri's properly.
(get_folder_info_mbox): make the 'system' inbox name translatable.
* providers/local/camel-mbox-folder.h: make the
camel_mbox_folder_get* functions properly public.
* providers/local/camel-local-folder.h: pass the object to the
virtual methods now, fix all callers.
* providers/local/camel-spool-folder.c (spool_get_full_path)
(spool_get_meta_path): implement, this needs to work differnetly
to the parent classes implementations :-/.
2004-09-22 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-store.c (connect_to_server): Instead
of doing a host-lookup ourselves, get it passed in to us as an
argument. Also simplified a bit (try_starttls is no longer an
option).
(connect_to_server_wrapper): Simplified (we no longer have
fallback cases for SSL stuff). Also, perform host lookup here.
* providers/imap4/camel-imap4-store.c: Same changes as above.
* providers/pop3/camel-pop3-store.c: Same.
* providers/smtp/camel-smtp-transport.c: Same. Other changes
include making the code consistant with the other providers.
* providers/nntp/camel-nntp-store.c: Same as pop/imap.
2004-09-21 Not Zed <NotZed@Ximian.com>
** See bug #63521.
* camel-movemail.c (camel_movemail): don't clear exception on entry.
* camel-folder-search.c (match_words_message): use local exception.
* camel-operation.c (camel_operation_cancel_check): soak up all
cancellation requests as soon as we get one.
(camel_operation_uncancel): soak up all cancellation reqeusts when
we uncancel.
* camel-uid-cache.c (camel_uid_cache_save): open the file O_TRUNC
rather than O_EXCL, otherwise a crash would mean this file never
gets updated.
(camel_uid_cache_save): block cancellation around writes otherwise
we could be interupted from old cancellation.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): don't clear exception here, just
don't pass it to summary load.
* providers/pop3/camel-pop3-store.c (pop3_connect): only clear the
exception when we received one we handled.
* camel-filter-driver.c (close_folder): if exception is already
set, don't pass it to folder.sync().
* camel-lock.c (camel_lock_folder): don't clear the exception
here, if it came in set its a programming error.
* camel-filter-driver.c (camel_filter_driver_filter_message): if
the exception is set after evaluating the expression, stop
immediately.
2004-09-13 Not Zed <NotZed@Ximian.com>
** See bug #47821.
* camel-service.c: removed the old hostent based hostname interfaces.
* camel-sasl-kerberos4.c (krb4_challenge): new hostname interfaces.
* camel-sasl-gssapi.c (gssapi_challenge): new hostname interfaces.
* camel-sasl-digest-md5.c (digest_md5_challenge): use new hostname
interfaces.
(generate_response): just take hostname directly, not hostent.
* camel-mime-utils.c (camel_header_msgid_generate): use new
hostname interfaces.
* providers/smtp/camel-smtp-transport.c (connect_to_server): fixed
to use new addrinfo apis.
* providers/pop3/camel-pop3-store.c (connect_to_server): fixed to
use new addrinfo apis.
* camel-tcp-stream-ssl.c (stream_connect): try all addresses
supplied.
* camel-tcp-stream.c (camel_tcp_stream_get_remote_address)
(camel_tcp_stream_get_local_address): return a sockaddr now, and
also the address length. Fixed all implementations and callers.
(camel_tcp_stream_connect): use addrinfo rather than hostent for
host AND port info. Fixed all implementations and callers.
2004-09-22 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (camel_folder_summary_decode_token):
handle a zero-length token read rather than failing.
2004-09-21 Not Zed <NotZed@Ximian.com>
** See bug #66199.
* camel-http-stream.c (stream_read): handle relative url's in
redirect.
(camel_http_stream_set_proxy): generate the basic auth token for
basic proxy auth if we have a user and password.
* camel-http-stream.c: turn off debug.
2004-09-08 Hannah & Fazlu <hannah_lins@yahoo.co.in>
Fixes Bug#61088
* camel/camel-smime-context.c: Change of strings.
2004-09-15 Not Zed <NotZed@Ximian.com>
** See bug #0xffff.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): only emit folder_created if we
actually created it.
2004-09-03 Not Zed <NotZed@Ximian.com>
* camel-tcp-stream-ssl.c (stream_connect): make ssl connection
async and cancellable, and minor api update to async connection.
2004-08-27 Not Zed <NotZed@Ximian.com>
** See bug #64023.
* providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
forget the password if it was wrong.
2004-08-26 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listner.c
(add_calendar_tasks_sources) : change the "CheckList" to "Tasks"
as there is another foder called chekclist in groupwise not
related to tasks Fixes #64092
2004-08-25 Frederic Crozat <fcrozat@mandrakesoft.com>
* camel-folder.c (folder_getv): Init one variable (remove warning)
and don't redefine it.
2004-08-23 Not Zed <NotZed@Ximian.com>
** See bug #63189.
* providers/imap/camel-imap-store.c (get_subscribed_folders): only
LSUB folders we're interested in, and check full name of each path
element.
(imap_is_subfolder): helper for above.
2004-08-23 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-store.c (get_folders): Check for an
exception from get_folders_online() here so that we don't send
commands to an IMAP server after a disconnect for example. See bug
#63504 for an example.
2004-08-23 Jeffrey Stedfast <fejj@novell.com>
* camel-tcp-stream-openssl.c (open_ssl_connection): Call
SSL_CTX_set_default_verify_paths() to initialise the certificate
database paths. Thanks to Anton Altaparmakov for this fix.
2004-08-21 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c (account_changed) :
if any of the settings required for soap interaction changes
try connecting to server and resetup the ESources
* providers/groupwise/camel-groupwise-provider.c ": don't
check soap ssl setting by default to be in consistent with
IMAP
2004-08-16 Not Zed <NotZed@Ximian.com>
* providers/groupwise/camel-groupwise-provider.c
(camel_provider_module_init): pass an exception handle to
camel_provider_get.
2004-08-13 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
Use g_ptr_array_sized_new() rather than using set_size() after
creating a GPtrArray so that array->len starts out at 0.
(imap4_summary_fetch_flags): Same.
2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c (account_changed):
remove the cal/taksks sources when account is disbaled. Also do
not try to to create sources when a disabled account is changed to
Novell Groupwise
(camel_gw_listener_construct): do not add the disbaled accounts
to exitsting groupwise accounts list
2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c: update ssl
setting label and title of the soap settings section. Fixes #62747
2004-08-13 Rodney Dawes <dobey@novell.com>
* camel-sasl-gssapi.c: Handle et/comm_err.h as well as the
normal comm_err.h
2004-08-11 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #62771
* camel-mime-utils.c (append_quoted_pair): New function to append
a string of text that may contain quoted-pairs.
(header_decode_text): Now takes a ctext argument specifying
whether or not to expect comments and to handle them.
(camel_header_decode_string): Pass FALSE as ctext argument.
(camel_header_format_ctext): New function to format text|comment
header field bodies.
2004-08-10 Not Zed <NotZed@Ximian.com>
* providers/groupwise/camel-gw-listener.c
(get_addressbook_names_from_server): fix for e_passwords api
change, and handle reprompting as well.
2004-08-06 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (untagged_fetch_all): Call
camel_operation_progress().
(imap4_summary_fetch_all): Setup info we need for progress
reporting.
(imap4_summary_fetch_flags): Same.
2004-08-04 Rodney Dawes <dobey@novell.com>
* camel-charset-map.c: #include <gal/util/e-iconv.h>
2004-08-03 Jeffrey Stedfast <fejj@novell.com>
* camel-url-scanner.c (camel_url_scanner_scan): In the case of
start() or end() failing, loop starting with the first character
immediately following the failed match position. Fixes bug #62136.
2004-08-03 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_construct): Pass a
reconnect func.
* providers/imap4/camel-imap4-engine.c
(camel_imap4_engine_iterate): Reconnect if needed.
(camel_imap4_engine_new): Now takes a reconnect func.
2004-07-30 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-engine.c
(camel_imap4_engine_capability): This needs to prequeue the
CAPABILITY command rather than queue it normally for the case of
reconnecting.
(camel_imap4_engine_namespace): Same.
2004-07-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (camel_header_encode_string): Similar fix as
below in a later if-statement. Thanks to Suresh for spotting this
one.
2004-07-28 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-utils.c (camel_header_encode_string): Fixed an ABR
that may have been responsible for bug #62029.
2004-07-29 Sivaiah Nallagatla <snallagatla@novell.com>
* proivders/groupwise/camel-groupwise-provider.c: Add an entry to
specify POA address and a check box to say whehter ssl has to be
used for SOAP or not
(groupwise_auto_detect_cb): new function to automatically fill POA
address with host specified in receiving mail page
(camel_provider_module_init): use the new auto_detect funcntion
* providers/groupwise/camel-gw-listener.c (modify_esource)
(account_changed, add_calendar_tasks_sources)
(remove_calendar_tasks_sources, get_addressbook_names_from_server)
(add_addressbook_sources, modify_addressbook_sources)
(remove_addressbook_sources): while forming the uri, use the value
from new poa_address setting instead of url->host. Also use ssl
setting from the new check box provider instaed of imap one
(get_addressbook_names_from_server): display an error to user when
connection cpuld not be established with server during account
setup
2004-07-26 Jeffrey Stedfast <fejj@novell.com>
* camel-charset-map.c (camel_charset_best_mask): Changed the logic
slightly to only match certain charsets if the locale matches
(Macedonians don't want to use koi8-r for example).
2004-07-27 Not Zed <NotZed@Ximian.com>
** See bug #61841.
* providers/groupwise/camel-groupwise-provider.c: added junk settings.
2004-07-27 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-engine.c
(camel_imap4_engine_prequeue): Changed to be the same prototype as
engine_queue().
(engine_prequeue_folder_select): Updated.
* providers/imap4/camel-imap4-store.c (connect_to_server): Use
engine_prequeue() for STARTTLS in case we are reconnecting and
already have a command queue.
(imap4_try_authenticate): Use prequeue() here too.
(imap4_reconnect): Moved all the connect logic in here.
(imap4_connect): just lock and call reconnect().
2004-07-27 Sivaiah Nallagatla <snallagatla@novell.com>
Fixes #61454
* providers/groupwise/camel-groupwise-provider.c
(camel_provider_module_init): do not set transport object for
groupwise provider. We want user to use SMTP itself instead of
"Novell Groupwise"
2004-07-26 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (connect_to_server): Don't
instantiate an engine here. Instead, take an engine as an argument
(it has a service pointer) and connect using that. Also, if
connect fails, don't unref the engine.
(connect_to_server_wrapper): Now also takes an engine argument
rather than a service argument.
(imap4_try_authenticate): Now also takes an engine argument.
(imap4_connect): Pass the engine to connect/auth functions rather
than the store.
(imap4_query_auth_types): Updated.
(imap4_disconnect): Don't unref the engine here.
(camel_imap4_store_init): Create the engine here.
(imap4_get_folder_info): Can't check engine == NULL to know to
connect (that was a broken check anyway).
* providers/imap4/camel-imap4-engine.c (camel_imap4_engine_new):
Now simply takes a service argument rather than a session and url.
(camel_imap4_engine_next_token): Set the state to DISCONNECTED.
(camel_imap4_engine_eat_line): Same.
(camel_imap4_engine_line): Same.
(camel_imap4_engine_literal): Same.
2004-07-22 Not Zed <NotZed@Ximian.com>
** See bug #61761.
* providers/pop3/camel-pop3-engine.c (camel_pop3_engine_iterate):
if we get an io error, move every current/active and queued
command to the done queue and mark as failed.
2004-07-19 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-store.c (get_subscribed_folders): Free
result after parsing it. Fixes a leak.
2004-07-19 Not Zed <NotZed@Ximian.com>
* camel-mime-filter-canon.c (filter): only copy 5 chars after the
F if we actually have "From ", otherwise we might have F.{,4}\n
instead and break eol canonicalisation. For #53355.
2004-07-16 Not Zed <NotZed@Ximian.com>
* camel-gpg-context.c: Added some debug stuff.
2004-07-15 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-folder.c (imap_transfer_online): Don't
grab the connect_lock before calling refresh_info so that we avoid
the deadlock in bug #61551.
2004-07-14 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #61538
* camel-process.c (camel_process_fork): Same.
* camel-filter-driver.c (pipe_to_system): Fixed strings
2004-07-12 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c (add_esource)
(modify_esource, add_addressbook_source)
(modify_addressbook_sources): pass "use_ssl" value to these
functions and set it on e-source
(add_calendar_tasks_source): read the "use_ssl" param from camel
url and pass it to add_esource) calls
(get_addressbook_names_from_server): use "https" or http depending
upon whther ssl is enabled or not
(account_changed): compare urls from account instead of uris
formed to know wheter somehting in the account changed
2004-07-09 Not Zed <NotZed@Ximian.com>
** This is no guarantee of security, but its just a helper to
prevent old memory accidentally being included/used elsewhere.
* camel-smime-context.c (sm_decrypt): mark the output stream
'secure'.
* camel-gpg-context.c (gpg_decrypt): set the output stream to
secured, so we automagically blank it out on finalise.
* camel-stream-mem.c (camel_stream_mem_set_secure): set the
memory-stream 'secured', all we do at the moment is blank out the
buffer on finalise.
(camel_stream_mem_set_byte_array, camel_stream_mem_finalize):
clear memory if owner and secured. kill dead comment.
(clear_mem): utilitiy to set memory to 0xABADF00D
2004-07-08 Not Zed <NotZed@Ximian.com>
** See bug #61186.
* camel-cipher-context.c (camel_cipher_sign):
(camel_cipher_verify, camel_cipher_encrypt, camel_cipher_decrypt):
Add preliminary progress reporting.
2004-07-07 Chris Toshok <toshok@ximian.com>
* providers/groupwise/Makefile.am (INCLUDES): use
CAMEL_GROUPWISE_CFLAGS.
(libcamelgroupwise_la_LIBADD): use CAMEL_GROUPWISE_LIBS.
2004-09-07 Not Zed <NotZed@Ximian.com>
* providers/groupwise/camel-groupwise-provider.c: put the options
in their own section.
2004-09-06 Not Zed <NotZed@Ximian.com>
* camel-search-private.c (utf8_get): remove this, and make the
code use camel_utf8_getc instead. Quite a bit faster esp if
optimising with inlines.
* camel-object.c (check_magic_fail): change the check_magic code
to mostly run from a macro, its worth it.
2004-09-04 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mbox-summary.c (message_info_new): fix
cast issue.
* providers/pop3/camel-pop3-engine.c (get_capabilities): remove
some unused variables.
* camel-object.h: remove camel-i18n.h, fixed all c files where
appropriate.
2004-08-25 Not Zed <NotZed@Ximian.com>
* camel-list-utils.[ch]: Copied e_dlist* stuff to here, part of
removing e-util dependency on camel.
2004-08-05 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-provider.c: same.
* providers/imap/camel-imap-provider.c: put the extra stuff into a
'general' section.
* providers/imapp/camel-imapp-provider.c: same.
* providers/pop3/camel-pop3-provider.c: make sure each section
start has a name.
2004-08-03 Not Zed <NotZed@Ximian.com>
* camel-url.c (camel_url_set_param): when clearing a param, use
remove_data instead of set_data_full. craptatious glib at it
again.
* providers/nntp/camel-nntp-provider.c: turn on ssl option.
2004-07-07 Not Zed <NotZed@Ximian.com>
* camel-folder.c: removed filter-rule.h ugh.
2004-07-02 Christian Neumair <chris@gnome-de.org>
* camel-smime-context.c: s/Can't/Cannot/.
2004-06-30 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-search.c (imap4_body_contains): Set
the size of the ptrarray to prevent potentially realloc'ing
several times.
2004-06-29 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-command.c
(camel_imap4_command_newv): Aded a new %formatter 'V' which takes
a string vector (needed for SEARCH).
* providers/imap4/camel-imap4-search.[c,h]: New source files
implementing search functionality.
* providers/imap4/camel-imap4-folder.c (imap4_sync_flag): Use the
new public version of imap4_get_uid_set().
(imap4_transfer_messages_to): Same.
(camel_imap4_folder_new): Create a search context.
(camel_imap4_folder_finalize): Unref the search context.
(camel_imap4_folder_class_init): Override the search methods.
(imap4_search_by_expression): New.
(imap4_search_by_uids): New.
(imap4_search_free): New.
* providers/imap4/camel-imap4-utils.c (camel_imap4_get_uid_set):
Moved here from camel-imap4-folder.c
2004-06-29 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (vee_rename_folder): add any parents of the
new name before we actually do the rename so the rename has
somewhere to go to. #60775.
2004-06-28 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-folder.c (maildir_folder_getv):
override CAMEL_FOLDER_NAME arg so we can translate "." into
"Inbox".
* providers/local/camel-maildir-store.c (camel_folder_info_new):
take url argument directly, fixes a memleak.
(camel_folder_info_new): make the toplevel "." into "Inbox"
always.
(maildir_rename_folder): dont let users rename inbox.
2004-06-27 Jeffrey Stedfast <fejj@novell.com>
* camel-url-scanner.c (camel_url_web_end): More fixes.
2004-06-25 Jeffrey Stedfast <fejj@novell.com>
* camel-url-scanner.c (camel_url_web_end): Fixed to handle :pass
in proto://user:pass@host. Fixes bug #60104.
2004-06-24 Jeffrey Stedfast <fejj@novell.com>
* providers/pop3/camel-pop3-store.c (connect_to_server): Error out
and set an exception if camel_pop3_engine_new() returns NULL
(which it can do now).
* providers/pop3/camel-pop3-engine.c (get_capabilities): No longer
reads the greeting.
(camel_pop3_engine_new): Reads the greeting itself and returns
NULL if an error occurs (like stupid braindamaged piece of shit
POP servers that spew debug prinfs).
* providers/local/camel-spool-folder.c (spool_lock): If we fail to
lock the folder, close the lockfd and reset it to -1. Fixes bug
#54680.
2004-06-23 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
First LIST/LSUB the toplevel folder, and then LIST/LSUB the
subfolders (it needs to be 2 commands to work properly).
(imap4_delete_folder): CLOSE the folder we are about to DELETE if
it is currently SELECTED.
* providers/imap/camel-imap-provider.c (imap_url_equal): Same.
* providers/imap4/camel-imap4-provider.c (imap4_url_equal): Check
the protocol.
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
Hide password, etc info in the fi->uri's.
(imap4_create_folder): Don't bother to use
imap4_get_folder_info(), we can construct the fi ourselves.
(imap4_delete_folder): Emit the folder_deleted signal and
construct an fi ourselves.
(imap4_subscribe_folder): Same.
(imap4_unsubscribe_folder): Same.
* providers/imap4/camel-imap4-provider.c: Specify that the
fragment is the path.
2004-06-21 Christian Kellner <gicmo@xatom.net>
* camel-service.c (service_setv): Really set the path if tag is
CAMEL_SERVICE_PATH.
2004-06-21 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-filter-enriched.c (enriched_to_html): Fixed a number
of issues described in bug #49497.
2004-06-18 Jeffrey Stedfast <fejj@novell.com>
* camel.c (camel_shutdown): Call camel_mime_utils_shutdown() and
camel_operation_shutdown().
* camel-operation.c (camel_operation_shutdown): New function.
* camel-mime-utils.c (camel_mime_utils_shutdown): New function to
clean up the compiled regexes.
* camel-stream-buffer.c (set_vbuf): Need to re-init sbf->ptr and
sbf->end too, or we'll be sorrryy!
2004-06-18 Not Zed <NotZed@Ximian.com>
* camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for
static inititialisation.
2004-06-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (uidset_init): init
tail->last to (guint32) -1, so that index = tail->last + 1 will
start at 0 at the top of uidset_add() :-)
2004-06-17 Rodney Dawes <dobey@novell.com>
* camel-mime-filter-tohtml.c: Add support for the webcal, callto, and
h323 URIs when we get them in mails
2004-06-17 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-filter-tohtml.c: Don't foolishly unmunge From_
lines. First off, we don't even know if our input stream came from
an mbox file and secondly, the ">From " may have been intentional
by the author. We Just Don't Know (tm).
2004-06-15 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
Make sure we have elements in the array, if not then we're done
(return a NULL fi).
2004-06-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (imap4_get_uid_set): Fixed
to work properly. It was getting ranges wrong before sometimes
which was making me lose mail! Ugh.
Thanks to Christian Kellner for pointing out these bugs (and
submitting the original patch for service_setv)
* camel-service.c (service_setv): Don't use (tag &
CAMEL_ARG_IGNORE) to determine if we should ignore this
tag. CAMEL_ARG_IGNORE is not a bit flag.
* providers/imap/camel-imap-store.c (imap_setv): Don't use (tag &
CAMEL_ARG_IGNORE) to determine if we should ignore this
tag. CAMEL_ARG_IGNORE is not a bit flag.
2004-06-16 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (imap4_refresh_info): Only
force a re-update of all FLAGS if this folder wasn't in the
SELECTED state. Otherwise, simply send a NOOP.
* providers/imap4/camel-imap4-summary.c: Added a 'first' member to
the imap_fetch_all_t struct so we can use that as a base offset in
our GPtrArray, allowing us to limit resource consumption which
could otherwise get quite large. Also added a ChangeInfo member
that was needed for changes to untagged_fetch_all().
(imap4_fetch_all_add): Use fetch->first as a base offset and
change int i to guint32 i. Also updated to sue the fetch->changes.
(imap4_fetch_all_update): Same.
(untagged_fetch_all): Same - this is where it is really valuable,
since we can avoid adding elements to the GPtrArray that we won't
even use. Also needed to change code a big in case index <
fetch->first (which could happen if a server notified us of a
FLAGS change for a message we didn't request info about).
(imap4_fetch_all_free): Free the ChangeInfo.
(imap4_summary_fetch_all): Init fetch->changes and fetch->first.
(imap4_summary_fetch_flags): Same.
(camel_imap4_summary_flush_updates): Only request envelope info if
first <= summary->exists. Avoids needless queries.
(info_uid_sort): #if 0'd
(camel_imap4_summary_flush_updates): No need to sort the summary -
this should never have been needed. I can't remember why I did
this...
2004-06-15 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_verify): Use
camel_multipart_signed_get_content_stream() rather than getting
the first part and canonicalising it ourselves. Fixes bug #60159.
* providers/imap4/camel-imap4-stream.c (camel_imap4_stream_init):
Init have_unget to FALSE. Don't set unget to NULL, it's no longer
a pointer.
(camel_imap4_stream_finalize): No need to g_free() unget anymore.
(camel_imap4_stream_next_token): Check have_unget rather than
unget != NULL. Set have_unget to FALSE if we get an unget'd token.
(camel_imap4_stream_unget_token): Don't malloc space for an unget
token. The unget token is no longer a pointer.
2004-06-14 Not Zed <NotZed@Ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_data): use
g_ascii_strcasecmp.
(smtp_connect): do not re-helo after we've authenticated. This
was a misreading of the spec. We must only re-helo after a
transport layer negotiation.
2004-06-12 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-store.c (imap4_noop): Flush summary
updates for the currently selected folder.
(imap4_noop): Sync the currently selected folder before sending
NOOP.
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_set_exists): Don't bother with
exists_changed. We don't need it afterall.
(camel_imap4_summary_flush_updates): Instead of updating flags if
update_flags or exists_changed is set, only bother if update_flags
is set or if exists is smaller than the summary count (since
updating flags is also sueful for determining which messages have
been removed).
2004-06-11 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (imap4_refresh_info): Force
updating of the emsage flags (normally this only happens if
something has changed that warrants rescanning them).
2004-06-11 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (untagged_fetch): Handle
getting FLAGS even though we didn't request it (server can send us
FLAGS info if another client changed them recently, for
example). Also fixed to handle the fact that not every bit of info
has to be in a single untagged FETCH response - it may come in
several untagged responses.
* providers/imap4/camel-imap4-summary.c (envelope_decode_address):
Decode the email address name token.
(envelope_decode_nstring): rfc2047 decode strings if requested.
(decode_envelope): Request that the subject string be rfc2047
decoded.
2004-06-11 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-store.c (get_folder_info): if we
scan from "" or top == NULL, then we really want to scan from "."
instead.
* camel-url.c (camel_url_new_with_base): don't check the for a
character after the # before extracting the fragment. An empty
fragment is still allowed and # should never be added to the path.
See Rfc1808 2.4.1.
2004-06-11 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_flush_updates): Don't bother scanning summary
info if EXISTS was 0.
(camel_imap4_summary_set_uidvalidity): Emit the folder_changed
event after clearing the summary.
(camel_imap4_summary_expunge): Emit the folder_changed event after
removing the message from the summary.
(camel_imap4_summary_set_exists): Only set exists_changed if the
new and old exists values are different.
(imap4_fetch_all_add): Emit a folder_changed signal if any new
info's were added.
(imap4_fetch_all_update): Emit a folder_changed event if any uids
were removed or otherwise updated.
(camel_imap4_summary_expunge): Use seqid-1 to determine the actual
summary index.
(camel_imap4_summary_flush_updates): Added some logic to
distinguish between EXISTS value changing because it changed and
because messages got expunged.
* providers/imap4/camel-imap4-folder.c (imap4_sync): Flush updates
after an EXPUNGE and don't unset expunge if we didn't delete
anything (the logic was wrong anyway).
(imap4_refresh_info): Implemented.
2004-06-10 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-engine.c
(camel_imap4_engine_handle_untagged_1): Don't always try and parse
a RESP-CODE in the BYE case as the RESP-CODE is optional.
2004-06-10 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
If flags does not include FOLDER_INFO_FAST, get the total/unread
counts for the folder-info.
* providers/imap4/camel-imap4-engine.c (engine_parse_status):
Removed.
(camel_imap4_engine_handle_untagged_1): Don't handle untagged
STATUS responses anymore. Let the STATUS requestor handle them
instead.
* providers/imap4/camel-imap4-utils.c
(camel_imap4_untagged_status): New function to parse untagged
status events.
2004-06-10 Not Zed <NotZed@Ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_message): add
some :filter debug.
(open_folder): only ignore the get_folder exception if we have a
default folder, otherwise don't. See #59727.
* providers/nntp/camel-nntp-store.c (camel_nntp_command): move the
stream based checking into the loop, after we connect. Fixes a
crash.
2004-06-09 Jeffrey Stedfast <fejj@novell.com>
* camel-gpg-context.c (gpg_verify): Fixed a case where it was
possible to double-free the gpg context.
(gpg_verify): If we don't have a public key, then the signature is
just BAD always.
2004-06-09 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_verify): Don't assign trust to be
UNKNOWN if gpg sent us a NODATA status.
2004-06-07 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Load the entire summary, not just the summary header. This way
when the user opens the folder, we don't do a complete re-sync
with the server unnecessarily.
* providers/imap4/camel-imap4-summary.c (untagged_fetch_all): New
info's always have a uid of "", so don't checkagainst NULL.
2004-06-06 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-store.c (imap4_rename_folder):
Implemented, mostly. Still need to update state on the renamed
folder object if instantiated and rename the on-disk cache
directory.
* providers/imap4/camel-imap4-folder.c
(camel_imap4_folder_finalize): Free the cachedir.
(camel_imap4_folder_new): Init the cachedir and load the saved
summary before updating it against the server summary.
* providers/imap4/camel-imap4-store.c
(camel_imap4_store_finalize): Free the storage_path.
(imap4_construct): Init the storage_path.
2004-06-04 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Initialise the folder->summary and force an update of the message
info cache by selecting the folder and flushing the updates to the
imap4 summary object.
* providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
Lock the connect_lock before we check if the engine is NULL and
after we connect (assuming we need to), initialise the engine
pointer again.
(imap4_get_folder_info): Doh. Need to escape the "'s in the LIST
command string.
(imap4_get_folder): Same.
* camel-stream-buffer.c (stream_flush): Fixed to work
properly. After we've flushed the buffer, we want to set sbf->ptr
to sbf->buf, we don't want to do sbf->ptr += written, that'll just
corrupt our next write.
* providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
Duh. If the user doesn't care about SSL/TLS - use USE_SSL_NEVER,
not USE_SSL_ALWAYS.
* camel-tcp-stream-ssl.c (stream_flush): Always just return 0,
don't try to PR_Sync() - fsync on a socket causes an error.
* providers/imap4/camel-imap4-command.c
(camel_imap4_command_step): Set exceptions when write/flush fail.
* providers/imap4/camel-imap4-engine.c
(camel_imap4_engine_take_stream): Set an exception in the case
where we get an unexpected greeting from the server.
* providers/imap4/camel-imap4-store.c (imap4_create_folder):
store->dir_sep no longer exists, so query the engine for the
directory separator for the parent_folder.
(imap4_build_folder_info): CamelFolderInfo no longer has a path
component.
2004-06-03 Not Zed <NotZed@Ximian.com>
* providers/nntp/camel-nntp-store.c (camel_nntp_command):
disconnect if we get an io error or user cancellation.
(nntp_disconnect_online): reset current folder.
(connect_to_server): and here too just to make sure.
* providers/nntp/camel-nntp-folder.c (nntp_folder_sync_online):
only save the summary, don't update from server, thats what
refresh info does.
(nntp_folder_download_message): fix exception handling.
(nntp_folder_cache_message): same.
(nntp_folder_get_message): ditto, plus major cleanup.
(nntp_folder_download_message): take combined uid so it can cache
and lookup properly. duh.
* providers/nntp/camel-nntp-store.c
(nntp_store_get_subscribed_folder_info): if not fast, then open
the folder, and update it. Yeah i've given up trying to worry
about performance vs usability.
* providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check):
update the storesummary if we update the folder summary. Hmm,
isn't duplicated data meant to be a bad thing? :P
* providers/nntp/camel-nntp-store.c (camel_nntp_store_set_folder):
removed, now handled by nntp_command.
(nntp_connected): removed, now handled by nntp_command.
* camel-string-utils.c (camel_tolower): added ascii to-lower
function.
(camel_toupper): and upper, for completeness.
* camel-store-summary.c (CAMEL_STORE_SUMMARY_VERSION): bumped file
version by 1. This is a mess, version 1 files treated the
bitfield 'flags' with bit number values not bits. Messy.
* providers/nntp/camel-nntp-store-summary.c (store_info_save):
write last/first count.
(CAMEL_NNTP_STORE_SUMMARY_VERSION): bump version to 1.
(store_info_load): if we're loading >= version 1, then load
last/first counts.
* providers/nntp/camel-nntp-store.c
(nntp_store_get_folder_info_all): pass the whole line to
store_info_from_line, dont strip last/first info.
(nntp_store_info_update): renamed from info_new_from_line. only
add if not present. handle updates, try and handle unread counts
and readonly status.
2004-06-02 Not Zed <NotZed@Ximian.com>
* providers/nntp/camel-nntp-store.c: setup xover once we've
started.
* providers/nntp/camel-nntp-summary.c: (xover_setup): moved to
nntp store.
* providers/nntp/camel-nntp-folder.c (folder_check)
(folder_check_free, camel_nntp_folder_new): remove async summary
stuff.
* providers/nntp/camel-nntp-store.c (camel_nntp_command): take
exception argument again, and folder argument. do retry logic and
auth logic differently.
(camel_nntp_raw_command): raw command interface, dont try
reconnect or anything fancy. pass i/o errors straight out, etc.
(camel_nntp_try_authenticate): change to return return codes &
take exception.
* providers/nntp/camel-nntp-summary.c (camel_nntp_summary_new):
just take path argument.
(camel_nntp_summary_check): take a store, and a folder name.
(add_range_head, add_range_xover): remove the time based update
events, they never had any effect anyway. Take store argument.
(xover_setup): take store argument.
* camel-folder-search.c (search_match_threads): remove debug.
2004-06-01 Not Zed <NotZed@Ximian.com>
** A few fixes for better rfc compliance, and cleaner code.
* camel-mime-utils.c (header_encode_param): a bunch of logic
cleanups with new util functions.
(header_decode_init): setup a new type ATTR_CHAR, for
attribute-char.
* tests/misc/test2.c (main): new test for rfc2184 stuff.
* camel-mime-utils.c (header_convert): helper to convert between
charsets.
(rfc2184_decode): fix a bunch of logic problems and use the helper
above to simplify code.
(decode_param_token): removed, not needed.
(header_decode_rfc2184_param): removed, not needed.
(header_decode_param): removed, not needed. ugh.
(header_decode_param_list): completely rewritten, hence lack of
need of above.
2004-05-31 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-filter-gzip.c (camel_mime_filter_gzip_finalize):
Don't leak the zlib stream internals.
2004-05-27 Jeffrey Stedfast <fejj@novell.com>
Fixes bug #59191.
* providers/imap/camel-imap-store.c (camel_imap_store_readline):
Don't override the exception with g_strerror() since presumably
camel_imap_store_is_connected() will have set that for us (and
will have a much more accurate exception anyway).
2004-05-26 Dan Winship <danw@novell.com>
* camel-store.c (camel_store_get_trash): If the store is not a
vtrash store, just invoke the virtual method. (In particular,
don't assume that the trash folder's name is CAMEL_VTRASH_NAME).
If it is a vtrash store, just let camel_store_get_folder() do the
work since it's duplicated there anyway. #57114
(camel_store_get_junk): Likewise.
2004-05-25 Sivaiah nallagatla <snallagatla@novell.com>
* providers/groupwise/came;-gw-listener.c (add_addressbook_sources):
set port property on e-source
2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c (lookup_account_info):
return NULL when there is no existing gw account with same uid
2004-05-25 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_folder_info_build_path): removed.
* camel-store.h (CamelFolderInfo): removed 'path', fixed all
callers.
(struct _CamelStore): removed 'dir_sep' fixed all uses.
2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c (add_addressbook_sources)
(add_calendar_tasks_sources) : remove /soap part from uri.
make port as a e-source property instead of putting it in uri
to amek the uris same as that of mail for password sharing
2004-05-24 Not Zed <NotZed@Ximian.com>
* camel-mime-utils.c (camel_header_newsgroups_decode):
fix/rearrange logic. It was using the wrong working pointer.
2004-05-24 Sivaiah Nallagatla <snallagatla@novell.com>
* camel-provider.h: Added CAMEL_PROVIDER_CONF_HIDDEN to
conf item type enum. This is used by groupwise provider
* providers/groupwise/camel-groupwise-provider.c: Added
CAMEL_PROVIDER_CONF_HIDDEN to groupwise_conf_entries to pass the
auth-domain value
* providers/imap/camel-imap-store.c (imap_auth_loop): Read the
auth-domain property from imap url and pass it camel sesstion apis
2004-05-22 Not Zed <NotZed@Ximian.com>
* camel-store.c: oops, forgot folder_created. Removed locking, the
object bag serialises stuff for us.
(camel_store_get_junk): same.
** Another unread count bug, #58814.
* camel-store.c (camel_store_class_init): added a folder_opened
event.
(camel_store_get_folder): emit a folder_opened event whenever we
[re] open the physical folder.
2004-05-21 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-store.c (connect_to_server): Added a
workaround for broken IMAP. Hopefully by forcing only the IMAP4
command subset, we can work around their suckage.
2004-05-21 Not Zed <NotZed@Ximian.com>
* camel-session.c (camel_session_get_password): added a 'domain'
argument, and rearragned arguments to be prettier and more
consistent. Fixed all callers.
(camel_session_forget_password): added a domain argument. Fixed
all callers.
** See #58376.
* camel-folder.c (set_message_flags): if system flags change, then
don't trigger a folder changed event.
* camel-folder-summary.h (CAMEL_MESSAGE_SYSTEM_MASK): added this
to indicate which flags are internal/apps not interested in.
* camel-folder.c (filter_free): rearrange and use some helpers.
(folder_changed): if we're frozen, dont go firing off threads to
do any processing on each change, wait until we're called
unfrozen. Slight code rearragnement.
(filter_filter): add progress to junk learn/unlearn, and separate
them.
2004-05-19 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain
ASCII/non-ASCII combination is used in mail subject
* camel-mime-utils.c (camel_header_encode_string) Use
camel_mime_is_lwsp for determining word separators,
according to rfc822 (which's also same for rfc2047).
g_unichar_isspace as word separator is illegal.
2004-05-20 Jeffrey Stedfast <fejj@novell.com>
Fixes bug #42295 and the infinite loop part of bug #58766 (these 2
bugs are almost identical, except the server responses are broken
in different ways).
* providers/imap/camel-imap-folder.c (imap_update_summary): Remove
the kludge to re-SELECT the folder to force a re-FETCH of
message-info's. This 1) doesn't do what it was meant to do and 2)
has a tendency to cause infinite loops with broken servers such as
Courier-IMAP.
(imap_update_summary): Rework the loop that adds messages to the
summary such that if we encounetr an error, we break out and set
an exception (we can keep the messages up to the point of failure,
but none after that because otherwise our uid-to-seqid mapping
would be inconsistant with that of the server and could
potentially cause data loss).
2004-05-20 Not Zed <NotZed@Ximian.com>
* camel-exception.c (camel_exception_setv): re-arrange the code so
exception debug will print the expanded description.
(camel_exception_set): print exception debug.
* providers/pop3/camel-pop3-folder.c (pop3_get_message): same.
* providers/local/camel-mh-folder.c (mh_get_message) *
providers/local/camel-mbox-folder.c (mbox_get_message): *
providers/local/camel-maildir-folder.c (maildir_get_message):
Don't use INVALID_UID for errors which are more system related.
And sync up all the error messages.
* providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
oops, poke the right uid to get the article number.
(nntp_folder_cache_message): & here too. Somehow fixes #58700,
but i don't know why.
2004-05-19 Not Zed <NotZed@Ximian.com>
* camel-folder.c (transfer_message_to): copy the messageinfo
rather than reference the source folder's one, we poke its flags
variable if the message is deleted. And dont re-delete the
message if its already deleted.
* providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
use the article number instead of the messageid. Some servers are
just broken.
(nntp_folder_cache_message): same. See #58655.
* camel-smime-context.c (sm_verify_cmsg): import the certs as
UsageEmailRecipient as well as signer, and also save the certs
always.
** See #58641.
* camel-vee-folder.c (vee_sync): don't rebuild auto-type vfolders.
they should always be consistent and it saves a lot of unecessary
work.
* camel-store.c (store_sync): we don't want to sync any vfolders
as part of the store sync call. its used for a different purpose
in vFolders. oh well its a hack.
2004-05-18 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-store.c (fill_fi): do the same
load of mailbox if we're in slow mode as we did for maildir.
#58294.
* camel-disco-folder.c (disco_expunge_uids): check for NULL
implementation before calling it.
(disco_sync): similar. Fixes crash #58278.
2004-05-17 Jeffrey Stedfast <fejj@novell.com>
* camel-folder-search.c (search_match_threads): Fixed a string type-o.
* camel-smime-context.c (sm_verify_cmsg): Fixed some spelling mistakes.
* camel-gpg-context.c (gpg_decrypt): If the encrypted block was
also signed, set the signature verification status on the Validity
structure as well.
2004-05-17 Not Zed <NotZed@Ximian.com>
** Bug #56050.
* providers/imap/camel-imap-store.c (imap_get_trash)
(imap_get_junk): similar to below.
* providers/local/camel-local-store.c (local_get_trash)
(local_get_junk): set state file on trash/junk to something we know
about.
2004-05-17 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mh-store.c (fill_fi): if we have no folder
in-memory, load it if we're not doing it fast to get really up to
date unread counts. #57616.
2004-05-14 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_create_folder): don't allow creation
of Trash or Junk folders.
(camel_store_rename_folder): similar for rename. #57250.
2004-05-13 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (summary_build_content_info): set secure
flag if we have a known security type.
(flag_names[]): Added secure bit.
(summary_build_content_info_message): set secure flag as
appropriate.
(summary_build_content_info_message): dont set attachments for
simple types (non text), only base it on multipart/* stuff.
(summary_build_content_info): same.
* camel-folder-summary.h: added SECURE flag. Indicates signed or
encrypted content.
2004-05-12 Jeffrey Stedfast <fejj@novell.com>
* providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
Ignore PERMANENTFLAGS if it gives us an empty set. Works around
broken IMAP servers like the one in bug #58355.
2004-05-12 Not Zed <NotZed@Ximian.com>
* camel-folder-search.c (search_threads): changed to match_threads.
(camel_folder_search_search): remove thread matching stuff from here.
2004-05-11 Jeffrey Stedfast <fejj@novell.com>
* camel-smime-context.c (sm_signing_cmsmessage): Fixed a
type-o. Fixes bug #58348.
2004-05-10 Jeffrey Stedfast <fejj@novell.com>
* camel-mime-filter-gzip.[c,h]: New class for zipping/unzipping
gzip streams.
* camel-mime-filter-yenc.[c,h]: New class for encoding/decoding
the crack known as YEncode.
2004-05-07 Not Zed <NotZed@Ximian.com>
* camel-folder-thread.c (thread_summary): properly set the parent
nodes for the re-parented phantom-node children. Wasn't that fun
to debug!
* camel-folder-thread.h: make order and re bitfields, saves 4
bytes/node.
2004-05-06 Not Zed <NotZed@Ximian.com>
* camel-digest-folder.c (digest_search_by_expression)
(digest_search_by_uids):
* providers/nntp/camel-nntp-folder.c (nntp_folder_search_by_expression)
(nntp_folder_search_by_uids):
* providers/imap/camel-imap-folder.c (imap_search_by_expression)
(imap_search_by_uids):
* providers/local/camel-local-folder.c (local_search_by_expression)
(local_search_by_uids): use camel_folder_search_search & some minor cleanups.
* camel-folder-search.c (search_threads): keep track of the match
threads option for this search.
(camel_folder_search_match_expression): Removed, not used anymore.
(camel_folder_search_search): new api entry point for searching, a
bit easier to use and needed for thread matching.
* camel-folder-search.c (camel_folder_search_search): new search
api entry point, take a full summary and optionally a subset of
uids to match against.
(search_match_all): use the uids' passed in to only search a
subset of uid's.
* providers/imap/camel-imap-store.c (connect_to_server): set
nodelay and keepalive on the socket.
* camel-file-utils.c (camel_read): put a timeout on the select.
Logic shuffle to match the ssl stuff.
(camel_write): Similar.
* camel-tcp-stream-ssl.c (stream_connect): remove timeout, use
CONNECT_TIMEOUT directly.
(stream_read): put a timeout on the poll. IO_TIMEOUT. And a
little logic shuffle.
(stream_write): similar.
(CONNECT_TIMEOUT): make this 4 minutes === tcp-raw timeout.
2004-05-05 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (get_message_simple): dont
set X-Evolution-Source here anymore, set in caller.
(imap_get_message): move the busted server get into the retry
loop. only leave the simple cache test outside of it.
2004-05-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-session.h: Get rid of #ifdef ENABLE_THREADS stuff, that
was done away with a while back and is causing problems for 3rd
parties trying to use camel unless they explicityly #define
ENABLE_THREADS in their code.
2004-05-04 Christian Kellner <gicmo@xatom.net>
* providers/groupwise/camel-gw-listener.h: Fixed typo.
2004-05-04 Not Zed <NotZed@Ximian.com>
** See #57979.
* camel-vee-folder.c (subfolder_renamed_update): when the
subfolder gets renamed, remove all the old uid's and add the new
ones (since the uid is based on the subordinate folder name).
(subfolder_renamed): listen to renamed folder events.
* providers/local/camel-mbox-store.c (get_folder_info): if we're
getting a single folder with no children, make sure we fill the
counts out. Fixes some rename strangeness.
* camel-vee-folder.c (camel_vee_folder_add_folder): hook onto the
folder renamed signal.
(camel_vee_folder_finalise): unhook folder_renamed signal.
(camel_vee_folder_remove_folder): same.
2004-05-03 Not Zed <NotZed@Ximian.com>
** See bug #57881.
* camel-vee-folder.c (camel_vee_folder_add_folder): use the
folder's change log and frozen count, not our copy.
(vee_thaw): dont maintain our frozen count.
(vee_freeze): same.
(folder_changed_change): if we get changed messages that dont
match, make sure they're also propagated as a change too.
* camel-private.h: remove the freeze_count from
camelveefolderprivate. We already have that in the camel folder
private.
2004-04-30 Priit Laes <amd@tt.ee>
* providers/nntp/camel-nntp-summary.c: Fix typo. #53466.
2004-04-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c: Change the UID_SET_LIMIT to
768 (something <1000 octets as suggested by rfc2683). Fixes bug
#57389.
* camel-smime-context.c: Mark exception strings for translation
and fixed a spelling mistake.
2004-04-27 Not Zed <NotZed@Ximian.com>
** See bug #57659.
* camel-vee-store.c (vee_get_folder_info): translate Unmatched in
the folder display name.
* camel-store.c (add_special_info): dont translate full_name or
path, only do that for name.
2004-04-23 Sarfraaz Ahmed <asarfraaz@novell.com>
* camel-provider.h: Added HAS_LICENSE flag for allowing camel
providers to display license file.
2004-04-22 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (imap_expunge_uids_online)
(imap_expunge_uids_resyncing): Send a flag list rather than
\Deleted by itself. See #57381.
2004-04-21 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (imap4_sync_changes): Don't
bother doing any work if perm_flags is 0.
2004-04-21 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/Makefile.am: added CAMEL_LIBS to LIBADD
* providers/groupwise/camel-gw-listener.c
(get_addressbook_names_from_server): added new function to get
addres book names from server.
(add_addressbook_sources) (modify_addressbook_sources) : changed
the implementation to use address book returned form above call
while creating e-sources
2004-04-21 Not Zed <NotZed@Ximian.com>
* providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set
the meta data file on nntp folders.
* camel-disco-folder.c (disco_refresh_info_online): implement
dummy virtual method.
* providers/nntp/camel-nntp-folder.c
(nntp_folder_refresh_info_online): implement. Fixes #57280.
2004-04-19 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (untagged_fetch): Fixed to
not expect ]'s as part of the BODY atom token.
2004-04-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-vee-store.c (change_folder): (flags & 0) will never be
true. Fixes bug #56982.
2004-04-15 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-utils.c: Changed imap_atom_specials[]
to not treat ']' as an atom char (as per rfc3501). Fixes bug
#50985.
2004-04-14 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c
(imap_check_folder_still_extant): Use %F instead of %S so that the
folder name gets properly converted from using '/' path delimeters
to whatever the native character the server uses. Should fix bug
#56715.
2004-04-14 Not Zed <NotZed@Ximian.com>
* camel-disco-store.c (set_status): do offline mail syncing (only
for open folders so far). If we fail doing syncing or store sync,
don't abort.
2004-04-13 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c (get_folder_online):
Rearranged some error checking code to fix bug #56405.
2004-04-13 Not Zed <NotZed@Ximian.com>
* camel-folder.c (folder_getv): implement the new counts, and get
them all atomically so they're only calculated once and can return
consistent results.
* camel-folder.h: Added CAMEL_FOLDER_DELETED, CAMEL_FOLDER_JUNKED,
and CAMEL_FOLDER_VISIBLE args, to support client display of
various values.
2004-04-13 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder.h (camel_folder_delete_message): Fix NotZed's fix
to not mark messages as unseen. Fixes bug #56879.
2004-04-13 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c
(add_addressbook_sources): change the auth type string from
Password to plain/password
2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #56878.
* camel-gpg-context.c (gpg_verify): Don't rely on the exit code of
gpg, we already save enough state to decide if the sig is valid
without it. Modified to only set BAD if gpg->validsig and
gpg->nopubkey are both FALSE. If we get a NO_PUBKEY status
message, then it simply means that the the sender could not be
verified.
(gpg_ctx_parse_status): Listen for NO_PUBKEY status messages.
2004-04-11 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c
(add_addressbook_sources) (modify_addressbook_sources) : add
bookname to uri
2004-04-09 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-provider.c: Fix capitalisation of the
"mailcheck" section title and move it to the top (so it matches
with the UI).
* providers/imap/camel-imap-folder.c (imap_get_message): Fetch the
entire message in one fell swoop even if the message size is
larger than 5k *if* the message is a single part. Fixes bug #56686.
2004-04-08 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c (get_folder_online): Changed
(!flags & _CREATE) to (!(flags & _CREATE))
(get_folder_online): Do what create_folder() does and if the
parent folder has \NoInferiors set but contains no messages,
delete the parent folder and recreate it before creating the child
folder. Fixes bug #56651.
2004-04-08 Not Zed <NotZed@Ximian.com>
* camel-folder.h (camel_folder_delete_message): always set the
seen flag when we delete a message. I demand that this may, or
may not, fix #56549.
* camel-folder.c: include camel-debug.h
(camel_folder_set_message_flags): fixed the doco slightly (well
reversed the flag and set explanation) and give an example.
* providers/local/camel-mbox-folder.c
(mbox_set_message_user_flag): message changed to folder_changed.
(mbox_set_message_user_tag): ditto.
* camel-vee-folder.c (camel_vee_folder_finalise): dont hook onto
message_changed.
(camel_vee_folder_add_folder): or unhook.
(camel_vee_folder_remove_folder): "
(message_changed): or proxy.
* camel-folder.c (camel_folder_class_init): removed the
message_changed event - its redundant, and covered by
folder_changed, and just makes life difficult for everything using
message_changed/folder_changed (and nothing uses it anyway).
(message_changed): removed.
(set_message_user_flag): emit a folder_changed event instead of
message changed.
(set_message_user_tag): "
(set_message_flags): "
* camel-object.h: revered the CAMEL_OBJECT_TYPE change, it should
be a global variable access.
2004-04-06 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c: Added mutex locking where
appropriate.
* providers/imap4/camel-imap4-store.c: Added mutex locking where
appropriate.
* camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined.
* camel-object.h (CAMEL_OBJECT_TYPE): Fixed.
* providers/imap4/camel-imap4-folder.c
(camel_imap4_folder_utf7_name): Implemented.
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
Use camel_folder_info_build() to build the folder-info tree.
2004-04-06 Not Zed <NotZed@Ximian.com>
* camel-debug.c: #if 0 out the sys/debugreg stuff.
** See bug #56110.
* providers/imap/camel-imap-folder.c (get_content): more debug!
(get_content): if we have no content-type header set on a sub-part
of a multipart/digest, then we need to set it to message/rfc822 as
in the multipart/digest rfc (2046 or so?).
* camel-folder.c (camel_folder_get_message): output this stuff as
folder debug.
* providers/imap/camel-imap-folder.c (imap_get_message): add some
imap:folder debug.
(get_content): get xx.TEXT rather than xx if we're from a message
parent part.
** See bug #56464.
* camel-folder.c (camel_folder_transfer_messages_to): do not lock
the source here.
(transfer_message_to): call the main entry point for get message
and append message.
** See bug #56050.
* camel-vee-store.c (vee_delete_folder): delete the state file if
it exists.
* camel-object.c (camel_object_state_write): create the parent dir
if we need to. Also spit a warning if we fail in the end.
* camel-vee-folder.c (camel_vee_folder_new): set the persistent
state file location.
(vee_sync): write the state file when we sync.
2004-04-05 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (get_folders): dont add
folders to folders_out here, only in get_folders_add_folders.
* camel-store.c (camel_folder_info_build): simplify 'list append'
since we have next pointer at the head of the struct.
* providers/imap/camel-imap-store.c (create_folder): fixed
"containes" spelling count.
(get_folder_online): "
(get_folders_add_folders): duh, add the folder info to the
folders_out array.
2004-04-02 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder.c (camel_folder_get_deleted_message_count): New
function to get the deleted message count (used for Outbox count
which is total minus deleted).
2004-04-02 Not Zed <NotZed@Ximian.com>
* camel-exception.c (w): turn this on, this should always be on,
it points to real bugs in the code.
* camel-folder-summary.c (summary_build_content_info): dont set
attachments if its a signature block.
(summary_build_content_info_message): same.
2004-04-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-exception.c (w): Wrap annoying exeption warnings with w().
2004-03-30 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
Partially implemented.
(imap4_get_folder): Implemented.
2004-03-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_param): Use
header_decode_text() rather than rfc2047_decode_word() to decode
the brokenly rfc2047 encoded param value string in case it is
actually made up of multiple rfc2047 encoded words. Thanks to
Andrei Nigmatulin for the fix.
2004-03-30 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_get_folder_info): added some debug to
dump the whole folderinfo tree if store:folder_info is set.
* providers/imapp/camel-imapp-driver.c: #if 0 out some code, to
kill warnings.
* camel-url-scanner.c: include ctype.h for isspace (wonder if it
should use utf8 funcs?).
2004-03-29 Not Zed <NotZed@Ximian.com>
** See #56146.
* providers/imap/camel-imap-store.c (get_folders): check the
top-level folders list for duplicates as well.
(get_folders_add_folders): split out the folder return merging
code from get_folders. Absolute mess of crap to deal with more
busted servers.
* camel-debug.c (camel_debug_start, camel_debug_end): some helpers
to wrap debug output for atomicicity.
2004-03-29 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
Implemented.
* providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
If the namespace begins with "INBOX", canonicalise the INBOX
portion (ie, make it all caps).
* providers/imap4/camel-imap4-store.c (imap4_noop): Implemented.
2004-03-29 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c (get_folder_status): Updated
to actually parse the STATUS response into a list of item/value
pairs.
(create_folder): Updated for above change.
(get_folder_counts): Only call get_folder_status() once (we can
get both values with a single call now). Fixes a FIXME and might
also fix bug #55784.
* providers/local/camel-mbox-store.c (get_folder_info): Removed
debugging printfs.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): Since the folder was *just*
created, it shouldn't have any subfolders so set the
CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be
guessing these flags at all - rather we'd call get_folder_info()
or some such). Fixes bug #56010.
2004-03-29 Radek Doulik <rodo@ximian.com>
* camel-mime-filter-tohtml.c (html_convert): close pre tag in case
we just flush. I am not sure if it's still worth to check for
inlen == 0 and handle it specially, but didn't want to make too
big changes.
Fixes #55817
2004-03-29 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (get_folder_counts): use
object_bag_peek instead of _get, since we dont want to clash/wait
for reservations. More #56045 related fixes.
(get_folder_counts): revert the lookup/hashtable stuff for the
folder, and use object_bag_peek.
* camel-object.c (camel_object_bag_peek): new method to get an
object bag entry without worrying about if its reserved or not.
* camel-gpg-context.c (gpg_verify): get the content-type off of
the multipart-signed, not its container. This seems wrong
... but might fix #56084.
* providers/imap/camel-imap-store.c (get_folder_counts): remove
locking here, we're locked whne we enter.
(fill_fi): call refresh_info unlocked. More for #56045.
2004-03-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap-folder.[c,h]: New source files
implementing the CamelFolder class for the new IMAP4
implementation.
* providers/imap4/camel-imap-summary.[c,h]: New source files
implementing the CamelFolderSummary class for the new IMAP4
implementation.
2004-03-26 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (imap_update_summary):
Reverted imap.web.de fix.
2004-03-26 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-summary.c (flagbits[]): Added new
maildir flags D for draft and commented P for forwarded.
* providers/imap/camel-imap-store.c (get_folder_counts): Instead
of looking up the folder in the object bag which will handle
reservations and perhaps deadlock, just get the list of opened
folders and use them if they're available. Should fix #56045.
2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap-engine.c
(camel_imap_engine_parse_resp_code): No longer need to split ']'
tokens from atom tokens due to a fixup in the ABNF grammar in
rfc3501.
* providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to
include ']' (this is an addition in rfc3501).
* providers/imap4/camel-imap-store.[c,h]: New Store class for
IMAP. Implemnted a bunch of but still got a ways to go.
2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (imap_update_summary): If the
server is imap.web.de, just ask for all the headers rather than
"HEADER.FIELDS.NOT (RECEIVED)". Actually, maybe we should always
just query for the entire header block?
(imap_get_message): If the server is brain-damaged (that's a
technical term), always fetch the message in whole, never bother
to try and fetch partial messages (Courier-IMAP gives us the wrong
BODY responses fairly often).
* providers/imap/camel-imap-store.c (connect_to_server): Set
store->braindamaged to TRUE if we find the string "Courier-IMAP"
in the greeting.
2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #55018.
* providers/imap/camel-imap-store.c (create_folder): Don't allow
the user to create folders with #, %, * or the directory separator
in the folder name (added the checks for %, * and #).
(get_folder_online): Add a check to make sure the folder name is
sane before sending a CREATE (ie. we want to allow getting of
folders with discouraged characters in them if they exist, but we
don't want to allow the user to create them).
2004-03-25 Martyn Russell <ginxd@btopenworld.com>
* providers/smtp/camel-smtp-provider.c: Removed newline character
from the provider description
2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c: removed ldap
seetings and added a settng for SOAP port
* providers/groupwise/camel-gw-listner.h
(add_calendar_tasks_sources, remove_calendar_tasks_sources),
(modify_calendar_tasks_sources): read port number from url instead
of hardcoding. Also removed code for adding e-sources for ldap
address book and adding now e-sources for groupwise address book
2004-03-24 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap-engine.c (camel_imap_engine_literal):
New convenience wrapper function.
(engine_parse_status): Fixed to handle literal mailbox strings.
* providers/imap4/camel-imap-command.c (camel_imap_command_newv):
Changed how %L works - create the CamelIMAPLiteral for our caller
instead of expecting them to create it for us. We can autodetect
what type of object (stream vs data-wrapper) the literal is, so
it's trivial to do.
2004-03-23 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (imap_get_message): Reworked
the else bit to fix a bug where if we had the BODY structure, we simply
wouldn't try fetching the actual message.
2004-03-23 Not Zed <NotZed@Ximian.com>
* camel-exception.c (camel_exception_setv): use camel debug to add
some debug here.
* camel.c (camel_init): call camel_debug_init().
* camel-debug.c (camel_debug_init, camel_debug): new util stuff
for extended debug options.
* providers/imap/camel-imap-folder.c (imap_get_message): if we're
supposed to be online, check we are online before proceeding.
Actually major restructure so we re-try the fetch a couple of
times first before failing. i.e. silent reconnect. See #55381.
* providers/imap/camel-imap-store.c (get_folder_info_online):
connect lock around this. was getting a race with mem corruption
otherwise.
2004-03-22 Not Zed <NotZed@Ximian.com>
* camel-mime-utils.c (camel_header_newsgroups_decode)
(camel_header_newsgroups_free): decode newsgroups header into a
list of newsgroups.
** See #55887.
* providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check):
NOOP if we're offline.
* providers/nntp/camel-nntp-store.c (nntp_connected): spit a
warning if we try to do stuff whilst offline, rather than crash.
2004-03-19 Not Zed <NotZed@Ximian.com>
* camel-disco-store.c (disco_connect): ref the diary before
replaying it. it could get unreffed during replay if there's an
error and we disconnect.
* camel-store.c (camel_store_get_folder): no longer use
folder_lock, we already have adequate serialisation code here or
below here. I hope.
(camel_store_get_folder_info): same here.
* providers/imap/camel-imap-store.h: remove async_thread thing.
2004-03-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (imap_get_message): Checking
that mi->content->type != NULL is no longer good enough to tell if
a ContentInfo is complete (ie. contains the parsed BODY
response). We need to check that th ContentInfo has children if
the part is a multipart of message/rfc822 part. Apparently Zucchi
didn't test his camel-folder-summary changes using IMAP.
2004-03-17 Radek Doulik <rodo@ximian.com>
* camel-folder-summary.h: use 1<<30 for CAMEL_MESSAGE_JUNK_LEARN,
1<<17 was already used by imap provider and maybe others
2004-03-17 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-store.c: Reverted jeff's fix for
#55018, since it wasn't tested, and doesn't work. Wrote an
alternate implementation, and tested it at least once. Turns out
it was a one line error, it still wasn't tested. Oh well, its
rewritten now.
* See bug #55618.
* camel-disco-diary.c (camel_disco_diary_new): seek to the end of
the file after we open it. c99 apparently says the file merely
adds to the end of the file when you write, not that it is opened
and positioned at the end of the file (linux's man pages are out
of date).
* camel-folder-summary.c (content_info_new): setup the content
type as well, from the headers.
* providers/imap/camel-imap-summary.c
(camel_imap_summary_add_offline): copy size from the source info.
2004-03-15 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder.c (folder_rename): Always use '/' to derive the
basename of the folder. folder->full_name is always the UNIX-path
evrsion of the folder name, no matter what the actual path
delimeter is on the underlying store.
* providers/imap/camel-imap-store.c (get_folder_online): If the
initial SELECT fails and CREATE is specified, clear the exception
before attempting to CREATE, this way we don't have an exception
set even if the CREATE passes. Fixes bug #55607.
2004-03-16 Not Zed <NotZed@Ximian.com>
* camel-mime-message.c (camel_mime_message_init): rever previous
patch. We don't want to set the default mime/type, it'll break
stuff.
2004-03-15 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mbox-store.c (delete_folder): same as
below for path.
* providers/local/camel-local-store.c (delete_folder): NULL out
str before looking up the state file using it. Otherwise we
double-free str.
* camel-mime-parser.c (folder_scan_skip_line): we want to scan
till in-end-1. If we've been called we're either at the end of
data, or we know we have an end of line character within memory.
Another case in Bug #53355.
* providers/imap/camel-imap-folder.c (get_content, get_message):
set the mime-type field on the content the same way as
construct_from_stream does. Bug #55472.
* camel-mime-message.c (camel_mime_message_dump): utility function
to dump message content to stdout.
(camel_mime_message_init): default mime type to message/rfc822.
* camel.c (camel_init): change camel verbose debug to be an int, a
bitmask of debug options.
* camel-mime-utils.c (camel_header_location_decode): drop embedded
whitespace characters, and don't do unquoting, etc. See rfc2557
4.4.2 and rfc2017 3.1.
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_set_exception): Now
takes an argument to specify whether disconnecting when respbuf is
NULL is safe (to prevent us from recursively disconnecting or
disconnecting during a connect).
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #53497.
* providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of
unreffing the streams, call camel_service_disconnect().
(smtp_mail): Same.
(smtp_rcpt): Same.
(smtp_data): Same.
(smtp_send_to): Ignore exceptions for smtp_rset(). Also, check
that we are connected before we try to send (in Evolution's
current usage scenario, this isn't a problem but in the future if
we ever try to fire off several messages via the same smtp
connection, it may be - especially if RSET failed during the
previous send).
2004-03-12 Radek Doulik <rodo@ximian.com>
* camel-folder.c (folder_changed): clearn the learn bit only if
set.
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #55018.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): Use camel_url_to_string() here
too, so we properly encode the fragment.
* providers/local/camel-mbox-store.c (get_folder_info): Use
CamelURL to properly encode the fi->uri. Pass the CamelURL into
scan_dir() so that scan_dir() can re-use it (rather than having to
malloc/parse/free for each file/dir)
(scan_dir): Use camel_url_to_string().
* providers/local/camel-maildir-store.c (get_folder_info): Same as
mbox.
(scan_dir): Same as mbox. We also need to set the
CAMEL_FOLDER_NOSELECT flag if appropriate.
* providers/local/camel-mh-store.c (get_folder_info): Same as mbox
and maildir.
(folders_scan): Now takes a url argument which we pass off to
folder_info_new().
(recursive_scan): Same.
(folder_info_new): Use camel_url_to_string().
2004-03-11 Radek Doulik <rodo@ximian.com>
* camel-folder.c (camel_folder_set_message_flags): watch for
setting JUNK flag, if JUNK_LEARN is not set as well then reset
JUNK_LEARN bit
(folder_changed): look for junk changes in uid_changed's messages,
if these changes request junk filter learning
(CAMEL_MESSAGE_JUNK_LEARN bit set) then prepare junk and nonjunk
uid arrays, clear CAMEL_MESSAGE_JUNK_LEARN bit so that we don't
process it again
(folder_changed): start filter thread if there's junk and/or
nonjunk arrays
(filter_filter): if junk/nonjunk arrays are non-NULL, call junk
filter report to learn junk/non-junk messages
(filter_free): free junk/nonjunk uids and arrays
* camel-folder-summary.h: added CAMEL_MESSAGE_JUNK_LEARN to
CamelMessageFlags, used when setting CAMEL_MESSAGE_JUNK flag to
say that we request junk plugin to learn that message as
junk/non-junk
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (connect_to_server): If
errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or
whatever.
(smtp_helo): Same.
(smtp_auth): Same.
(smtp_mail): Same.
(smtp_rcpt): Same.
(smtp_data): Same.
(smtp_rset): Same.
(smtp_quit): Same.
(smtp_set_exception): Here too.
(smtp_auth): If the AUTH response code is not 334, then use
smtp_set_exception() to get the most accurate error report we can.
2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
* camel-object.c (cobject_state_read): Sanity check that count is
<1024 and also use g_try_malloc so that we can recover if malloc
fails.
2004-03-11 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (no_such_folder): removed
this. not sure what it was doing there, a 1 line funciton used
once.
(get_folder_online): pass exception to camel_imap_command. if we
got a user cancel, pass it up. See #55388.
(hash_folder_name, compare_folder_name): more g_ascii_strcasecmp
stuff.
2004-03-11 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (vee_get_folder_info): we need to add the
folderinfo always if we're recursive from top. Should fix #52965
and maybe the other vfolders not showing on startup bug.
* providers/imap/camel-imap-store.c (get_one_folder_offline):
(parse_list_response_as_folder_info): turn off NOINFERIORS always,
translate to nochildren.
(imap_store_refresh_folders): check we're updating an imap folder,
we could also have trash folders in the store too.
2004-03-08 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (vee_get_folder_info): setup virtual/system
flags as appropriate.
(change_folder): setup flags properly.
* providers/nntp/camel-nntp-store.c
(nntp_store_get_subscribed_folder_info): mark all folders as
system folders.
* providers/local/camel-mh-store.c (fill_fi): add this to setup
folderinfo.
(folder_info_new): call fill_fi to fill unread/total.
(recursive_scan, folders_scan): ahh yeah, so wtf was i thinking,
store->flags != get_folder_info flags!!!!
* providers/local/camel-maildir-store.c (camel_folder_info_new):
remove unread count arg & setup total.
(fill_fi): setup total field.
(scan_dir): remove the code that checked the directory directly -
use fill_fi instead. It will more accurately reflect what you get
when you visit the folder.
(camel_folder_info_new): mark "." as a system folder.
(scan_dir): try to setup children/no children flags properly.
* providers/local/camel-mbox-store.c (fill_fi): setup total field.
(scan_dir): init total.
(get_folder_info): "
2004-03-05 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c
(parse_list_response_as_folder_info): mark INBOX as a system
folder. Can't be renamed/deleted.
(fill_fi): setup total field.
(get_folder_counts): ditto.
* camel-store.c (add_special_info): set the system folder flag.
* camel-store.h: time to fix up the camelfolderinfo mess. fix
some member names, and add some type fields. Fixed all uses.
2004-03-04 Not Zed <NotZed@Ximian.com>
** See bug #53355.
* providers/imap/camel-imap-folder.c (get_content): if the parent
isn't a message/rfc822 type, we don't want to get the section.TEXT
for multipart/signed, we just want to get section.
2004-03-03 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-gw-listener.c
(add_calendar_tasks_sources): use "Calendar" and "Checklist" for the
folder names, instead of "Default".
(remove_calendar_tasks_sources): remove the correct folder.
2004-03-03 Not Zed <NotZed@Ximian.com>
* camel-operation.c (camel_operation_uncancel): attempt at
uncancelling a cancelled operation.
* camel-stream-filter.c (do_write, do_write): fun dun diddley un
fun. Since we're writing a const buffer, we need to copy it
first. See #54937.
2004-02-27 Not Zed <NotZed@Ximian.com>
** See bug #54755.
* camel-vtrash-folder.c (vtrash_append_message)
(vtrash_transfer_messages_to): error/fail out if the user tries to
copy messages to the trash.
(vtrash_transfer_messages_to): use the destination bit not the
source bit for moving messages to a vtrash folder.
* camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA
response, otherwise we abort in a meaningless way. See #52939.
* providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp
everywhere.
* providers/imap/camel-imap-utils.c (imap_body_decode): fix the
sense of the nil check for the subtype of a mutlipart. See
#53355.
2004-02-26 Not Zed <NotZed@Ximian.com>
* camel-session.c (camel_session_check_junk_for_imap)
(camel_session_set_check_junk_for_imap): removed.
* providers/imap/camel-imap-provider.c: Add filter_junk and
filter_junk_inbox options to the receive option page.
* providers/imap/camel-imap-store.c (imap_setv, imap_getv): handle
FILTER_JUNK and FILTER_JUNK_INBOX parameters.
(imap_setv): conver to switch rather than if statement.
(construct): handle url args for filter_junk and
filter_junk_inbox.
* providers/imap/camel-imap-folder.c (camel_imap_folder_new): Set
the folder's flags based on the stores junk settings.
(imap_update_summary): remove the test for
session_check_junk_for_imap, its handled per-store now.
* camel-folder.c (folder_changed): only check for FILTER_RECENT or
FILTER_JUNK to see if we need to do filtering.
* camel-folder.h (CAMEL_FOLDER_FILTER_JUNK): renamed from
CAMEL_FOLDER_SUPRESS_JUNK_TEST (and obviously inverted logic).
2004-03-02 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-summary.c
(mbox_summary_encode_x_evolution): Overrides the parent method. We
don't want to encode user flags/tags or the size of the header
will change and force a complete rewrite of the mbox file.
2004-02-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_folder): Free
the uids *after* reporting Complete, otherwise we get an FMR if
our caller didn't pass in the uids.
* camel-sasl-gssapi.c (gssapi_challenge): #ifdef out another
gss_release_buffer() call as this function causes memory
corruption if using Heimdal's implementation of Kerberos5. Yay
Heimdal.
2004-02-25 Radek Doulik <rodo@ximian.com>
* camel-folder.c (get_unread_message_count): do not avoid junk
mails in unread count
2004-02-25 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-summary.h (CAMEL_IMAP_MESSAGE_RECENT):
moved the RECNET flag into the folder area (bit 17-30).
2004-02-24 Not Zed <NotZed@Ximian.com>
** See bug #53876.
* providers/imap/camel-imap-command.c (camel_imap_command): ref
the folder before unreffing store->current_folder, incase they're
the same. Do a select anyway.
* providers/imap/camel-imap-folder.c (imap_refresh_info): keep the
connect_lock for longer, imap_rescan for one assumes its locked.
Fixes a race selecting the folder for refresh.
2004-02-24 Jeffrey Stedfast <fejj@ximian.com>
* camel-stream-process.c: #include <signal.h>, we don't need limits.h
* camel-store.c (camel_store_folder_uri_equal): New function to do
what camel_store_uri_cmp() was supposed to do.
2004-02-23 Rodney Dawes <dobey@ximian.com>
* providers/local/camel-mbox-store.c (scan_dir): If our folder has
a subdir, but no actual children, then we need to unset the flag for
CAMEL_FOLDER_CHILDREN
Fixes #54470
2004-02-23 Jeffrey Stedfast <fejj@ximian.com>
* camel-store.c (camel_store_uri_cmp): Removed. Useless/broken
function.
2004-02-20 Jeffrey Stedfast <fejj@ximian.com>
* camel-provider.c (camel_provider_list): Init list to NULL to
prevent the crash in bug #54574.
2004-02-19 Chris Toshok <toshok@ximian.com>
* camel-smime-context.c: wrap this file with #ifdef ENABLE_SMIME
instead of #ifdef HAVE_NSS.
2004-02-19 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (get_folder): Add sanity
checking to the folder name if we are going to create it, just
like we do in create_folder().
2004-02-19 Not Zed <NotZed@Ximian.com>
* providers/*/camel-*-provider.c
(camel_provider_module_init): Fixes for api changes.
* camel-provider.c (camel_provider_load): no longer take session
argument. the providers are global resources.
(camel_provider_init): dont return anything anymore. (error?)
call from camel_init now. Use a recursive lock too.
* camel-session.c (camel_session_register_provider)
(camel_session_list_providers, camel_session_get_provider): Moved
to camel-provider, camel_provider_register/list/get.
(vee_provider): moved to camel-provider.c
2004-02-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_verify): Use the trust to decide the
validity signature status. (Better way of solving yesterday's
problem)
* camel-cipher-context.h: Revert change from yesterday.
2004-02-17 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_verify): Set the trust.
* camel-cipher-context.h: Add a trust metric to signatures.
2004-02-17 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (vee_sync): implment, make sync a noop on vee
stores. Speeds up exit, so we don't try and sync and re-sync
folders multiple times.
** See bug #53861.
* providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from
Edd Dumbill <edd@usefulinc.com> to avoid aborting on irrelevently
truncated lines.
2004-02-16 Not Zed <NotZed@Ximian.com>
** See bug #51045.
* providers/imap/camel-imap-store.c (fill_fi): similar to mbox
version.
(get_folder_counts): use fill_fi to try and get folder counts if
we're not doing the hard slog.
(get_one_folder_offline): use fill_fi to try to get folder counts
from open folders or summaries.
* providers/local/camel-maildir-store.c (fill_fi): similar to mbox
version.
(scan_dir): use fill_fi to get the unread count now.
* providers/local/camel-mbox-store.c (fill_fi): helper to lookup
unread count either from active folder or from summary file, if
it's available.
(scan_dir, get_folder_info): use helper above to get folder info.
* devel-docs/camel-folder-summary.txt: New document describing the
format/conventions in the CamelFolderSummary file.
* providers/nntp/camel-nntp-summary.c (summary_header_load/save):
* providers/imapp/camel-imapp-summary.c (summary_header_load/save):
* providers/imap/camel-imap-summary.c (summary_header_load/save):
Handle versions, per-class version number (1).
* providers/local/camel-mbox-summary.c (summary_header_load/save):
Handle versions properly, add a per-class version (1). Write out the
folder size as a size_t rather than 32 bit int.
* providers/local/camel-local-summary.c (summary_header_load/save):
read/write the per-class version number (1).
* camel-folder-summary.c (summary_header_load): do version
checking differently, allow the version to be bumped without
aborting the load. Added unread/deleted/junk counts to base
header.
(summary_header_save): Save out the new-format header. Version
bumped to 13.
* camel.c (camel_init): return 0 rather than spit a compiler warning.
* camel-file-utils.c (camel_file_util_encode_*_t): macro-ise the
type encoder/decoders. Also add size_t encoder/decoder.
2004-02-13 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c (get_folder_online): Same.
* providers/local/camel-mh-store.c (get_folder): Same as maildir
changes.
* providers/local/camel-maildir-store.c (get_folder): Make
exceptions strings consistanmt with the mbox exception strings
(and vise versa). Also handle the CAMEL_STORE_FOLDER_EXCL flag.
* providers/local/camel-mbox-store.c (get_folder): Check
CAMEL_STORE_FOLDER_EXCL flag.
* providers/local/camel-local-store.c (get_folder): Simplified by
using camel_mkdir instead of doing it manually.
* camel-store.c (camel_store_get_folder): If the folder exists in
the cache and the O_EXCL flag was passed, return NULL and set an
exception.
* camel-store.h: Added a new CAMEL_STORE_FOLDER_EXCL flag for use
with get_folder().
2004-02-12 Jeffrey Stedfast <fejj@ximian.com>
* camel-file-utils.c (camel_file_util_encode_string): Since
decoding a string doesn't allow strings longer than 65536,
truncate strings that are longer than 65536 here. Fixes bug
#54319.
2004-02-09 Not Zed <NotZed@Ximian.com>
** See bug #53978.
* providers/local/camel-mbox-store.c: added ".lock" to the list of
ignored extensions.
(ignore_file): ignore anything ending in ~ too.
** See bug #51319.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): re-enable indexing when folder is
first opened. Also load defaults if no meta-data present.
2004-02-06 Jeffrey Stedfast <fejj@ximian.com>
* camel-provider.c (camel_provider_init): Use strrchr, not strchr.
* camel-gpg-context.c (gpg_ctx_parse_status): Forget the need_id,
not the userid. Fixes bug #53908.
* camel-store.c (add_special_info): Set a CAMEL_FOLDER_VIRTUAL bit
on the special folder info so our UI can know if it is virtual or
not (meant for vTrash/vJunk).
(camel_store_get_folder_info): Don't add vTrash/vJunk if the
NO_VIRTUAL flag bit is set. Used by the subscriptions editor.
2004-02-06 Not Zed <NotZed@Ximian.com>
* camel-folder.c (camel_folder_set_message_flags): changed to
return a boolean to indicate if the flags were actually changed or
not. Fixed all implementors.
2004-02-05 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mbox-store.c (rename_folder): rename
.cmeta file too, and fix the recovery order.
* providers/local/camel-local-store.c (rename_folder): rename the
.cmeta file too.
* providers/local/camel-local-folder.c (local_rename): fix this to
use local_get_full_path stuff.
* camel-store.c (camel_store_rename_folder): fix umr's comparing
old and new names.
2004-02-05 Not Zed <NotZed@Ximian.com>
** See bug #53553.
* camel-provider.c (camel_provider_init): changed to return a
hashtable of url protocols to CamelProviderModule structs, rather
than simple strings.
* camel-session.c (get_provider): if we load a provider module,
mark it as loaded.
(ensure_loaded): Check the module loaded flag before trying to
load it.
* providers/local/libcamellocal.urls: Remove spoold from the list,
since it doesn't exist anymore. Actually fixes #53553, the rest
is to robustify the code.
2004-02-05 Not Zed <NotZed@Ximian.com>
* camel-session.c (CS_CLASS): dont typecheck cast.
* camel-store.c (camel_vjunk_folder_new): removed, use
vtrash_new(junk).
(setup_special): changed to get_special, with a type now, and
dont add vtrash folders to the sources.
(get_trash, get_junk): down to 1 liners, call get_special
* camel-vtrash-folder.c (CF_CLASS): dont use cast typecheck macros
here, makes debugging easier and removes redundant checks.
(camel_vtrash_folder_init): dont set flags here.
(camel_vtrash_folder_new): takes a new argument, type, for junk
folders too, removed name arg (taken from type).
(vtrash_transfer_messages_to): parameterise flag processing.
2004-02-04 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c: Get rid of some unnecessary
CAMEL_OBJECT() casts.
* providers/imap/camel-imap-folder.c (camel_imap_folder_new): The
folder_name argument passed to this function is ALWAYS in the UNIX
path form (ie. using '/' as the dir sep) and so when getting the
short_name, don't use imap_store->dir_sep as the dir sep, always
use '/'. Fixes bug #53755 for the IMAP case.
2004-02-04 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #53755 (local folders case)
* providers/local/camel-mbox-store.c (xrename): No longer takes an
exception arg, we just set errno. Our caller can take care of
setting an exception.
(rename_folder): Don't pass an exception to xrename(), we always
overwrote if an error occured it anyway.
(rename_folder): Rename the .sbd as well.
2004-02-04 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_sync): added 'expunge' parameter,
easier 'empty trash on exit' call.
(store_sync): duh, actually pass expunge to folder_sync.
2004-02-04 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c
(parse_list_response_as_folder_info): if we can't add the folder
to the summary {i.e. duplicate}, then ignore it. See #53836.
* camel-store.c (camel_store_delete_folder): changed order around,
first try to delete and only remove from the object bag if the
delete worked. If vjunk/vtrash enabled, don't allow those to be
deleted.
(cs_delete_cached_folder): helper to delete the folder if its in
the cache, remove it from trash/junk, etc.
(camel_store_unsubscribe_folder): changed similarly to
delete_folder.
* camel-vee-store.c (vee_delete_folder): dont do any trash/junk
processing anymore.
2004-02-03 Not Zed <NotZed@Ximian.com>
* camel-store.c: use the folders object bag to manage the trash
folder and junk folders. Remove the init_trash and init_junk
stuff, just use get_trash and get_junk to mean the same thing.
Get rid of the hacked up vjunk and vtrash "uri" stuff too.
* camel-object.c (camel_object_bag_add): null out the pair->func,
otherwise we get an uninitalised memory read during unhook event.
2004-02-03 Jeffrey Stedfast <fejj@ximian.com>
* camel-vee-folder.c (vee_folder_build_folder): Use macro casts
from int to pointer.
* camel-folder.c (camel_folder_change_info_add_source): Same as below.
(camel_folder_change_info_add_source_list): Same.
* camel-folder-search.c (camel_folder_search_execute_expression):
Use GINT_TO_POINTER() to cast 1 to a pointer for
g_hash_table_insert().
* camel-vee-folder.c (vee_folder_remove_folder): 64bit fixes.
(folder_added_uid): Same.
(vee_folder_build_folder): Here too.
(folder_changed_add_uid): And here.
(folder_changed_remove_uid): Same.
2004-02-03 Jeffrey Stedfast <fejj@ximian.com>
* tests/misc/url-scan.c: New test suite for url scanning.
* camel-url-scanner.c: Added single/double quotes to url_braces[]
in case the user is quoting the url.
(camel_url_web_end): Add "-;:" to list of punctuation to strip off
the end of urls. Also fixed to handle user@domain's
(camel_url_addrspec_start): Strip open brace characters from the
beginning of the addr.
(camel_url_web_start): Make sure "www" wasn't part of something
not a url (like "Ewww.Gross") by check that pos[-1] is either an
open brace or whitespace.
(camel_url_addrspec_end): Don't allow toplevel domain addr-specs
(if we encounter something that looks like it is a toplevel domain
addr, it is more likely to be bogus than correct).
2004-02-02 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #53091.
* providers/imap/camel-imap-store.c (create_folder): Set the new
folder's fi->flags to CAMEL_FOLDER_NOCHILDREN since we know it
doesn't have any (we just created it!).
(subscribe_folder): Same.
* camel-store.c (folder_info_clone_rec): Copy the flags too. Fixes
the local folder case of bug #53091.
2004-01-31 Jeffrey Stedfast <fejj@ximian.com>
* providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Same
as below.
* providers/smtp/camel-smtp-transport.c (smtp_connect): Instead of
using the form %s@%s in the password prompt, use %s on host %s,
hopefully this will be less confusing to users who have usernames
of the form user@vhost.
2004-01-30 Rodney Dawes <dobey@ximian.com>
* providers/groupwise/camel-groupwise-provider.c: Fix spelling error in
provider description
Fixes #53572
2004-01-30 Jeffrey Stedfast <fejj@ximian.com>
* camel.c (camel_init): Protect against multiple camel_init()
calls. Remember if we've already been called.
2004-01-30 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_rename_folder): copy the old_name
that comes in, since it might be the actual folder_name, which
will go away during processing. Related to #53123.
2004-01-29 Not Zed <NotZed@Ximian.com>
** See bug #53269.
* providers/nntp/camel-nntp-store.c
(nntp_store_get_cached_folder_info): don't dereference last before
checking if its null.
* camel-object.c (camel_object_bag_rekey): added a doc comment.
** See bug #53520.
* camel-session.c (get_service): free the url once done, it now
gets copied by the service.
* camel-service.c (construct): copy the url that comes in, don't
just '0Wn34z' it. clena up exception handling too.
2004-01-29 Not Zed <NotZed@Ximian.com>
* camel-object.c (cobject_state_write): output scan->name and
scan->value for writing metadata, rather than meta->name/value
which just duplicates the last entry, related to #53195.
* camel-url.c (camel_url_free): zero out passwd/user/host before
freeing them.
2004-01-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (rename_folder): Make sure
the new dir path exists before trying to rename files to avoid
ENOENT errors. Also save errno when we encounter errors so that we
can report the true error later rather than an error we may get
while reverting changes. Also, it is OK if the ibex files don't
exist, so check for that errno case.
2004-01-28 Sivaih Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c (account_changed)
(modify_esources) : add port and /soap parts to relative uri while
updating it when account changed
2004-01-27 Radek Doulik <rodo@ximian.com>
* providers/imap/camel-imap-folder.c (camel_imap_folder_new): set
CAMEL_FOLDER_SUPRESS_JUNK_TEST flag
(imap_update_summary): update CAMEL_FOLDER_SUPRESS_JUNK_TEST flag
* camel-folder.c (folder_changed): use
CAMEL_FOLDER_SUPRESS_JUNK_TEST flag instead of check_junk_for_imap
* camel-folder.h (CAMEL_FOLDER_SUPRESS_JUNK_TEST): added new flag
2004-01-27 Not Zed <NotZed@Ximian.com>
** See bug #53373.
* camel-store.c (camel_store_rename_folder): use object_bag_rekey
to rename the object. object_bag use was broken.
* camel-object.c (camel_object_bag_rekey): new api to atomically
re-key
2004-01-23 Radek Doulik <rodo@ximian.com>
* camel-folder.c (folder_changed): use check_junk_for_imap flag
* camel-session.c: add check_junk_for_imap flag
2004-01-23 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (IMAP_SMALL_BODY_SIZE):
removed the meaningless fixme, a butt-retrieved-number is as good
as any in this case.
(imap_get_message): revert peterw's change of 2002-07-15, instead
of checking for online mode here, let get_message do it when you
retrieve the parts. This lets a multi-fetch (i.e. large) message
work more betterer in offline mode.
2004-01-22 Jeremy Katz <katzj@redhat.com>
* camel-mime-part.c: Fix prototype to be consistent.
2004-01-21 Not Zed <NotZed@Ximian.com>
** See bug #52996.
* camel-data-cache.c (camel_data_cache_add): put a do-loop around
the object_bag_reserve stuff, otherwise we can add/abort out of
sync (i.e. when object_bag_reserve returned a pointer we mustn't
call add/abort).
* camel-object.c (camel_object_bag_*): Added some inline doco.
2004-01-20 Not Zed <NotZed@Ximian.com>
** See bug #52817.
* camel-session.c (camel_session_get_password): merged reprompt
and secret into a flags field, and add more options. Fixed all
callers.
** See bug #52899.
* camel-gpg-context.c (gpg_ctx_parse_status): use need_id as the
password key, not userid.
2004-01-19 Siviaah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.c
(remove_calender_tasks_sources, modify_calender_tasks_sources):
add port and "/soap" to source uri
2004-01-19 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (change_folder): use a CamelURL to properly
encode the url we generate.
(vee_get_folder_info): ditto.
(vee_get_folder_info): removed unused variable/warning.
* camel-session.c (vee_provider): Update the provider flags for
URL_FRAGMENT_IS_PATH.
* providers/imapp/camel-imapp-utils.c (imap_parse_addfress_list):
namespaces fixes for HEADER_ADDRESS*
2004-01-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (imap_sync_online): Limit the
flags we set (or unset) to the folder's permanent flags.
2004-01-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-message.c (camel_mime_message_build_mbox_from): Same.
* camel-internet-address.c (internet_decode): Same.
* camel-mime-utils.[c,h]: Namespaced camel_header_address_t enums
s/HEADER_ADDRESS_/CAMEL_HEADER_ADDRESS_/g
2004-01-16 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-groupwise-provider.c: added some conf
entries for LDAP address setup
* providers/groupwise/camel-gw-listener.c: added
add_ldap_addressbook_source, modify_ldap_addressbook_source,
remove_ldap_addressbook_source functions for setting up LDAP
address book. Also setting "username" property on cal/tasks
ESources
2004-01-15 Not Zed <NotZed@Ximian.com>
** See bug #52881.
* camel-object.c (camel_object_bag*): Support reserving different
keys from the same thread. Oh the pain.
* camel-vee-store.c (vee_get_folder_info): implement child flags
properly. Changed to build tree itself rather than calling
camel_folder_info_build.
(vee_get_folder): if we're adding a folder with dummy parents,
create and add the dummy parent folders too (as real folder
objects). We are the only owner of the ref, so this sort of leaks
the folder, but they're small.
2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-groupwise-provider.c
(camel_provider_module_init): missing renaming.
2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-gw-listener.c (add_esource): set the
"auth" property on the ESource's we create, to get authentication.
2004-01-14 Not Zed <NotZed@Ximian.com>
** Patch from Timo Sirainen <tss@iki.fi> to honour read-only
status for imap folders.
* providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
check for read-only status response.
(imap_sync_online): only call sync_offline if we're read-only.
(imap_expunge_uids_resyncing): NOOP for read-only.
2004-01-14 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-folder.c (local_getv): remove debug
printf.
** See bug #52835.
* camel-smime-context.c (sm_get_passwd): removed debugging. If we
get called multiple times in a row, then forget the old password
and re-prompt - it was a bad password. Zero out password memory
too.
2004-01-13 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-groupwise-provider.c: missing renaming.
2004-01-13 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listener.[ch]: renamed
groupwise-config-listener.[ch] to these file names and also
changed code to use CamelURL insted of EUri
* providers/groupwise/camel-groupwise-provider.c: use the renamed
config listener apis
* providers/groupwise/Makefile.am: changed the source file names
2004-01-12 Meilof Veeningen <meilof@wanadoo.nl>
* providers/nntp/camel-nntp-folder.[ch]: now based on discofolder,
cache_message and append_message implemented, only retrieve messages
when we are subscribed, some stubs
* providers/nntp/camel-nntp-provider.c: newsgroup name display
settings, password authentication, fix for check_equal where the
protocols wouldn't be checked
* providers/nntp/camel-nntp-store.[ch]: base on discostore with
online/offline support, subscriptions, downloading changed parts of
the newsgroup list, some stubs, authentication, automatic reconnect
* providers/nntp/camel-nntp-store-summary.[ch]: NNTP store
summary based on IMAP code
* providers/nntp/camel-nntp-summary.c: save summary after xover
* providers/nntp/camel-nntp-grouplist.h: added CamelNNTPGroupList
structs
* providers/nntp/Makefile.am: added store summary
2004-01-12 Not Zed <NotZed@Ximian.com>
** See bug 52725.
* providers/imap/camel-imap-folder.c (get_content): pass in
transfer encoding when setting up wrapper part.
* providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new):
Added an encoding type parameter, set on data wrapper.
2004-01-10 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (rfc2047_encode_word): if e_iconv() returns
-1, check that errno != EINVAL - if errno *is* EINVAL, it just
means that our convlen wasn't long enough to include the whole
sequence. This is fine, we'll just start where we left off next
loop thru. Fixes bug #52593 (the buffer was duplicated because
state wasn't flushed).
(camel_header_encode_string): Fixed a type-o in loop where
encoding=0, don't g_string_append_len starting at 'word'
inptr-start bytes long - 'word' could be NULL and/or inptr-start
could be longer than inptr-word.
2004-01-09 Rodney Dawes <dobey@ximian.com>
* providers/groupwise/Makefile.am (EXTRA_DIST): libcamelgroupwise.urls
instead of libcamelimap.urls
2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/groupwise-config-listener.c
(is_groupwise_account): added null check for source url to take
care of accounts with Server Types as "None"
2004-01-09 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (imap_forget_folder): fix
removal of journal file, and remove the cmeta state file too.
* providers/imap/camel-imap-folder.c (imap_getv): count up so we
call parent class if we missed any, rather than only if we didn't
miss any.
(imap_rename): rename the object state file.
(camel_imap_folder_new): set the object state file for persistent
properties.
* camel-disco-folder.c (disco_getv): support
(PERSISTENT_)PROPERTIES & OFFLINE_SYNC.
(disco_setv): implement OFFLINE_SYNC.
(camel_disco_folder_get_type): setup disco properties list.
(cdf_folder_changed): honour the offline_sync setting on the
current folder.
(disco_sync): save object state.
(disco_setv): save object state if it changed.
* camel-data-wrapper.c (camel_data_wrapper_set_mime_type_field):
move assertions here.
(set_mime_type_field): change order slightly to properly handle
setting the same object. removed assertions from internal method.
2004-01-08 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/Makefile.am : add groupwise to SUBDIRS
* providers/groupwise/camel-groupwise-provider.c: new camel
provider for groupwise
* providers/groupwise/groupwise-config-listener.[ch] : new class
to add e-sources for groupwise calender and tasks
* providers/groupwise/Makefile.am : added new files to Makefile.am
2004-01-05 JP Rosevear <jpr@ximian.com>
* camel-utf8.c: include sys/types.h for freebsd
2004-01-05 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-groupwise-provider.c (groupwise_url_hash,
groupwise_url_equal): renamed from imap_*.
2004-01-05 Not Zed <NotZed@Ximian.com>
* camel-tcp-stream-raw.c (socket_connect): check the right return
of the socket call, dont set fd to the value of the -1 check!
2003-12-27 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-raw.c (socket_connect): Save errno and check
the return of the socket() call.
2003-12-24 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-groupwise-provider.c
(camel_provider_module_init): g_module_open the other providers we
depend on to avoid load ordering problems.
2003-12-22 Rodrigo Moya <rodrigo@ximian.com>
* providers/groupwise/camel-groupwise-provider.c: removed useless
configuration options, and added other options from the IMAP
provider.
(camel_provider_module_init): register a SMTP transport object
also, and removed SASL registration, since we don't support it.
2003-12-19 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/Makefile.am:
* providers/groupwise/libcamelgroupwise.urls:
* providers/groupwise/camel-groupwise-provider.c: added Camel
provider for Groupwise accounts, based on the IMAP one.
2003-12-11 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_ctx_parse_status): Don't immediately
prompt for a passwd after receiving the NEED_PASSPHRASE status
message. Instead, parse the userid that gpg needs a passwd for and
store it on our context. Wait for a GET_HIDDEN status message
before prompting, this way if the user has their gpg configured to
use gpg-agent, the user won't get 2 passwd prompts.
(gpg_sign): Fixed to not free a gpg context that we have not
allocated (could happen in a fail case).
2003-12-10 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (get_folder_info): Use
CAMEL_FODLER_NOCHILDREN rather than NOINFERIORS because
NOINFERIORS means the folder cannot contain subfolders. However,
our mbox structure always allows subfolders.
(scan_dir): Same.
* camel-store.h: Add a CAMEL_FOLDER_NOCHILDREN flag.
* providers/imap/camel-imap-store.c (get_folders): Same as below.
* providers/imap/camel-imap-utils.c (imap_parse_list_response):
s/CAMEL_IMAP_FOLDER_NOCHILDREN/CAMEL_FOLDER_NOCHILDREN/
2003-12-10 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (sm_verify): also check
application/pkcs7-signature (bloody applemail).
(camel_smime_context_describe_part): as above, and fix the logic.
dont think its used anyway. Bug #51750.
2003-12-10 Not Zed <NotZed@Ximian.com>
* Makefile.am (libcamel_la_SOURCES): put the
camel-smime-context.[ch] back in here, remove it from EXTRA_DIST,
and make it compile optinally the same way camel-tcp-stream-ssl.c
does (#ifdef ...).
* camel-smime-context.c (sm_verify_cmsg): add signer info to
certvalidity.
* camel-cipher-context.c (CamelCipherValidity): Added certinfo to
validity for signing and encrypting, so we can find the keys later
for a gui.
(camel_cipher_validity_add_certinfo): add signer or
encrypter info to the validity.
(camel_cipher_validity_envelope): add sign/encrypt keys.
2003-12-10 Not Zed <NotZed@Ximian.com>
* camel-stream-process.c (do_exec_command): remove dthe clearenv
stuff, not sure why its there. s/setenv/putenv/ for portability.
See Bug #51767.
2003-12-08 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_rfc2184_param): Revert the
s/is_/camel_mime_is_/ changes or we get really long variable
names.
(header_decode_param): Same.
(header_decode_param_list): Here too.
2003-12-09 Not Zed <NotZed@Ximian.com>
** See bug #51899.
* providers/imap/camel-imap-store.c (get_folders): add the first
fi to the info's hash, so we dont duplicate it if we come across
it again (which we generally will).
2003-12-09 Not Zed <NotZed@Ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_send_to): encode the
address before sending it out, rather than using the raw/utf8
version.
* camel-internet-address.c
(camel_internet_address_encode_address): check for quoting the
local part of the address before outputting it.
(cia_encode_addrspec): quote local part if need be.
(camel_internet_address_encode_address): make folding optional
based on whether inlen is null or not.
* camel-mime-utils.[ch]: rename is_* to camel_mime_is_* and export
the type functions.
2003-12-08 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-utils.c (imap_atom_specials): add } to
the atom specials list. This isn't correct, but some busted
servers expect it. Bug #50728.
2003-12-08 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #51881
* providers/local/camel-mbox-store.c (delete_folder): Same.
* providers/local/camel-local-store.c (delete_folder): Unlink the
cmeta file too.
2003-12-06 JP Rosevear <jpr@ximian.com>
* */Makefile.am: Remove hard coded disable deprecated flags
2003-12-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_ctx_op_start): Properly set the
O_NONBLOCK flag along with any previously set flags.
* camel-filter-search.c (run_command): Don't set O_NONBLOCK on the
pipe (1. we don't need to, and 2. we should have been setting
O_NONBLOCK|prev_flags but we weren't, and so the pipe got
O_RDONLY|O_NONBLOCK even tho we wanted to write to it).
* camel-filter-driver.c (pipe_to_system): Same.
2003-12-04 Radek Doulik <rodo@ximian.com>
* camel-folder.c (folder_changed): check recent messages for junk
mail
* camel-session.c (camel_session_check_junk): new wrapper method
for check_junk flag
(camel_session_set_check_junk): ditto
* camel-session.h (struct _CamelSession): added check_junk flag
(if to check incoming mail for junk messages)
2003-12-03 Jeffrey Stedfast <fejj@ximian.com>
* camel-store.c (add_special_info): Free fi->path if we are gonna
replace it with the vinfo path.
* providers/local/camel-mbox-store.c (create_folder): Treat
parent_name == NULL and parent_name == "" the same.
* camel-store.c (camel_store_get_folder_info): Only add
vTrash/vJunk info's if we've requested the toplevel folder tree,
otherwise we get vTrash/vJunk folders in odd places in the folder
tree.
(add_special_info): Use the provider->url_flags to determine if
the url uses the fragment or not for the path.
2003-12-02 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-folder.c (local_setv): remove some
debug printfs.
** See bug #51576.
* camel-url.c (camel_url_decode): robustify url decoding for bad
input, addresses a crash.
** See bug #51478.
* camel-gpg-context.c (gpg_ctx_free): handle the context being
NULL, and exit silently.
2003-12-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-process.c (camel_process_fork): Start at fd = 3.
* camel-gpg-context.c (gpg_ctx_op_start): Same.
* camel-filter-driver.c (pipe_to_system): Same.
* camel-filter-search.c (run_command): Start at fd = 3.
2003-12-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-stream-process.c (do_exec_command): Same.
* camel-process.c (camel_process_fork): Same.
* camel-filter-search.c (run_command): Same as below.
* camel-filter-driver.c (pipe_to_system): Same as below.
* camel-gpg-context.c (gpg_ctx_op_start): Use fcntl() to set
FD_CLOEXEC on each fd rather than close()ing it. Apparently
Linux's older pthread implementations use sockets and so this
fouls threading up. GO LINUX! GO!
2003-12-01 Radek Doulik <rodo@ximian.com>
* camel-store.c (add_special_info): set SUBSCRIBED and NOINFERIORS
flags to special folders, renamed method from
add_vtrash_or_vjunk_info
(camel_store_get_folder_info): call add_special_info directly
2003-11-28 Radek Doulik <rodo@ximian.com>
* camel-store.c (camel_store_get_folder_info): use old code from
mail-ops to add vtrash/vjunk info
2003-11-28 David Woodhouse <dwmw2@redhat.com>
* providers/imap/camel-imap-provider.c: Enable GUI option for
'custom command' connection.
* providers/imap/camel-imap-store.c: Don't g_free strings in
.rodata. It's considered rude.
2003-11-28 Not Zed <NotZed@Ximian.com>
* camel-mime-utils.c (mail_list_magic[]): Added list-unsubscribe
header match.
2003-11-26 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (sm_verify_cmsg): take a stream rather
than a part for the content.
(sm_verify): get the content directly as a stream.
* camel-multipart-signed.c
(camel_multipart_signed_get_content_stream): new api to get the
content stream which will match the signed version.
2003-11-26 JP Rosevear <jpr@ximian.com>
* Makefile.am: make sure we always dist the smime stuff
2003-11-26 JP Rosevear <jpr@ximian.com>
* Makefile.am (libcamelinclude_HEADERS): conditionally compile
s/mime support
2003-11-25 Not Zed <NotZed@Ximian.com>
* camel-cipher-context.c (camel_cipher_validity_envelope): change
args to make it suit storing the validity in a tree.
(camel_cipher_validity_init): init the list header.
(camel_cipher_validity_clone): call validity_new so it gets init
properly.
(camel_cipher_validity_free): free any children nodes recursively.
* camel-cipher-context.h (CamelCipherValidity): added next/prev
and list header.
2003-11-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-session.c (camel_session_finalise): Don't destroy the
providers as it mans we can never ever have more than 1 session
object. See bug #51119 for details.
2003-11-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (create_folder): Fixed an
exception to give a more meaningful description.
(get_folder_info): We always want to scan at least one level deep.
2003-11-14 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (get_folder_info): Handle ""
as a request for a full dirscan as well (not just NULL). Makes it
consistant with other stores.
(scan_dir): Set the fi->flags appropriately.
* providers/local/camel-mbox-folder.c
(camel_mbox_folder_get_full_path): Removed temporary hack.
2003-11-14 Not Zed <NotZed@Ximian.com>
* camel-mime-parser.c (SCAN_BUF): oops, put the mempool stuff
back, we don't use e-memory afterall. Damn plane hacking.
2003-11-13 Not Zed <NotZed@Ximian.com>
* camel-mime-parser.c: Remove mempool code, we use the stuff in
e-util.
(PRESERVE_HEADERS): new compile option, if on, we preserve headers
and folding exactly rather than unfolding all input. THIS BREAKS
EVERYTHING right now, so don't turn it on.
* camel-gpg-context.c (gpg_decrypt): reset the input memstream
before passing it to the gpg engine.
* tests/smime/pgp-mime.c (main): redirect /dev/null to stdin so it
doesn't hang waiting for input.
(main): removed from build - this tests multipart/signed
explictly, but now the details of this is handled directly by the
cipher context.
* tests/smime/pgp.c (main): fixes for api changes.
(main): redirect /dev/null to stdin so it doesn't hang waiting for
input.
* tests/message/test1.c (main): update for api changes.
* camel-smime-context.c (sm_verify): look at the content object's
mime type, not the container's type.
2003-11-11 Not Zed <NotZed@Ximian.com>
* camel-cipher-context.c (camel_cipher_validity_set_valid): take
into account the @valid argument and set validity properly.
(camel_cipher_validity_clone): new method to copy validities.
* camel-smime-context.c (sm_signing_cmsmessage): removed a todo.
2003-11-10 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (sm_verify_cmsg): split out the CMSMessage
verification code so it can be used from enveloped or externally
signed data.
* camel-cipher-context.c (camel_cipher_verify): only take a
mimepart, internally handle multiparts and the hash.
2003-11-07 Not Zed <NotZed@Ximian.com>
* camel-cipher-context.c: make ciphervalidity a public structure,
added encrypt status.
(camel_cipher_decrypt): changed to return a ciphervalidity. fixed
implementations.
(camel_cipher_validity_*): Fixed implementations to match new
structure, some of this is now redundant.
2003-11-06 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (camel_smime_context_describe_part):
implement.
2003-11-05 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (connect_to_server): Don't
bother trying to see if the server advertises EHLO. Simply always
try EHLO and fall back to HELO if EHLO fails. Fixes bug #50535.
2003-11-05 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (camel_smime_context_describe_part): new
(unfinished) api to peek inside smime parts to tell us whats in
it.
2003-11-03 Not Zed <NotZed@Ximian.com>
* camel-gpg-context.c (gpg_encrypt): Make this output the
full multipart/encrypted part, not just the encrypted content part.
* camel-cipher-context.c (camel_cipher_sign): change to output
full mime part, not just a stream.
(camel_cipher_canonical_to_stream): utility function to
canonicalise a mimepart to a stream.
* camel-smime-context.c (sm_encode_cmsmessage): removed.
(sm_sign): change interface to output a full mime-part, not just a
part of a mime part in multipart/signed mode.
2003-11-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_ctx_parse_status): We might need to
convert the passwd from UTF-8 into the locale charset. Fixes bug
#50485.
2003-10-31 Not Zed <NotZed@Ximian.com>
* camel-cms-context.[ch]: removed, now redundant.
2003-10-30 Not Zed <NotZed@Ximian.com>
* camel-smime-context.c (sm_get_passwd): implement something basic.
* camel-cipher-context.h: Added a note about api inconsistencies.
2003-10-30 Not Zed <NotZed@Ximian.com>
* camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt):
fix for cipher_decrypt changes.
* camel-gpg-context.c, camel-cipher-context.c: moved all the init
code to the end to save having to keep forward declarations
around.
(camel_cipher_decrypt): changed to take mimepart input and return
a mimepart.
(gpg_decrypt): fix for changed args.
2003-10-29 Not Zed <NotZed@Ximian.com>
* camel-smime-context.[ch]: replaced entirely with a new
implementation which inherits from camel-cipher-context, and add
to build.
* camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt):
fix for cipher_encrypt api changes.
(camel_multipart_encrypted_decrypt): use g_ascii_strcasecmp.
* camel-gpg-context.c (gpg_encrypt): Fix to handle input/output as
parts not streams
* camel-cipher-context.c (camel_cipher_encrypt): change to take
mimeparts rather than streams as input/output. And remove the
'sign' argument, it is implied if userid is supplied.
2003-10-28 Not Zed <NotZed@Ximian.com>
* tests/smime/pgp.c (main): fix for ciphercontext api changes.
* camel-multipart-signed.c (camel_multipart_signed_verify): pass
in the part to cipher_verify directly.
(camel_multipart_signed_sign): let the cipher context setup the
part details.
* camel-gpg-context.c (gpg_sign): put the signature stream into a
mimepart, with appropriate headers/encoding.
(swrite): write out a mimepart rather than a stream.
(gpg_verify): handle changed args.
* camel-cipher-context.c (camel_cipher_sign): write the signature
to a mimepart rather than a simple stream.
(camel_cipher_verify): take the signature as a mimepart not a
stream.
2003-10-22 Not Zed <NotZed@Ximian.com>
* camel-utf8.c (camel_ucs2_utf8, camel_utf8_ucs2): helpers for
ucs2 stuff. ucs2 is 16 bit truncated unicode.
2003-10-28 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c: We should check List-Post before List-Id
(List-Post has to contain the mailing-list posting address,
whereas List-Id does not.) WAlso moved X-Loop to after List-Id to
make FreeBSD lusers happy. Fixes bug #32297.
2003-10-28 Jeffrey Stedfast <fejj@ximian.com>
* Fixes bug #35083
* providers/imap/camel-imap-store.c (connect_to_server): Same
here.
* providers/pop3/camel-pop3-store.c (connect_to_server): Same as
the smtp changes.
* providers/smtp/camel-smtp-transport.c (connect_to_server): If
HAVE_SSL is undefined, don't default to raw connections if the
option to connect via ssl is set. Instead set an exception and
return fail.
2003-10-27 Frederic Crozat <fcrozat@mandrakesoft.com>
* camel-mime-utils.c: (camel_header_decode_date):
better detection of broken date to give to broken_date_parser.
2003-10-24 Jeffrey Stedfast <fejj@ximian.com>
* camel-text-index.c (text_index_name_add_buffer): If a word is
longer than CAMEL_TEXT_INDEX_MAX_WORDLEN, then ignore it. This
fixes bug #50096.
2003-10-23 Jeffrey Stedfast <fejj@ximian.com>
* *.c: Removed unneeded CAMEL_OBJECT() casts.
2003-10-21 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-folder.c (local_getv, local_setv):
use the right tag name for the index_body arg.
(local_sync): write any persistent metadata - to make it
persistent.
(camel_local_folder_construct): turn off indexing, for now, it
should be done in local_setv.
* providers/local/camel-local-folder.h: change body_index to a bool
type.
* camel-object.c (cobject_state_read, cobject_state_write): handle
bool types
(cobject_state_write): make sure we free all arg types.
* camel-arg.c (camel_argv_build):
(camel_arggetv_build): handle bool type.
* camel-arg.h: Added BOO (bool) type.
2003-10-15 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_folder_info_build): Fix so we output the
tree in sorted depth-first order, rather in reverse.
2003-10-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-sasl-kerberos4.c: Fixed a #include.
2003-10-10 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-provider.c: set the url fragment
flag for local providers.
* camel-provider.h: Move the URL_PART_NEED bits to the high 16
bits, to allow for easier changes in the future. Added a
URL_PART_FRAGMENT flag for providers that use fragment = folder
path.
2003-10-09 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_date): Allow timezone offsets
to be up to 14 hours ahead of UTC. Fixes bug #49357.
* broken-date-parser.c (get_tzone): Same.
2003-10-08 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_helo): Removed an
unused variable.
2003-09-25 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_helo): If the
localhost lookup results in a numeric IPv6 host, use the form
"[IPv6:<addr>]" as specified in rfc2821. Fixes bug #46006.
2003-09-23 Ettore Perazzoli <ettore@ximian.com>
* providers/local/camel-local-provider.c: Set the IS_STORAGE bit
in the mbox provider, since it can now contain a hierarchy of
folders.
2003-09-23 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (get_folder): If the CREATE
flag is set and the parent .sbd directory does not exist, create
it.
* camel-mime-utils.c (append_8bit): Don't forget to flush the
iconv conversion.
* tests/message/test4.c (main): Don't try dot-files.
2003-09-22 Not Zed <NotZed@Ximian.com>
** See bug #41610
* providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a
divide by 0 for 0 length messages.
2003-09-22 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-provider.c: Added "offline_sync"
option, which lets you synchronise all mail to local storage
automagically.
* camel-disco-folder.c (cdf_folder_changed): hook onto the folder
changed single, for all new messages, check that they are online
using another thread, if the offline_sync option has been enabled
for this store.
2003-09-21 Not Zed <NotZed@Ximian.com>
* camel-session.c (session_thread_destroy): call proper entry
point for freeing the message.
2003-09-18 Not Zed <NotZed@Ximian.com>
* camel-folder.c (filter_filter): register the filtering process
for progress, and do progress of the filtering process.
2003-09-17 Not Zed <NotZed@Ximian.com>
* camel.c (camel_init): init camel operation.
* camel-operation.c (camel_operation_reset): removed, not used,
not worth it.
(camel_operation_mute): new method to stop all status updates
permanently.
(*): Changed to use thread specific data and a list rather than a
hashtable.
(cancel_thread): removed.
(camel_operation_register): return the previously registered op.
2003-09-22 Jeffrey Stedfast <fejj@ximian.com>
* providers/nntp/camel-nntp-store.c (connect_to_server): Fix the
code that creates a new ssl stream to pass the correct arguments
and the proper flags.
* providers/imapp/camel-imapp-folder.c (imap_sync): Cast the
CamelFolder to a CamelIMAPPFolder to hush some compiler warnings.
* camel-mime-utils.h: Define a struct _CamelContentDisposition
(allows the imapp code to compile)
* providers/imapp/camel-imapp-driver.c: #include <string.h>
2003-09-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (camel_transfer_encoding_to_string): New
function to replace the one from camel-mime-part.c
(camel_transfer_encoding_from_string): Same.
(camel_content_transfer_encoding_decode): Renamed from
camel_header_content_encoding_decode().
* camel-mime-part.c (camel_mime_part_encoding_to_string): Removed.
(camel_mime_part_encoding_from_string): Removed.
* camel-data-wrapper.[c,h]: updated for CamelTransferEncoding
namespace changes
* camel-folder-summary.c: updated for CamelTransferEncoding
namespace changes
* camel-mime-filter-bestenc.[c,h]: updated for CamelTransferEncoding
namespace changes
* camel-mime-message.c: updated for CamelTransferEncoding
namespace changes
* camel-mime-part-utils.c: updated for CamelTransferEncoding
namespace changes
* camel-multipart-signed.c: updated for CamelTransferEncoding
namespace changes
* camel-smime-context.c: updated for CamelTransferEncoding
namespace changes
* providers/imapp/camel-imapp-utils.c: updated for
CamelTransferEncoding namespace changes
* tests/lib/messages.c: updated for CamelTransferEncoding
namespace changes
* tests/message/test1.c: updated for CamelTransferEncoding
namespace changes
2003-09-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.[c,h]: namespaced the encoding/decoding
routines.
* camel-mime-filter-basic.c: updated for namespace changes to the
encoding/decoding routines in camel-mime-utils.c
* camel-multipart.c: updated for namespace changes to the
encoding/decoding routines in camel-mime-utils.c
* camel-sasl-digest-md5.c: updated for namespace changes to the
encoding/decoding routines in camel-mime-utils.c
* camel-sasl.c: updated for namespace changes to the
encoding/decoding routines in camel-mime-utils.c
* camel-vee-folder.c: updated for namespace changes to the
encoding/decoding routines in camel-mime-utils.c
* providers/imap/camel-imap-search.c: updated for namespace
changes to the encoding/decoding routines in camel-mime-utils.c
* providers/pop3/camel-pop3-folder.c: updated for namespace
changes to the encoding/decoding routines in camel-mime-utils.c
2003-08-26 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-parser.[c,h]: s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g and
s/_header_state/_camel_mime_parser_state/g
* camel-filter-driver.c: Same.
* camel-folder-summary.c: Here too.
* camel-http-stream.c: And here.
* camel-mime-message.c: ...
* camel-mime-part-utils.c: ...
* camel-mime-part.c: ...
* camel-movemail.c: ...
* camel-multipart-signed.c: ...
* camel-multipart.c: ...
* providers/local/camel-mbox-folder.c: ...
* providers/local/camel-mbox-summary.c: ...
* providers/local/camel-mh-summary.c: ...
* providers/nntp/camel-nntp-summary.c: ...
* providers/pop3/camel-pop3-folder.c: ...
2003-08-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.[c,h]: Namespaced.
* camel-data-wrapper.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-digest-folder.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-filter-driver.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-filter-search.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-folder-search.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-folder-summary.[c,h]: updated for namespace changed made
to camel-mime-utils.[c,h]
* camel-http-stream.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-http-stream.h: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-internet-address.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-medium.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-message.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-parser.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-part-utils.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-part.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-movemail.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-multipart-encrypted.c: updated for namespace changed made
to camel-mime-utils.[c,h]
* camel-multipart-signed.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-multipart.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-search-private.[c,h]: updated for namespace changed made
to camel-mime-utils.[c,h]
* camel-types.h: updated for namespace changed made to
camel-mime-utils.[c,h]
* providers/imap/camel-imap-folder.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/imap/camel-imap-store-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/imap/camel-imap-utils.c: updated for namespace changed
made to camel-mime-utils.[c,h]
* providers/imapp/camel-imapp-utils.[c,h]: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-local-summary.[c,h]: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-maildir-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-mbox-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-spool-summary.h: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/nntp/camel-nntp-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/nntp/camel-nntp-utils.c: updated for namespace changed
made to camel-mime-utils.[c,h]
* providers/pop3/camel-pop3-folder.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/sendmail/camel-sendmail-transport.c: updated for
namespace changed made to camel-mime-utils.[c,h]
* providers/smtp/camel-smtp-transport.c: updated for namespace
changed made to camel-mime-utils.[c,h]
2003-09-16 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-folder.c
(camel_mbox_folder_get_full_path): Implement a temp hack so trunk
works until we merge in new-ui-branch.
* camel-stream-filter.c (do_flush): Don't warning about how we
haven't written anything to the stream, this is not an
error. fflush() doesn't care if you try to fflush() a stream
without writing to it, so we shouldn't care either.
2003-09-15 Not Zed <NotZed@Ximian.com>
* providers/imapp/camel-imapp-store.c (store_resp_list)
(imap_login, try_sasl, imap_try_authenticate): removed dead code.
* providers/imapp/camel-imapp-stream.c: return -1 if stream not
set.
* providers/imapp/camel-imapp-engine.c (iterate_completion): put
done request on the done queue, so all requests are always
somewhere.
(camel_imapp_engine_command_free): just spit warnings of active
messages being freed, but abort if the item isn't in any list.
Also remove the node from its list before going on.
(iterate_untagged, iterate_continuation, iterate_completion):
staticifiy.
* providers/imapp/camel-imapp-provider.c
(camel_imapp_module_init): move camel_exception_setup call here.
* providers/imapp/camel-imapp-driver.c
(camel_imapp_driver_get_type): remove execption setup here, it
isn't early enough.
(camel_imapp_driver_list): handle exceptions.
2003-09-12 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-folder.c
(camel_mbox_folder_get_full_path): Implements
CamelLocalFolder::get_full_path() (publicly namespaced so that
CamelMboxStore can re-use them).
(camel_mbox_folder_get_meta_path): Same.
* providers/local/camel-mbox-store.c (get_folder): Changed the way
the path is constructed, since we now handle subdirectories and
stuff.
(delete_folder): Try deleting the Folder.sbd directory. We also
need to manage our own meta files since CamelLocalStore's impl
constructs paths differently than what we need.
(create_folder): Implemented.
(rename_folder): Implemented.
(scan_dir): Scan an mbox tree
(get_folder_info): Implemented using scan_dir().
* providers/local/camel-local-store.c (delete_folder): Set fi->url
to the correct value, meaning we need to prefix it with the
protocol and the folder_name is not actually part of the path, it
is a separate component to the url.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): Use the new class virtual method
to construct the full folder path and all the meta files.
(local_get_full_path): Implemented default get_full_path method.
(local_get_meta_path): Implemented default get_meta_path method.
2003-09-11 Dan Winship <danw@ximian.com>
* Makefile.am (noinst_LTLIBRARIES): Remove libcamel-static.la
2003-09-05 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (imap_noop): call
camel_folder_sync bypassing the folder lock. See
imap_store_refresh_folders too.
2003-09-04 David Woodhouse <dwmw2@infradead.org>
* providers/camel-imap-store.[ch]: Add PREAUTH handling and
pine/mutt/etpan/etc.-style 'ssh <mailhost> exec imapd' support.
2003-09-03 David Woodhouse <dwmw2@infradead.org>
* camel-stream-process.[ch]: New stream implementation for running
commands.
* Makefile.am: Compile the above
2003-08-20 Not Zed <NotZed@Ximian.com>
** See bug #47765.
* camel-folder-search.h: Removed match1 member.
* camel-folder-search.c (camel_folder_search_match_expression):
use current directly rather than match1. This method isn't used
anywhere anyway.
(search_not): remove match1 stuff.
(search_match_all): properly handle the match-all against 1
message as a scalar result, not an array result.
2003-09-03 Not Zed <NotZed@Ximian.com>
* camel-http-stream.c (camel_http_stream_set_proxy): handle NULL
proxy_url - unset the proxy.
2003-08-29 Not Zed <NotZed@Ximian.com>
* camel-object.c (camel_object_state_write):
(cobject_getv):
(cobject_setv, cobject_state_read, cobject_state_read)
(cobject_state_write): removed debug printfs.
* providers/local/camel-local-folder.c (local_getv): Need to copy
the local properties list before passing it out, since it's freed.
2003-08-27 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-folder.c (local_getv): implement
PERSISTENT_PROPERTIES, for index mode.
* camel-object.c (cobject_state_read): Also add property reading,
and bump version to 1.
(cobject_state_write): add persistent property writing.
2003-08-26 Not Zed <NotZed@Ximian.com>
* camel-folder.c (folder_getv): chain up properly.
* camel-file-utils.c (camel_file_util_savename): helper to create
a .#filename filename.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): init meta-data for local folders.
(local_getv): chain up properly, if args are not processed, rather
than don't if they aren't.
2003-08-23 Not Zed <NotZed@Ximian.com>
* camel-object.c (cobject_class_init): added a new event,
meta_changed.
(camel_object_meta_set, camel_object_meta_get): meta-data api.
(camel_object_free_hooks): Free meta-data if it is set on the
object.
* providers/local/camel-local-folder.c
(camel_local_folder_get_type): setup a property list for local
folders, just 'index_body' at present.
2003-08-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (pipe_to_system): Added some more error
checking for reading/writing to the pipes. Fixes bug #47880.
2003-08-21 Jeffrey Stedfast <fejj@ximian.com>
* camel-data-wrapper.c (decode_to_stream): Don't poke
wrapper->stream directly, use camel_data_wrapper_write_to_stream()
instead as this simplifies things and makes the imap data wrapper
implementation Just Work (tm).
* providers/imap/camel-imap-wrapper.c: changed prototype of
write_to_stream() to return ssize_t.
2003-08-20 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate): Make
sure to ref the stream. Fixes bug #47749.
2003-08-18 Not Zed <NotZed@Ximian.com>
* camel-http-stream.c: Various fixes to make it work.
* tests/smime/pgp-mime.c (main): added missing 'ret' variable.
* providers/smtp/camel-smtp-transport.c (connect_to_server):
* providers/imapp/camel-imapp-store.c (connect_to_server:
* providers/imap/camel-imap-store.c (connect_to_server):
* providers/pop3/camel-pop3-store.c (connect_to_server):
* camel-http-stream.c (http_connect): change service->session for
tcp_stream_ssl_new.
* camel-tcp-stream-ssl.c: Changed service to session, and fix some
refcounting of it.
include camel-operation.h
2003-08-15 Not Zed <NotZed@Ximian.com>
** See bug #47634.
* tests/lib/messages.c (test_message_compare): check
write_to_stream returns.
(message_dump_rec): helper to dump message structure.
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): dont set content
encoding here.
(camel_mime_part_construct_content_from_parser): set it here
instead, on every part. basically same as setting the
mime_type_field always.
* camel-multipart-signed.c (camel_multipart_signed_class_init):
* camel-mime-message.c (camel_mime_message_class_init):
* camel-multipart.c (camel_multipart_class_init): override
decode_to_stream to always do the same as write_to_stream, since
we can never be encoded.
2003-08-15 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate):
Don't attach any filters to decode base64/qp/etc.
2003-08-14 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part.c (write_to_stream): Save errno when
flushing/unreffing the filter stream.
2003-08-13 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part.c (write_to_stream): If the content is
base64/qp/uu/etc encoded but the part is 7bit/8bit/(or otherwise
non-encoded), set reencode to TRUE so that we decode the original
content stream. Fixes a bug noticed on
evolution-patches@ximian.com where a patch had a
Content-Transfer-Encoding of 7bit but was base64 encoded.
2003-08-13 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (camel_folder_summary_remove_range): Fix
the range check, we were stopping removal of 1 or 2 removals, for
some odd and completely uncomprehensible reason. Perhaps debug
left in?
2003-08-13 Not Zed <NotZed@Ximian.com>
** See bug #47517.
* camel-vee-folder.c (vee_sync): Always rebuild folder on any
sync, not just expunge ones.
2003-08-11 Not Zed <NotZed@Ximian.com>
* providers/imapp/camel-imapp-store.c (imap_get_folder_info):
force connect manually so basics work.
** See bug #45505.
* camel-service.c (camel_gethostbyname): duh, pthread_create
returns the error code directly, not via errno.
(camel_gethostbyaddr): Same, also properly handle the failure
case.
2003-08-01 Not Zed <NotZed@Ximian.com>
** See bug #47208.
* camel-filter-search.c (match_all): match-all with no arguments
should always return TRUE.
* camel-folder-search.c (camel_folder_search_execute_expression):
print a warning when we get an invalid result type & fixed a leak
for that case.
2003-08-08 Jeffrey Stedfast <fejj@ximian.com>
* tests/message/test4.c: New test suite for the mime parser (which
is where the below 2 fixes were noticed).
* camel-mime-parser.c (folder_boundary_check): Calculate 'len' by
subtracting the boundary start from inend rather than 'atleast'.
(folder_scan_content): Calculate 'inend' differently depending on
the EOF state.
2003-08-08 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-filter-tohtml.c (html_convert): Rather than checking
*inptr == '\n', check inptr >= inend - this gets rid of an Invalid
Read report from valgrind.
* camel-mime-part.c (write_to_stream): Don't necessarily re-encode
just because the encodings differ. Need to look into making it so
that message/rfc822 and multipart parts ignore the
Content-Transfer-Encoding header and just keep their 'encoding'
bits set to DEFAULT.
2003-08-05 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (get_content): Updated.
* camel-mime-message.c (camel_mime_message_init): Don't override
the mime_type here.
(process_header): Updated to use CamelDataWrapper's mime_type
field.
(find_best_encoding): Same.
(best_encoding): Here too.
* camel-digest-folder.c (camel_digest_folder_new): Updated for
CamelMimePart::content_type change.
* camel-mime-part.c (camel_mime_part_init): Override our parent
class's default mime_type.
(camel_mime_part_finalize): Don't need to unref the content_type
anymore.
(process_header): Updated to use CamelDataWrapper's mime_type
field.
(camel_mime_part_set_filename): Same.
(camel_mime_part_get_filename): Same.
(camel_mime_part_get_content_type): Same.
(set_content_object): Here too.
(write_to_stream): Updated.
(construct_from_parser): Updated.
* camel-mime-part.h: Remove the content_type field.
2003-07-31 Jeffrey Stedfast <fejj@ximian.com>
* tests/lib/messages.c (test_message_compare_content): If the
chunks differ, perform a hexdump on the data being compared so
that we may analyse it easier.
* camel-multipart-signed.c (write_to_stream): Return ssize_t.
* camel-mime-utils.h: Added the CamelMimePartEncodingType enum
here.
* camel-mime-part.h: Removed the CamelMimePartEncodingType enum
from here.
* camel-mime-part.c (write_to_stream): Updated to return
ssize_t. Also minor changes to only re-encode the content stream
if the charset or encoding changed (this way we write it out in
the original raw form if nothing changed).
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Drastically
simplify. We no longer scan html content to try and find the
charset, nor do we care about converting the content to UTF-8 and
handling broken windows charsets.
* camel-mime-message.c (find_best_encoding): Use
decode_to_stream() here. Also updated to not assume the content
charset is UTF-8 since it is very likely not the case anymore
since data-wrappers no longer are converted to UTF-8 at parse
time.
* camel-folder-summary.c (summary_build_content_info_message): Use
decode_to_stream instead here too.
* camel-folder-search.c (match_words_1message): Use
decode_to_stream instead of write_to_stream so we can search the
contents.
* camel-data-wrapper.c (camel_data_wrapper_init): Set the default
encoding to DEFAULT.
(write_to_stream): Updated to return ssize_t
(camel_data_wrapper_decode_to_stream): New virtual function to
decode a data wrapper to a stream (results in nearly identical
behaviour to the old write_to_stream method).
(decode_to_stream): Default implementation of above virtual
method. Decodes base64/qp/etc streams.
* camel-data-wrapper.h: Removed the rawtext bit and added an
encoding member.
2003-08-01 Jeffrey Stedfast <fejj@ximian.com>
* tests/smime/pgp-mime.c: Same.
* tests/smime/pgp.c: Updated to build and to import some custom
gpg keys for use with testing.
2003-07-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-message.c (write_to_stream): Also updated.
* camel-data-wrapper.c (write_to_stream): This should return ssize_t
* camel-multipart-signed.c (write_to_stream): Updated.
* camel-multipart.c (write_to_stream): Same.
* camel-mime-part.c (write_to_stream): Here too.
2003-07-11 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
* camel-iconv.c: Fix for #46168 'some additional locale aliases
required for chinese support'.
2003-07-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_word): Revert NotZed's fix for
bug #42170 - this causes even more problems than it solves. See
bug #46331 for info. Basically, each address header would be
converted to UTF-8 twice which means no raw 8bit address header
would render correctly.
(header_decode_mailbox): Perform a sanity check on the resultant
addr->str to make sure that it is valid UTF-8, if not convert it
to UTF-8. Fixes bug #42170.
2003-07-23 Ettore Perazzoli <ettore@ximian.com>
* camel-provider.c (camel_provider_init): Print the provider
directory as well, for debugging.
2003-07-23 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-message.c (find_best_encoding): Revert my previous
changes to this function.
* camel-mime-utils.h: Revert previous changes.
* camel-mime-part.h: Revert previous changes.
* camel-mime-part-utils.c: Revert previous changes.
* camel-data-wrapper.c (camel_data_wrapper_init): Revert previous
changes.
(write_to_stream): Revert previous changes.
2003-07-23 Dan Winship <danw@ximian.com>
* camel-block-file.c: #include camel-file-utils.h for camel_read()
* camel-uid-cache.c (camel_uid_cache_save): Remove unused variable
and label.
* camel-url.c: #include camel-string-utils.h for camel_strdown
* providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Cast
an (unsigned char *) to (char *) to fix a warning
2003-07-17 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-message.c (find_best_encoding): Updated to convert
to/from the correct charset (since content is no longer
necessarily in UTF-8).
(best_encoding): Free the charset string when we're done with it.
* camel-stream-fs.c (stream_read): Increment the seekable stream
position by the number of bytes read. Oops.
(stream_write): Same here.
2003-07-17 Timo Sirainen <tss@iki.fi>
** See bug #42573
* providers/imap/camel-imap-folder.c (do_append): Only free the
response after we have finished the literal request, otherwise we
could try processing folder updates incorrectly.
2003-07-14 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.h: Add the CamelMimePartEncodingType definition
here.
* camel-mime-part.h: Remove the CamelMimePartEncodingType
definition.
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Don't do any of the
auto-detection we used to do here anymore. Just read the content
into a memory buffer and record the encoding type.
(camel_mime_part_construct_content_from_parser): Don't mangle the
Content-Type struct here anymore.
* camel-data-wrapper.c (camel_data_wrapper_init): Init encoding to
DEFAULT.
(write_to_stream): If the stream needs to be decoded, decode it.
2003-07-15 Jeffrey Stedfast <fejj@ximian.com>
* camel-stream-fs.c (stream_read): If we read 0 bytes, then set
eos to TRUE.
2003-07-09 Jeffrey Stedfast <fejj@ximian.com>
Get rid of the #ifdef ENABLE_THREADS since we no longer plan to
support/maintain this.
* providers/nntp/camel-nntp-store.c: Here.
* providers/nntp/camel-nntp-newsrc.c: And here.
* providers/nntp/camel-nntp-folder.c: Same.
* providers/local/camel-local-folder.c: And here.
* camel-block-file.c: Here too.
* camel.c: Same.
* camel-certdb.c: Here too.
* camel-charset-map.c: And here.
* camel-cipher-context.c: "
* camel-data-wrapper.c: "
* camel-digest-folder.c: "
* camel-exception.c: "
* camel-folder.c: "
* camel-folder-summary.c: "
* camel-lock-client.c: "
* camel-mime-utils.c: "
* camel-object.c: "
* camel-operation.c: "
* camel-partition-table.c: "
* camel-sasl-popb4smtp.c: "
* camel-service.c: "
* camel-session.c: "
* camel-store.c: "
* camel-store-summary.c: "
* camel-text-index.c: "
* camel-transport.c: "
* camel-vee-folder.c: "
* camel-tcp-stream-openssl.c: Removed pthread.h, it isn't needed.
2003-07-09 Larry Ewing <lewing@ximian.com>
* camel.h: remove reference to camel-pgp-mime.h
2003-07-08 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-mime.[c,h]: Removed.
* camel-iconv.c: Updated (new copy/paste from e-iconv).
* camel-block-file.c (camel_block_file_get_block): Use
camel_read() rather than libc read.
* camel-tcp-stream-raw.c (stream_read): Use camel_read().
(stream_write): Use camel_write().
* camel-stream-fs.c (stream_read): Use camel_read().
(stream_write): Use camel_write().
2003-07-07 Jeffrey Stedfast <fejj@ximian.com>
* providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): Use
camel_mkdir().
* providers/imap/camel-imap-folder.c (camel_imap_folder_new): Use
camel_mkdir().
* camel-session.c (get_storage_path): Use camel_mkdir().
* camel-store.c (camel_mkdir_hier): Removed.
* camel-data-cache.c (camel_data_cache_new): Updated to use
camel_mkdir().
(data_cache_path): Same.
* camel-file-utils.c (camel_mkdir): Renamed and documented.
(camel_file_util_safe_filename): Documented.
(camel_read): Moved here from camel-io.c
(camel_write): Same.
* camel-io.[c,h]: Removed.
* camel-uid-cache.c (camel_uid_cache_new): Use the
camel-file-utils.c version of mkdir.
2003-07-07 Jeffrey Stedfast <fejj@ximian.com>
* camel-session.c (camel_session_init): Updated for string-utils
namespace changes.
* camel-provider.c: Updated for string-utils namespace changes.
* camel-mime-part.c (init_header_name_table): Updated for
string-utils namespace changes.
* camel-mime-message.c (camel_mime_message_class_init): Updated
for string-utils namespace changes.
(camel_mime_message_init): Same.
* camel-mime-filter-enriched.c
(camel_mime_filter_enriched_class_init): Updated for string-utils
namespace changes.
* camel-folder-summary.c (camel_folder_summary_init): Updated for
string-utils namespace changes.
* camel-string-utils.[c,h]: Renamed from string-utils.[c,h] and
also namespaced all functions.
2003-07-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-sasl-digest-md5.c (digest_response): Don't quote the
charset value, the qop value, nor the response value. Fixes bug
#45712.
2003-07-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_format_date): Use gmtime_r() instead
of using gmtime() and memcpy() to try and be "atomic".
2003-06-30 Dan Winship <danw@ximian.com>
* camel-folder-search.c (camel_folder_search_finalize): free the
summary hash
2003-06-24 David Woodhouse <dwmw2@infradead.org>
* camel-mime-utils.c (header_format_date): Put day of week into
outgoing email.
2003-06-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder-summary.h: Added prototype for
camel_folder_summary_remove_range().
2003-06-25 Not Zed <NotZed@Ximian.com>
** See bug #45386
* camel-service.c (camel_gethostbyname, camel_gethostbyaddr): Make
sure we have an exception that we test against.
2003-06-20 Not Zed <NotZed@Ximian.com>
** See bug #43887
* camel-mime-filter-enriched.c (camel_enriched_to_html): simple
wrapper to convert enriched to html in one go.
2003-06-18 Not Zed <NotZed@Ximian.com>
* camel-service.c (get_hostbyaddr, get_hostbyname): if we got
cancelled, the message is floating, so free it.
(struct _lookup_msg): Add a cancelled tag.
(camel_gethostbyname, camel_gethostbyaddr): if we get a
failure/cancel, cancel the lookup thread and detach, so we dont
have to wait for it to return. cleanup changed to handle the case
where we didn't get a reply message.
2003-06-13 Jeffrey Stedfast <fejj@ximian.com>
* providers/pop3/camel-pop3-folder.c (pop3_finalize): Made static
(to match the prototype).
2003-06-13 Larry Ewing <lewing@ximian.com>
* camel-folder-thread.c (camel_folder_thread_messages_apply):
don't leak the summary when reloading it. Fixes a very large
leak.
2003-06-17 Not Zed <NotZed@Ximian.com>
* camel-vee-folder.c (vee_folder_remove_folder): Calculate ranges
to remove folder info's more efficiently. affects shutdown
performance on big vfolders signifinantly.
(vee_folder_build_folder): do the same here, when rebuilding a
folder's definition.
* camel-folder-summary.c (camel_folder_summary_remove_index): new
function to drop a range of index entries in one hit.
2003-06-16 Not Zed <NotZed@Ximian.com>
** See bug #31745
* providers/imap/camel-imap-store-summary.c
(camel_imap_store_summary_namespace_new): Workaround a shell bug -
if the namespace has '#' in it, then strip it.
2003-06-16 Not Zed <NotZed@Ximian.com>
** See bug #44322
* providers/imap/camel-imap-command.c (imap_command_strdup_vprintf):
If we are outputting a folder name, make sure we calculate buffer
size based on the raw/utf7 version
** See bug #44121
* camel-multipart-signed.c (signed_get_part): If we can't parse
the content, but we have a stream, just use that as the content.
2003-06-05 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #40788.
* providers/pop3/camel-pop3-engine.c (camel_pop3_engine_new): Now
takes a flags argument. Currently there is only 1 flag which can
be used to disable Pop3 server extensions.
(get_capabilities): Don't check for Pop3 server extensions if the
DISABLE_EXTENSIONS flag is set on the engine.
(camel_pop3_engine_iterate): If we get a response that is neither
+OK nor -ERR, default to treating it like a -ERR.
* providers/pop3/camel-pop3-store.c (connect_to_server): Check for
the disable_extensions param.
* providers/pop3/camel-pop3-provider.c: Define a checkbox to
disable all POP3 extension support.
2003-06-11 Jeffrey Stedfast <fejj@ximian.com>
Partial fix for bug #44457.
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Make sure to set
rawtext to FALSE if we successfully convert the text to UTF-8.
* camel-data-wrapper.c (camel_data_wrapper_init): Default the
value of rawtext to TRUE instead of FALSE. This way if the mailer
decides to try displaying a non-textual part as text, it knows
that it needs to convert the content to UTF-8.
2003-06-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-uid-cache.c (camel_uid_cache_new): Create the directory
with mode 0777 and the cache file itself with mode 0666. Let the
user's umask filter the permissions. Instead of saving the fd on
the Cache object, instead save the filename. Use camel_read()
instead of expecting read() to just always work without getting an
EINTR/etc.
(maybe_write_uid): Don't do anything if cache->fd == -1, this
means an error has occured in a previous callback. Replace the 2
calls to write() with camel_write() and check their return
values. If either of them fails, set cache->fd to -1 (GHashTable
doesn't give us a way to abort foreach'ing thru the table).
(camel_uid_cache_save): Save to a temp file instead of overwriting
the original. Do proper error checking, etc. Also added some
smarts about whether to try and overwrite the old cache even if we
haven't successfully saved all the uids in the cache.
(camel_uid_cache_destroy): Free the cache->filename, no longer
need to close (cache->fd).
2003-06-11 Larry Ewing <lewing@ximian.com>
* camel-text-index.c (text_index_normalise): use g_utf8_strdown
properly.
2003-06-09 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-message.c (find_best_encoding): Add the
CAMEL_BESTENC_TEXT bit to enctype if the part is a text part.
* camel-mime-filter-bestenc.c
(camel_mime_filter_bestenc_get_best_encoding): If we have any
nul-bytes or if the content is non-text and contains any 8bit
octets, we need to use base64. Fixes bug #44344.
|