1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
|
2003-04-17 Not Zed <NotZed@Ximian.com>
* mail-signature-editor.c (menu_help): remove the help menu item
handling, as the help menu is removed. Clean up of #38927.
2003-04-16 Not Zed <NotZed@Ximian.com>
* importers/Makefile.am (%.server.in): Remove COMPONENTDIR and set
BINDIR and VERSION instead.
* (importers/GNOME_Evolution_Mail_Pine_Intelligent_Importer.server.in.in,
importers/GNOME_Evolution_Mail_Mbox_Importer.server.in.in,
importers/GNOME_Evolution_Mail_Outlook_Importer.server.in.in,
importers/GNOME_Evolution_Mail_Netscape_Intelligent_Importer.server.in.in,
importers/GNOME_Evolution_Mail_Elm_Intelligent_Importer.server.in.in:) :
Convert the type back to exe, and point to the main evolution
executable. Fixes #41164.
2003-04-16 Jeremy Katz <katzj@redhat.com>
* evolution-mail.schemas: schema keys can't be directories (#41419)
2003-04-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (config_wizard_set_page): Fixed a logic
error that was the cause of bug #41389.
2003-04-15 Not Zed <NotZed@Ximian.com>
* For bug #41199.
* subscribe-dialog.glade: New interface from Anna. Setup the
wigdet names and add a progress bar, and set the default opening
size to something reasonable.
* subscribe-dialog.c (subscribe_dialog_construct): changes to
match the glade file chagnes. remove the search stuff. hide the
progress bar by default.
(sc_activity_cb): show the progress bar when we're active, hide
it when inactive. dont set any status.
(struct _SubscribeDialogPrivate): Remove the appbar.
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* mail-mt.c (mail_msg_check_error): Free the temporary error text.
2003-04-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_gui_add_rule): Set the correct border
width and vbox spacing to be HIG compliant. Fixes bug #41209.
(vfolder_edit_rule): Same here.
* local-config.glade: Updated to comply with the HIG. Fixes bug
#41244.
2003-04-14 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (build_dialogue): create a stock cancel button
with a cancel all text.
(build_dialogue): Create stock-like cancel buttons with no
accelerators. A workaround for #41043.
* message-list.c (ml_tree_value_at): if the node is the root node,
do nothing. etable shouldn' really be searching the root node if
it isn't visible ...? For #41190.
2003-04-14 Larry Ewing <lewing@ximian.com>
* evolution-mail.schemas: add proper defaults for the fonts
settings.
2003-04-11 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #41243.
* message-tag-followup.c (construct): Change the window border
width and packing to comply with the HIG.
* message-tags.glade: Updated to comply with the HIG.
2003-04-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (request_password): Add padding around the
entry/checkbox and change the border width of the dialog window to
comply with the HIG. Fixes bug #41004.
2003-04-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-search.c (mail_search_construct): Change the action button
ordering and also change the padding to comply with the HIG. Fixes
bug #41046 and at least part of bug #41142 (except for the
s/Search/OK/ thing, which has not been agreed upon yet).
* mail-send-recv.c (build_dialogue): Change the padding to comply
with the GNOME HIG. Fixes bug #41001.
2003-04-09 Not Zed <NotZed@Ximian.com>
** See bug #40921
* subscribe-dialog.c (subscribe_dialog_finalise): add a finalise
funciton which actually free's resources.
(get_short_folderinfo_got): dont call activity callback implicitly
here, do it from the callers callback.
(subscribe_get_short_folderinfo): dont call activity callback
here.
(fe_got_children): check implicitly if we were cancelled. also
add back the node sort, and also call the activity callback from
here instead of breaking layers of abstraction as above.
(folder_etree_cancel_all): new method, force a cancel of all ops,
but dont free anything.
(store_data_free): dont unref the widget anymore, not needed.
call cancel all on the ftree if its still active.
(sc_close_pressed): destroy the subscribe dialogue as well as the
app, it doesn't seem to get destroyed otherwise.
(sc_activity_cb): do nothing if we have been cancelled.
(subscribe_dialog_destroy): trigger a cancel of all outstanding
ops. only free most data in the finalise method.
(subscribe_dialog_class_init): hook onto finalise.
(store_data_get_widget): dont ref the widget.
* mail-callbacks.c (manage_subscriptions): sink the dialog.
2003-04-09 Larry Ewing <lewing@ximian.com>
* mail-preferences.c (font_share_changed): set sensitivity of
font pickers based on share setting.
(mail_preferences_construct): initialize font prefs.
(mail_preferences_apply): set the font prefs.
(font_changed): add gnome-font-picker changed function.
* mail-preferences.h: add font pref widgets.
* mail-config.c (mail_config_init): add notify to on fonts dir.
(config_write_fonts): write out a gtkrc that overrides the gtkhtml
fonts settings based on the gconf keys.
* mail-config.glade: move display font setttings to mail prefs.
* evolution-mail.schemas: add font settings.
2003-04-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_view_message): Add a check for a NULL uid
here. Don't see how it can happen, but it seems to have for
Aaron. Anyways, this should fix bug #40904.
2003-04-08 Dan Winship <danw@ximian.com>
* mail-config.glade: Remove color specs from the druid so it will
use the theme colors
* importers/GNOME_Evolution_Mail_Elm_Intelligent_Importer.server.in.in:
* importers/GNOME_Evolution_Mail_Netscape_Intelligent_Importer.server.in.in:
* importers/GNOME_Evolution_Mail_Pine_Intelligent_Importer.server.in.in:
Fix bad XML noticed by Not Zed
2003-04-08 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_gui_add_rule): swap button order. For
#40900.
2003-04-07 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (ml_tree_value_at): For string columns, never
return NULL - always return "" if the value is empty. Fixes bug
#40728.
* mail-composer-prefs.c (sig_add_script_cb): Set the "script" data
on the GtkEntry to NULL.
(sig_add_script_response): If the "script" data on the GtkEntry
object is non-NULL, then we are editing an existing signature, so
just change the values in place and don't add it to the signature
db.
(sig_edit_cb): If sig->script is non-NULL, then we are editing a
script signature, so pop up the script dialog instead. Fixes bug
#38929.
2003-04-07 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (spell_load_values): use e_iconv_locale_language
2003-04-07 Dan Winship <danw@ximian.com>
* GNOME_Evolution_Mail.server.in.in: Clean up server names
* importers/GNOME_Evolution_Mail_Elm_Intelligent_Importer.server.in.in:
Likewise, and fix evolution-mail location
* importers/GNOME_Evolution_Mail_Mbox_Importer.server.in.in:
Likewise
* importers/GNOME_Evolution_Mail_Netscape_Intelligent_Importer.server.in.in:
Likewise
* importers/GNOME_Evolution_Mail_Outlook_Importer.server.in.in:
Likewise
* importers/GNOME_Evolution_Mail_Pine_Intelligent_Importer.server.in.in:
Likewise
* importers/Makefile.am (%.server.in): Fix this for evolution-mail
being a shlib.
2003-04-03 Not Zed <NotZed@Ximian.com>
** Bug 40536
* component-factory.c (send_receive_cb): run the warning dialogue
asynchronously. Also, set the mail send/receive dialogue to
transient for parent.
* mail-send-recv.c (mail_send_receive): return the dialogue for
send/receive.
2003-04-02 Rodrigo Moya <rodrigo@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn):
* importers/evolution-outlook-importer.c (load_file_fn): added
"folder_type" parameter to EvolutionImporterLoadFileFn.
* importers/elm-importer.c (elm_import_file): pass empty string for
"folder_type" argument to GNOME_Evolution_Importer_loadFile.
* importers/pine-importer.c (pine_import_file): ditto.
* importers/netscape-importer.c (netscape_import_file): ditto.
2003-04-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (save_part): Don't allow the 'prefix' argument to
make_safe_filename() be NULL. If we don't yet have a save_dir in
gconf, use $HOME, etc. Fixes bug #40608.
2003-04-02 Not Zed <NotZed@Ximian.com>
* mail-session.c (mail_session_forget_passwords): Only clear the
Mail passwords.
* component-factory.c (interactive_cb): Call
composer_check_autosave if we're going interactive, to check for
unsaved files. Fixes #40300.
2003-04-01 Not Zed <NotZed@Ximian.com>
* mail-display.c (mail_display_redisplay): if we're called and the
idle handler is set, remove it, so we dont go and redisplay it
again. Fixes #40522.
2003-03-31 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (regen_list_regened): Save tree state and then
after building the new tree, re-load the tree state. Finishes the
fix for bug #40074.
* mail-session.c: Properly init message_list. Fixed a type-o that
initialized it to the password_list.
2003-03-31 Not Zed <NotZed@Ximian.com>
* mail-session.c (pass_response): need to check for config_service
!= NULL, not service != NULL before calling set_save_password.
Fix for #40472.
2003-03-28 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c: include e-meta.h
* folder-browser.c (on_right_click): remove unused var.
2003-03-28 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (fe_check_for_children): Declare a prototype
for this function prior to fe_got_children() so that
fe_got_children() can call us.
2003-03-26 Dan Winship <danw@ximian.com>
* mail-format.c (write_address): remove extra arg to
camel_url_encode
2003-03-27 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_gui_init): dont set the paned
initial size here, but hook onto the realize signal.
(paned_realised): set the paned size once we're realised. Fixes
#37084, its a bit of a hack, but it seems to work.
2003-03-26 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #40074.
* folder-browser-factory.c (control_deactivate): Save message-list
state.
* message-list.c (message_list_save_state): Save the various
states.
2003-03-26 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #39870
* message-browser.c (transfer_msg_done): Close the
message-browser. Since the message doesn't exist anymore, we
should close it.
(message_browser_delete): New callback to handle deletion in the
message-browser window.
2003-03-26 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (fe_got_children): If the CamelFolderInfo
node doesn't have \NoInferriors set, then check for
subfolders. Fixes bug #40314.
2003-03-26 Not Zed <NotZed@Ximian.com>
* mail-display.c (popup_window_destroy_cb): Undo jeff's patch
below for #40275, the destroy timeout is already removed in
popup_info_free. Unref the widget 'w' when we're done with it.
(popup_info_free): Move everything in here to popup_window_destroy
and remove, since nothing else uses it.
(make_popup_window): Ref the widget so it doesn't go away before
we're finished with it. Really fixes bug #40275/40188.
2003-03-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (popup_window_destroy_cb): Remove the
timeout. Should fix bug #40275.
* subscribe-dialog.c: Remove search entry which never worked right
(and can't work as users expect anyway, since we don't do
namespace stripping). Fixes bug #40083.
(ftree_node_new): Ignore \NoSelect as far as marking it
"subscribable". Fixes bug #40124.
2003-03-25 Dan Winship <danw@ximian.com>
* mail-account-editor.c: Update for e_notice move
(apply_changes): Pass a parent_window to e_notice
* mail-account-gui.c: Update for e_notice move.
(mail_account_gui_save): Pass a parent_window to e_notice
* mail-callbacks.c: Update for e_notice move
* mail-local.c: Likewise
* mail-signature-editor.c: Likewise
* mail-vfolder.c: Likewise
* component-factory.c (interactive_cb): Update prototype
2003-03-25 Not Zed <NotZed@Ximian.com>
* mail-tools.c (meta_data_key): strdup the key before freeing the
url as it is probably pointing there.
2003-03-25 Not Zed <NotZed@Ximian.com>
* component-factory.c (got_folder): remove a debug printf that
made it in a commit.
* folder-browser-ui.c (folder_browser_ui_add_global): Load
per-folder setting of show_preview from meta data.
(folder_browser_ui_add_list): Same, for thread_list.
* mail-tools.c (mail_tool_get_meta_data)
(mail_tool_delete_meta_data): helpers to lookup/delete meta data.
* mail-config.c (mail_config_uri_deleted): delete the meta-data
for the folder.
* folder-browser.c (folder_browser_reload): dont reload the uri if
we're in the process of loading it still.
(folder_browser_new): load the folder meta data before loading the
folder.
(folder_browser_toggle_preview):
(folder_browser_toggle_threads): save change to meta-data.
(got_folder): Load the metadata if we have a folder to set, and
the meta-data has changed from initislisation.
2003-03-23 Chris Toshok <toshok@ximian.com>
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): pass
FALSE for e_destination_get_textrep's include_email arg.
2003-03-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream):
Default to the charset provied in the MimePart's Content-Type over
that of the user's mailer charset. Fixes bug #39204.
2003-03-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (spell_load_values): "en_us" should not be
translated. Fixes bug #40088.
2003-03-21 Larry Ewing <lewing@ximian.com>
* mail-display.c (pixbuf_gen_idle): remember to disconnect the
destroy handler if whenever the loader is shut down.
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_set_cb): Change the message_destroy
callback to just gtk_widget_destroy. No need to have a callback
simply to call this function.
(warning_response): Removed (see above).
* mail-composer-prefs.c (sig_add_script_response): Don't forget to
add the signature to the signature list if it is a valid script.
* mail-config.c (mail_config_signature_unregister_client): Make
sure we can find the registered handler before trying to remove it
from the list.
* mail-session.c (do_user_message): Make the 5th argument to
gtk_message_dialog_new() "%s" and move the m->prompt to arg 6 so
that we are safe if the prompt string contains any %'s. Also
connect to the response signal for the user_msg dialog and set the
callback to gtk_widget_destroy so that the user can actually close
the dialog. We also need to g_object_weak_ref() the dialog so that
we can set the global message_dialog pointer back to NULL when it
gets destroyed. Fixes bug #40043.
2003-03-20 Dan Winship <danw@ximian.com>
* mail-ops.c (build_from): Remove this since there's a function in
CamelMimeMessage to do it now.
(save_messages_save): Use camel_mime_message_build_mbox_from.
2003-03-21 Not Zed <NotZed@Ximian.com>
** for mail part of bug #38461.
* importers/evolution-outlook-importer.c (load_file_fn): dont pass
in create flag to uri_to_folder, the folder must already exist.
* importers/evolution-mbox-importer.c (folder_created_cb):
Removed, we now force the caller to create the destination folder
first.
(load_file_fn): Dont try and create a folder if it doesn't exist.
Also, use the uri directly as the destination uri, so we can
import into any folder.
(process_item_fn): If we dont have a folder, thats just an error,
return BAD_FILE.
* importers/netscape-importer.c (netscape_import_file): As below
for elm_import_file.
(import_next): similarly as for pine import_next.
(importer_cb): just record result.
(importer_timeout_fn): removed.
* importers/pine-importer.c (import_next): Similar to below for
the elm import_next.
(pine_import_file): As below for elm_import_file.
(importer_timeout_fn): removed.
(importer_cb): just record the result, and exit.
(import_next): change around to behave more like the elm importer,
cleaning up when we're done.
* importers/elm-importer.c (elm_import_file): Create the
destination folder ourselves, dont pass it onto the mbox importer.
Simplify logic, just do the import within a while loop, polling
the g main loop as necessary, remove need for idle callbacks and
other crap.
(import_next): If elm_import_file fails, then just go straight to
the next folder, stops it falling in a heap.
(import_item_idle): removed.
(importer_cb): just record result/exit.
* mail-importer.c (mail_importer_create_folder): removed.
(mail_importer_make_local_folder): new function to create a
local-only folder from a path. It runs synchronously by using a
recursive main loop.
(folder_created_cb): callback for make_local_folder.
2003-03-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (mail_config_druid_new): Revert ettore's
broken patch.
* mail-search-dialogue.c: Removed - nothing uses this.
2003-03-19 Ettore Perazzoli <ettore@ximian.com>
* importers/GNOME_Evolution_Mail_Mbox_Importer.server.in.in:
Replace "evolution:menu-name" prop with "evolution:menu_name".
[#39692]
* importers/GNOME_Evolution_Mail_Outlook_Importer.server.in.in:
Likewise.
2003-03-19 Ettore Perazzoli <ettore@ximian.com>
* mail-config-druid.c (mail_config_druid_new): Give the druid the
DIALOG hint. [#39741 and friends.]
2003-03-19 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (spell_load_values): changed default
language to en_us instead of en
(spell_language_button_press): new handler, ported from 1.2
(spell_setup): use spell_language_enable and
spell_language_button_press
2003-03-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message):
e_msg_composer_get_subject() now returns a const char *, so update
appropriately.
2003-03-18 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (do_mail_print): fix leak, cleanup variable
name, and call gtk_window_set_transient_for with a parent that is
actually a GtkWindow.
(mark_as_unseen): use g_source_remove.
2003-03-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (mail_config_druid_new): Set the type hint
to DIALOG so that Metacity shows this window on top. Fixes bug
#39914.
2003-03-18 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (new_rule_clicked): validate rule & rule is
unique. Workaround for #39464. Should this just use
rule_context_add_rule_gui??
* mail-search.c (mail_search_destroy): unhook from the html engine
signals here, before we redisplay the message. Also make sure
this processing only happens once. For #39759.
(mail_search_finalise): dont unhook from signals here.
2003-03-12 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (expunge_folder): use a hack to find out if the
message-list was focussed before we desensitise it.
(expunged_folder): If the message-list was focussed before,
re-grab the focus. For bug #29564.
2003-03-17 Ettore Perazzoli <ettore@ximian.com>
* mail-signature-editor.c (mail_signature_editor): Give the editor
the GDK_WINDOW_TYPE_HINT_DIALOG hint. [#38926]
2003-03-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (pixbuf_gen_idle): If we fail to load the pixbuf,
don't use it (stops some g_warnings).
Part of a fix for bug #39809
* mail-vfolder.c (vfolder_edit): Don't add the cancel button here.
* mail-callbacks.c (filter_edit): Don't add the cancel button here.
2003-03-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (do_external_viewer): Lookup the handler for the
type. If we don't have a registered handler or if the registered
handler is not meant to be handled via a bonobo component, don't
use a bonobo component.
* mail-format.c (mail_lookup_handler): If we register a new
handler that is to be handled by a bonobo component, set
handler->is_bonobo to TRUE.
2003-03-14 Dan Winship <danw@ximian.com>
* component-factory.c (storage_connect, storage_connected): Update
for EvolutionStorage change
2003-03-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-signature-editor.c (menu_file_save_cb): Rewritten to do the
same as the composer's build_message() code.
2003-03-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_add_clicked): Use
gtk_window_set_transient_for() on the druid with the settings
dialog as the parent window.
2003-03-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-signature-editor.c (do_exit): Remove the yes/no
buttons. Fixes bug #39382.
* mail-accounts.c (account_able_toggled): New callback function to
handle the checkbox getting toggled.
(mail_accounts_treeview_new): Save the toggle renderer so we can
later connect to it's toggled signal.
(mail_accounts_tab_construct): Connect to the toggle-cell's
toggled signal. Fixes bug #39325.
2003-03-11 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_editor_response): Fix the response code,
because some bastard changed the filter/* code and didn't fix the
callers. Partial fix for #39165.
2003-03-10 Not Zed <NotZed@Ximian.com>
* Makefile.am (libevolution_mail_la_SOURCES): removed main.c from
the build.
* component-factory.c (component_factory_init): Remove, not used
anymore, causes linking problems some places.
(factory): Removed the debug printf. Added a case for the
composer. Part of fixing #39256.
2003-03-07 Jeffrey Stedfast <fejj@ximian.com>
All this snot just to fix bug #38925 and an attempt to fix bug
#38926 (but it seems no matter what I do, I can't work around the
bonoboness/modality/whatever of the shell's preferences dialog).
* mail-account-gui.c (sig_add_new_signature): Get the toplevel
parent GtkWindow and pass that along to
mail_composer_prefs_new_signature() so that window layering can be
done correctly.
* mail-composer-prefs.c (mail_composer_prefs_new_signature):
Simplify. We don't want to add the signature to the list until
after they have saved.
(sig_edit_cb): Pass FALSE as the is_new argument to
mail_signature_editor().
(sig_event_client): Listen for signatures being added.
(mail_composer_prefs_new_signature): Now takes a GtkWindow arg as
the first arg rather than a MailComposerPrefs arg since we don't
really need it to be a MailComposerPrefs object. We'd rather use
the first arg as the parent GtkWindow so that we can set
transience for the editor window.
* mail-signature-editor.c (mail_signature_editor): Now takes a
'parent' argument (so we can set transient_for()) and a 'is_new'
argument specifying whether the editor is editing a new signature
or not. If it is, when the user saves, it will be added to the
signature list. otherwise it won't.
(sig_name_changed): Only use the mail_config_signature_set_name()
interface if it is *not* a new signature.
(menu_file_save_cb): If is_new, then save the signature to the
config - otherwise do what we did before and set the modifications
to it and emit the CHANGED event.
* mail-config.c (mail_config_signature_new): Renamed from
mail_config_signature_add(). We no longer immediately add the
signature to the list of saved signatures.
(mail_config_signature_add): New function which adds the signature
and emits the SIG_ADDED event.
2003-03-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_url_requested): If the part url is a text
part, use mail_format_data_wrapper_write_to_stream(). This should
fix bug #39204.
* mail-format.c (mail_format_data_wrapper_write_to_stream): Make public.
2003-03-06 Ettore Perazzoli <ettore@ximian.com>
* mail-accounts.c (mail_accounts_treeview_new): Set the
shadow_type of the scrlled window to GTK_SHADOW_IN.
2003-03-06 Ettore Perazzoli <ettore@ximian.com>
* mail-config.glade: Add some spacing to the buttons. [#38227]
2003-03-06 Ettore Perazzoli <ettore@ximian.com>
* importers/evolution-mbox-importer.c (IN): Use G_GNUC_FUNCTION
instead of __FUNCTION__.
(OUT): Likewise.
* importers/netscape-importer.c (netscape_import_file): Likewise.
* mail-send-recv.c (receive_done): Likewise.
* mail-summary.c (SUMMARY_OUT): Likewise.
(SUMMARY_IN): Likewise.
(folder_changed_cb): Likewise.
(message_changed_cb): Likewise.
2003-03-06 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c: #include <string.h>
* e-searching-tokenizer.c (camel_utf8_getc): Don't use __inline__
as not all platforms/compilers support this keyword.
(g): Same.
2003-03-06 Not Zed <NotZed@Ximian.com>
* component-factory.c (owner_unset_cb): remove debug printf.
2003-03-05 Not Zed <NotZed@Ximian.com>
* component-factory.c (idle_quit): Removed old quit code.
(owner_unset_cb): Make this call synchronous. Wont cover all
cases but should be ok most of the time.
2003-03-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-search.c: Prototype some functions to shut the compiler up.
* mail-callbacks.c (composer_get_message): Go back to using
e_destination_get_address() but use the camel-address parser on
the strings to make sure they are non-empty. Fixes bug #37854.
2003-03-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-signature-editor.c (menu_file_save_cb): Use 'filename' when
creating the uri rather than using the uninitialised 'uri'
variable to create itself. Fixes bug #38864.
2003-03-03 Not Zed <NotZed@Ximian.com>
* mail-session.c (do_user_message): Do the same as below for
request_password, so we dont leave a mainloop lying around.
2003-03-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (request_password): Don't connect to the response
signal if we are in the main thread - instead just use the return
value from gtk_dialog_run and then call pass_response() with the
response value.
2003-03-03 Not Zed <NotZed@Ximian.com>
* subscribe-dialog.c (fe_got_children): Remove the
e_tree_memory_sort_node, currently it crashes inside gal, the root
node seems to get free'd under it.
2003-02-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c: Reverted back to using e-iconv
* mail-composer-preferences.c: Same.
2003-02-26 Dan Winship <danw@ximian.com>
* GNOME_Evolution_Mail.server.in.in: add a repo_id and a priority
level to the startup wizard
2003-02-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c: Reverted back to using e-iconv instead of
camel-iconv.
2003-02-25 Dan Winship <danw@ximian.com>
* mail-config-druid.c: Update for new EvolutionWizard interfaces.
2003-02-25 Dan Winship <danw@ximian.com>
* mail-config-druid.c: Redo this to not use the CORBA interfaces
in the local case (in preparation for redoing the CORBA
interfaces).
(mail_config_druid_new): Remove unused "shell" arg
* mail-account-gui.c (mail_account_gui_transport_complete): Don't
crash if there's no transport selected at all.
(mail_account_gui_new): Don't try to set cc_addrs/bcc_addrs if
they're NULL.
* mail-accounts.c (account_add_clicked): Don't need to pass shell
to mail_config_druid_new.
* mail-callbacks.c (configure_mail): Don't need to pass shell to
mail_config_druid_new.
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (request_password): Make sure m->config_service
is non-NULL before using m->config_service->save_passwd since PGP
stuff will not have a config_service. Fixes bug #38149.
* mail-account-gui.c (mail_account_gui_save):
s/e_account_list_changed/e_account_list_change - otherwise we get
an undefined symbol and we crash :-)
* mail-composer-prefs.c (mail_composer_prefs_new_signature): Don't
always append "[script]" to the signature name. Also cleaned up
some memory leakage.
2003-02-20 Not Zed <NotZed@Ximian.com>
* mail-preferences.c (mail_preferences_apply): fix the g_snprintf
stuff.
* mail-config.c (mail_config_add_account): Use new
e_account_list_add.
(mail_config_remove_account): Use new e_account_list_remove.
(mail_config_set_default_account): Similarly for
e_account_list_set_default.
(mail_config_get_default_account): Same for
e_account_list_get_default.
(mail_config_get_account_by_name): Use e_account_list_find.
* mail-account-gui.c (mail_account_gui_save): use new
e_account_list_changed call instead of manual signalling.
2003-02-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c: Set the local provider description field to a
string rather than NULL to prevent a segfault on solaris. Fixes
bug #38418.
2003-02-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_text_header): bitwise-or in
CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES to fix bug #38499.
* mail-search.c (mail_search_destroy): New overloaded virtual
method, does what dialog_destroy_cb was trying to do.
(mail_search_construct): Connect to the "response" signal rather
than "clicked" to correspond to the GtkDialog API
(instead og the old GnomeDialog API).
(dialog_response_cb): Changed the function name and made it check
button == GTK_RESPONSE_ACCEPT to search, any other button
closes. Fixes bug #37947.
2003-02-21 Hans Petter Jansson <hpj@ximian.com>
* component-factory.c (factory): Don't try to get a FontPrefs control.
* mail-config-factory.c (mail_config_control_factory_cb): Just return
NULL if a FontPrefs control was requested.
* mail-config.c (mail_config_get_default_account): If no accounts
are defined, don't try to set the default account.
2003-02-21 Dan Winship <danw@ximian.com>
* Makefile.am (libevolution_mail_la_LIBADD): Remove libebook's
dependencies.
* importers/Makefile.am (libevolution_pine_importer_la_LIBADD):
Likewise.
2003-02-21 Dan Winship <danw@ximian.com>
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
tables instead of vboxes, so that groups of label/entry pairs (as
in Connector's config page) can line up nicely.
* mail-config.glade: Turn extra_vbox and extra_mailcheck_vbox into
tables.
* mail-config-druid.c (get_fn): s/extra_vbox/extra_table/
* Makefile.am (libevolution_mail_la_LIBADD):
s/libcomposer.a/libcomposer.la/
2003-02-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mark_all_as_seen): Use
camel_folder_free_uids().
* mail-format.c (write_headers): Use
camel_charset_canonical_name() here instead of
e_iconv_charset_name().
* mail-preferences.c (mail_preferences_construct): Same as below.
(mail_preferences_apply): Again here.
* mail-composer-prefs.c (mail_composer_prefs_construct): Use
camel_charset_locale_name() here instead of
e_iconv_locale_charset().
(mail_composer_prefs_apply): Same.
2003-02-20 Dan Winship <danw@ximian.com>
* Makefile.am (libevolution_mail_la_LIBADD):
s/libemiscwidgets.a/libemiscwidgets.la/ and likewise for
libefilterbar
2003-02-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mark_all_as_seen): Fixed a memory leak - make
sure to free all uids.
* mail-config.c (uri_to_key): Removed.
(lookup_signature): Removed.
(xml_get_int): Removed.
(xml_get_bool): Removed.
(mail_config_get_time_24hour): Removed.
* evolution-mail.schemas: s/long/int/g and change default_account
to be a string instead of an int.
* mail-config.c (mail_config_get_default_account): default_account
now uses the account uid, so change the code a bit to match uid
strings rather than use an index.
(mail_config_remove_account): Same here. simplifies the code a
bunch.
(mail_config_set_default_account): Here too.
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Update
the GalView path.
2003-02-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_get_pass): Change the logic here
slightly. Instead of only reprompting the user if the cache is
empty, also reprompt the user if the backend is forcing a
reprompt.
(request_password): If we have a cached passwd string for the
account, fill-in the GtkEntry box with that value by
default. This, together with the camel changes, fixes the
"Evolution forgets my POP passwd if it gets a -ERR response during
the login phase" bug.
2003-02-13 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c: #include <stdio.h>
* mail-config-factory.c: #include <string.h>
* mail-config-druid.c (identity_prepare): Use
gtk_editable_select_region() since gtk_entry_select_region() has
been deprecated.
(construct): Use gtk_window_set_resizable() instead of
gtk_window_set_policy().
(wizard_free): account_destroy() is no longer around, use
g_object_unref() instead. (how did this even compile before?)
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
gtk_label_set_text_with_mnemonic() instead of
gtk_label_parse_uline() as the latter has been deprecated.
2003-02-12 Jeffrey Stedfast <fejj@ximian.com>
* importers/netscape-importer.c: Removed unused variables.
* importers/pine-importer.c: Removed unused variables.
(parse_address): Removed - it's unused and we have CamelAddress
available to us anyway.
* importers/elm-importer.c: Removed unused variables.
* importers/evolution-mbox-importer.c (load_file_fn): Removed an
unused variable.
2003-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (construct): Use
gtk_window_set_resizable() instead of gtk_window_set_policy().
* mail-config.c: Fix a bunch of warnings.
(mail_config_signature_write): Removed.
* mail-callbacks.c: Removed unused variables.
* mail-accounts.c (mail_accounts_tab_class_init): Register a
destroy virtual method.
(mail_accounts_tab_destroy): Set mail_display->destroyed = TRUE.
* message-list.c (message_list_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
* mail-display.c (mail_display_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
2003-02-10 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (build_tree): Use g_signal_emit() rather than
gtk_signal_emit().
(build_flat): Same here.
* mail-signature-editor.c: #include <string.h>
* mail-vfolder.c: #include <string.h>
* mail-session.c: #include <string.h>
* mail-search.c: #include <string.h>
* mail-mt.c: #include <string.h>
* mail-ops.c (save_part_save): Use strcasecmp() instead of
g_strcasecmp().
* mail-local.c: #include <string.h>
(reconfigure_folder_reconfigured): Use a GtkDialog instead of
gnome_error_dialog().
* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
since g_strdown is deprecated.
(fake_mime_part_from_data): Removed, no longer used it seems.
(destroy_part): Also removed.
* mail-display.c (make_popup_window): Replace call to
gtk_window_set_polociy() with gtk_window_set_resizable() instead.
(popup_size_allocate_cb): Use gtk_window_set_position() with
GTK_WIN_POS_MOUSE instead of calculating the position to put it
in.
2003-02-10 Ettore Perazzoli <ettore@ximian.com>
* importers/Makefile.am: Split the ORBit IDL compilation rules to
work properly with parallel makes.
(BUILT_SOURCES): Add this.
(CLEANFILES): Add this.
* Makefile.am: Split the ORBit IDL compilation rules to work
properly with parallel makes.
(BUILT_SOURCES): Add $(IDL_GENERATED) here.
(CLEANFILES): Remove from here.
2003-02-10 Rodney Dawes <dobey@ximian.com>
* importers/Makefile.am: Add LDFLAGS to ported libs
2003-02-10 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_url): look in the http cache for images
when saving
(image_save_as): remove random warning.
(do_external_viewer): remove unused variable.
(do_attachment_header): use g_ascii_strdown
2003-02-07 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_data_cb): don't use random memory as a
gconf client.
2003-02-06 Chris Toshok <toshok@ximian.com>
* importers/pine-importer.c (import_addressbook): track change to
e_book_load_uri type.
2003-02-06 Ettore Perazzoli <ettore@ximian.com>
* folder-browser.c (on_right_click): Use
e_auto_kill_popup_menu_on_selection_done() instead of
e_auto_kill_popup_menu_on_hide().
2003-02-06 Dan Winship <danw@ximian.com>
* Makefile.am (INCLUDES): add EVOLUTION_PRIVDATADIR. Fix
EVOLUTION_ICONSDIR
* component-factory.c (owner_set_cb): Use EVOLUTION_PRIVDATADIR
* mail-autofilter.c (filter_gui_add_from_message): Likewise
(mail_filter_rename_uri): Likewise
(mail_filter_delete_uri): Likewise
* mail-callbacks.c (filter_edit): Likewise.
* mail-search-dialogue.c (mail_search_dialogue_construct):
Likewise
* mail-session.c (main_get_filter_driver): Likewise
* mail-summary.c (generate_folder_summaries): Likewise
* mail-vfolder.c (vfolder_load_storage): Likewise
2003-02-06 Dan Winship <danw@ximian.com>
* Makefile.am: Remove *dir defs that are in configure.in now
(INCLUDES): clean up using new *dir variables
(libevolution_mail_la_LDFLAGS): remove -export-dynamic, add
-module
* main.c (main): s/PACKAGE/GETTEXT_PACKAGE/ in gettext init
* importers/Makefile.am (INCLUDES): change EVOLUTION_DATADIR to
EVOLUTION_PRIVDATADIR
* importers/netscape-importer.c (netscape_import_filters): use
EVOLUTION_PRIVDATADIR
2003-02-06 Larry Ewing <lewing@ximian.com>
* mail-session.c (pass_activate): add an activate handler to the
entry so that hitting return will return an OK response.
2003-02-05 Dan Winship <danw@ximian.com>
* main.c (main): s/glade_gnome_init/glade_init/
2003-02-05 Not Zed <NotZed@Ximian.com>
* importers/netscape-importer.c: update from ../../importers/.
(main): Removed.
(mail_importer_module_init): Setup module init fn.
(factory_fn): api changes.
(is_dir_empty): deprecated changes, and clean up logic.
(importer_cb): pulse progress bar, use idle function for
processing next item.
(import_next): Remove link before recursing, also fix memleak, and
api changes.
(netscape_import_file): dont release importer.
(*): gconf'ify
* importers/elm-importer.c (elm_factory_fn): Track the
evolution_intelligent_importer, so we can unref it when done.
(*): gconf'ify.
* importers/pine-importer.c (parse_line): use gobject stuff rather
than gtkobject.
(import_addressfile): close down 'properly' when finished.
(importer_timeout_fn): Do most processing decisions here, either
from a timeout or idle function. This prevents us getting 1 stack
frame per message and per folder. Close down properly also.
(importer_cb): Add a timeout, ignore the callback, or add an idle
function to process the next item.
(pine_import_file): dont release the importer if we can't load it,
its released elsewhere, i think.
(import_addressfile): step the progress bar as we go.
(factory_fn): Track the evolution_intelligent_importer, so we can
unref when done.
(*): gconf'ify
2003-01-31 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (elm_can_import): g_file_exists ->
lstat, and g_build_filename api changes.
* importers/pine-importer.c: moved from
../../importers/pine-importer.c
(factory_fn): oaf->bonobo_activation
(mail_importer_module_init): setup factory.
(main): Removed.
(*): REemove bonobo config stuff.
(factory_fn): destroy signal -> weak ref.
(pine_destroy_cb): Fix signature for weak ref notify.
(import_addressfile): use new glib filename stuff.
(import_addressbook): same.
(pine_can_import): and here.
(import_next): and here.
(scan_dir): and here
(pine_create_structure): And here.
(pine_can_import): g_file_exists -> lstat.
(importer_cb): If there are more items, use an idle handler to
drop back a few stack frames rather than recursing for each
message.
(import_next): unlink data from dir_list before recursing, and fix
leak.
2003-01-30 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (elm_destroy_cb): Change for weak ref
setup.
(elm_factory_fn): destroy -> weak ref.
2003-01-29 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (importer_cb): Pass processItem off to
an idle handler, so we dont blow our stacks. Also update to use
progress_bar_pulse().
(import_item_idle): Get the next message here instead.
(import_next): Fix a glist leak. Unlink the file before we import
it too. And close the dialogue and clean up when we've run out of
folders to import.
2003-01-17 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (elm_create_structure): use/free elmdir
rather than double-free maildir.
2003-01-16 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c: update from ../importers/elm-importer.c
2003-02-03 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (mail_regen_list): Get the thread_subject setting
here instead of in regen_list_regen since that function will be
called in another thread and we can't make corba calls in anything
but the main thread.
(regen_list_regen): Don't make CORBA calls here! (shame on me).
* mail-identify.c (mail_identify_mime_part): Just use
gnome_vfs_get_mime_type_from_name() so we can forget all the crap
I implemented before.
2003-02-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_link_clicked): Pass in the *address* of the
GError to gnome_url_show(), otherwise bad things happen :-)
2003-01-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_labels): New function to return a
cached list of labels.
(mail_config_get_label_color_by_name): New convenience function to
search the cached labels.
(mail_config_get_label_color_by_index): Same.
(mail_config_init): Cache the labels and also listen for changes
to them in the gconf db.
(config_cache_labels): Internal function to cache the labels.
* folder-browser.c (on_right_click): Fixed the label colours in
the menu by using the cached linked list of labels.
* mail-preferences.c (colorpicker_set_color): Now takes a string
argument allowing us to get rid of converting a string into an rgb
guint32 all over the place when trying to set defaults, since we
now store colors in gconf as strings.
(mail_preferences_construct): Use the cached labels (they are
already parsed for us).
2003-01-27 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Change
strcmp(fi->path, path) to strcmp(fi->name, name) and now the
execution takes the right path. My patch base on Callie's patch
for bug #33525.
* mail-identify.c (mail_identify_mime_part): Fixed a #warning by
converting a local path into a file: uri before feeding it to
gnome-vfs.
* message-list.c (message_list_set_folder): Removed a FIXME that
I've decided is no longer needed.
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_add_account): Emit the account-added
event.
(mail_config_remove_account): Emit the account-removed event.
* mail-account-gui.c (mail_account_gui_save): Emit the changed
event on the account-list for the changed account.
2003-01-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_global): Set the
paned_size here.
* folder-browser.c (folder_browser_gui_init): Don't bother
connecting to the hide-deleted, message-display-style, paned-size,
nor show-preview gconf notifications anymore, since we can just
set them when the view becomes active again in
folder-browser-ui.c. Cuts down on extra overhead.
(folder_browser_destroy): No need to disconnect from those
notifications anymore either.
2003-01-24 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am (iconsdir): Remove, this is now defined in
configure.in.
2002-12-07 leon.zhang <leon.zhang@sun.com>
* component-factory.c (user_create_new_item_cb): transfer the
current acount info, which will be regarded as the sender of
new composer, to send_to_url().
* mail-callbacks.h (send_to_url): Add a new parameter for parent
folder uri.
* mail-callbacks.c (send_to_url): Create composer base on source
account info from parent folder physical uri.
(post_to_url): create composer based on current account from
parent folder physical uri.
* mail-display.c (on_link_clicked): Apply new format of function:
send_to_url.
Fixes bug #35123 #35289
2003-01-24 Not Zed <NotZed@Ximian.com>
* mail-local.c (non_equal): We do actually need to check they are
file url's, otherwise, all url's match.
2003-01-23 Rodney Dawes <dobey@ximian.com>
* folder-browser.c (fb_resize_cb): Use button_release instead of
size_allocate, and get the position from the Paned widget to prevent
calling CORBA all the time for GConf stuff
2003-01-23 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_thread_list): Removed.
(mail_config_set_thread_list): Removed.
(mail_config_uri_renamed): No longer needs to change threaded
state for each url either.
(mail_config_write_on_exit): Updated.
* folder-browser-ui.c (folder_browser_ui_add_list): Get the
threaded state via gconf.
* folder-browser.c (folder_browser_toggle_threads): Save the
threaded state.
2003-01-22 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Use
EVOLUTION_GALVIEWSDIR.
* message-browser.c (set_bonobo_ui): Get
evolution-mail-messagedisplay.xml from EVOLUTION_UIDIR.
* mail-signature-editor.c (mail_signature_editor): Get
evolution-signature-editor.xml from EVOLUTION_UIDIR.
* folder-browser-ui.c (ui_add): Get the evoluiton-mail* XML files
from EVOLUTION_UIDIR.
* Makefile.am (INCLUDES): Define EVOLUTION_GALVIEWSDIR; update
EVOLUTION_IMAGESDIR to include the $(BASE_VERSION).
(gladedir): Version using $(BASE_VERSION).
(etspecdir): Likewise.
(iconsdir): Likewise.
(buttonsdir): Likewise.
(etspecdir): Likewise.
* component-factory.c (owner_set_cb): Look for vfoldertypes.xml in
the new version-aware location.
* mail-summary.c (generate_folder_summaries): Likewise.
* mail-search-dialogue.c (mail_search_dialogue_construct): Likewise.
* mail-vfolder.c (vfolder_load_storage): Likewise.
* mail-autofilter.c (filter_gui_add_from_message): Look for
filtertypes.xml in the new version-aware location.
(mail_filter_rename_uri): Likewise.
(mail_filter_delete_uri): Likewise.
* mail-session.c (main_get_filter_driver): Likewise.
* mail-callbacks.c (filter_edit): Likewise.
2003-01-22 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): put unrealized html widget
into top level widget (gtk window) before realizing it
destroy temporary widgets (w, html)
2003-01-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_remove_account): Don't unref the
account object, e_list_remove() apparently handles this for us.
* mail-accounts.c (account_delete_clicked): Don't unref the
confirm dialog, it was already destroyed.
2003-01-20 Jeffrey Stedfast <fejj@ximian.com>
* evolution-mail.schemas: Default to hiding deleted
messages. Fixes bug #35929.
* mail-preferences.c (entry_changed): Removed.
(toggle_button_toggled): Removed.
(settings_changed): New callback that replaces the two above. No
need to have multiple callback functions when the signature is the
same.
* folder-browser.c (folder_browser_toggle_hide_deleted): Don't
!atoi (state) for the message_list_set_hidedeleted() call.
2003-01-18 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (save_msg_ok): e_question returns a boolean,
don't test for a specific value.
* mail-display.c (html_button_press_event): make the event
handlers return FALSE so that gtkhtml can process the events.
(on_link_clicked): call gnome_url_show with all its arguments so
that it actually does something. Also pass news and nntp urls to
gnome_url_show so that they can be handled properly.
2003-01-17 Larry Ewing <lewing@ximian.com>
* mail-format.c (handle_text_enriched): wrap eriched entries with
a table so that they get proper indentation.
2003-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_get_pass): Updated.
(request_password): Same.
* mail-send-recv.c (mail_send): Fixed to use EAccountService.
* mail-config-druid.c (make_account): Updated to use EAccount and
friends.
* mail-account-gui.c (service_check_supported): Updated to use
EAccountService.
(mail_account_gui_new): Ref the account passed in and also update
to use EAccount objects.
(save_service): Updated to use an EAccountService.
(add_new_store): Updated to use an EAccount.
(mail_account_gui_save): Updated to use EAccounts.
(setup_signatures): Updated because the new account->id->def_sig
is now an int and not a structure pointer.
* mail-account-editor.c (construct): Updated.
(mail_account_editor_new): Now takes an EAccount object as an
argument instead of a MailConfigAccount.
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
use EAccounts.
* subscribe-dialog.c (populate_store_foreach): Removed.
(populate_store_list): Can't use populate_store_foreach here
because of the change to EAccountList so do it manually.
* mail-vfolder.c (uri_is_ignore): Rewrote to use EAccountList and
EIterator and all that fun.
* mail-send-recv.c (build_dialogue): Updated to use EAccountList
and EAccount object stuff. *ugh*
(mail_send_receive): Here too.
(mail_autoreceive_setup): Same.
* mail-callbacks.c (check_send_configuration): Updated.
(composer_get_message): Updated.
(compose_msg): "
(list_add_addresses): "
(guess_me): "
(guess_me_from_accounts): Same.
(forward_get_composer): Here too.
(mail_generate_reply): Same.
(redirect_get_composer): "
(empty_trash): And finally here.
* mail-accounts.c (account_edit_clicked): Updated.
(account_delete_clicked): Same.
(account_default_clicked): Here too.
(account_able_clicked): "
(account_cursor_change): "
(mail_accounts_load): Again here.
* folder-browser.c (folder_browser_is_drafts): Updated to use
EAccountList and EAccount stuff.
(folder_browser_is_sent): Same.
* component-factory.c (mail_load_storages): Updated to use
EAccount and EAccountList stuff.
(owner_set_cb): Same.
(send_receive_cb): Here too.
* mail-config.c: Rewritten to use EAccount and EAccountList
objects.
2003-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (get_fn): Connect to the toggled event on
the transport_needs_auth toggle button so if the user turns this
off after having deleted the username field, the Next button
becomes re-enabled. Fixes bug #36862.
2003-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_fill_clist): Same as below.
* mail-account-gui.c (sig_fill_options):
mail_config_get_signature_list() now returns a GSList instead of a
GList.
* mail-config.c (signature_new_from_xml): New function to parse a
signature xml blob into a MailConfigSignature structure.
(config_read_signatures): Rewritten to use above function.
(signature_to_xml): New function to write a signature to xml.
(config_write_signatures_num): Removed.
(config_write_signature): Removed.
(config_write_signatures): Rewritten to use signature_to_xml and
gconf.
2003-01-16 Dan Winship <danw@ximian.com>
* mail-config.h (MailConfigAccount): Add a UID field (to match
EAccount), which never changes and can be used by gconf watchers
to distinguish an account rename from a deletion and creation.
* mail-config.c (account_copy): Create a new UID on the new
account.
(account_new_from_xml): Read the UID. (If it doesn't have one,
make one.)
(account_to_xml): Write the UID.
* mail-config-druid.c (make_account): add a UID to each account
2003-01-15 Not Zed <NotZed@Ximian.com>
* mail-accounts.c (account_able_clicked): Change the
enable/disable button when the state changes.
2003-01-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (save_metainfo): Back to using e_xml_save_file().
2003-01-14 Ettore Perazzoli <ettore@ximian.com>
* message-tag-editor.c (message_tag_editor_init): Make dialog
Cancel/OK to match HIG.
* mail-signature-editor.c (do_exit): Make confirmation dialog
Discard/Cancel/Save to match the HIG.
* mail-composer-prefs.c (mail_composer_prefs_construct): Make
dialog Cancel/OK to match HIG.
* mail-account-editor.c (construct): Make the dialog
Apply/Close/OK to match HIG.
2003-01-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Call
mail_config_save_accounts ().
* mail-config.c (mail_config_save_accounts): New function to save
accounts without having to re-load them.
2003-01-14 Radek Doulik <rodo@ximian.com>
* folder-browser.c (etree_key): use gtk_scrolled_window_*
functions for mail_display->scroll
* mail-display.c (mail_display_new): use gtk_scrolled_window_*
functions
* mail-display.h: use GtkScrolledWindow instead of EScrollFrame
2003-01-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (pixmap_press): Change the user_data argument to
be of type gpointer instead of EScrollFrame, since, well, it's not
an EScrollFrame anymore.
2003-01-14 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am (libevolution_mail_la_SOURCES): Add mail-format.h.
(EXTRA_DIST): Add $(schema_DATA).
2003-01-14 Rodney Dawes <dobey@ximian.com>
* Makefile.am: Make the component be unversioned as a shlib
2003-01-14 Rodney Dawes <dobey@ximian.com>
* folder-browser.c: Use GtkPaned instead of EPaned
2003-01-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (account_new_from_xml): Perform some sanity
checking on the auto-check-timeout value.
* folder-browser.c (folder_browser_copy): Correctly create the
clipboard buffer by using a nul to delimit the uri and the list of
uids.
* folder-browser-ui.c (folder_browser_ui_add_message): Check the
state of message_style in gconf and set the menus accordingly.
* folder-browser.c (folder_browser_destroy): Remove listener for
message_style change notification.
(folder_browser_gui_init): Connect a listener for changes to
message_style.
* mail-config.c (account_to_xml): Save the auto-check timeout
value.
(account_new_from_xml): Load the auto-check-timeout value.
2003-01-13 Dan Winship <danw@ximian.com>
* folder-info.c: s/BonoboXObject/BonoboObject/
* mail-config.c: Likewise
* mail-offline-handler.c: Likewise
2003-01-13 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msg_check_error): hook onto destroy to remove
dialogue from active table.
(error_response): Just destroy on any response, dont unref either.
2003-01-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream):
g_strdup the md->charset otherwise we'll get memory corruption
later. This may be why non-usascii text is displaying incorrectly.
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_list): We also need
to call message_list_set_hidedeleted() here so that any
deactivated folder controls will change to the currently set state
when re-activated.
(folder_browser_ui_add_global): Same for show_preview.
* folder-browser.c (hide_deleted_changed): Don't call
message_list_set_hidedeleted() here.
(folder_browser_toggle_hide_deleted): Instead, call it here. This
way we get a faster "response time". Also, this will make it so
that not all folder controls will regen their message-list at the
same time.
(folder_browser_toggle_preview): Same idea as the hide-deleted
changes.
(show_preview_changed): See above.
* mail-config-druid.c (make_account): Default the new account to
enabled.
(wizard_finish_cb): Don't set enabled here.
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (hide_deleted_changed): New callback for when
the HideDeleted state changes.
(folder_browser_gui_init): Listen for changes to hide_deleted so
we can update the menu state.
(folder_browser_destroy): Remove the hide_deleted notify handler.
(folder_browser_toggle_hide_deleted): When saving the setting,
remember that it is !atoi (state) rather than atoi (state) because
show vs hide. yea.
* mail-session.c (main_get_filter_driver): notify-type is a int,
not a bool. Duh.
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (factory): Updated for function rename.
* mail-config-factory.c (mail_config_control_factory_cb):
Namespaced the function name.
* folder-browser-ui.c (folder_browser_ui_add_global): Don't add
the listener for show_preview here, it was moved into
folder-browser.c so we could detach the listener when the
folder-browser is destroyed. Also prevents a listener being added
multiple times (which was possible? before).
* folder-browser.c (folder_browser_destroy): Remove the gconf
notify handler for show_preview.
(show_preview_changed): Moved here from folder-browser-ui.c
* component-factory.c (storage_remove_folder): Fixed a situation
in which we could notify the shell listener twice.
2003-01-10 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_gui_init): Save the paned_size
notify handle.
(folder_browser_destroy): Remove gconf notify handler.
2003-01-09 Chris Toshok <toshok@ximian.com>
* mail-config-druid.c (wizard_finish_cb): enable the account
before attempting to saving it.
* mail-accounts.c (account_delete_clicked): need to show the
buttons added to the dialog.
2003-01-10 Not Zed <NotZed@Ximian.com>
* mail-config.glade: Remove info.png from a couple of images, the
image is set via code at runtime. Removes some annoying runtime
warnings.
* mail-send-recv.c (dialogue_response): dont unref the dialogue.
(dialog_destroy_cb): null out the send_recv_dialogue after destroy.
(build_dialogue): show the stop button
2003-01-09 Chris Toshok <toshok@ximian.com>
* folder-info.c (evolution_folder_info_notify_ready): pass bag to
bonobo_pbclient_set_boolean.
2003-01-09 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (owner_set_cb): Don't call
mail_config_register_factory() or
evolution_mail_config_wizard_init().
2003-01-09 Not Zed <NotZed@Ximian.com>
* mail-config-druid.c: Added druidpagestart1 to the pages list.
(construct): Change the limits on the page initialisation, and
widget_show_all on the page rather than the content.
* GNOME_Evolution_Mail.server.in.in: Make Mail a shlib component.
* folder-info.c (evolution_folder_info_factory_init): Removed.
(evolution_folder_info_factory_fn): renamed to evolution_folder_info_new().
* mail-config-druid.c (evolution_mail_config_wizard_factory_fn):
Renamed to evolution_mail_config_wizard_new().
(evolution_mail_config_wizard_init): Removed.
* mail-config-factory.c (mail_config_register_factory): Remove.
(config_control_factory_cb): make this public.
* Makefile.am: setup evolution-mail as a shared library.
* component-factory.c (make_factory): implement the bonobo-plugin
factory for shlib operation. Also, preliminary work to setup mailer-specific
(factory): Implement the factory which starts various components.
* mail-config.c (xml_get_prop): g_free->xmlFree
(account_to_xml): copy xml memory to glib memory when adding the 0
on the end of the string.
(accounts_save): Use slightly different logic with appending to
the tail of the list, we can't use the &node trick with gslists.
(accounts_changed): Same here.
2003-01-08 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am: Images are now in $(datadir)/evolution/images
instead of $(datadir)/images/evolution.
2003-01-08 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_global): Call
folder_browser_set_message_preview().
* mail-config.c (mail_config_get_show_preview): Removed.
(mail_config_set_show_preview): Removed.
* folder-browser.c (folder_browser_toggle_preview): Simply set the
gconf show_preview setting and let the code in folder-browser-ui.c
detect it and update the UI.
* folder-browser-ui.c (folder_browser_ui_add_global): Listen for
changed events on the show_preview setting.
* mail-config.c (mail_config_set_default_account): Save the
setting via gconf.
(mail_config_add_account): Immediately save the list of accounts.
(mail_config_remove_account): Same.
(mail_config_signature_run_script): g_free the charset value and
use the composer's charset rather than the display charset.
(mail_config_get_default_account_num): Removed.
2003-01-07 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (save_cursor_pos): Use gconf to get the paned
size.
(folder_browser_set_message_preview): Same.
(folder_browser_toggle_hide_deleted): Use gconf to set the
hide-deleted state.
(folder_browser_set_message_display_style): Same but for the
message_display_style.
(fb_resize_cb): Save the paned_size via gconf.
(paned_size_changed): Callback for when the paned_size gets
changed. Change the folder-browser's paned size to the new
setting.
(folder_browser_gui_init): Listen to changes to the paned_size and
also get the initial size from gconf.
* message-list.c (message_list_set_folder): Use gconf.
(regen_list_regen): Use gconf.
* message-browser.c (transfer_msg_done): Use gconf to get the
hide_deleted setting.
* mail-account-gui.c (sig_add_new_signature): Use gconf.
* folder-browser-ui.c (folder_browser_ui_add_list): Use gconf.
* folder-browser.c (save_cursor_pos): Use gconf.
(folder_browser_set_message_preview): Same.
(folder_browser_toggle_hide_deleted): Here too.
(folder_browser_set_message_display_style): And here.
(folder_browser_gui_init): Here too.
(done_message_selected): And here.
* mail-config.c (mail_config_get_thread_subject): Removed.
(mail_config_set_thread_subject): Removed.
(mail_config_get_empty_trash_on_exit): Removed.
(mail_config_set_empty_trash_on_exit): Removed.
(mail_config_get_last_filesel_dir): Removed.
(mail_config_set_last_filesel_dir): Removed.
(mail_config_get_hide_deleted): Removed.
(mail_config_set_hide_deleted): Removed.
(mail_config_get_paned_size): Removed.
(mail_config_set_paned_size): Removed.
(mail_config_get_send_html): Removed.
(mail_config_set_send_html): Removed.
(mail_config_get_confirm_unwanted_html): Removed.
(mail_config_set_confirm_unwanted_html): Removed.
(mail_config_get_citation_highlight): Removed.
(mail_config_set_citation_highlight): Removed.
(mail_config_get_citation_color): Removed.
(mail_config_set_citation_color): Removed.
(mail_config_get_do_seen_timeout): Removed.
(mail_config_set_do_seen_timeout): Removed.
(mail_config_get_mark_as_seen_timeout): Removed.
(mail_config_set_mark_as_seen_timeout): Removed.
(mail_config_get_prompt_empty_subject): Removed.
(mail_config_set_prompt_empty_subject): Removed.
(mail_config_get_prompt_only_bcc): Removed.
(mail_config_set_prompt_only_bcc): Removed.
(mail_config_get_confirm_expunge): Removed.
(mail_config_set_confirm_expunge): Removed.
(mail_config_get_confirm_goto_next_folder): Removed.
(mail_config_set_confirm_goto_next_folder): Removed.
(mail_config_get_goto_next_folder): Removed.
(mail_config_set_goto_next_folder): Removed.
(mail_config_get_http_mode): Removed.
(mail_config_set_http_mode): Removed.
(mail_config_get_default_forward_style): Removed.
(mail_config_set_default_forward_style): Removed.
(mail_config_get_default_reply_style): Removed.
(mail_config_set_default_reply_style): Removed.
(mail_config_get_message_display_style): Removed.
(mail_config_set_message_display_style): Removed.
(mail_config_get_default_charset): Removed.
(mail_config_set_default_charset): Removed.
(mail_config_get_x_mailer_display_style): Removed.
(mail_config_set_x_mailer_display_style): Removed.
* subscribe-dialog.c (populate_store_list): Use the list of
accounts. We can't get the list of sources anymore.
(populate_store_foreach): Updated.
* mail-callbacks.c (guess_me_from_accounts): Use account->enabled.
(mail_generate_reply): Same.
(empty_trash): Here too.
* mail-accounts.c (account_delete_clicked): Use account->enabled
rather than source->enabled.
(account_able_clicked): Same.
(account_cursor_change): Here too.
(mail_accounts_load): And here.
* component-factory.c (owner_unset_cb): Use gconf empty-on-exit
settings.
(mail_load_storages): Use account->enabled rather than
account->source->enabled. The struct changed.
* mail-composer-prefs.c (sig_add): Get the send_html pref from gconf.
* message-tag-followup.c (target_date_new): Use gconf.
* mail-config.c (mail_config_get_week_start_day): Removed.
* mail-tools.c (mail_tool_quote_message): Use gconf here too, but
we don't need to parse the colour - just use it as a raw string.
(mail_tool_forward_message): Use gconf.
* mail-format.c (mail_format_data_wrapper_write_to_stream): Use gconf.
(write_headers): Use gconf.
(handle_text_plain): Same.
* mail-display.c (mail_text_write): Updated to use gconf and parse
GdkColour strings.
(on_url_requested): Updated to use gconf.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Use gconf
rather than the old mail-config APIs which will be removed.
(ask_confirm_for_empty_subject): Same.
(ask_confirm_for_only_bcc): Here too.
(composer_get_message): And here.
(create_msg_composer): Same.
(transfer_msg_done): Again here.
(delete_msg): Here too.
(confirm_expunge): And finally here.
* mail-config.c (mail_config_write): Use gconf.
(mail_config_get_sources): Removed.
* mail-account-gui.c (mail_account_gui_save): No need to save
enabled-state anymore for a source.
* mail-config-druid.c (wizard_finish_cb): Instead of setting
account->source->enabled to TRUE, just set account->enabled to
TRUE. The structures changed a bit.
* mail-send-recv.c (mail_send_receive): Get the list of accounts
instead of sources, and pass them along to build_dialogue. I'm
trying to get rid of the mail_config_get_sources() api.
(mail_autoreceive_setup): Here too.
* mail-config.c (mail_config_get_filter_log): Removed.
(mail_config_set_filter_log): Removed.
(mail_config_get_filter_log_path): Removed.
(mail_config_set_filter_log_path): Removed.
(mail_config_get_new_mail_notify): Removed.
(mail_config_set_new_mail_notify): Removed.
(mail_config_get_new_mail_notify_sound_file): Removed.
(mail_config_set_new_mail_notify_sound_file): Removed.
* mail-session.c (main_get_filter_driver): Updated to use the
gconf settings.
2003-01-07 Dan Winship <danw@ximian.com>
* mail-account-gui.c (mail_account_gui_auto_detect_extra_conf,
mail_account_gui_build_extra_conf): Don't translate the conf
strings. Camel already did it.
2003-01-06 Dan Winship <danw@ximian.com>
* Makefile.am: remove idldir definition. (It's defined in
configure.in now)
2003-01-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Use
e_destination_get_email() instead of e_destination_get_address()
when checking that we have a list of valid recipients to send the
message to because get_email() returns the addr-spec portion of
the address, which is what we care about. if that doesn't exist,
then the address is useless. This does all we can do mailer-side
for the recent "SMTP Problem" thread.
2003-01-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c: Fixed some build issues.
* mail-search.c: Same.
* mail-callbacks.c (save_draft_done): Use
g_signal_handlers_disconnect_by_func().
(manage_subscriptions): Use a weak_ref instead of connecting to
the destroy event.
2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
...And a whole bunch more build fixes.
* mail-vfolder.c (mail_vfolder_delete_uri): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-session.c (main_get_filter_driver): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-ops.c (build_from): Don't use g_string_sprintfa() anymore
since it is apparently deprecated.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-autofilter.c: Don't use g_string_sprintfa() anymore since
it is apparently deprecated.
* folder-browser.c: Don't use g_string_sprintfa() anymore since it
is apparently deprecated.
* mail-search.c (mail_search_set_subject): Remove the unnecessary
g_strdup()'age as well as fix a possible buffer overrun.
* mail-local.c (mail_local_folder_construct): Use
g_path_get_basename().
* mail-config-druid.c (make_account): Don't use e_utf8_*
functions.
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c #define a STANDARD_ISSUE_TABLE_OPEN string used
for wrapping textual message parts to keep them being fully-left
justified.
(mail_format_raw_message): Wrap the content with a table so that
text isn't fully left-justified.
(write_hr): Use it here too.
(handle_text_plain): And finally here.
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_error_printf): Use camel_text_to_html()
instead of e_text_to_html().
(mail_text_write): Write the content directly to gtkhtml through
an html stream filter.
* mail-format.c (attachment_header): Use camel_text_to_html()
instead of e_text_to_html().
(write_text_header): Same.
(write_address): Here too.
(mail_get_message_rfc822): And here.
(mail_get_message_body): And finally here.
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): Re-implemented to use
streams. Also no need to check for html since
camel-mime-part-utils.c now does this for us and will re-tag the
mime-type as text/html thus the UI can be completely ignorant of
this process.
(handle_text_plain_flowed): Removed.
(write_one_text_plain_chunk): Removed.
(try_uudecoding): Removed.
(try_inline_binhex): Removed.
(handle_text_enriched): Re-implemented to use streams too.
2002-12-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_text_header): Change the order of the args
to be consistant with other write functions.
(write_date): Same.
(write_field_row_begin): Here too.
(write_headers): Here too.
(write_one_text_plain_chunk): Don't strdup just to pass it to
mail_text_write() so that it can dup it yet again into html text
and dup it yet a 3rd time into a GByteArray. Instead just write it
to gtkhtml.
(handle_*): Fixed arguments to take a MailDisplayStream instead of
a GtkHTML widget and a GtkHMLStream.
* mail-display.c (mail_display_render): Create a MailDisplayStream
to pass to mail_format_mime_message() and
mail_format_raw_message().
* mail-display-stream.[c,h]: New stream to replace
mail-stream-gtkhtml.c
* mail-stream-gtkhtml.[c,h]: Removed.
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (check_send_configuration): Make sure the
folder-browser is not NULL or we'll crash.
* mail-preferences.c (mail_preferences_construct): Fix the colour
code to get a guint32 rgb correctly (I think - can't test because
the shell keeps crashing, yay).
* message-tag-followup.c (construct): Don't re-use cell renderers
- I'm not sure this is actually safe to do.
* mail-session.c: Get rid of unneeded CamelObject casts.
(user_message_response): Don't unref the dialog object after we've
destroyed it.
* mail-display.c (write_data_to_file): Don't unref the dialog
object after we've destroyed it.
* mail-callbacks.c: Same here.
* component-factory.c: Here too.
* message-tag-editor.c: Added MESSAGE_TAG_EDITOR_GET_CLASS macros.
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_accounts_tab_construct): Setup
double-click here.
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_delete_clicked): Get rid of the ETable
#ifdef's - we won't ever be using ETable.
(account_default_clicked): Same.
(account_able_clicked): Here too.
(mail_accounts_load): And here.
(mail_accounts_treeview_new): Renamed from etable_new since we
won't ever be using an etable.
(mail_accounts_tab_construct): And finally here.
2002-12-12 Not Zed <NotZed@Ximian.com>
* folder-browser.c (my_folder_browser_init): cast a-warning a-way.
* mail-composer-prefs.c (spell_setup): Terminate list_store_set
with -1.
* mail-accounts.c (mail_accounts_etable_new): clist -> gtktreeview
stuff. Yes, this is not an etable.
(mail_accounts_tab_construct): Same.
(mail_accounts_load): Same.
(account_cursor_change): Same.
(account_able_clicked): And this.
(account_default_clicked): Same.
(account_delete_clicked): Guess?
(account_edit_clicked): And here too.
2002-12-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream): New
function to handle a lot of the filtering/etc that was done in
mail_format_get_data_wrapper_text(). This is the first step toward
getting rid of e-text-to-html crap and using my tohtml stream
filter instead.
(mail_format_get_data_wrapper_text): Use the new function.
(mail_format_raw_message): Use camel streams to write the content
to gtkhtml rather than using get_data_wrapper_text() and then
converting that to html and then writing it to the gtkhtml stream.
2002-12-10 Not Zed <NotZed@Ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): language
is a treeview now. Not sure what to do with it yet, but get rid
of one warning anyway.
(mail_composer_prefs_construct): Same for sig_clist, but setup
model.
(sig_fill_clist): Change to use a gtktreeview instead of a clist.
(sig_selection_changed): New method to handle signature selection
changes with the new widgets.
(sig_delete): clist -> treeview.
(mail_composer_prefs_new_signature): Same.
(sig_edit): ditto.
(sig_current_sig): removed.
(sig_row_unselect): Removed.
(sig_row_select): Removed, now redundant.
(spell_select_lang): Removed, redundant.
(spell_set_ui_language): New implementation using list model more
effectively.
(spell_get_language_str): Same here.
(spell_set_ui_language): Removed this too, merged into
spell_set_ui, it was just wasting stack space.
(spell_language_selection_changed): renemd from
spell_language_select_row, converted to gtktreeview, etc.
(spell_language_unselect_row): Removed.
(spell_language_enable): Redone to use tree model.
(spell_language_button_press): Removed, i dont think this is
needed anymore.
(spell_setup): dont hook onto redundant signals.
* mail-config-factory.c (config_control_factory_cb): ignore
mail-font-prefs in a different way (so we dont assert)
2002-12-09 Chris Toshok <toshok@ximian.com>
* mail-session.c (pass_response): pass "Mail" to e_passwords_*.
(do_get_pass): same.
(main_forget_password): same.
(mail_session_get_password): same.
(mail_session_remember_password): same.
(mail_session_forget_password): same.
* mail-config.c (mail_config_write_on_exit): pass "Mail" to
e_passwords_*.
* main.c (main): e_passwords_init is gone.
2002-12-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (guess_me_from_accounts): Use the same logic as
mail_generate_reply(). Fixes bug #34882
Fixes bug #34315
* component-factory.c (message_rfc822_dnd): Return TRUE if we
successfully handled all messages in the mbox stream, or FALSE
otherwise.
(destination_folder_handle_drop): For TEXT_URI_LIST, use the
retval from message_rfc822_dnd() rather than relying on an
exception, because one will not always necessarily be set. For
MESSAGE_RFC822, also use the retval from message_rfc822_dnd().
2002-12-03 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_finalise/destroy): frobbed
around with these till it exits without crashing.
* message-list.c (message_list_destroy): made a destroy
handler again (was dispose). Frobbed around with this and
finalise till it can destroy without crashing.
* message-browser.c (message_browser_new): ref/sink the
folderbrowser.
2002-11-25 Radek Doulik <rodo@ximian.com>
* mail-preferences.c (mail_preferences_construct): magic_check -->
magic_links_check
2002-11-27 Not Zed <NotZed@Ximian.com>
* message-tag-followup.c (construct): gnome_pixmap -> gtkimage.
(construct): gtk_clist -> gtk_tree_view, setup columns. They dont
size well :-/
(message_tag_followup_append_message): Append using model, remove
clist stuff.
(construct): Show date edit (glade bugs?)
* folder-browser.c (folder_browser_class_init): gtk_marshal -> g_cclosure_marshal
(setup_popup_icons): gnome_pixmap -> gtk_image.
(on_right_click): gtk_pixmap -> gtk_image.
* mail-accounts.c (account_delete_clicked): removed #if 0'd out code.
* mail-send-recv.c (receive_done): remove FIXME and extra unref.
* mail-session.c (request_password): Removed #if 0'd out stuff.
* mail-vfolder.c (new_rule_clicked): proper cast for g_object_get_data.
* mail-local.c (reconfigure_response): cast for g_object_get_data.
* mail-account-editor.c (construct): GNOME_DIALOG -> GTK_DIALOG.
* *.[ch]: re-ran fix.sh for e_notice change
* mail-callbacks.c (save_msg_ok): g_object_get_data +
gtk_object_remove_no_notify -> g_object_steal_data.
(find_socket): gtk_container_children ->
gtk_container_get_children
(edit_msg): gnome_*_dialog -> gtk_message_dialog.
(resent_msg): "
(search_msg): "
(confirm_goto_next_folder): gtkmessagedialogised (even if not
used).
(confirm_expunge): gtkmessagedialogised
(filter_edit): "
(do_mail_print): e_notice -> gtk_message_dialog.
(are_you_sure): removed e_gnome_ok_cancel_dialog crap, replaced
with a gtk dialog.
(are_you_sure): gtkmessagedialogised.
(edit_msg_internal): Dont free uids array, are_you_sure() free's
it.
(resend_msg): Same.
(check_send_configuration): Use e_notice for stuff. Sigh, here we
go again ...!
(e_question): A utility function to ask a question, potentially
with 'dont ask again' as well.
(configure_mail): use e_question to save code. Here we go again,
again ...
(ask_confirm_for_unwanted_html_mail): "
(ask_confirm_for_only_bcc): "
(ask_confirm_for_only_bcc): "
(composer_get_message): Use e_notice.
(composer_save_draft_cb): Use e_question
(edit_msg): use e_notice, & change to an ERROR.
(resend_msg): same.
(save_msg_ok): Properly initialise ret to OK, and use e_question,
and use access() to determine existance/write access rather than
stat, display an error if we can't write to a file that exists,
and print the filename in all dialogues.
(confirm_goto_next_folder): Use e_question.
(confirm_expunge): use e_question.
(filter_edit): Use e_notice.
(do_mail_print): use e_notice.
2002-11-26 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_gui_add_rule): clicked->response signal
for gtk dialogue.
(new_rule_clicked): Dont unref after destroy (duh, idiot again).
(edit_rule_response): Same here.
(mail_vfolder_delete_uri): Connect response signal to
gtk_widget_destroy directrly using g_signal_connect_swapped.
(close_dialogue): Removed, as no longer needed.
* message-list.c (get_normalised_string): Duh idiot, "un-fixed"
the memleak i added.
* mail-callbacks.c (composer_get_message): Set parent window in
message dialogue & DESTROY_WITH_PARENT flag.
(composer_save_draft_cb):
(configure_mail):
(check_send_configuration): Add DESTROY_WITH_PARENT flag to
gtk_message_dialog's
(local_configure_done): remove some unecessary/wrong casts.
(empty_trash_expunged_cb): "
(do_mail_print): use gtk_window_set_transient_for instead of
e_dialog_set_parent.
2002-11-26 Not Zed <NotZed@Ximian.com>
* mail-account-editor.c (mail_account_editor_new):
gtk_widget_set_parent_window -> gtk_window_set_transient_for.
* mail-callbacks.c (composer_send_queued_cb): dont unref composer.
* message-browser.c (message_browser_destroy): moved back from
finalise.
2002-11-25 Not Zed <NotZed@Ximian.com>
* message-list.c (message_list_dispose): move saving tree state
here.
(message_list_finalise): And take it from here.
* mail-display.c (mail_display_destroy): @#$@# gtk. changed this
around a bit.
(mail_display_init): Fix prototype, its a gobject.
(mail_display_init): ref/sink the invisible gtkobject.
2002-11-22 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): removed
e_messagebox, and use gtk_message_dialog directly.
(ask_confirm_for_empty_subject): and here.
(ask_confirm_for_only_bcc): And here too.
(msgbox_destroy_cb): Removed, since no longer needed.
2002-11-15 Harry Lu <harry.lu@sun.com>
* mail-display.c (write_data_to_file): Show file name when prompt
to user for overwrite. Fixes bug #34180.
2002-11-21 Harry Lu <harry.lu@sun.com>
* mail-display.c (do_attachment_header): Enable dragging of all
attachments. For bug #34327.
2002-11-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (mail_preferences_construct): Since the
GSList returned from gconf needs to be free'd by us, we don't need
to strdup the values. Also make sure we don't leak the GSList
itself.
(mail_preferences_apply): Don't leak our GSList data.
2002-08-30 Radek Doulik <rodo@ximian.com>
* mail-display.c (mail_display_render): don't set margins for raw
message view
* mail-format.c (mail_format_raw_message): as below
(handle_text_plain_flowed): as below
(mail_format_raw_message): don't use data_urls
* mail-display.c (mail_text_write): put text in iframe, so it has
margins and should not be placed in table which changes wrapping
behavior
2002-11-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): gconfify.
(mail_composer_prefs_apply): gconfify this also.
* mail-preferences.c (mail_preferences_construct):
gconf_client_get_string() probably returns an allocated buffer.
2002-11-20 Not Zed <NotZed@Ximian.com>
* importers/Makefile.am (%.server.in): provide a proper implicit
rule for building .server.in from .server.in.in. The other one
just copied the first target to all destinations(!).
* importers/evolution-outlook-importer.c (outlook_factory_fn):
destroy -> weak ref.
2002-11-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (mail_preferences_apply): Save the settings
via gconf.
(mail_preferences_construct): Load the values from gconf.
2002-11-19 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (sig_load_preview): use
gtk_html_begin_content to specify utf-8
2002-11-19 Not Zed <NotZed@Ximian.com>
* importers/evolution-mbox-importer.c (mail_importer_module_init):
fix warning message, outlook->mbox.
* importers/Makefile.am: fix serverdir to point to
$libdir/bonobo/servers.
* mail-callbacks.c (addrbook_sender): add type to
bonobo_widget_set_property.
* mail-vfolder.c (vfolder_editor_response): dont unref after destroy.
* mail-session.c (pass_response): dont unref aftrer destroy.
* mail-local.c (reconfigure_response): dont unref after destroy.
* mail-display.c (launch_cb): dont unref after destroy.
(launch_cb): "
(drag_data_get_cb): "
(html_button_press_event): add type to bonobo_widget::set_property
* mail-config.c (mail_config_check_service): dont unref after
destroy.
* component-factory.c (send_receive_cb): dont unref after destroy.
(request_quit): "
* mail-signature-editor.c (mail_signature_editor): Use version 3.0
of gtkhtml editor interfaces.
(do_exit): dont unref after destroy.
(format_html_cb): Add type to bonobo_widget::set_property.
2002-11-18 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (spell_setup_check_options): check
exception state and take care when exception raised
2002-11-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_accounts_load): Specify the default
account. Also, don't need to use e_utf8_to_gtk_string() here.
2002-11-18 Not Zed <NotZed@Ximian.com>
* Makefile.am (evolution_mail_LDADD): Added back
libevolution-importer stuff.
(SUBDIRS): Added back importers.
* importers/evolution-mbox-importer.c (load_file_fn): build the
uri without deprecated funcs.
(load_file_fn): dont free/alloc a camel_exception for no obvious
purpose.
(mbox_factory_fn): use weak_ref rather than destroy.
(importer_destroy_cb): fix signature for weak ref notify.
(mbox_factory_fn): add cid param.
* importers/*.[ch]: ran fix script over everything.
* importers/*.server.in.in: Added bonobo activation files. Moved
evolution-mail to @LIBEXEC@ as below.
* importers/Makefile.am: oaf->bonobo activation stuff.
* importers/evolution-outlook-importer.c (outlook_factory_fn): Add
component id to callback.
2002-11-15 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am: Add rules to substitute @LIBEXEC@ in
GNOME_Evolution_Mail.server.in.in and install evolution-mail in
$(libexecdir) instead of $(bindir).
* GNOME_Evolution_Mail.server.in.in: Replaced evolution-mail with
@LIBEXECDIR@/evolution-mail.
2002-11-15 Rodney Dawes <dobey@ximian.com>
* component-factory.c: Use bonobo_main_quit instead of gtk
2002-11-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_edit): Correctly spell Advanced.
2002-11-15 Not Zed <NotZed@Ximian.com>
* mail-summary.c (create_summary_view): weak notify -> ref.
* mail-send-recv.c (build_dialogue): weak notify -> ref.
* mail-accounts.c (account_edit_clicked): weak notify -> ref, i
presume this is what jeff meant, 'cause it dont compile otherwise.
2002-11-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_edit_clicked): Use g_object_weak_ref
rather than connecting to destroy.
(account_add_clicked): Same.
* mail-callbacks.c (addrbook_sender): Make this use
g_object_weak_notify also.
(subscribe_dialog_destroy): Add NULL guards here since I think we
really do want to connect to the "destroy" signal in the function
that connects us to that signal.
* mail-config-factory.c (config_control_factory_cb): Same.
* mail-display.c (save_part): Here too.
(make_popup_window): And here.
* mail-send-recv.c (build_dialogue): Same here.
* mail-summary.c (create_summary_view): Use g_object_weak_notify
instead of connecting to the destroy signal.
2002-11-14 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (owner_set_cb): Want a (GWeakNotify) cast
here, not (GWeakNotify *).
* subscribe-dialog.c (fete_init): g_object_set() instead of
gtk_object_set().
(populate_store_list): Likewise.
(menu_item_selected): g_object_get_data() instead of
gtk_object_get_data().
* message-list.c (message_list_create_extras): g_object_set()
instead of gtk_object_set().
* message-browser.c (message_browser_message_list_built):
g_object_get_data() instead of gtk_object_get_data().
* mail-vfolder.c (edit_rule_response): g_object_get_data() instead
of gtk_object_get_data().
* mail-summary.c (generate_folder_summaries): g_object_unref() the
context instead of gtk_object_destroy().
* mail-local.c (reconfigure_response): g_object_get_data() instead
of gtk_object_get_data().
* mail-display.c (pixbuf_gen_idle): g_object_unref() the GdkPixbuf
loader instead of gtk_object_destroy().
(pixbuf_gen_idle): Likewise.
(embeddable_destroy_cb): Likewise.
* mail-config-druid.c (mail_config_druid_destroy): No need to
gtk_object_destroy() the GladeXML object.
(construct): g_object_set() instead of gtk_object_set().
* folder-browser.c (folder_browser_gui_init): g_object_get_data()
instead of gtk_object_get_data().
2002-11-14 Not Zed <NotZed@Ximian.com>
* component-factory.c (create_view): shell client objref.
(mail_add_storage): "
(mail_remove_storage): "
2002-11-13 Joe Shaw <joe@ximian.com>
* Makefile.am: Remove a couple backslashes that were causing
automake to complain, even though they were on lines that were
-commented out-. Sigh.
2002-11-13 Ettore Perazzoli <ettore@ximian.com>
* folder-info.c (evolution_folder_info_factory_fn): Use
g_object_new() instead of gtk_type_new().
* folder-browser.c (folder_browser_new): Likewise.
* mail-account-gui.c
(mail_account_gui_folder_selector_button_new): Likewise.
* mail-font-prefs.c (mail_font_prefs_new): Likewise.
2002-11-13 Ettore Perazzoli <ettore@ximian.com>
* mail-format.c: Do not #include <libgnome/gnome-defs.h>.
* mail-importer.c: Likewise.
* mail-mt.c: Likewise.
* mail-ops.c: Likewise.
* mail-search-dialogue.c: Likewise.
* mail-session.c: Likewise.
* mail-vfolder.c: Likewise.
* message-tag-followup.c: Likewise.
* main.c: Likewise, and <libgnomeui/gnome-init.h>.
* mail-callbacks.c: Do not #include <libgnome/gnome-paper.h>.
(do_mail_print): Remove the GnomePaper local variable.
2002-11-13 Not Zed <NotZed@Ximian.com>
* component-factory.c (owner_set_cb): destroy->weak ref.
(owner_set_cb): shell client changes.
* mail-signature-editor.c (mail_signature_editor): bonobo api changes.
* mail-local.c (save_metainfo): go back to using xmlSaveFile.
* Makefile.am: Removed libevolution-importer from mail.
2002-11-13 Not Zed <NotZed@Ximian.com>
* GNOME_Evolution_Mail.server.in.in: Added to cvs. Currently
contains no configurable stuff, but maybe it will one day.
* Makefile.am (server_DATA): change oaf stuff to server stuff for
bonobo activation.
* mail-preferences.c (mail_preferences_apply): handle const entry text.
* mail-composer-prefs.c (url_requested): Fixed typo.
(mail_composer_prefs_construct): gnomepixmap->gtkimage.
* mail-callbacks.c (configure_mail): destroy dialogue before dealing
with response.
(mail_generate_reply): Fix a typo.
(popup_listener_cb): fix prototype.
(tag_editor_response): Handle gtk dialog response.
(flag_for_followup): Change gnome dialog to gtk dialog stuff.
(tag_editor_destroy_cb):
(tag_editor_cancel):
(tag_editor_ok): Removed, handled in _response().
(filter_editor_response): renamed from _clicked, handle gtk
dialogue signal.
(filter_editor_destroy): Removed.
(footer_info_new): gnome font api changes.
(do_mail_print): port to gnome print 2.
* mail-autofilter.c (mail_filter_delete_uri): message_dialog uses
a specific button enum, not the stock ones.
* mail-accounts.c (mail_accounts_tab_get_type): gobjectify.
(account_delete_clicked): gdkdialogise.
* mail-account-gui.c (mail_account_gui_setup): Hack around font
metric determination code.
* mail-account-editor.c (mail_account_editor_get_type):
gobjectise.
(mail_account_editor_new): ""
* folder-info.c (evolution_folder_info_notify_ready): use pbclient
interface.
* folder-browser-factory.c (control_destroy_cb): fix a typo.
(folder_browser_factory_new_control): More typos.
* folder-browser.c (on_right_click): cast around const warning.
(context_menu_position_func): fix for api change.
* e-searching-tokenizer.c (e_searching_tokenizer_finalise):
Changed from destroy since it only frees memory.
(e_searching_tokenizer_get_type): glibify.
* component-factory.c (request_quit): gtkdialogise.
(send_receive_cb): "
(create_component): gdk_pixbuf api.
(component_factory_init): bonobo activation stuff.
(warning_response): renamed from warning_clicked.
(owner_set_cb): gtkdialogise.
2002-11-12 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Added files I've ported.
* mail-config.c: Remove gnome-defs.h, this header no longer exists
in GNOME2.
2002-11-13 Not Zed <NotZed@Ximian.com>
* Makefile.am: Commented out stuff that doesn't build yet. Also
fixed idl build rule. importers still not built.
* main.c (main): bonobactivationise. remove push visual/colormap.
(main): no longer activate activation, let bonobo_init do it.
* mail-signature-editor.c (menu_help): Change help api.
* mail-session.c (user_message_destroy_noreply): removed. Not
used?
* mail-local.c (load_metainfo): xml root->children.
* mail-format.c (g_string_append_len): Removed, it exists now.
2002-11-12 Not Zed <NotZed@Ximian.com>
* subscribe-dialog.c: gnome2ised, use gtkdialog.
(subscribe_get_global_extras): use a weak ref rather than destroy
signal.
* message-tag-followup.c: gnome2ised.
* message-tag-editor.c: gnome2ised & converted to gtkdialog.
* message-list.c: gnome2ised.
(message_list_finalise): From destroy method. maybe should be
destroy still.
* message-browser.c: port to gnome2
(message_browser_finalise): renamed from destroy method.
* mail-stream-gtkhtml.c: removed redundant
camel_class_get_global_classfuncs() call.
* mail-signature-editor.c: gtkdialogised, & bonobo api changes.
* mail-search-dialogue.c: gtkdialogised.
* mail-folder-cache.c: cleaned up camel ref/hook casts.
* mail-composer-prefs.c (mail_composer_prefs_get_type): convert to
gtype.
* mail-font-prefs.c (mail_font_prefs_destroy): from finalise.
* mail-config.c: s/bonobo_config/e_config_listener/ Added
/apps/Evolution prefix to the evolution keys. Changed to use
e_config_listener, etc.
(mail_config_init): remove bonobo_config stuff.
(mail_config_check_service): gtk dialogise.
(check_response): from check_cancelled.
* mail-config-druid.c (mail_config_druid_destroy): renamed from
_finalize, turned into destroy handler.
(construct): set type to toplevel, GTK_WINDOW_DIALOG no longer
exists.
* mail-config-factory.c (mail_config_register_factory): bonobo api
changes.
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): cleaned up
unref casts.
* mail-display.c (write_data_to_file): gnome->gtkdialog.
(on_link_clicked): use ascii_str*cmp on url.
(save_part): g_path stuff.
(launch_cb): gtk dialog.
(pixmap_press): de-oafify.
(pixbuf_for_mime_type): gnome-vfs api changes.
(do_attachment_header): Change the pixmap to a gtkimage.
(do_signature): "
(pixbuf_gen_idle): "
(do_attachment_header): ascii_str*cmp
(do_attachment_header): gnome pixmap->gtkimage.
(mail_display_destroy): protect against gtk mentalness.
(html_button_press_event): ascii_str*cmp
(drag_data_get_cb): added comment for translators of filename.
* mail-format.c (component_supports): de-oafise.
(is_anonymous): ascii_strncmp
(attachment_header): remove utf8<>locale stuff, and gnomevfs api
changes.
(format_mime_part): fix g_strdown call.
(write_field_row_begin): kill utf8->gtk stuff.
(write_address): "
(default_header_index): ascii_strcasecmp
(handle_text_plain): "
(handle_text_enriched): "
(handle_multipart_encrypted): remove utf/gtk stuff.
(handle_message_external_body): ascii_str*cmp
* mail-identify.c (mail_identify_mime_part):
(identify_by_magic): gnome vfs api changes.
* mail-importer.c: Converted.
* mail-local.c (load_metainfo): xml childs -> children.
(mls_get_folder): g_strerror.
(mls_delete_folder): g_strerror.
(reconfigure_got_folder): Gnome->GtkDialog
(reconfigure_response): from reconfigure_clicked.
* mail-mt.c (mail_msg_check_error): gnome -> gtk dialog
(error_response): renmae from error_gone. destroy widget on any
response.
* mail-offline-handler.c (impl_finalise): renamed from
impl_destroy since thats what it should be anyway.
* mail-ops.c: removed utf8 widget conversion & camel_object_un/ref
casts.
* mail-preferences.c (mail_preferences_get_type): glib2'ised.
* mail-search.c (mail_search_finalise): renmaed from destroy &
properly chain.
(mail_search_get_type): glib2 & make gtkdialog parent.
(entry_run_search): run search when entry activated. not sure if
gtkdialog has anohter way to do this on an arbitrary widget.
* mail-send-recv.c (dialogue_response): renamed from clicked. Use
gtkdialog.
* mail-session.c (request_password_deleted): removed, redundant.
(pass_response): rename from pass_got, changed for gtkdialog.
(user_message_destroy): Removed, redundant.
(user_message_response): Renamed from user_message_clicked.
2002-11-11 Not Zed <NotZed@Ximian.com>
* mail-stream-gtkhtml.c (mail_stream_gtkhtml_class_init): dont use
get_global_classfuncs, just get the type
* mail-tools.c: converted gnome2 api's.
* mail-vfolder.c (vfolder_editor_response): clicked->response.
(vfolder_editor_destroy): Removed.
(vfolder_edit): gtk dialog api
(edit_rule_response): clicked->response.
(vfolder_edit_rule): gnomedialog->gtkdialog.
(vfolder_gui_add_rule): "
(new_rule_clicked): clicked->response
2002-11-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c: Half way ported. I'll finish the rest later.
* mail-autofilter.c: Ported.
* mail-account-gui.c: Ported.
* mail-account-editor.c: Ported.
* folder-browser-ui.c: Ported.
* folder-browser-factory.c: Ported.
* folder-browser.c: Ported.
* e-searching-tokenizer.c: Roughly ported.
2002-11-10 Jeffrey Stedfast <fejj@ximian.com>
* *.glade: Converted to libglade-2's format.
2002-11-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c: Ported.
2002-10-28 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): No longer need
to check for a CLEAR_ID.
2002-10-28 Larry Ewing <lewing@ximian.com>
* mail-format.c (handle_multipart_mixed): instead of bailing with
an assertion dump the body.
2002-10-27 Larry Ewing <lewing@ximian.com>
* mail-display.c (fetch_next): don't queue the action until we've
added ourselves to the active list, because the fetch_done
callback can fire immediately and we'll end up queueing something
that has already been destroyed.
2002-10-24 Jeffrey Stedfast <fejj@ximian.com>
Update the upgrade script to handle the new url format introduced
with NotZed's most recent commits.
* upgrade-mailer.c (mailer_upgrade): Save an encoded version of
the namespace too, for use later.
(si_free): Free the encoded namespace too.
(imap_url_upgrade): Use the encoded namespace when creating the
new url.
(shortcuts_upgrade_xml_file): Upgrade the default: urls. Fixes bug
#32127.
2002-10-25 Not Zed <NotZed@Ximian.com>
* mail-config.c (mail_config_uri_renamed): Always strdup the new
key in the threaded/preview hash/always free the working copy.
For #32799.
2002-10-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (write_data_to_file): Use the mode 0666 when
creating a new file and let the user's umask handle permissions.
* folder-browser.c (message_list_drag_data_get): When using open()
with the O_CREAT flag, we need to pass a mode argument. Also use
O_EXCL.
2002-10-24 Not Zed <NotZed@Ximian.com>
* subscribe-dialog.c (fe_got_children): Use a hashtable to only
insert nodes we dont have already, rather than relying on the
scanning logic. Also, only re-sort this tree level once done
rather than on each insert.
(folder_etree_init): Setup hash to track nodes setup.
(folder_etree_clear_tree): Reset hash.
(fe_destroy): Free hash.
2002-10-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): Only perform
the search if it is either a clear or advanced search.
2002-10-22 Mike Kestner <mkestner@ximian.com>
* mail-callbacks.c (transfer_msg): pass fb->uri to the folder
selection dialog so the current folder is selected on display.
"fixes" 15966.
2002-10-21 Dan Winship <danw@ximian.com>
* upgrade-mailer.c (mailer_upgrade): Fix the transport URL on any
Exchange accounts. Fixes #30209, which is to say that it fixes
#28490 correctly.
2002-10-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_quote_message): Strip the signature from
the body-text. Fixes bug #5529.
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Don't need to pass a
path to camel_gpg_context_new () anymore.
(mail_get_message_body): Same here.
(handle_multipart_encrypted): Use camel_gpg_context_new () instead
of mail_crypto_get_pgp_cipher_context ().
* mail-preferences.c (mail_preferences_construct): There's no
security tab anymore.
(mail_preferences_apply): No need to save any pgp config data,
there's nothing to configure!
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
not pass a pgp path into camel_gpg_context_new ().
* mail-config.c (mail_config_clear): No need to free a pgp_path
variable anymore, we don't need one.
(config_read): Don't read in a pgp-path or pgp-type anymore.
(mail_config_write_on_exit): Don't save a pgp-path or pgp-type
anymore, we don't use them.
(pgpopen): Removed.
(pgpclose): Removed.
(mail_config_pgp_type_detect_from_path): Removed.
(auto_detect_pgp_variables): Removed.
(mail_config_get_pgp_type): Removed.
(mail_config_set_pgp_type): Removed.
(mail_config_get_pgp_path): Removed.
(mail_config_set_pgp_path): Removed.
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): If mode == REPLY_LIST
and the mlist is "" (we only checked NULL before), change the mode
to REPLY_ALL so that we don't accidently reply to the user's
address. Fixes bug #28735
2002-10-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): If we are trying to
reply to a list, first check that we can by getting the mlist
token (makes it easier to fix the mem leak). If not, then change
the mode to REPLY_ALL. If we can reply to list, the make sure we
free the CamelMessageInfo when we're done so we don't leak.
2002-10-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (main_get_filter_driver): Add the new-mail-notify
rule to the filter driver before adding the user defined filter
rules so that we can be sure that the new-mail-notify rule gets
invoked. Fixes bug #32328.
* mail-composer-prefs.c (mail_composer_prefs_new_signature): Make
sure that name[0] cannot ever be NULL. Should maybe fix bug
#32230.
2002-10-15 Dan Winship <danw@ximian.com>
* upgrade-mailer.c (shortcuts_upgrade_xml_file): Change the type
in LDAP shortcuts from "ldap-contacts" to "contacts/ldap". Rewrite
this to use libxml since that was easier than trying to make the
old code do both kinds of changes at once.
2002-10-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (management_prepare): Only set an account
name if one doesn't already exist. Also use the
e_utf8_gtk_entry_get/set_text functions since account names are
supposed to be in UTF8. Fixes bug #31891.
2002-10-09 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (main_folder_changed): Don't do anything if the
message_list is NULL (this means the FolderBrowser has been
destroyed). Fixes bug #32002.
2002-10-08 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): The CamelFolderInfo
that we get back has nodes for all parent folders, so do not
delete all folders that have nodes in the returned tree. Instead,
descend into the tree until we find the folder we want to delete
and start deleting from there.
2002-10-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-signature-editor.c (mail_signature_editor): Mark a string
for translation, fixes bug #31942. Thanks to kmaraas@gnome.org for
this patch.
* mail-offline-handler.h: Don't #include config.h here. Fixes bug
#31941.
2002-10-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (spell_load_values): Don't mark "en" for
translation. Fixes bug #31788.
* mail-config.glade: Removed a "xxxxxxxxxxx" string so that
translators don't need to translate it. It was only a filler
string. Fixes bug #31789.
2002-10-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Don't default 'me' to
the source account until after we've tried to detect the account
based on recipients. When adding accounts to the account hash, if
any accounts have identical email addresses, the ones that are
enabled take precedence over ones that aren't. This will hopefully
make everyone happy with reply account picking. Fixes bug #31693.
2002-10-01 Larry Ewing <lewing@ximian.com>
* mail-display.c (drag_data_get_cb): add support for dragging the
content type directly.
(do_attachment_header): add the target for the mime type to the
drag source.
(drag_data_get_cb): silence warning.
2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (get_fn): Connect to the changed signal for
the reply_to entry box. Fixes bugs #31553 and #31554.
* mail-composer-prefs.c (spell_setup): Only setup the languages if
the language_seq is not CORBA_OBJECT_NIL. Fixes bug #31559
(presumably at least).
* mail-account-gui.c (mail_account_gui_new): Use
e_utf8_gtk_entry_set_text for the email address and reply-to
fields. Fixes bug #31555.
* mail-format.c (mail_get_message_body): Handle a
multipart/encrypted part. Fixes bug #31547.
* upgrade-mailer.c: Shut up some compiler warnings.
* importers/evolution-mbox-importer.c (process_item_fn): Use the
camel_message_info_new/free functions rather than g_new0 and
g_free. Also, if we fail to parse a message make sure we don't
later try to use that message object.
(get_info_from_mozilla): Use camel_message_info_new and strtoul
instead of string_to_int.
2002-09-30 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (fe_node_to_shell_path): Removed (useless).
2002-10-01 Ettore Perazzoli <ettore@ximian.com>
[Fix #24732]
* importers/evolution-mbox-importer.c (process_item_fn): Set
deleted to FALSE when not having Mozilla status headers. Before
it was being left uninitialized and so there was a pretty good
chance that its value would be nonzero and hence the message would
not be imported...
2002-10-01 Not Zed <NotZed@Ximian.com>
* folder-browser.c (on_cursor_activated): cursor activated on
etable is required to know when the selection changes on a single
row, update selection changed info with this signal too. Sounds
like an etable bug to me, but this fixes #29808.
(folder_browser_gui_init): Hook onto above signal.
2002-09-30 Aaron Weber <aaron@ximian.com>
* mail-signature-editor.c (mail_signature_editor): change
string to "Enter a name for this signature" on line 372.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): change
HTML-mail warning on 255
* component-factory.c (component_factory_init): change
"Evolution's foo" to "the Evolution foo" in string on 1078
2002-09-30 Not Zed <NotZed@Ximian.com>
* mail-session.c (request_password): translate prompt from utf8 to
gtk widget. #31365.
2002-09-27 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c: #include <stdlib.h> for alloca
(searcher_next_token): Changed slightly to make sure that m is not
NULL before dereferencing it. Also initialise m to NULL so that it
can't be used uninitialised (NULL is a safe initialised value
here).
(build_trie): Same, but for n.
2002-09-26 Dan Winship <danw@ximian.com>
* mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount,
impl_GNOME_Evolution_MailConfig_removeAccount): Set a timeout to
call mail_config_write() in 2 seconds. Otherwise changes made by
this interface would not be saved to disk unless the user also
changed some other preference.
(mail_config_write_on_exit): If there's a config_write_timeout
pending, call mail_config_write() too.
2002-09-25 Dan Winship <danw@ximian.com>
* mail-display.c (mail_display_render): Add a margin around the
"flag for followup" table so it lines up with everything else.
Also, don't add "at your earliest convenience" after the flag if
there's no date set, since that doesn't make any sense for half of
the flags. ("For Your Information at your earliest convenience").
2002-09-25 Dan Winship <danw@ximian.com>
* component-factory.c (folder_types): add "mail/public". Leave
"vtrash" as it is rather than renaming it to "mail/vtrash",
because we want it to behave differently from normal mail folders
more often than we want it to behave the same.
(type_is_mail, type_is_vtrash): utility funcs
(create_view, create_folder, remove_folder, xfer_folder,
populate_folder_context_menu, unpopulate_folder_context_menu,
destination_folder_handle_drop, storage_create_folder): Use
type_is_mail/type_is_vtrash.
(create_component): Register "New Post" with "mail/public" instead
of "mail" so it becomes the default New icon for it. (29024)
* mail-callbacks.c (transfer_msg): Use "mail/*" for allowed type.
* message-browser.c (transfer_msg): Likewise.
* mail-account-gui.c (mail_account_gui_new): Use "mail/*" instead
of "mail" here for sent/drafts allowed type. (?)
2002-09-25 Jeffrey Stedfast <fejj@ximian.com>
* upgrade-mailer.c (imap_url_upgrade): NULL-check si->folders
before passing it into find_folder so we don't crash. Fixes bug
#30915.
2002-09-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c: Allow users to delete already deleted
messages, fixes bug #30827.
2002-09-24 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_query_changed): Always do a
search if the query changed. For #31060 & #29625.
2002-09-23 Radek Doulik <rodo@ximian.com>
* mail-config.c (mail_config_signature_run_script): pass name of
the script as 1st parameter
* mail-composer-prefs.c (sig_add_script_add): fix entry's glade
name
2002-09-23 Dan Winship <danw@ximian.com>
* mail-signature-editor.c (exit_dialog_cb): Fix non-ANSI switch
statement.
* mail-account-gui.c (mail_account_gui_auto_detect_extra_conf):
Likewise.
* mail-composer-prefs.c (spell_load_values): add some dummy
typedefs to avoid empty macro arguments, which have undefined
behavior.
* mail-importer.c: #include <sys/types.h> for OS X
2002-09-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (save_part_save): Use 0666 as the create mode so that
the user's umask is used to it's fullest.
2002-09-23 Dan Winship <danw@ximian.com>
* Makefile.am (idldir, idl_DATA): add these and install Mailer.idl
2002-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (mail_preferences_construct): Connect signal
handlers to the GtkHTML preferences so that when the widgets
change we can update the OK/Apply buttons. Also removed the
omenuShortcutsType widget reference since this was not being used?
Fixes bug #30731.
2002-09-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_edit_messages): Unset the changed bit on
the composer and also drop any undo operations (since we loaded
the message into the composer). Fixes bug #30580.
2002-09-19 Not Zed <NotZed@Ximian.com>
* mail-session.c (main_get_filter_driver): Fix for filter driver
api change.
2002-09-18 Not Zed <NotZed@Ximian.com>
* mail-config-druid.c (wizard_back_cb): If going back from a page
past our end (i.e. the final page), jump to the last page we know
of. For #29293.
* component-factory.c (notify_listener_exception): helper to map a
camel excpeiton to a listener result.
(storage_create_folder): Use above to return more meaningful error.
(storage_remove_folder): "
(storage_xfer_folder): ". For #28209.
2002-09-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_render): Use e_strftime_fix_am_pm
here which fixes locale issues as well as working around systems
that don't support %P (afaik).
* mail-ops.c (prep_offline_do): Cache important messages too.
* mail-composer-prefs.c (d): Disable debugging printf's
* mail-ops.c: fixed a comment
2002-09-13 Dan Winship <danw@ximian.com>
* folder-browser.c (fb_resize_cb): If the vpaned isn't realized,
don't call mail_config_set_paned_size. Fixes a problem with the
saved pane size being repeatedly lost (#29933)
2002-09-13 Dan Winship <danw@ximian.com>
* Mailer.idl: rename this from "Mail.idl" so that the generated .h
file won't overwrite "mail.h" on Mac OS X. Remove some
never-implemented IDL and add MailConfig_removeAccount.
* Makefile.am: Update for IDL rename
* mail-config.c: #include Mailer.h, not Mail.h
(impl_GNOME_Evolution_MailConfig_removeAccount): Implement.
* folder-info.c: #include Mailer.h, not Mail.h
* message-list.c: Remove Mail.h include.
2002-09-12 Jeffrey Stedfast <fejj@ximian.com>
* main.c (main): Ignore SIGXFSZ to fix bug #30269.
* upgrade-mailer.c (cache_upgrade_and_free): The new callback
function for the g_hash_table_foreach which both upgrades the
cache for that store and then free's the struct _storeinfo
afterwards.
(cache_upgrade): Upgrade a cached folder by moving the old cache
folder into the appropriate new location.
2002-09-11 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): Only abort if
the user selected ADVANCED_SEARCH, not the other way around. Any
other menu item and we are supposed to perform an actual
search. Fixes bug #30183.
* mail-display.c (pixbuf_for_mime_type): check the new gnome-vfs
icon_filename key. If that fails, fall back to checking
icon-filename. Also don't leak the fm_icon string and rearranged
some code.
2002-09-11 Not Zed <NotZed@Ximian.com>
* component-factory.c (configure_folder_popup): Handle file uri's
too.
* mail-callbacks.c (configure_folder): clear message list before
calling configure folder.
(local_configure_done): completion callback to reset message list
when done.
* mail-local.c (mail_local_reconfigure_folder): changed args to
accept uri, and done callback.
(reconfigure_got_folder): moved code to callback which presents
the configure uri once we have the folder.
2002-09-10 Not Zed <NotZed@Ximian.com>
* component-factory.c: Handle file: as well as vfolder: uri's.
Pass both to the normal configure_folder callback. For #20849.
* folder-browser.c (got_folder): If we already have a folder, make
sure we unref/unhook from it. Fixes a crash on exit.
* message-list.c (message_list_hide_clear): clear thread tree
cache if set.
(message_list_set_search): Same. For bug #28834.
2002-09-09 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_scan_selection): Make
sure that fb->message_list is non-NULL before checking
fb->message_list->threaded? I guess this'll fix bug #29965.
* mail-callbacks.c (composer_save_draft_cb): NULL-check the ccd
before reffing it.
(composer_send_cb): Same.
* upgrade-mailer.c (shortcuts_upgrade_xml_file): Don't look for an
end quote, instead look for </item> to terminate the uri.
(shortcuts_upgrade_uri): Hex decode the imap folder name after
we've constructed the final version of it.
2002-09-08 Dan Winship <danw@ximian.com>
* upgrade-mailer.c (exchange_url_upgrade): Don't modify the URL if
the path doesn't start with "exchange". (Means it's already a 1.2
URL.)
(shortcuts_upgrade_uri): Need to hex-decode exchange URLs here too.
(shortcuts_upgrade_xml_file): Fix an off-by-one error here (twice)
so it actually works instead of always claiming shortcuts.xml
doesn't need to be upgraded.
(mailer_upgrade): Check the size of the accounts hash rather than
imap_sources since we have work to do if the user has an exchange
account but no imap accounts.
2002-09-06 Jeffrey Stedfast <fejj@ximian.com>
* upgrade-mailer.c (upgrade): Sync the database after upgrading
mailer stuff.
(imap_url_upgrade): Since we need 'p' if we fail to find the
folder, don't g_free it until later.
(hex_encode): Don't forget to increment inptr after hex encoding a
character.
(exchange_url_upgrade): Apprently exchange uri's are rebelious and
do not want to be hex encoded like every other url, so hex decode
the folder names here before concatenating them onto the base url.
2002-09-05 Jeffrey Stedfast <fejj@ximian.com>
All this snot is to fix bug #29930. What I think was happening was
that the composer's destroy callback got fired off before the
async callback did.
* mail-callbacks.c (ccd_new): New convenience function to malloc a
new ccd.
(ccd_ref): ccd is now ref_counted (it needs to be) so we now have
this.
(ccd_unref): And we need this now too of course.
(composer_destroy_cb): composer's new destroy callback function -
unref's the ccd.
(composer_send_queued_cb): unref the ccd.
(composer_send_cb): ref the ccd here.
(save_draft_done): unref the ccd.
(composer_save_draft_cb): ref the ccd.
2002-09-05 Jeffrey Stedfast <fejj@ximian.com>
* upgrade-mailer.c (imap_url_upgrade): Hex decode the folder names
when searching for them in the memory buffer, and re-hex encode
them when combining them with the rst of the URL.
(mailer_upgrade): Instead of reading in the storeinfo file as raw
binary data, use the camel-file-utils to correctly parse it.
2002-09-05 Anna Marie Dirks <anna@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Changed the descriptions of the
fonts, mail, accounts and composer pages of the settings dialog to be
hopefully more descriptive and less confusing.
2002-09-04 Ettore Perazzoli <ettore@ximian.com>
* upgrade-mailer.c (upgrade): Return FALSE here.
(get_base_url): Add a cast.
* component-factory.c (storage_xfer_folder): Removed unused
variables.
* Makefile.am: Rename upgrade-mailer to evolution-mail-upgrade.
2002-09-04 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Add upgrade-mailer.c to the build.
* upgrade-mailer.c: New program to upgrade configuration files
from 1.0 to 1.2.
2002-09-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Made sure
account->id->address is not NULL before adding it to the hash
table. This is to prevent bug #29877 from crashing, although it is
still an invalid error condition.
2002-09-04 Dan Winship <danw@ximian.com>
* folder-info.c (get_prop): Remove the "Get!" printf.
(set_prop): Likewise for "Set!"
2002-09-04 Ettore Perazzoli <ettore@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Remove unused
variable.
* component-factory.c (unpopulate_folder_context_menu): New.
(create_component): Pass it to evolution_shell_component_new().
2002-09-03 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (mark_as_seen_cb):
(mark_as_unseen_cb):
(mark_as_important_cb):
(mark_as_unimportant_cb): New callback functions that wrap the
mail-callbacks versions of mark_as_<whatever>. Thanks to Owen
Taylor for this fix.
2002-09-04 Not Zed <NotZed@Ximian.com>
* component-factory.c (storage_xfer_folder): Dont translate / to
dir_sep anymore, we always use /.
2002-08-29 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c: Add HAS_FLAGS to a few miscellaneous commands
that don't use IS_xMESSAGE.
2002-08-28 Dan Winship <danw@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Add an
evolution:shell_component_launch_order and rename
evolution:shell_component_icon.
2002-08-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (make_safe_filename): Fix some broken logic here,
`p = strrchr (path, '/') + 1` will *never* be NULL!! If the
strrchr returns NULL, then that expression will evaluate to 0x1!!
* main.c (main): We now always need to init gconf for our later
call to e_proxy_init() which initialises the proxy settings for
soup to use.
2002-08-28 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c (default_ui_nodes): Add some new flags for
sensitizing nodes based on the flags of the currently selected
messages.
(folder_browser_ui_add_message): Reset the sensitivity cache when
we re-add UI items.
(folder_browser_ui_add_list): Same.
(folder_browser_ui_add_global): Same.
(fbui_sensitise_item): Only cache the sensitivity in the hash
table if we actually change it.
(folder_browser_ui_scan_selection): New function, getting the bulk
of the contents of folder_browser_ui_set_selection_state. Now
with code to iterate over the currently selected messages and
check their flags so we can sensitize based on them.
(folder_browser_ui_set_selection_state): Now just set the
selection state if necessary and pass off to _scan_selection. Don't
skip of we're trying to go from SELSTATE_SINGLE to SELSTATE_SINGLE,
eg, as the flags of the selected messages may have changed.
* folder-browser-ui.h: Prototype folder_browser_ui_scan_selection.
* folder-browser.c (main_folder_changed): Call
folder_browser_ui_scan_selection as the flags on a selected
message may have just changed.
2002-08-28 Peter Williams <peterw@ximian.com>
* mail-format.c (component_supports): Also check that the component
has PersistStream.
(mail_lookup_handler): Get a list of all components and go with the
first matching one.
2002-08-27 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (regen_list_regen): Pass
mail_config_get_thread_subject() as the third argument to
camel_folder_thread_messages_new().
* mail-config.c (config_read): Read in the thread_by_subject
config option.
(mail_config_write_on_exit): Save the thread_by_subject config
option.
(mail_config_get_thread_subject): New function to get the
thread_subject value.
(mail_config_set_thread_subject): New function to set the
thread_subject value.
2002-08-27 Radek Doulik <rodo@ximian.com>
* mail-signature-editor.c: removed tip frame
2002-08-27 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #4480
* folder-browser-factory.c (control_activate): Call
folder_browser_reload() instead of refreshing the folder
ourselves.
* folder-browser.c (folder_browser_reload): New convenience
function. If the folder-browser's folder is already loaded,
refresh the contents, otherwise if the folder has not been loaded
- try loading the folder again (it may have failed to open last
time for some reason?).
2002-08-27 Peter Williams <peterw@ximian.com>
* mail-format.c (handle_text_plain_flowed): Fix bug #29493.
2002-08-26 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (toggle_flags): Logic change for when untoggling
a message from deleted-dom.
2002-08-26 Peter Williams <peterw@ximian.com>
* mail-ops.c (transfer_messages_transfer): Enforce the mailer policy
that deleted messages are marked as seen. Fixes 29448. This could
go in camel_folder_transfer_messages_to, but I don't think we
necessarily want to enforce that policy for Camel in general.
2002-08-23 Peter Williams <peterw@ximian.com>
Address most of bug #4940. Fails on the last page of the add account
dialog as called from the prefs dialog due to EvolutionWizard being
weird.
* mail-config-druid.c (goto_next_page): New function, little
wrapper around wizard_next_cb. Also potential place to work around
EvolutionWizard weirdness in the future.
(identity_activate_cb): New function, calls goto_next_page if
identity page is complete.
(source_activate_cb): Analogous.
(transport_activate_cb): Analogous.
(management_activate_cb): Analogous.
(get_fn): Hook up the activate signals of the various GtkEntries
to the correct callbacks above.
(management_check): Return the result of the check so that
management_activate_cb can use it.
2002-08-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_restore_xevolution_headers): Reset the
X-Evolution-PostTo header.
(mail_tool_remove_xevolution_headers): Remove the
X-Evolution-PostTo header.
2002-08-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-folder-cache.c (ping_store): Spawn a new thread to ping the
server but only if it is connected.
(ping_cb): This needs to return TRUE so the timeout keeps getting
called.
2002-08-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (class_init): Don't bother overloading the
timeout virtual methods since they don't exist anymore.
* mail-folder-cache.c (mail_note_store): Register a ping timeout
callback to ping each store to keep the connections alive.
2002-08-20 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): be sure that widget is
realized so that e_utf8_from_gtk_string works properly
(footer_print_cb): save/restore
2002-08-20 Mike Kestner <mkestner@ximian.com>
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): guard
against the view_instance disappearing during earlier CORBA work.
2002-08-20 Peter Williams <peterw@ximian.com>
* message-list.c (search_func): Once we hit the target node,
update the cursor_uid if it's set. Fixes #29085.
2002-08-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (mail_preferences_apply): Fix a
copy/paste-o. Use the pgp_path GnomeFileEntry widget rather than
the notify_sound_file GnomeFileEntry widget for the pgp path stuff
:-)
2002-08-19 Dan Winship <danw@ximian.com>
* mail-account-gui.c (mail_account_gui_setup): source_type_changed
may try to change the transport optionmenu (incorrectly in this
case), so don't call gtk_option_menu_set_history on it until after
emitting "activate" on the source type menuitem.
(mail_account_gui_save): Fix the saving of STORE_AND_TRANSPORT
transports and add a comment so it doesn't get mistakenly unfixed
again.
2002-08-09 Peter Williams <peterw@ximian.com>
* subscribe-dialog.c: Change this into a GnomeApp so we get a
statusbar and the dialog is a little more comprehensible.
* subscribe-dialog.c: (struct _FolderETree): Add members for
tracking activity callback information.
(get_short_folderinfo_got): Notify the activity callback.
(subscribe_get_short_folderinfo): Here too.
(folder_etree_init): Initialize the activity level to 0.
(folder_etree_construct): Take new parameters of our activity
callback and user_data.
(folder_etree_new): Here too.
(store_data_get_widget): Take the parameters here and pass them
on.
(sc_close_pressed): New callback for when close button is pressed.
(sc_activity_timeout): New timeout to move the activity bar when
folders are being scanned.
(sc_activity_cb): If activity_level > 0, start the progressbar
moving and set the status.
(menu_item_selected): Pass the callback to store_data_get_widget.
(subscribe_dialog_construct): Load some more widgets and adapt to
some changes in the XML. Also connect the close button signal and
initialize the progress bar's settings.
* mail-callbacks.c (manage_subscriptions): Don't call
gnome_dialog_set_close on it anymore since it's no longer a gnome
dialog.
2002-08-14 Dan Winship <danw@ximian.com>
* mail-config.glade: Add a "don't sign meeting requests" option to
the security pane, since some versions of Outlook won't recognize
pgp-signed meeting requests. Sigh.
* mail-config.c (account_copy, config_read, mail_config_write):
Handle pgp_no_imip_sign.
* mail-account-gui.c (mail_account_gui_new,
mail_account_gui_save): Setup/save "don't sign meeting requests"
button.
2002-08-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_message): Removed an unused variable.
* mail-account-editor.c (construct): Set the focus on the Account
Name entry widget. Fixes bug #10350.
2002-08-12 Dan Winship <danw@ximian.com>
* mail-display.c (on_url_requested): Replace no-longer-existent
e_book_query_address_locally with e_book_query_address_default.
2002-08-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_message): Use mail_get_messages()
instead of mail_get_message().
(do_forward_non_attached): Fixed to work as a callback from
mail_get_messages().
(do_edit_messages): Only set the drafts_folder and drafts_uid if
the folder-browser is a drafts folder. Fixes bug #28863.
2002-08-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (save_draft_done): If the ccd is NULL, create a
new ccd, disconnect the old signal handlers, and then reconnect
the signal handlers using the non-NULL ccd as the user_data.
(composer_send_queued_cb): Same, but only if the queue append
operation failed.
2002-08-09 Dan Winship <danw@ximian.com>
* mail-callbacks.c (composer_send_queued_cb, save_draft_done):
Handle the fact that ccd may be NULL (if the composer was created
via CORBA). Quick temporary fix for sending meeting requests.
2002-08-09 Peter Williams <peterw@ximian.com>
* mail-config.c (mail_config_uri_renamed): When a URI is changed,
try to copy over threaded view settings, preview pane shown
settings, headers, hide state, tree expansion, and GAL view files.
(uri_to_evname): New utility function.
2002-08-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Instead of comparing
old/new CamelStore objects, just compare their account urls since
changing params would still result in the same CamelStore
object. Fixes bug #18539.
* mail-callbacks.c (delete_msg): Don't check permanent_flags for
the CAMEL_MESSAGE_DELETED bit here, if we are gonna check to see
if the folder supports the permanent flag then there are better
places to check this. Besides, it was the cause for bug #28038.
2002-08-08 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_toggle_threads): Force a
refresh of the menu sensitivity when the thread state changes.
2002-08-07 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c: Added EditSelectThread to only enable
threaded mode if threaded is on. For #19941. Added some macro's
to simplify the table.
(folder_browser_ui_set_selection_state): Implement IS_THREADED
mask.
2002-08-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_send_queued_cb): Delete the Draft
item that this was edited from if that is the case as well as
setting any replied flags if we need to. Fixes bug #18171.
(save_draft_done): Not only delete the previously saved draft, but
also set any PostSendData on the message being replied to or
whatever. Fixes bug #20224.
(compose_msg): Create an empty callback data struct which is now a
MUST.
(mail_reply): Fill in the new post_send_data info and also move
the creation of the post_send_data to AFTER the creation of the
composer widget so we don't leak on fail.
(forward_get_composer): Pass an empty post_send_data structure as
the user_data to the signal callbacks.
(send_to_url): Same.
(post_to_url): Here too.
(redirect_get_composer): And here.
(do_edit_messages): We no longer use the evil kludge of setting
data on the composer object to denote the drafts_uid etc, this is
now part of the post_send_data struct.
2002-08-07 Peter Williams <peterw@ximian.com>
* component-factory.c (request_quit): If outbox_folder is NULL,
don't try and get its message count (this should never happen, but
has.)
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (save_metainfo): No need to save a temporary file
first anymore since I updated e_xml_save_file() to do this for us.
2002-08-07 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c: Enable the view type menu's always. See
#20901.
* message-tag-followup.c (target_date_new): Set the week start day
from the calendar prefs, do same for 24 hour format. See #23423.
* mail-config.c (config_read): Added week_start_day from
Calendar/Display config. Also time_24hour format.
(mail_config_get_week_start_day):
(mail_config_get_time_24hour): And read-only accessors.
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (save_metainfo): Save to a temporary file first
using e_xml_save_file rather than xmlSaveFile, if the save
completes successfully then rename it to the real filename. Make
sure that errno is saved.
(mls_get_folder): save_metainfo doesn't return -1 on fail, it
returns FALSE.
2002-08-06 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_search_menu_activated): Set the
rule name to include the search string, for #10979.
* message-list.c (message_list_hidden): Only count hidden messages
which are in the folder. Should probably maintain hidden table
better. For #4334.
* mail-ops.c (filter_folder_filter): Unref the driver before
returning to main thread, so any closing operations are handled
async (as in fetch_mail_fetch()), for #28072.
(fetch_mail_fetch): Check driver != NULL, if folder_filter freed
it already.
** fixes for #24605.
* mail-vfolder.c (vfolder_gui_add_from_mlist): Removed.
* folder-browser.c (filter_type_uid,vfolder_type_uid): Changed to
accept args directly. Fixed callers.
(filter_mlist_uid,vfolder_mlist_uid): Use filter_type_uid instead
of mlist variant.
(vfolder_type_current): new function to handle setup of vfolders
from the main menu. It now uses the vfolder_type_uid function the
same as the popup.
(vfolder_subject, vfolder_sender, vfolder_recipient,
vfolder_mlist): Changed to use vfolder_type_current.
(filter_type_current): Similar for filters.
(filter_subject, filter_sender, filter_recipient,
filter_mlist): Changed to use filter_type_current.
* mail-autofilter.c (rule_from_message): Handle AUTO_MLIST type.
(rule_from_mlist):
(vfolder_rule_from_mlist):
(filter_rule_from_mlist): Removed.
(filter_gui_add_from_mlist): Removed.
* mail-autofilter.h: Added AUTO_MLIST type.
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (mail_msg_check_error): If we are not in interactive
mode, don't display error dialogs.
* component-factory.c (interactive_cb): Updated to use the new
function mail_session_set_interactive().
(owner_unset_cb): Same here.
* mail-session.c (mail_session_set_interactive): Renamed from
mail_session_enable_interaction().
(mail_session_get_interactive): New function to get the
interactive state.
2002-08-01 Peter Williams <peterw@ximian.com>
* mail-offline-handler.c (struct _sync_info): Add a GHashTable pointer
so we can remove the info once the operation is done.
(sync_done): Remove the info from the hash table.
(impl_syncFolder): Save the table to which the info was added.
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (user_create_new_item_cb): Updated to call
post_to_url if the id is "post".
* mail-callbacks.c (post_to_url): New function so that we don't
need a FolderBrowser to post a new message.
(post_message): Call post_to_url since they shared so much code.
2002-08-05 Dan Winship <danw@ximian.com>
* mail-callbacks.c (mail_reply): Only reply to all or reply to
list, set CAMEL_MESSAGE_ANSWERED_ALL too.
2002-08-02 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (construct): Set the default flag to
Follow-Up.
* mail-display.c (mail_display_render): Updated to use the new
Follow-Up tags. Instead of storing a string containing the
follow-up tag value, we now have to store the CamelMessageInfo.
(mail_display_destroy): Unref the folder and the message-info.
* folder-browser.c (followup_tag_complete): No longer needed.
(on_right_clicked): Use the individual follow-up tags to decide
whether or not to enable something.
* message-list.c (ml_tree_value_at): Update to use the new
Follow-Up tags.
* mail-callbacks.c (flag_for_followup): Update to use the new
MessageTagEditor API.
(tag_editor_ok): Update this too.
(flag_followup_completed): Updated this too.
(flag_followup_clear): Set all the follow-up tag values to "".
2002-08-01 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Use
"post-message-16.png" as the icon for the "New Message Post" item.
2002-08-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): If we are editing an
account, then get the CamelStore associated with the old account
info and save it in a struct that we will pass along as user_data
to mail_get_store() for the new account url.
(add_new_store): If the old account and new account stores are
identical, then don't remove the old store from the folder
tree. If they are not the same, then remove the old store and add
the new store to the folder tree.
2002-07-31 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c: Add another bitfield "unsub"
(real_flush_updates): If unsubscribing, manually remove the folder
from the shell.
(unset_folder_info): Add another parameter which is used to set
the unsub member.
(store_folder_unsubscribed): Pass true for @unsub.
(unset_folder_info_hash): Pass false for @unsub.
* subscribe-dialog.c (fe_done_subscribing): Don't notify the shell
here. The folder cache does it now, and it was broken to make the
CORBA call in another thread anyway.
2002-08-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (setup_mime_tables): Don't setup a handler for
multipart/digest.
(handle_multipart_digest): Removed.
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Removed folder-browser-window from the build.
* folder-browser-window.[c,h]: Removed.
* mail-callbacks.c (view_digest): Removed.
* mail-display.c (mail_display_digest_clicked): Removed.
(on_link_clicked): Don't handle digest: urls anymore.
2002-07-31 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Put "New Mail Message"
before "New Message Post" instead of vice versa.
2002-07-31 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Pass "mail" as
@folder_type to
evolution_shell_component_add_user_creatable_item().
2002-07-31 Not Zed <NotZed@Ximian.com>
* mail-display.c: Added global cameldatacache for managing remote
image cache.
(fetch_remote): Lookup data in cache first, use that if available,
or setup a new cache item.
(fetch_data): Write any retrieved data to cache as well as html
stream.
(fetch_free): Unref cache stream.
(fetch_done):
(fetch_cancel): If failed/cancelled, remove cache items so they
dont foul the result. Probably need a header in cache items to
guarantee this, but this is ok for now.
(mail_display_class_init): Setup cache structure. Also ensure
globals are initialised at-most once.
2002-07-30 Radek Doulik <rodo@ximian.com>
* mail-config.c (mail_config_signature_set_name): save signature
here to remember the changed name
2002-07-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_date): Use camel_medium_get_header to get
the date header rather than getting the time_t and converting it
into a string.
2002-07-29 Not Zed <NotZed@Ximian.com>
* mail-display.c (mail_display_init): setup private data.
(mail_display_destroy): cancel any outstanding fetches, and free
private data.
(mail_display_set_message): Cancel any outstanding fetches.
(fetch_cancelled):
(fetch_next):
(fetch_remote):
(fetch_data):
(fetch_free):
(fetch_cancel):
(fetch_done): Implement, used to use soup to download remote
images.
(load_http): Removed.
(on_url_requested): When requesting a http* url, use the
fetch_remote call above.
* mail-display.h (struct _MailDisplay): Added priv(ate) member.
2002-07-29 Ettore Perazzoli <ettore@ximian.com>
* mail-session.c (request_password): Left-align the check button's
label.
2002-07-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Get the "Reset
Defaults" folders button and connect to the clicked signal.
(default_folders_clicked): Set the default uris on for the Drafts
and Sent folders.
2002-07-26 Peter Williams <peterw@ximian.com>
* mail-offline-handler.c (storage_go_online): Call mail_note_store
to get the folders to be updated and new ones to be inserted into
the tree.
2002-07-29 Ettore Perazzoli <ettore@ximian.com>
* mail-session.c (request_password): Add an accelerator for the
"Remember this password" checkbox.
2002-07-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_execute_shell_command): No real need for this
to be an async function sync we are going to call
gnome_execute_async anyway.
* component-factory.c (create_component): Add a new menu item for
posting to the New toolbar button thing.
(destination_folder_handle_drop): Don't use a NULL exception when
we already have one to use anyway.
(got_folder): Move the *fp = folder; to before the check to make
sure folder != NULL, this makes it so that if getting a folder
fails at least have have a known value to look out for (NULL)
rather than some random garbage.
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (create_label): Make the gtk label line-wrap
instead of us forcing \n's in the label, that was just
wrong. Fixes bug #10320.
* mail-callbacks.c (composer_send_cb): Make sure that the url
isn't an empty string and also make sure to free it when we're
done with it. Also check that we got the folder - if it is NULL,
then just abort.
2002-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_folder_to_safe_url): Use
mail_tools_folder_to_url().
* mail-tools.c (mail_tools_folder_to_url): New convenience
function to take a CamelFolder and return the URL associated with
it.
* mail-callbacks.c (composer_get_message): Pass in a 'post'
argument so we know whether or not we can ignore a NULL set of
recipients.
(composer_send_cb): Default send->send to TRUE unless we are in
Post-To mode, in which case set send->send to FALSE (since we'll
have nothing to send). Also, if we are in Post-To mode, append to
the folder the user wants to post to rather than appending to
Outbox.
(composer_send_queued_cb): Only queue a send thread if send->send
is TRUE (ie, the composer was not in Post mode - if it was in Post
mode, then the message post has already been saved in the correct
folder so there is nothing to do).
(post_message): New function to create an empty composer widget in
Post mode.
(post_reply): New function that calls mail_reply with the new mode
of REPLY_POST.
(mail_generate_reply): If the mode is REPLY_POST, create a Post
composer widget otherwise create a normal composer widget.
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_execute_shell_command): Update to take argc and
argv arguments since this is the new definition for the
CamelFilterDriverShellFunc.
* mail-session.c (main_get_filter_driver): Updated for the renamed
function.
* mail-display.c (link_open_in_browser): Make sure that the
html->pointer_url is non-NULL. Should fix bug #28159 (this seems
to be the only questionable way for a NULL url to be passed into
on_link_clicked).
2002-07-24 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (do_mail_fetch_and_print): Check for whether
current_message is NULL as well as preview_shown (if we tried to
load the message and failed, as may happen in offline mode.)
(done_message_selected): Only print if we actually got the message.
* folder-browser.c (folder_browser_query_changed): New function,
use this on the query_changed signal. Don't run the search if
they only changed the dropdown.
2002-07-23 Peter Williams <peterw@ximian.com>
* mail-ops.c (get_store_get): Call camel_session_get_service
instead of camel_session_get_store, as _get_store calls
_get_service_connected which is not what we want to do on startup.
(set_offline_do): Rework the logic here. It was failing when
trying to go online with a disco store that couldn't work offline.
* mail-folder-cache.c (mail_note_store): If we're using an offline
(well, non-online) disco store that cannot work offline, don't get
the folderinfo as that will fail.
2002-07-24 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (sig_add): use
mail_config_get_send_html for html format flag
* mail-account-gui.c (sig_add_new_signature): use
mail_config_get_send_html for html format flag
2002-07-24 Not Zed <NotZed@Ximian.com>
* mail-folder-cache.c (real_flush_updates): Propagate name changes
or removes to the mail config. #15951. Doesn't enitrely work for
local folders, because they are never renamed only removed and
added thanks to the shell's api.
* mail-config.c (mail_config_uri_renamed): If a store folder is
renamed, this checks for any config that needs updating, so far
sent and drafts folders.
(mail_config_uri_deleted): Same, for deleted folders.
2002-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_encrypted): Commit a fix that I
thought I committed a while ago:
* mail-format.c (handle_multipart_encrypted): Pass the correct
pointer into camel_multipart_encrypted_decrypt().
* mail-ops.c (mail_send_message): Rework the logic a bit. If we
find an account, use that to set the sent_folder_uri and the
transport_url, otherwise use the X-Evolution-Transport and
X-Evolution-Fcc headers.
2002-07-23 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (message_tag_followup_decode): Don't pass
the length of the tag name into strncmp, instead use the length up
to the first ':' in the value string.
2002-07-22 Peter Williams <peterw@ximian.com>
* folder-browser.c (folder_browser_gui_init): Also perform a search
on the query_changed signal, which is what gets emitted when the
Search menu is used.
2002-07-24 Not Zed <NotZed@Ximian.com>
* component-factory.c (owner_set_cb): Initialise the standard
uri's before doing anything else.
* mail-vfolder.c (uri_is_ignore): Return true if the uri is any
sent, drafts or outbox folder uri.
(mail_vfolder_add_uri): Dont automagically add any
sent/outbox/drafts folder with "local" or "remote" etc rules, only
add sent folders if explictly listed as folder rules. Maintain
the remote/local folders list accordingly.
(vfolder_adduri_do): dont check against sent_folder, drafts_folder
or outbox_folder, this is checked by above code. For #14863.
* mail-display.c (drag_data_delete_cb): use uri_list before we set
"uri-list" to NULL, which will automagically free it for us, so
dont free it either. Found with vagrind.
2002-07-23 Not Zed <NotZed@Ximian.com>
* message-browser.c (message_browser_destroy): Disconnect from
folderbroser signals when we unref it, so we dont get signals
later on if someone else has a ref on it (causing crash).
2002-07-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_signature_run_script): Check to make
sure the script output is valid UTF-8, if not then attempt to
convert it into UTF-8. Fixes bug #28086.
2002-07-22 Not Zed <NotZed@Ximian.com>
* message-list.c (regen_list_regened): Remove the assert, and
always copy over the threadtree which represents the current view,
unreffing the old one if set. For #28021. Haven't tested this a
lot, but i guess it cant be worse than what is there.
* mail-vfolder.c (store_folder_renamed): When renaming, use
full_name to set the folder, not name, so the path is preserved.
2002-07-20 Larry Ewing <lewing@ximian.com>
* mail-format.c (mail_get_message_body): recognize urls in plain
text reply quoting logic (bug #27908).
2002-07-19 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c: Try including gtkhtml/gtkhtml.h instead. Test
really is a 4 letter word obviously.
2002-07-18 Ettore Perazzoli <ettore@ximian.com>
* mail-folder-cache.c: Removed bogus static pre-declaration.
* e-searching-tokenizer.c (e_searching_tokenizer_end): Removed
unused variables.
* mail-callbacks.c: #include <gtkhtml.h>.
* folder-info.h (evolution_folder_info_get_type): Add prototype.
2002-07-18 Peter Williams <peterw@ximian.com>
* mail-format.c (handle_multipart_digest): Change the HTML to
make this a little prettier.
* folder-browser-window.c (folder_browser_window_new): Load the
messagedisplay XML file as a base for the UI, so that things
appear. Don't add the global UI items as they don't make sense
here.
(fb_window_close): New function, used to ... close the window,
suprisingly.
2002-07-18 Not Zed <NotZed@Ximian.com>
* main.c (main): Put the mcheck stuff back in, which was removed
without a changelog entry.
2002-07-08 Peter Williams <peterw@ximian.com>
* Makefile.am: Reference the new libefilterbar.a.
2002-07-17 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (save_draft_done): use "saved" gtkhtml command
2002-07-17 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (add_storage): Oops, Don't comment out the
mail_note_store call.
2002-07-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_able_clicked): Re-enable some #if 0'd code.
* mail-vfolder.c (vfolder_load_storage): Updated to not pass TRUE
for an auto_connect argument since that argument no longer exists.
* mail-account-gui.c (add_new_store): Updated to not pass an
auto_connect argument.
* component-factory.c (add_storage): Don't ever auto-connect here.
(mail_add_storage): No longer takes an auto_connect argument.
(mail_load_storages): Only load the account storages that are
enabled.
2002-07-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_send_cb): Pass 'info' into
mail_append_mail(), seems I created the info but forgot to pass it
in.
(composer_send_queued_cb): If the message is successfully queued,
we destroy the composer, otherwise we unref it. Don't ever destroy
and then unref it.
2002-07-15 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c: use new save_header_state flag
2002-07-15 Peter Williams <peterw@ximian.com>
* mail-offline-handler.c (service_is_relevant): Account for the
case that when a disco store is "online" but actually offline and
we're going online, we should actually connect it.
* component-factory.c (mail_load_storages): Always set
auto_connect to FALSE, same reason as below.
* mail-session.c (mail_session_init): Initialize our session to
not be online, since the shell will tell us to go online if we
need to.
2002-07-10 Peter Williams <peterw@ximian.com>
* Makefile.am (importerdir): Define this in terms of the new
privlibdir, again resulting in a new directory name.
* importers/Makefile.am (importersdir): Here too.
2002-07-15 Not Zed <NotZed@Ximian.com>
* message-list.c (ml_tree_value_at): Lookup the label colour based
on the label token, not an integer.
* folder-browser.c (on_right_click): Lookup the label name from
the filter type. Sigh, a bunch of other code should do similar
but i'm going to leave it as integers.
(set_msg_label): Set the label directly.
* mail-vfolder.c (vfolder_editor_clicked): Set the vfolder_editor
variable to null before we close the dialogue, otherwise the close
destroys it and reverts the file.
* component-factory.c (populate_folder_context_menu): Oops,
accidentally checked in some unfinished, unworking code.
Reverted.
2002-07-10 Not Zed <NotZed@Ximian.com>
** fixes for #10781
* mail-callbacks.c (filter_edit): Add back a cancel button. We
dont need to do anything special to 'undo' here, as the rules are
loaded every time they're used.
* mail-vfolder.c (vfolder_editor_clicked): If ok wans't clicked,
revert the ruleset.
(vfolder_editor_destroy): Fake a button of -1 if we get destroyed
with no click.
(context_rule_removed): Unref the folder after we delete it. If
we're the last ref to the folder, unrefing it means it no longer
exist,s which means no delte processing occurs ...
2002-07-04 Not Zed <NotZed@Ximian.com>
* mail-accounts.c (news_add_destroyed): Pass teh autoconnect flag,
whcih shoudlnt' exist anyeway.
2002-07-03 Not Zed <NotZed@Ximian.com>
* component-factory.c (populate_folder_context_menu): If this is a
file url, look up its component, if we have it, then use the
mail-callback reconfigure call.
* folder-browser-factory.c (folder_browser_factory_get_browser):
Util to get the folder browser from a uri.
2002-07-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (pixmap_press): Rename "Save to disk..." to "Save
Attachment..."
2002-07-10 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c: Modified to use a single list of UI node
elements with an enable-mask rather than split into groups. This
allows much more control and easier modification to get the
desired enable/disable effects.
* mail-display.c (mail_display_set_message): If we unref'd a
current_message, clear the datalist. Don't bother connecting to
the message's finalise signal because something else may own a ref
to the original message when we replace it with a new one.
(mail_display_destroy): Only clear the datalist if we have a
current_message, otherwise it's safe to assume that it is already
cleared.
2002-07-08 Peter Williams <peterw@ximian.com>
* Makefile.am (INCLUDES): Add -I flags to get the ebook headers.
2002-07-10 Ettore Perazzoli <ettore@ximian.com>
* subscribe-dialog.c (recursive_add_folder): Pass zero as
@sorting_priority to evolution_storage_new_folder().
* mail-folder-cache.c (real_flush_updates): Pass zero as
@sorting_priority to evolution_storage_new_folder().
2002-07-09 Ettore Perazzoli <ettore@ximian.com>
* subscribe-dialog.c (recursive_add_folder): Pass NULL for
@custom_icon_name to evolution_storage_new_folder().
* mail-folder-cache.c (real_flush_updates): Pass NULL for
@custom_icon_name to evolution_storage_new_folder().
2002-07-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (redirect): Don't ever use the mail-display's
current_message, this can cause problems.
* mail-ops.c (get_message_free): Unref the gotten message. All of
the callers seemed to think that they didn't have to unref the
message.
* mail-display.c (mail_display_set_message): Now refs the message.
(mail_display_destroy): Unref the current_message if we still have
ownership of it.
2002-07-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_send_queued_cb): Only queue a send
operation if we are in Online mode, otherwise don't bother wasting
our time.
2002-07-05 Jeffrey Stedfast <fejj@ximian.com>
* main.c (main): No longer need to pass a postpone_cb function
into the composer factory_init.
* mail-send-recv.c (get_receive_type): If the provider is a
transport, return SEND_SEND.
* mail-config.c (mail_config_get_default_transport): If the
default account doesn't have a transport, find the first account
that does.
* mail-callbacks.c (append_mail_cleanup): Don't bother freeing the
appended_uid here.
(composer_send_internal): New helper function that does all the
similar work that composer_send_cb and composer_postpone_cb did.
(composer_send_cb): Append the message to Outbox and in the async
callback, queue a message send operation.
(composer_postpone_cb): Removed.
(composer_send_queued_cb): The new async callback for
composer_send_cb(). If the append is successful, queue a message
send operation and destroy the composer otherwise re-show the
composer.
(save_draft_done): g_strdup the appended uid.
(compose_msg): Don't connect to the postpone signal anymore as it
no longer exists.
(send_to_url): Same.
(mail_reply): Here too.
(forward_get_composer): And here.
(redirect_get_composer): Again here.
(do_edit_messages): And finally here.
* mail-ops.c (append_mail_free): Free the appended uid.
2002-07-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor-news.[c,h]: Removed.
* mail-accounts.c: Removed special-case code for NNTP support.
* mail-account-gui.c (mail_account_gui_setup): Allow configuration
of both mail and news accounts.
* component-factory.c (mail_load_storages): No longer need the
is-account argument.
* subscribe-dialog.c (populate_store_list): Don't special-case
news accounts anymore.
* mail-config.c (mail_config_get_default_news): Removed.
(mail_config_get_news): Removed.
(mail_config_add_news): Removed.
(mail_config_remove_news): Removed.
2002-07-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_load_storage): Pass TRUE as the
auto_connect argument to mail_load_storage_from_uri().
* mail-account-gui.c (add_new_store): Pass FALSE as the
auto_connect value to mail_load_storage_from_uri().
* mail-format.c (handle_multipart_encrypted): Pass the correct
pointer into camel_multipart_encrypted_decrypt().
* component-factory.c (mail_add_storage): Now takes an
auto-connect argument which it passes along to add_storage().
(mail_load_storage_from_uri): Same.
(add_storage): Only call mail_note_store() if we plan on
auto-connecting.
2002-07-02 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (on_right_click): Increase the size of the
escapped mlist buffer, we can't assume that there can only ever be
a single '_' in the mlist name afaik.
(filter_type_uid): Ugh, we need to copy the fdata->source here.
Fixes bug #27263.
* folder-browser.c (filter_subject): Decide the filter source type
based on the folder we are in (Sent/Outbox folders use
FILTER_SOURCE_OUTGOING).
(filter_sender): Same.
(filter_recipient): Here too.
(filter_mlist): And here.
(on_right_click): Set the fdata->source.
(filter_type_got_message): Pass fdata->source into
filter_gui_add_from_message().
(filter_mlist_uid): Same.
* mail-autofilter.c (filter_gui_add_from_message): Now takes a
source argument so that we don't always add incoming rules.
(filter_gui_add_from_mlist): Same.
* mail-tools.c (mail_tool_make_message_attachment): Remove Bcc
headers too. Fixes bug #27302.
2002-07-02 Ettore Perazzoli <ettore@ximian.com>
* folder-browser.c (folder_browser_gui_init): Don't connect
folder_browser_search_do_search to "query_changed" since we don't
want the search to happen unless the user clicks "Find Now", for
consistency.
2002-07-02 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Pass a tooltip to
evolution_shell_component_add_user_creatable_item.
2002-07-02 Sean Atkinson <sean@cantab.net>
* mail-preferences.c: remove dependency on removed file
camel/camel-pgp-context.h
2002-07-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_related): Make sure that cid is
non-NULL.
2002-07-01 Not Zed <NotZed@Ximian.com>
* mail-folder-cache.c (folder_deleted): Removed. The
folder's deleted event isn't needed since we're listening to the
store's folder_deleted signal. Also, the code was wrong, it
cleared the folder without disconnecting events, etc. See #16486,
and probably others.
(mail_note_folder): Dont hook onto deleted anymore.
(unset_folder_info): Or unhook from it.
2002-06-28 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (mail_load_storages): Don't skip over
disabled accounts - put them in the folder tree too.
2002-06-28 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #27055.
* mail-accounts.c (account_add_finished): Unref the main accounts
widget.
(account_add_clicked): Ref the main accounts widget.
(account_edit_finished): Unref the main accounts widget.
(account_edit_clicked): Ref the main accounts widget.
2002-06-27 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Recursively delete
any subfolders.
2002-06-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_read): Don't allow the pgp type to be
anything except NONE or GPG.
* mail-preferences.c (mail_preferences_apply): Don't allow someone
to use anything other than GnuPG.
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): No need to
handle pgp5 or pgp6 types anymore since we are no longer
supporting them. Ding dong the witch is dead!
* mail-format.c (handle_multipart_encrypted): Rewritten to use
camel_multipart_encrypted_decrypt.
* mail-crypto.c (mail_crypto_pgp_mime_part_verify): Removed.
(mail_crypto_pgp_mime_part_encrypt): Removed.
(mail_crypto_pgp_mime_part_decrypt): Are we seeing a trend yet?
2002-06-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_url_requested): Also handle https urls.
* component-factory.c (mail_add_storage): Some compiler warning
fixes.
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Removed.
(mail_crypto_get_pgp_cipher_context): New convenience function to
construct a pgp cipher context.
(mail_crypto_pgp_mime_part_verify): Use the new
get_pgp_cipher_context function.
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): Here too.
* mail-account-gui.c (mail_account_gui_new): Initialise the
pgp_always_trust checkbox.
(mail_account_gui_save): Get whether or not to always_trust the
user's pgp keys.
* mail-config.c (account_copy): Copy over the pgp_always_trust
option.
(config_read): Read in the always_trust option.
(mail_config_write): Save the always_trust option.
2002-06-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_pgp_mime_part_verify): If the pgp
type is gpg, then use the gpg context.
(mail_crypto_pgp_mime_part_sign): Same.
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): Same.
* mail-format.c (handle_multipart_signed): Use the new gpg cipher
context.
2002-06-18 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (message_list_change_first_visible_parent): New
convenience function to find the first parent node that is visible
and emit a changed signal on it.
(main_folder_changed): If a message changed, call
change_first_visible_parent() in case we are in a collapsed thread
so that our first visible parent gets updated as well. Fixes bug
#26263.
* component-factory.c (storage_remove_folder): Simplify the error
checking.
2002-06-17 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (get_normalised_string): New convenience function
to get a cached normalised string.
(subject_compare): Removed, as we strip Re:'s when normalising the
subject strings now.
(ml_tree_value_at): Added support for the normalised columns (used
for a sorting optimisation).
(message_list_init): Initialise normalised_hash.
(message_list_destroy): Destroy normalised_hash.
(message_list_create_extras): Removed subject_compare.
(main_folder_changed): De-cache normalised strings for any removed
uids.
2002-06-17 Not Zed <NotZed@Ximian.com>
* message-list.c (regen_list_regen): If we dont support searching,
dont try to.
2002-06-11 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (regen_list_regen): Move m->complete = TRUE; to
within the cancel-check block, this way complete only ever gets
set to TRUE if we weren't cancelled. I assume this is how it was
supposed to work.
2002-06-11 Not Zed <NotZed@Ximian.com>
* folder-info.c (do_get_info): If we dont get a folder, dont try
and get details off it. Should get rid of most of those annoying
summary warnings, but not the cause of them.
2002-06-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_able_clicked): Comment out the code to
add/remove the store to the folder-tree when it gets
enabled/disabled.
* mail-callbacks.c (mail_generate_reply): If we are doing
Reply-to-All, do not include any of the user's email accounts in
the To: field. If, after this, the To: field is empty - then
promote the first recipient in the Cc: list to the To: field.
2002-06-07 Radek Doulik <rodo@ximian.com>
* mail-config.c (mail_config_write_account_sig): call
mail_config_init to be sure we have the db, save auto_signature as
well
* mail-composer-prefs.c (sig_add_script_cancel): hook this to
cancel button in signature script dialog
* mail-signature-editor.c (mail_signature_editor): fix some typos,
set label usize to 500, -2
(menu_help): added help link to Help menu
2002-06-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): If this account is
not a completely new account (ie, it is an edited account), then
remove any trace of it from the shell storages. If the new account
belongs in the folder-tree, add it to the list of storages.
* component-factory.c (mail_add_storage): New function to add a
single storage.
2002-06-06 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): disable
edit and delete when there are no signatures defined
2002-06-06 Not Zed <NotZed@Ximian.com>
* message-list.c (mail_regen_list): Keep track of the regeneration
request in a list.
(regen_list_free): Remove the request from the regenreation list.
(message_list_set_folder): If there are any outstanding
regneration requests, cancel them.
(regen_list_regened): If we were cancelled, do nothing.
(regen_list_regen): If we were cancelled, shortcut processing.
This is all for #23571.
* message-list.c (regen_list_regen): Change the way we calculate
the hide deleted messages and tree view options. Do it based on a
search and uid's rather than a summary.
(regen_list_regened): Handle changes to tree storage.
(mail_regen_list): The tree is now stored between updates, so we
can update the tree structure incrementally. This blows out
memory use some however. We need an etree that uses this as its
model directly?
(message_list_destroy): Free the thread tree.
(message_list_set_folder): Clear the thread tree when changing
folder.
2002-06-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_get_message_rfc822): Don't forget to free
the date string buffer.
2002-06-05 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (sig_fill_clist): use gtk string instead
of utf8 one
2002-06-04 Jeffrey Stedfast <fejj@ximian.com>
The following changes take a great leap toward fixing bug #1042.
* mail-display.c (mail_display_push_content_location): New
function to push a Content-Location value onto the MailDisplay.
(mail_display_get_content_location): Gets the current
Content-Location CamelURL value.
(mail_display_pop_content_location): Pop the Content-Location off
the stack.
* mail-format.c (get_location): Do URL merging if the
Content-Location isn't a full URL. If the Content-Location doesn't
exist, pretend the URL is actually the Content-Location URL of our
parent multipart (assuming it exists). If that doesn't exist, then
yes - return NULL.
(handle_multipart_related): Push the Content-Location header value
of the multipart/related so that we can do URL merging in
get_location() as we process each of the subparts. When we're
done, pop it back off the stack.
2002-06-04 Christopher James Lahey <clahey@ximian.com>
* message-list.etspec: Added priorities.
2002-06-04 Christopher James Lahey <clahey@ximian.com>
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Set
the title of our GalViewCollection.
2002-06-04 Not Zed <NotZed@Ximian.com>
* mail-accounts.c (mail_accounts_tab_construct): Duh, we want to
set the news_edit/delete buttons for the news page, not overwrite
the mail ones! That would've saved a bit of angst ...
* mail-config-druid.c (extra_prepare): dont call build_extra_conf,
otherwise it blows away any settings with defaults.
2002-06-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Write the signature
after the account has been added.
(sig_new_html): Don't write the signatures at this time.
(sig_new_text): Same.
2002-06-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_delete_clicked): Correctly get the
GtkWindow ancestor of the prefs widget.
2002-06-03 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (composer_get_message): Changed to check
everything from the composer before the message is requested.
Otherwise we could end up signing/encrypting it twice, etc.
* mail-format.c (handle_multipart_signed): removed some dead wood.
2002-06-03 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (request_quit): Prompt the user to see if he
really wants to quit when there are queued messages in the Outbox.
2002-06-01 Not Zed <NotZed@Ximian.com>
* mail-local.c (mlf_getv): Implement, return a text description of
the localfolder.
* message-list.c (ml_duplicate_value):
(ml_free_value):
(ml_initialize_value):
(ml_value_is_empty):
(ml_value_to_string):
(ml_tree_value_at): Implement COL_LOCATION, original location of
message (useful for vfolder).
2002-06-02 Larry Ewing <lewing@ximian.com>
* mail-tools.c (mail_tool_quote_message): make these citations as
well.
* mail-format.c (handle_text_plain_flowed): make these blockquotes
into citations.
2002-05-31 Not Zed <NotZed@Ximian.com>
* mail-format.c (handle_multipart_signed): Changed to handle new
multipart-signed type.
2002-05-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (mail_send_receive): Noop if we are in offline
mode.
* component-factory.c (mail_remove_storage): If the store is not
in the storage hash, then it must not have ever been added. Fixes
bug #25456.
* mail-callbacks.c (view_msg): Oops, create a message-browser
window here, not a folder-browser-window window.
2002-05-29 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c: moved spell checking options to separate
page, updated UI by Anna's design
* mail-accounts.c (mail_accounts_load): use _ instead of U_ for
clist
(mail_accounts_tab_construct): justify marks column to right
2002-05-28 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-window.c (folder_browser_window_new): Revert a
failed idea.
2002-05-24 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): ops,
revert array size
2002-05-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): If we can't find the
mailing list address in the recipients list, just Reply-to-All
instead.
2002-05-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-window.c (folder_browser_window_new): Set the ui
to be the evolution-mail-global.xml file thingy. Still broken but
oh well. I give up. bonobo-ui sucks.
* message-browser.c (set_bonobo_ui): Fixed to not crash.
2002-05-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-window.c (folder_browser_window_new): If the
folder-browser has a parent, reparent it.
* message-browser.[c,h]: Revert back to the old broken
implementation since that's what users want. They're not happy
unless it's broken.
2002-05-23 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c: be more careful about language_str{_orig}
(mail_composer_prefs_construct): add auto smiley check button
2002-05-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (sig_fill_options): Only clear the text/html
signature menus if they are non-NULL.
* mail-composer-prefs.c (spell_save_values): Use a new macro,
STR_EQUAL, to tell if the 2 values are equal or not rather than
using strcmp since one or both strings could be NULL.
2002-05-21 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_config_search): Split the
search word up for a body search and add it to the tokeniser to
highlight.
2002-05-18 Not Zed <NotZed@Ximian.com>
* e-searching-tokenizer.c
(e_searching_tokenizer_add_primary_search_string):
(e_searching_tokenizer_add_secondary_search_string): New functions
to add additional search strings one at a time. Maybe it should
just split the word itself?
(all): Basically, entirely rewritten. Now implements the
Aho-Corasick multiple pattern search algorithm and handles
multiple search strings and only ever has to decode any utf8
character once, etc etc.
2002-05-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_get_message_body): Only get the contents of
a mime part if it is marked as "inline". Fixes bug #7527.
* mail-display.c (mail_display_render): Fixed the "Overdue:"
string to not contain any HTML tags.
2002-05-20 Ettore Perazzoli <ettore@ximian.com>
* subscribe-dialog.c (recursive_add_folder): Pass TRUE for
@sync_offline to evolution_storage_new_folder().
* mail-folder-cache.c (real_flush_updates): Pass TRUE for
@sync_offline to evolution_storage_new_folder().
2002-05-20 Ettore Perazzoli <ettore@ximian.com>
* mail-callbacks.c (composer_sent_cb): Always unref the composer
[even when we are destroying it], otherwise we leak it and we get
the nasty bug where you can't quit.
2002-05-16 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (ml_tree_value_at): Check for a label tag when
doing a lookup on the COLOR column.
* mail-config.c (mail_config_get_label_color_string): Return the
colour in string format.
* folder-browser.c (set_msg_label): Replaces colourise_msg and
sets the "label" tag rather than the "colour" tag.
* mail-preferences.c (mail_preferences_apply): Call
mail_config_write() so that the settings get synced to disk.
2002-05-16 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (request_quit): New.
(create_component): Pass it as the @request_quit_fn to
evolution_shell_component_new().
2002-05-15 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Pass NULL as
@request_quit_fn.
2002-05-15 Not Zed <NotZed@Ximian.com>
* mail-ops.c (prep_offline_do):
(prep_offline_done):
(prep_offline_free):
(mail_prep_offline): Implement prep_offline for an individual
folder.
(set_offline_do): Only call disco_store_set_status or disconnect
for the store, dont do any offline prep stuff.
* mail-offline-handler.c: Applied patch from Ettore to hook in
extra offline interfaces.
(impl_destroy): Dont free listener here anymore, its removed, but
free sync table.
(mail_offline_handler_init): Same for setup.
(impl_syncFolder): Implement.
(sync_done): handles finalising synchronisation of 1 folder.
(sync_status): progress reporting, camel side.
(sync_timeout): progress reporting, gmainloop side.
(impl_cancelSyncFolder): Implement.
(impl_goOffline, storage_go_offline, went_offline): Dont copy the
listener to our struct - its an argument, not a member, so give
each thread its own copy.
2002-05-15 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (ml_tree_value_at): Instead of g_assert()ing that
the msg_info is not NULL, if it is NULL just return NULL. This
fixes a crash when ETree requests the value at a root node (I
don't understand why it needs to do that??).
2002-05-14 Jeffrey Stedfast <fejj@ximian.com>
* folder-info.h: Added.
2002-05-14 Christopher James Lahey <clahey@ximian.com>
* component-factory.c: Added #include "folder-info.h".
* folder-browser-window.c (folder_browser_window_new),
mail-account-editor.c (apply_changes), mail-account-gui.c
(mail_account_gui_save), message-tag-editor.c: Removed some unused
variables.
* folder-info.c: Added #include "folder-info.h". Removed static
declaration of evolution_folder_info_get_type.
* folder-info.c (destroy), mail-callbacks.c
(confirm_goto_next_folder, find_current_folder,
find_next_folder_r, find_next_folder,
do_evil_kludgy_goto_next_folder_hack), mail-composer-prefs.c
(sig_name_changed): Commented out these unused functions.
* mail-config.c (add_new_storage): Removed this unused function.
* mail-local.c (mlf_init): Fix the declaration of this function to
match the required signature.
2002-05-13 Christopher James Lahey <clahey@ximian.com>
* message-list.etspec: Added search="string" where appropriate.
2002-05-13 Dan Winship <danw@ximian.com>
* (various places): Update for camel_folder_append_message /
camel_folder_transfer_messages_to API change.
* mail-ops.c (mail_append_mail): Pass the appended_uid to the
callback.
* mail-callbacks.c (composer_save_draft_cb, save_draft_done,
do_edit_messages): Take advantage of the append_message change to
keep track of the UID of the saved draft so that we can delete the
old copy of the draft each time we save a new one. Remove the
FIXME suggesting we should do that, since we're doing it now. :)
2002-05-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_view_message): Update for the new
message-browser api.
* message-browser.c (message_browser_new): A brand new
implementation that just shows the message, none of that next/prev
crap that always caused problems anyway.
* mail-config.c (mail_config_add_account): Don't add any shortcuts
here.
(mail_config_remove_account): And don't remove them here. This
code has never worked properly.
* mail-ops.c (save_part_save): Use the exception enum names rather
than '1' since it makes the code clearer.
2002-05-10 Dan Winship <danw@ximian.com>
* mail-ops.c (transfer_messages_transfer): Simplify. Use
transfer_messages_to instead of picking between copy and move.
Remove vtrash special-casing since it's all in
camel-vtrash-folder.c now. Remove duplicate source == dest check.
* mail-local.c (mail_local_folder_reconfigure): Use
transfer_messages_to instead of copy_messages_to.
2002-05-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Make sure that even
if the new source url is NULL, that we preserve the enabledness of
the source.
2002-05-09 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (add_storage): Pass %FALSE as
@has_shared_folders to evolution_storage_new().
2002-05-09 JP Rosevear <jpr@ximian.com>
* Makefile.am: dist Spell.idl
2002-05-08 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c: implemented (c'n'p-ed and updated) spell
checking settings
2002-05-08 Iain Holmes <iain@ximian.com>
* component-factory.c (owner_set_cb): Tell the folder info listeners
that they're ready.
* folder-info.c: Add a property bag to the CORBAObject.
(do_get_info): Remove a load of cruft. Add some error checks.
(do_free_info): Unref the listener.
(destroy): Unref the propertybag.
(set_prop): Set the property.
(get_prop): Get the property.
(evolution_folder_info_factory_fn): Create a propertybag.
(evolution_folder_info_notify_ready): Notify all the listeners that
the folder info is ready for querying.
2002-05-08 Not Zed <NotZed@Ximian.com>
* mail-autofilter.c (mail_filter_rename_uri): Changed for
rule_context_rename_uri api changes.
(mail_filter_delete_uri): Same. Also, popup a dialogue similar to
vfolder deleted dialogue to notify the user something has
changed. Partial fix for #18826.
2002-05-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (filter_folder_free): Flush the filter log to make
Tuomas happy :-)
* mail-session.c (mail_session_flush_filter_log): New convenience
function to flush the session's filter log file.
* mail-callbacks.c (mail_reply): Set the Seen flag as well since
it's safe to assume that if the user has replied to an email
message that he has read it. Not always true, but usually ;-)
* folder-browser.c (on_right_click): If we are in a
Sent/Drafts/Outbox folder, don't show the "Add Sender to
Addressbook" menu item.
2002-05-06 Not Zed <NotZed@Ximian.com>
* component-factory.c (idle_quit): Check all threads are idle as
well, using new e_thread_busy call. Should fix #22553? Also
sleep a little bit, to let the other threads run.
2002-05-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (sig_new_text): Update the code to actually
work.
(sig_new_html): Same.
* mail-composer-prefs.c (mail_composer_prefs_new_signature): Allow
'prefs' to be NULL.
* folder-browser.c (on_right_click): Fix the filter_menu static
array to use the E_POPUP_MENU_CC macros since we plan on using
custom closures for this.
(on_right_click): Fixed so that you can "Edit as New" for any Sent
folder and not just the local Sent folder.
2002-05-01 Not Zed <NotZed@Ximian.com>
* folder-browser.h (FOLDER_BROWSER_IS_DESTROYED): Also check
folder!=NULL. Fixes race where folder isn't setup yet, and
neither is bonobo menu status (because its delayed), and we get a
menu event before we're setup yet. For bug #21939.
2002-04-30 Dan Winship <danw@ximian.com>
* mail-callbacks.c (delete_msg): If the folder's permanent_flags
don't include CAMEL_MESSAGE_DELETED, don't do anything. (In
particular, don't move the cursor.)
2002-04-29 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (message_tag_followup_append_message):
Convert UTF-8 to gtkstrings since we are using a clist and not an
E-widget that takes UTF-8.
* mail-display.c (mail_display_add_url): If the data-urls is NULL,
add a data-urls hash to the datalist. This finishes up bug #90.
* mail-account-gui.c (save_service): Strip leading/trailing
whitespace from the username because users sometimes accidently
add extra spaces here and there. Fixes bug #24009 (along with a
number of other "bugs").
(mail_account_gui_auto_detect_extra_conf): Use a CamelURL instead
of a GHashTable *settings. Also parse out the port # from the
hostname.
2002-04-29 Larry Ewing <lewing@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): clean up
propmanager initialization code.
* mail-preferences.c (mail_preferences_construct): small clean
ups to propmanager code.
* mail-config-factory.c (config_control_factory_cb): handle
requests for the font manager control.
* mail-config.glade: add fonts tabs and reorder composer options
to match the new dialogs from anna.
* GNOME_Evolution_Mail.oaf.in: add font manager control definition.
* mail-composer-prefs.c (mail_composer_prefs_construct): hook to
the gtkhtml propmanager.
(mail_composer_prefs_apply): apply propmanager changes.
(mail_composer_prefs_finalise): unref the propmanager.
* mail-composer-prefs.h: add propmanager member.
* mail-font-prefs.c: initialize gui properly.
* mail-preferences.c (mail_preferences_construct): hook to
gtkhtml's propmanager.
(mail_preferences_apply): apply propmanager changes.
(mail_preferences_finalise): unref the propmanager.
* mail-preferences.h: add propmanager member.
* Makefile.am (evolution_mail_SOURCES): add mail-font-prefs.[ch]
to the build.
* mail-tools.c (mail_tool_quote_message): use the html reply logic
even for plain parts so that we can test out the new gtkhtml cite logic.
* importers/evolution-mbox-importer.c (process_item_fn): add const
to silence warning.
* mail-display.c: add gtkhtml.h include so to pick up the
object_relative prototype.
2002-04-26 Larry Ewing <lewing@ximian.com>
* mail-font-prefs.c: Add the font config dialog.
* mail-font-prefs.h: add font config dialog headers.
2002-04-26 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Don't link with libibex anymore, it's been
deprecated.
* mail-callbacks.c (next_unread_msg): Do away with the
goto-next-folder stuff, it's very annoying.
* mail-config-druid.c (extra_prepare): After building the extra
config options into a Gtk form, auto-detect any values that we can
and populate them by calling
mail_account_gui_auto_detect_extra_conf.
* mail-account-gui.c (mail_account_gui_auto_detect_extra_conf):
New function to auto-detect the extra config options for a source.
2002-04-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_build_extra_conf): Allow
providers to override text entry boxes too.
(source_type_changed): Remove the logic to decide upon default
paths, these paths can now be set by the provider.
2002-04-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (label_menu): Update to use
E_POPUP_MENU_PIXMAP_WIDGET_ITEM_CC so that our callback gets
called without per-item closure rather than being called with NULL
and causing a segfault.
* mail-account-gui.c (mail_account_gui_build_extra_conf): Set the
default Username label and handle the new
CAMEL_PROVIDER_CONF_LABEL enum allowing the provider to setup a
label.
2002-04-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c: Added back the checkmark icon for enabled
accounts.
(account_able_clicked): Don't reload the accounts list, that was
just lame.
2002-04-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_render): Plug-in Anna's html for
the flag-for-followup stuff. Finishes up bug #90.
2002-04-19 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_finalise): Free the
loading/pending/new/loaded_uid string buffers.
* mail-config.c (config_read_signature): Free some temporary path
buffers.
* mail-display.c (stream_write_or_redisplay_when_loaded): Ref the
html object here, this is an async handler so it's possible for
our caller (or someone else) to unref the html object before we
finish.
(load_content_free): Unref the async handler's ref of the html
object here.
(mail_display_new): Ref the html widget here so that we can be
sure that so long as the mail-display is "alive", so is the html
object. See bug #22328 for details. Basically, the message-browser
is being closed before the message gets loaded and so the html
object was being destroyed but the mail-display was still alive.
(mail_display_destroy): Unref the html object when the
mail-display is destroyed.
2002-04-19 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: Added yet more accelerators for the new config
dialog--this time for the composer pages
2002-04-19 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: Added a bunch of accelerators for the new config
dialog
2002-04-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (redirect_get_composer): Removed all
Delivered-To headers before redirecting. Fixes bug #23635.
2002-04-18 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): use default paper name in case
of wrong translation
2002-04-15 Not Zed <NotZed@Ximian.com>
* mail-identify.c (mail_identify_mime_part): Turn off the code
which downloads the part if we can't identify it. See discussion
in #11778.
2002-04-17 Christopher James Lahey <clahey@ximian.com>
* folder-browser.c, mail-display.c: Updated these to match the new
EPopupMenu.
2002-04-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Handle broken
multipart/signed parts such as where the signature part is not the
last part (as it should be). Fixes bug #23583.
* folder-browser.c (message_list_drag_data_get): Free the temp
GByteArrays.
2002-04-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_folder_construct): Just use g_basename.
(mlf_finalize): Free the real_path.
* folder-browser.c (on_right_click): Unref the GdkGC so we don't
leak it.
2002-04-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_destroy_xevolution): Free the format
string.
* mail-config.c (config_write_signature): Don't leak the path
strings here.
* mail-signature-editor.c (menu_file_save_cb): Free the dirname
string.
* mail-config-factory.c (config_control_factory_cb): Ref the prefs
widget here since we unref in the destroy callback. Caught this
thanks to purify.
2002-04-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c: Build fixes for --enable-nntp.
2002-04-13 Christophe Merlet <redfox@eikonex.org>
* mail-config.glade: Little typo. s/IS0/ISO/
2002-04-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): Make it
so that unchecking the "Enable Advanced Options" in the signature
tab disables the advanced settings and vise versa.
* mail-accounts.c (mail_accounts_tab_construct): Setup News
preferences too if it is enabled.
* mail-account-gui.c (mail_account_gui_new): Set the text of the
reply-to.
(mail_account_gui_save): Get the reply-to text here.
(mail_account_gui_identity_complete): If there is text in the
reply-to widget make sure it's valid.
* mail-config.c (identity_copy): Copy the reply-to.
(config_read): Read in the reply-to for all the accounts.
(mail_config_write): Save the reply-to.
(impl_GNOME_Evolution_MailConfig_addAccount): Get the reply-to.
(identity_destroy): Free the reply-to.
2002-04-11 Jeffrey Stedfast <fejj@ximian.com>
* message-list.etspec: s/Sent/Date. This fixes bug #11159.
2002-04-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (confirm_expunge): Set the 'No' button as the
default.
2002-04-10 Dan Winship <danw@ximian.com>
* mail-config.c (config_read, mail_config_write,
mail_config_get_x_mailer_display_style,
mail_config_set_x_mailer_display_style): Handle the X-Mailer
display style. (There is currently no GUI for configuring this.)
* mail-format.c (write_headers, write_xmailer_header): Show
X-Mailer/User-Agent (and Rupert's stamp of approval) as
appropriate.
2002-04-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (setup_service): Kludge around the brokeness
that is GtkOptionMenu just like we kludge around it for the
authtype option menu.
2002-04-09 Dan Winship <danw@ximian.com>
* component-factory.c (create_view): Add view_info arg, but don't
do anything with it.
2002-04-08 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (receive_update_got_folderinfo): Argh!
get_folder_info owns and frees its *OWN* folder info, it shouldn't
be free'd here! See mail-ops.c:get_folderinfo_free.
This should fix #17259 and friends.
2002-04-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-signature-editor.c (menu_file_save_cb): Simplify a bit and
write to a temp file first and then rename() it to the real
filename. This protects against losing data if the drive is full
too. Also use a real mode, not 0, so that we can actually
save/read the content ;-)
* GNOME_Evolution_Mail.oaf.in: Re-added the config wizard
interfaces. Ettore accidently removed them thinking they were
duplicates of the new mail-config interfaces.
* mail-config.glade: Remove the OK, Apply, Cancel buttons from the
keyboard shortcut tab in the composer_prefs dialog.
* mail-account-gui.c: No need to check gui->source before using
gui->source->url, since gui->source *has* to exist.
2002-04-06 JP Rosevear <jpr@ximian.com>
* GNOME_Evolution_Mail.oaf.in: add config_item:type
2002-04-04 Dan Winship <danw@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Make the drafts and
sent folder buttons be EvolutionFolderSelectorButtons. Remove the
code to deal with drafts_folder_name and sent_folder_name, since
they were only used to construct the button and aren't needed now.
(mail_account_gui_save): Remove drafts/sent name references.
(mail_account_gui_destroy): Likewise
(folder_selected): Handle the "selected" signal on the folder
selector button by updating the URI in the MailAccountGui.
(mail_account_gui_folder_selector_button_new): Glade custom widget
constructor.
* mail-callbacks.c (transfer_msg): Update for
evolution_shell_client_user_select_folder change.
* message-browser.c (transfer_msg): Likewise. (Sigh. Why is this
cut+pasted?)
* mail-config.glade: Make the drafts/sent folder buttons custom
widgets.
* mail-config.c (account_copy): Remove drafts/sent folder name
handling.
(account_destroy): Likewise.
(config_read): Likewise.
(mail_config_write): Likewise.
* Mail.idl (MailConfig:Account): remove drafts_folder_name and
sent_folder_name.
2002-04-03 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (construct): Set the window title/icon
here instead.
* message-tag-editor.c (message_tag_editor_init): Don't set the
title or window icon here, this is a generic class.
* mail-format.c (handle_multipart_signed): Replace
get_url_for_icon with the new mail_display_get_url_for_icon
function.
(handle_multipart_digest): Here too.
(get_cid): Use mail_display_add_url instead.
(get_location): Same.
(handle_text_enriched): Here too.
(handle_multipart_signed): And here.
* message-tag-followup.c (message_tag_followup_i18n_name): Use the
U_() macro, not the _() macro as it is what we really want.
* mail-ops.c (mail_send_message): Don't cast the message into a
CamelMedium before sending anymore.
* mail-callbacks.c (expunge_folder): Set the followup argument to
NULL here.
(done_message_selected): Get the followup value here and pass it
to the mail-display here.
(do_mail_fetch_and_print): Again with the NULL followup here.
* folder-browser.c (folder_browser_set_message_preview): Update to
pass in NULL as the followup since we are setting the message to
NULL here.
(done_message_selected): Get and set the appropriate followup
value here.
(do_message_selected): Update to pass in NULL as the followup
since we are setting the message to NULL here.
* mail-display.c (mail_display_set_message): Now takes a followup
tag value.
(mail_display_init): Set md->followup to NULL.
(mail_display_destroy): Free md->followup.
(mail_display_add_url): New: replaces the static add_url function
originally in mail-format.c
(mail_display_get_url_for_icon): New: replaces get_url_for_icon
which was originally in mail-format.c
2002-04-03 Dan Winship <danw@ximian.com>
* mail-account-gui.c: Changes to allow combined store/transport
providers (like exchange and nntp). You can only select the
transport if the account is also using that provider for the
source.
(source_type_changed): If changing away from a combined
store/transport type, disable that provider on the transport page.
If change to a combined store/transport type, enable and select
that provider on the transport page.
(mail_account_gui_setup): Do some additional bookkeeping here to
make the above stuff work.
(transport_type_changed): If the provider is a combined
store/transport type, pretend it doesn't need any additional URL
configuration.
(mail_account_gui_transport_complete): if the transport provider
is also a store provider, then as long as it matches the source
for the account, it's considered complete.
(mail_account_gui_save): If the selected transport is a combined
store/transport provider, use the source page's information to
fill in the transport url.
* mail-local.c (mail_local_provider_init): Don't set up
service_cache.
2002-04-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_edit_messages): Pass the UID of the message
being edited to the save-draft signal handler.
(composer_save_draft_cb): Pass the old draft uid to our async
append_message function and let the append_message callback worry
about deleting the old draft message on success.
(save_draft_done): Delete the old draft message if we successfully
appended the new draft message.
2002-04-01 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c: Removed an unused pixmap from
Tools/Settings to avoid a big nasty bonobo warning.
* mail-composer-prefs.c (mail_composer_prefs_construct):
Re-Implemented the signature editor stuff (mostly just copy/paste
from Radeks original code).
* mail-signature-editor.c (mail_signature_editor): Use the right
oafiid for the html editor control.
2002-04-01 Dan Winship <danw@ximian.com>
* importers/Makefile.am (liboutlook_la_LDFLAGS,
libmbox_la_LDFLAGS): Use -avoid-version -module. (From Max Horn
<max@quendi.de>)
2002-03-29 Ettore Perazzoli <ettore@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Added priorities for all the
configuration pages [evolution:config_item:priority].
2002-03-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (colorpicker_get_color): Don't shift the r, g
and b values here either.
* mail-composer-prefs.c (colorpicker_get_color): Don't shift the
r, g, b values.
* mail-preferences.c (mail_preferences_construct): Restore the
labels & colours options from the grave.
(mail_preferences_apply): Save these labels & colours options.
2002-03-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): Same
here.
* mail-preferences.c (mail_preferences_construct): Do some gtk
hackery action so we can detect if a option menu has changed.
2002-03-29 Ettore Perazzoli <ettore@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Cleaned up a bunch [removing
duplicates ;-)], set up icons for all the configuration pages.
2002-03-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c: Use a GtkCList instead of an ETable, for some
reason the etable was getting into some infinite resize loop or
something. I probably did something wrong but I can't figure out
what so I'm using a clist for now.
(account_cursor_change): Make sure that event is non-NULL here.
2002-03-27 Ettore Perazzoli <ettore@ximian.com>
* mail-accounts.c (mail_accounts_tab_construct): Use
gtk_container_add() to put the toplevel in the parent widget,
instead of just gtk_widget_set_parent().
* mail-preferences.c (mail_preferences_construct): Likewise.
* mail-composer-prefs.c (mail_composer_prefs_construct): Likewise.
2002-03-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Updated to respect the
new mail-config options for default reply style that NotZed had
started to implement before there was a gui.
2002-03-27 Dan Winship <danw@ximian.com>
* mail-display.c (do_attachment_header): unset GTK_CAN_FOCUS on
the button so that it can't grab focus when you click it.
(do_signature): Likewise on the signature button. #3904
2002-03-26 Jeffrey Stedfast <fejj@ximian.com>
Sync with yet-another-mail-config branch.
* mail-composer-prefs.c: Updated to get the right widgets and
whatnot. Also updated to tell the evolution-config-control that
stuff has changed.
* mail-preferences.c: Updated to get the right widgets and
whatnot. Also updated to tell the evolution-config-control that
stuff has changed.
* mail-accounts.etspec: New file needed by mail-accounts.c
2002-03-26 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (addrbook_sender): Changed to get the address
from the messageinfo of the current selected message rather than
from the current_message.
(requeue_mail_reply): Only re-queue if we got a message, could
potentially cause an infinite loop trying to get a message it
can't.
(reply_to_sender, reply_to_list, reply_to_all): Always pass NULL
as the msg to mail_replay, this forces mail_reply to always load
the message anew. Fixes FIXME's and popup behaviour. Basically
this and stuff below fixes #8542. Its probably not the nicest
way, but it works.
(mark_as_important): Use the flags properly, we can set all flags
to any combination of on or off as we want, so we just need to
call set_flags once, thats why its set flags and not set_option.
(toggle_flags): Fixed the logic here also, so we dont have to call
set_message_flags more than once, and also implement a true toggle
for any number of simultaneous flags (whilst simplifying code).
* mail-vfolder.c (vfolder_gui_add_from_mlist): Removed the 'msg'
parameter, its not used, fixed callers.
* folder-browser.c (on_right_click): Lookup the mlist from
messageinfo, and change the 'no selected' logic slightly, fixes
most of #8542.
(filter_data_free): Free filter data struct.
(vfolder_type_got_message): Actually create vfolder once we have
the message we need to use for it. Code could probably be changed
to use messageinfo instead.
(vfolder_type_uid): Lookup a message based on uid, and use that to
create a vfolder based on type.
(vfolder_subject_uid, vfolder_sender_uid, vfolder_receipient_uid,
vfolder_mlist_uid): Callbacks for the popup menu, used to create
rules based on the uid rather than the message, which it loads as
required.
(filter_type_got_message, filter_*_uid): Similar to vfolder
stuff above.
(filter_menu[]): Changed callbacks to popup specific ones, not
folderbrowser specific ones used by bonobo.
(on_right_click): Initialise callback data for the filter submenu
so it can look up messages for callback implementation.
* local-config.glade: New version from anna, with fixed widget
names.
2002-03-20 Ettore Perazzoli <ettore@ximian.com>
* folder-browser.c: Reorder folder_browser_search_menu_items
according to #16246.
2002-03-24 Ettore Perazzoli <ettore@ximian.com>
* mail-send-recv.c: Remove member current_folder from struct
_send_data.
(build_dialogue): Remove arg @current_folder.
(mail_send_receive): Likewise.
(free_send_data): No need to refresh the current folder here.
[Well, hopefully, at least.]
* component-factory.c (send_receive_callback): New.
(create_component): Connect.
* mail-callbacks.c (send_receive_mail): Removed.
* folder-browser-ui.c: Remove "MailGetSend" verb.
2002-03-22 Jeffrey Stedfast <fejj@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Add info about the new config
controls.
* mail-config-factory.c: New file to handle the creation/etc of
the config controls.
* mail-accounts.c:
* mail-preferences.c:
* mail-composer-prefs.c: No longer handle their own bonobo control
creation.
2002-03-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (sig_new_text): Temporarily #if 0 this
function out.
(sig_new_html): Same.
* mail-config.c (config_read): Read in the default reply style
setting.
(mail_config_write_on_exit): Same the default reply style.
(mail_config_get_default_reply_style): New function to get the
default reply style.
(mail_config_set_default_reply_style): New function to set the
default reply style.
* folder-browser-ui.c: There is no longer a Tools/Mail Settings
menu item.
* mail-account-gui.c: Updated the widget types for the
MailAccountsDialog->MailAccountsTab change.
* mail_account_editor.c: Same.
* mail-callbacks.c (providers_config): Removed.
* mail-composer-prefs.c: New file that implements the composer
preferences tab of anna's new config design.
2002-03-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c: Reimplemented. This time we only have to worry
about accounts. Also this now implements Annas config gui changes.
* mail-preferences.c: Implements the mailer's Preferences tab in
Anna's new config GUI.
2002-03-19 Larry Ewing <lewing@ximian.com>
* mail-display.c: add missing NULL closure data to popup menu
initialization.
2002-03-19 Dan Winship <danw@ximian.com>
* Makefile.am (evolution_mail_LDADD): s/libversit.la/libversit.a/
2002-03-18 Ettore Perazzoli <ettore@ximian.com>
* main.c (main): Report a message before entering bonobo_main() to
simplify debugging.
2002-03-18 Ettore Perazzoli <ettore@ximian.com>
* folder-browser.c: Remove E_FILTERBAR_RESET menu entry.
2002-03-15 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (on_right_click): Draw colour rectangles for
each of the colour items and set a closure on each.
(colourise_msg): colourise the message, yo.
2002-03-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (colour_msg): New callback to set a colour on a
message.
* folder-browser.c (on_right_click): Setup our popup icons and
stuff. Also add a submenu for Labels.
* mail-display.c (pixmap_press): Sync up with the new EPopupMenu
API. Note: This code can probably now be fixed to use per-item
closures - yay!
* mail-accounts.c (construct): Connect to the label GtkEntry's and
GnomeColorPickers and also to the Restore Defaults button.
* mail-config.c (mail_config_get_label_name): New function to get
a label's name.
(mail_config_set_label_name): New function to set the label name.
(mail_config_get_label_color): New function to get the label
color.
(mail_config_set_label_color): New function to set the label
color.
(config_read): Read in the config options for the labels and their
colors.
(mail_config_write_on_exit): Save the label options.
2002-03-15 Larry Ewing <lewing@ximian.com>
* mail-display.c: expand the relative urls of the object at the
point so that relative images can be saved correctly.
* folder-browser.c: add a closing quote in a comment.
2002-03-15 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-factory.c (control_activate): Set the UI
component on the search bar.
2002-03-14 Dan Winship <danw@ximian.com>
* component-factory.c (folder_types): Remove "mailstorage", since
it's not needed any more.
(storage_activate): Gone, although some of it is moved to
storage_connect.
(create_view): Remove mailstorage code.
(add_storage): Connect to the storage's open_folder signal.
Instead of creating a "mailstorage" folder, call
evolution_storage_has_subfolders to let the shell know we haven't
finished filling it in yet.
(storage_connect): Handler for the storage's asyncOpenFolder
signal. Call mail_note_store() to try to connect.
(storage_connected): Callback for above. If the connection attempt
failed, call evolution_storage_has_subfolders again to make the
shell re-close the storage.
* mail-folder-cache.c (update_folders): Remove a piece of
mailstorage legacy code from here.
2002-03-14 Radek Doulik <rodo@ximian.com>
* mail-config.c (get_new_signature_filename): create new signature
file
(delete_unused_signature_file): be more careful about signature
file path before unlinking
2002-03-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (next_thread): Implemented.
* message-list.c (message_list_select_next_thread): New function
to select the next thread.
2002-03-13 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-window.c (folder_browser_window_new): Set a
default size of the window, so we don't get this itty-bitty window
the size of a quarter on the screen when it first gets shown.
2002-03-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_link_clicked): Handle digest: urls.
* mail-format.c (setup_mime_tables): Add a handler for
multipart/digest.
(handle_multipart_digest): Handle multipart/digest parts.
2002-03-12 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_set_folder): Set the folder on
a folder-browser object.
* folder-browser-window.c (folder_browser_window_new): Simple
window to display a folder-browser.
* mail-callbacks.c (view_digest): New callback to open a
folder-browser-window with a digest folder.
2002-03-08 Radek Doulik <rodo@ximian.com>
* mail-signature-editor.c (menu_file_save_cb): truncate stream
before saving
* mail-config.c (mail_config_signature_set_html): new function
* mail-accounts.c (sig_event_client): watch for HTML changed event
* mail-signature-editor.c: added HTML check menu item to Format
menu
2002-03-08 Dan Winship <danw@ximian.com>
* mail-config-druid.c (management_prepare): Rewrite this to not
use stpcpy, which isn't portable.
2002-03-08 Radek Doulik <rodo@ximian.com>
* mail-accounts.c (sig_event_client): handle name changed event
(sig_load_preview): don't run script before each reload
(sig_script_activate): run script only if script entry is
activated
* mail-signature-editor.c (mail_signature_editor): added signature
name entry
2002-03-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (management_changed): Re-focus the account
name entry widget.
(identity_prepare): If a name is not set, try and get the user's
full name for them and set the text on the entry widget.
(management_prepare): If the account name is already taken,
generate a unique one by appending " (%d)".
2002-03-07 Radek Doulik <rodo@ximian.com>
* mail-account-gui.c (sig_new_html): make edit button sensitive
after new signature is created
(sig_new_text): ditto
2002-03-07 Anna Marie Dirks <anna@ximian.com>
* folder-browser.c: Made all the acclerators in the context menu
on a message work. (There are 22 different menu items here, so
picking a unique accelerator for each label was tricky, and some
of the choices I made are different from the ones I would have
made if there weren't so many stinking menu items.)
2002-03-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_import_old_signatures): Don't use an
uninitialized 'id'.
2002-03-07 Radek Doulik <rodo@ximian.com>
* mail-signature-editor.c: notify accounts dialog about signature
content change
* mail-accounts.c (run_script): run script only if file regular
file exists and has x flag
* mail-signature-editor.c (mail_signature_editor): set initial
focus to editor
(do_exit): use hasUndo to avoid question dialog when content is
unchanged
2002-03-07 Dan Winship <danw@ximian.com>
* component-factory.c (add_storage): Update for storage changes:
explicitly create a root folder.
2002-03-06 Dan Winship <danw@ximian.com>
* mail-display.c (mail_display_render): Fix the "don't scroll back
to the top of the HTML widget when opening an attachment" hack
again by moving it here from mail_display_redisplay(). (It has to
happen after the gtk_html_begin.)
(mail_display_redisplay): Pass reset_scroll arg to
mail_display_render.
* mail-callbacks.c (do_mail_print): Pass reset_scroll (TRUE) to
mail_display_render.
2002-03-05 Dan Winship <danw@ximian.com>
* folder-browser-ui.c: Don't try to set pixmap for
/Toolbar/MailCompose, since it doesn't exist any more.
2002-03-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (save_service): "use_ssl" can now be 3
options, modify the code to handle this.
(setup_service): Toggle the correct ssl option.
(source_type_changed): Show/hide the ssl hbox container widget.
(transport_type_changed): Same.
2002-03-05 Dan Winship <danw@ximian.com>
* mail-folder-cache.c (mail_note_store): Pull up assertion change
from evolution-1-0-branch to allow external storages.
2002-03-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_unselect): If the clicked column was
column 0, enable/disable it.
(mail_select): Same.
* mail-display.c (load_http): Added more debugging code to help
figure out why a certain image isn't loading - looks like
gnome-vfs is getting a premature EOF?
* folder-browser.c (my_folder_browser_init): Connect to the
focus-in/out events on the message-list so that we can disable the
EditInvertSelection and EditSelectThread menu items when the
message-list is not in focus.
* folder-browser-ui.c (folder_browser_ui_message_list_unfocus):
New function to de-sensitize some items if the message-list is not
in focus.
(folder_browser_ui_message_list_focus): New function to sensitize
some items if the message-list is not in focus.
* mail-callbacks.c (invert_selection): Only invert the selection
of the message-list if it is the widget in focus.
* message-list.c (message_list_select): Do not explicitly grab the
focus here.
2002-03-04 Ettore Perazzoli <ettore@ximian.com>
[Fix #19303.]
* mail-ops.c (mail_send_message): Set X-Mailer to say "Ximian
Evolution", not just "Evolution".
2002-03-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_message): Forward all selected
messages. Fixes bug #21190.
2002-02-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_html): Get the Content-Base if the
header exists and use gtk_html_set_base to set this base url.
* mail-display.c (on_link_clicked): No longer need to calculate
the full url. This is now handled by GtkHTML.
(on_set_base): Removed.
(on_url_requested): No longer need to calculate the full url.
(mail_display_initialize_gtkhtml): Don't connect to the set_base
signal anymore. We don't care.
* mail-display.h: No longer need base_url (it was broken anyway).
2002-02-26 Not Zed <NotZed@Ximian.com>
* mail-display.c (on_url_requested): If a related part is
requested, remove it from the related undisplayed list.
* mail-format.c (handle_multipart_related): Check if related parts
are displayed, if not, remove them. For #2741.
2002-02-24 Chris Toshok <toshok@ximian.com>
* folder-browser.c (folder_browser_search_do_search): rename
folder_browser_search_query_changed to this.
(folder_browser_gui_init): hook both query_changed and
search_activated up to folder_browser_search_do_search, preserving
current behavior.
2002-02-22 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (on_message_list_built): Removed, this wasn't
working as intended and seemed to break other features.
2002-02-21 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Add an icon for the "New
message" user creatable item.
2002-02-21 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (on_message_list_built): Connect to our own
message_list_built signal. Focus the list and select the first
unread message (or frst message depending). Fixes bug #3900.
2002-02-20 Anna Marie Dirks <anna@ximian.com>
* message-tag-editor.c (message_tag_editor_init): Gave the editor
window a title and an icon.
2002-02-20 Anna Marie Dirks <anna@ximian.com>
* message-tags.glade: Changed the policy for table2 so that it
does not expand/fill. This was necessary to allow the message list
as much growing room as possible. (And besides, there's no reason for
table2 to expand/fill; its child widgets can't change size.
2002-02-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (confirm_goto_next_folder): Prompt the user to
find out if he/she wants to go to the next folder with unread mail
in it.
(find_current_folder): Find a given CamelFolderInfo node based on
a given uri.
(find_next_folder_r): Recursively look for a CamelFOlderInfo node
which has unread messages.
(find_next_folder): Given a currently selected CamelFolderInfo
node, look for the next node containing unread messages.
(do_evil_kludgy_goto_next_folder_hack): Find the currently
selected folder and then find the very next folder after it that
contains unread messages and then select it via a CORBA call to
the shell.
(next_unread_msg): If we fail to find an unread message in the
message-list, prompt the user to find out if we should jump to the
next fodler containing unread messages. If so, call
do_evil_kludgy_goto_next_folder_hack().
* message-list.c (message_list_select): Return a boolean value
based on whether the call was successfull or not.
* mail-config.c (mail_config_get_confirm_goto_next_folder):
(mail_config_set_confirm_goto_next_folder):
(mail_config_get_goto_next_folder):
(mail_config_set_goto_next_folder): All new functions, yay.
(config_read): Read in the confirm_goto_next_folder and
goto_next_folder config options.
(mail_config_write_on_exit): Same the options here.
2002-02-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (basename_from_uri): Ack, strip off the
leading '/' char and also only translate if it is a local uri,
imap folders and other external folders will be named by the user
so no need to translate those.
* mail-display.c (do_attachment_header): Don't display a
down-arrow if the attachment is undisplayable. Fixes bug #6919.
(launch_cb): Some programs are buggy when it comes to parsing
file: uris, so make sure we do file://%s. Fixes bug #20456.
2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (basename_from_uri): Replacement for using
g_basename and also translates the basename string to fix bug
#7160.
(mail_account_gui_save): Use basename_from_uri().
(folder_picker_clicked): Here too.
* mail-callbacks.c (mail_generate_reply): Default the from-account
to the source account. If that fails, then guess the from-account
based on the recipients. Fixes bug #20479.
2002-02-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (drag_data_get_cb): Implement.
(drag_data_delete_cb): Implement.
(do_attachment_header): Setup Drag & Drop. This implements
bugzilla bug #1066.
* folder-browser-ui.c: Set the followup icon to use the new flag
icon rather than the exclamation mark icon.
* mail-callbacks.c (flag_for_followup): Append the selected
messages to the clist in the followp editor.
* message-list.c: Include the new flag-for-followup icon.
* message-tag-followup.c (message_tag_followup_append_message):
New method to add a message to the message-list.
(construct): Get the message_list widget and load the flag icon
pixmap.
2002-02-12 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (set_widget_values): Fixed a bug.
* mail-callbacks.c (flag_for_followup): If only 1 message is
selected and it happens to already be marked for follow-up, set
the value of the flag on the editor so the settings are restored.
* folder-browser-ui.c: Set the pixmaps on MarkAsRead, MarkAsUnread
and MarkAsImportant bonobo verbs. Also connect to
flag-for-followup verb.
(folder_browser_ui_set_selection_state): Added MessageFollowUpFlag
verb to the array of verb strings.
* folder-browser.c: Set key accelerators on the follow-up
right-click menu items to match Outlook.
2002-02-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (create_msg_composer): No longer need to call
e_msg_composer_show_sig_file(). This gets handled auto-magically
by a signal emition when the default From address chooser gets
created.
(do_forward_non_attached): No longer need to call it here either
because e_msg_composer_set_body_text() now makes sure to re-show
the signature.
2002-02-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_forward_non_attached): Show the signature.
2002-02-11 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (ml_tree_value_at): Get followup-up message-list
values. Also highlight the message in red if the due-by date is
past due (this is what Outlook does).
(ml_duplicate_value): Handle follow-up columns.
(ml_free_value): Same.
(ml_initialize_value): Here too.
(ml_value_is_empty): And here.
(ml_value_to_string): And finally here.
* message-tag-followup.c (message_tag_followup_i18n_name): New
convenience function.
2002-02-11 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (create_msg_composer): unset changed, drop
editor undo
(mail_generate_reply): drop editor undo
(do_forward_non_attached): ditto
(do_forward_attach): ditto
(do_redirect): ditto
2002-02-11 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (followup_tag_complete): Implemented.
(on_right_click): Do better enabling/hiding of unwanted
flag-for-followup options.
2002-02-09 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (set_widget_values): Set the correct
drop-down menu item.
(message_tag_followup_encode): Return NULL if the type is NONE.
(clear_clicked): Set the drop-down menu to None.
(type_changed): Hide the None menu item.
(construct): Create a None menu item and set it as the default.
2002-02-08 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.[c,h]: New flag-for-followup tag editor
dialog.
* mail-callbacks.c (flag_for_followup): New callback that pops up
a flag-for-followup editor dialog.
(flag_followup_completed): Marks all flag-for-followup'd messages
as 'complete'.
(flag_followup_clear): Clears all flag-for-followup tags from the
selected messages.
* message-tags.glade: glade file for tag editors.
2002-02-08 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-editor.[c,h]: Base class for a message tag editor.
* folder-browser.c (on_right_click): Setup the hide/enable masks
for "Flag for Follow-up"
* mail-callbacks.c (confirm_expunge): Instead of hiding deleted
messages and then expunging, disable the use of the message-list
completely during the expunge operation.
(expunged_folder): Re-enable the use of the message-list widget
here.
2002-02-07 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (mail_generate_reply): call set_body later to
allow ignored words to be sent to gtkhtml control ahead
2002-02-07 JP Rosevear <jpr@ximian.com>
* component-factory.c (create_component): remove "New" from user
creatable menu item
2002-02-07 Christopher James Lahey <clahey@ximian.com>
* folder-browser.c, folder-browser.h, folder-browser-ui.c,
folder-browser-ui.h
(folder_browser_ui_setup_view_menus,
folder_browser_ui_discard_view_menus): Changed this to use the new
GalViewMenus stuff. Made these exported functions.
* mail-callbacks.c, message-browser.c: Changed these to not pass
the now removed row parameter to message_list_select.
* mail-config.c, mail-config.h (mail_config_folder_to_safe_url):
Refactored this out of mail_config_folder_to_cachename.
* message-list.c, message-list.h (message_list_select): Removed
the row argument. Changed this to use the new function in ETree
for finding the next cursor row that matches a test.
(message_list_construct): Handle a failed construction of the
ETree here.
(message_list_setup_etree, save_tree_state): Don't load or save
the header state. folder-browser-ui.c deals with this now.
2002-02-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Rearranged the #if
checks so that we don't ever try to access any smime widgets
(since they are now being destroyed) if smime isn't enabled.
(mail_account_gui_save): Same here.
* message-list.c: Removed references to NEEDS_REPLY.
* mail-callbacks.c (mark_as_needing_reply): Removed.
(mark_as_not_needing_reply): Removed.
(toggle_need_reply): Removed.
* folder-browser.c (on_right_click): Remove CAN_MARK_NEEDS_REPLY
stuff, this is going to be implemented in an entirely different
way.
* mail-format.c (handle_text_plain): Look for DOCTYPE XML comments
too to decide if the message content is really HTML.
2002-02-06 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (mail_generate_reply): Dont double-free the
text body data.
2002-01-31 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (mail_generate_reply): Add attachments after
we've seen if the composer object is valid.
(mail_generate_reply): Support new flag REPLY_NO_QUOTE - if set,
then dont quote any of the message in the reply.
2002-02-02 Ettore Perazzoli <ettore@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Destroy the S/MIME
frame if not available, instead of just graying it out. [I would
just hide it, but it looks like there is a show_all somewhere so
that doesn't work.]
2002-02-02 Ettore Perazzoli <ettore@ximian.com>
* mail-config.glade: Some touchups from me and Anna.
2002-01-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Don't bother setting
the auto-cc/bcc recipients here. I'm moving the code to add them
in the GUI in the composer so they will already be in the
recipient list by this point.
2002-01-31 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (mail_generate_reply): ignore spell checking of
words in addresses, move set_body_text after all ignored words are
set so we don't have to spell check whole document again
(mail_ignore_address): helper function
(mail_ignore): ditto
2002-01-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_edit): Pass the parent window to
mail_account_editor_new().
* mail-account-editor.c (mail_account_editor_new): Set the parent
window here because construct() inadvertantly
gtk_widget_show_all's the editor.
* mail-account-gui.c (mail_account_gui_save): Use g_basename()
rather than strrchr for '/' especially since the strrchr code
wasn't doing any NULL checks.
2002-01-30 Radek Doulik <rodo@ximian.com>
* mail-format.c (handle_text_plain_flowed): print quoted text in
italic
2002-01-30 Not Zed <NotZed@Ximian.com>
* component-factory.c (create_component): re-enable popup menu.
(populate_folder_context_menu): If we're on a vfolder, and its not
UNMATCHED, create a change properties item, and set it up
approriately.
(change_prop_popup): Callback to edit the vfolder rule. For
#3358.
2002-01-29 Dave West <kat@unleashed.org>
* mail-callbacks.c (create_msg_composer): Changed the function
signature so that we can pass in whom we want to compose as.
Should fix bug #10391.
(compose_msg): Get the current profile account and pass it along
to create_msg_composer.
(send_to_url): Pass in a NULL profile account to cause
create_msg_composer to use the default account.
2002-01-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Make X-Evolution-Account take
priority over X-Evolution-Transport. Should we just get rid of
X-Evolution-Transport? Anyways, this ought to fix a number of
complaints.
* mail-accounts.c (construct): Don't pass NULL text to
gtk_entry_set_text. Maybe this will fix bug #18971.
2002-01-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (redirect): New function that implements the
Redirect feature.
* mail-ops.c (mail_send_message): If we are redirecting a message,
get the Resent-* recipients otherwise get the normal To/Cc/Bcc
recipients and use them in the CamelTransport::send_to() method.
* mail-session.c (main_get_filter_driver): Set the beep_func to
the beep_cb, not the play_sound_func. Oops ;-)
* folder-browser-ui.c: Add Redirect bonobo verb thingy here.
(folder_browser_ui_set_selection_state): Add MessageRedirect to
the proper string arrays.
2002-01-29 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): initialize line to 0 to make
everybody happy ;-)
ops, set local_font to NULL
(do_mail_print): get rid of static global variables, as they are
not thread safe (thanks to clahey for pointing this out)
(footer_info_free): unref footer font
2002-01-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Don't bother checking
for invalid recipients anymore. If a recipient is invalid, the
transport error message will specify that now.
2002-01-28 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): print footer
(footer_print_cb): print page number and number of pages
2002-01-27 Ettore Perazzoli <ettore@ximian.com>
* importers/Makefile.am: Use IMPORTERS_CFLAGS.
2002-01-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (delete_event_cb): We need to return a value
here. I think FALSE is fine (I hope).
* mail-display.c (save_data_cb): Save the pathname.
(save_part): Use the new mail_config cruft to get the last used
save pathname.
* mail-config.c (config_read): Read in last_filesel_dir string.
(mail_config_write_on_exit): Save the last_filesel_dir setting.
(mail_config_get_last_filesel_dir): New
(mail_config_set_last_filesel_dir): New
* component-factory.c (destination_folder_handle_motion): Do some
NULL checking on the url before using it.
(destination_folder_handle_drop): Make sure the uri is non-NULL
before freeing.
2002-01-24 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am: s/MAILER_CFLAGS/EVOLUTION_MAIL_CFLAGS/,
s/MAILER_LIBS/EVOLUTION_MAIL_LIBS/.
2002-01-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (session_system_beep): This wrapper for gdk_beep().
* mail-account-gui.c (is_email): Don't bother trying to see if the
domain looks like a FQDN.
* mail-callbacks.c (select_all): If the mail-display is in focus,
then select-all in the mail display rather than the
message-list. Fixes bug #19126.
2002-01-23 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Pass a NULL icon to
`evolution_shell_component_add_user_creatable_item()'.
2002-01-23 Jeffrey Stedfast <fejj@ximian.com>
Implements bug #15692
* folder-browser.c (html_button_press_event): New callback that
checks to make sure that the mouse isn't over a link or image in
the html view and then calls the on_right_click handler after
getting the appropriate args.
(my_folder_browser_init): Connect to the button_press_event here.
2002-01-23 Dan Winship <danw@ximian.com>
* Makefile.am (INCLUDES): Define CAMEL_PROVIDERDIR to be the
configure.in-defined camel_providerdir. (Was supposed to have been
committed a month ago... oops.)
2002-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_filter_folder): Now takes a boolean notify
argument. If this is *not* set, then remove the sound-notify
filter rule that mail-session adds. Kinda kludgy, but good enough
for the moment.
* mail-callbacks.c (guess_me): Simplified.
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): If the first "token" in the
body is "<html>", then treat this as a text/html part rather than
a text/plain part. Fixes bug #16817.
* component-factory.c (destination_folder_handle_drop): Removed
some unused variables.
2002-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_uudecoding): Update to match new uudecode
interface (ie, no longer need a uulen state variable).
2002-01-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_set_base): New callback to handle the
set_base signal.
(on_url_requested): If the base_url is set, prepend it to the data
url (we don't want to do this for cid urls or part urls tho).
(mail_display_init): Initialize md->base_url to NULL.
(mail_display_destroy): Free the base_url.
(mail_display_initialize_gtkhtml): Connect to the set_base signal.
(on_link_clicked): If the base_url is set, prepend it to the url
string passed to us from gtkhtml.
2002-01-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_edit_messages): Don't remove any
X-Evolution* headers here, the composer already knows to ignore
these. Besides, it needs to know the X-Evolution-Format header.
2002-01-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_save_draft_cb): Do proper refcounting
on the draft folder.
* message-list.c (message_list_select): When performing a
wraparound, check to see if the first (or last depending on
direction) message fits the selection criteria before telling
etable to find the next/previous matching node.
* mail-account-gui.c (mail_account_gui_new): When connecting to
the transport username changed event, pass the gui->transport not
the gui->source.
2002-01-08 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (string_to_int): Takes a hex
string and converts it to an int.
(get_info_from_mozilla): Creates a CamelMessageInfo structure from
the X-Mozilla-Status header.
(process_item_fn): Check for the X-Mozilla-Status header and if it
is present call get_info_from_mozilla. If get_info_from_mozilla
returns that the message was marked as deleted but never expunged
it isn't imported.
* importers/mozilla-status-headers.h: Stuff Evolution cares about
from the mozilla header.
2002-01-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_new_mail_notify_sound_file): Renamed.
(mail_config_get_new_mail_notify_sound_file): Renamed.
* mail-accounts.c (notify_radio_toggled): Replace EXEC with
PLAY_SOUND.
(construct): renamed the exec_command stuff to play_sound.
* main.c (main): Init and shutdown gnome_sound.
* mail-ops.c (fetch_mail_fetch): Don't do any new-mail
notification here.
(filter_folder_filter): call camel_filter_driver_flush.
* mail-session.c (main_get_filter_driver): Set the filter-driver
exec_func here instead.
* mail-ops.c (mail_fetch_mail): Don't set the filter-driver
exec_func here.
2002-01-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Add an Organization
header.
2002-01-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (list_add_addresses): Simplified. Also no
longer needs an "ignore_addr" argument as far as I can tell so
that has been removed.
(mail_generate_reply): Don't pass an ignore_addr argument to
list_add_addresses and also change to use g_strcase_hash and
g_strcase_equal since addresses are not case snesitive
(mostly). Also, Reply-To can contain multiple addresses, so handle
this case too.
2002-01-02 JP Rosevear <jpr@ximian.com>
* mail-callbacks.c: remove e_gnome_dialog util functions and use
e-util ones instead
2001-12-21 Jeffrey Stedfast <fejj@ximian.com>
The idea here is that if we consistantly name the movemail file
between Send&Receive sessions that if the user cancells the
"download" of a mbox spool that the next Send&Receive will not
"lose" mail that didn't finish the previous session. Fixes bug
#17759. Well, mostly. If you have 200 messages and cancel after
the first 100, say, then the next time you hit Send&Receive, it
will start over from 1 so you'll end up duplicating the first 100
messages, but at least you won't "lose" mail.
* mail-tools.c (mail_tool_get_local_movemail_path): Now a static
internal function, takes a char *uri argument and no longer
generates movemail.%d filenames... they are now based on the uri
provided.
(mail_tool_do_movemail): Pass along the source_uri.
2001-12-20 Jon Trowbridge <trow@ximian.com>
* message-list.c (on_click): Makes the auto-undelete behavior when
changing message flags a bit more sane. (Fixes #17634)
2001-12-20 Ettore Perazzoli <ettore@ximian.com>
[Fixes #17377, Evolution doesn't work on multi-depth displays.]
* main.c (main): Push GdkRGB visual and colormap.
2001-12-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Add the auto-cc/bcc
recipients here. The problem with setting them in the composer is
that what if the user changes which account he wants to use? We'd
either have to clear the cc/bcc lists *or* we'd have to leave them
alone. Either way is bad. We can't just clear the entries because
the user may have added addresses since the composer was
opened. We don't want to leave any old auto-cc/bcc addresses there
because that isn't desirable either. So we give up and add them
here after the user has already hit the send button.
* mail-config.c (account_copy): Update to copy the always-[b]cc
options.
(account_destroy): Update to destroy the above options.
(config_read): Update to read in those values.
(mail_config_write): Save those options.
* mail-account-gui.c (mail_account_gui_new): Setup Always Cc/Bcc
widgets.
(mail_account_gui_save): Get the user-entered values for the
always-cc/bcc stuff.
2001-12-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (setup_service): If the provider is NULL,
don't do anything.
* mail-accounts.c (construct): Oops, no wonder the exec command
thing never stuck around... I wasn't getting the right widget from
libglade. Also connect to the GtkEntry's changed event since a
GnomeFileEntry doesn't have that signal in its ancestry.
2001-12-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (filter_folder_free): Argh, don't notify about new
mail here.
(fetch_mail_fetch): Notify about new mail here instead.
* mail-accounts.c (construct): Setup the new-mail-notification
widgets.
(notify_command_changed): Update the command-line for new mail
notification.
(notify_radio_toggled): Update the new-mail-notification type.
* mail-ops.c (filter_folder_free): See if we got any new mail and
"sound the alarm" if we did.
2001-12-17 Jon Trowbridge <trow@ximian.com>
* mail-format.c (handle_text_plain_flowed): Set citation color to
black when we are printing.
* mail-format.c (attachment_header): Avoid embedding <object> tags
when we are printing.
(handle_multipart_signed): Don't do the click-for-info signature
stuff when we are printing.
(handle_via_bonobo): Don't embed an <object> tag if we are
printing.
* folder-browser.c: Changed context_menu[] array so that we can
print when the preview pane is closed.
2001-12-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec
callback.
2001-12-12 Jeffrey Stedfast <fejJ@ximian.com>
* mail-config.c (mail_config_check_service): Connect to the
destroy signal on the popup dialog.
2001-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): Make sure i != num_specials
after we check for any special text markers. Fixes bug #12265.
2001-12-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (compose_msg): Connect to the save-draft signal.
(send_to_url): Here too.
(mail_reply): And here...
(forward_get_composer): Same.
(do_edit_messages): And finally here.
* mail-format.c (try_inline_pgp):
(try_inline_pgp_sig): Start reiplementing The Right Way and not
danw's fucking half-assed kludge that doesn't work.
2001-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_new_mail_notification_command):
set the new-mail-notify command.
(mail_config_get_new_mail_notification_command): get the
new-mail-notify command.
(mail_config_set_new_mail_notification): set the
new-mail-notification action.
(mail_config_get_new_mail_notification): get the
new-mail-notification action.
(mail_config_write_on_exit): save the new-mail-notification
settings.
(config_read): Read in the new-mail-notification settings.
* mail-ops.c (mail_execute_shell_command): New function to execute
a shell command async. Will be used for playing sounds on new mail
or whatever.
2001-12-11 Jon Trowbridge <trow@ximian.com>
* mail-identify.c (mail_identify_mime_part): Fixed for
mail_content_loaded's new signature.
* mail-format.c (attachment_header): Don't convert URLs, etc. if
we are printing.
(write_address): Don't convert addresses to mailto: links if we
are printing.
(write_one_text_plain_chunk): Add a printing flag, that we pass
along to mail_text_write.
(handle_text_plain): Pass our printing flag to
write_one_text_plain_chunk.
(mail_get_message_rfc822): Don't unneccesarily convert URLs.
(mail_content_loaded): Add a GtkHTML parameter.
* mail-display.c (mail_display_initialize_gtkhtml): Added. Breaks
all of the signal hookups out of mail_display_new.
(mail_display_new): Call mail_display_initialize_gtkhtml.
(mail_text_write): Don't convert URLs, etc., if we are printing.
Lots of other changes to pass around GtkHTML/GtkHTMLStream objects.
* mail-callbacks.c (do_mail_print): Call
mail_display_initialize_gtkhtml on our GtkHTML object.
* folder-browser.c (update_status_bar): Make the status bar more
useful when you have a large number of hidden messages.
* message-list.etspec: Add ETable magic for our new "Needs Reply"
column. (The next few entries are for bug #90)
* message-list.h: Add COL_NEED_REPLY.
* message-list.c: Move mail_need_reply_xpm to the end of
states_pixmaps.
(ml_duplicate_value): Handle COL_NEED_REPLY.
(ml_free_value): Handle COL_NEED_REPLY.
(ml_initialize_value): Handle COL_NEED_REPLY.
(ml_value_is_empty): Handle COL_NEED_REPLY. Added
needs_reply_map[] array.
(ml_value_to_string): Handle COL_NEED_REPLY.
(ml_tree_value_at): Fix magic numbers, undoing my changes from the
otehr day. Add handler for COL_NEED_REPLY.
(message_list_create_extras): Attach icons for COL_NEED_REPLY.
(on_click): Undo my previous changes to display need-reply status
in COL_MESSAGE_STATUS. Add handing for COL_NEED_REPLY.
* mail.h: Change mail_format_mime_message, mail_format_raw_message
and the MailMimeHandlerFn typedef to take GtkHTML and
GtkHTMLStream args, as per our changes in mail-format.c.
* mail-format.c: Giant refactoring. Remove the assumption
throughout that we will always want to render into the GtkHTML
object contained in the MailDisplay. Instead, always pass in the
GtkHTML and GtkHTMLStream that we want to write to. Also, ignore
theme work-arounds if the printing flag is set. (This and what
follows fixes bug #82)
* mail-display.h: Remove GtkHTMLStream *stream from MailDisplay.
We don't need it anymore.
* mail-display.c (mail_display_render): Added. Breaks the code
that renders the message into the GtkHTML object out of
mail_display_redisplay.
(mail_display_redisplay): Call mail_display_render.
(mail_display_init): Remove reference to ->stream.
(mail_display_new): Remove reference to ->stream.
* mail-callbacks.c (do_mail_print): Create a new GtkHTML to render
our printed version into (via the new function
mail_display_render. Set the MailDisplay's printing flag to TRUE
before we render, and set it back to FALSE afterwards.
(do_mail_fetch_and_print): If the preview pane isn't open when we
try to print, fetch the message before printing.
(print_msg): Call do_mail_fetch_and_print.
(print_preview_msg): Call do_mail_fetch_and_print.
* folder-browser-ui.c: Remove "PrintMessage" and
"PrintPreviewMessage" from message_pane_enables... these now work
when the preview pane is closed. Disable printing if multiple
messages are selected.
2001-12-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (filter_folder_filter): Don't expunge when we sync
anymore, this fixes bug #4472.
2001-12-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-autofilter.c (rule_from_message): Make sure that the
message subject is non-NULL beforetrying to base a vfolder rule
off it. Fixes bug #16284.
2001-12-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Connect to the dialog's "destroy"
event and close any druids/editors that may be open when that
signal is caught. Fixes bug #16501.
* mail-vfolder.c (vfolder_edit): Set the window title to "Virtual
Folders". Fixes bug #16695.
2001-12-05 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): set paper size to
_("US-Letter"), use gtk_html_print_set_master
2001-12-08 Dan Winship <danw@ximian.com>
* mail-display.c (on_object_requested): Don't just assume all of
the GtkHTMLEmbedded's fields are filled in, since HTML messages
may have <object>s in them that we're not expecting.
2001-12-07 Dan Winship <danw@ximian.com>
* mail-send-recv.c (mail_send_receive): Add a "current_folder"
arg.
(build_dialogue): Remember the current_folder
(free_send_data): If current_folder is set, refresh it so it's
guaranteed to be synced with the folder tree. Fixes #14770.
* mail-callbacks.c (send_receive_mail): Pass current_folder to
mail_send_receive().
2001-12-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (stream_write_or_redisplay_when_loaded): Check
that the mail-display hasn't been destroyed.
(mail_display_redisplay): Same here.
2001-12-07 Dan Winship <danw@ximian.com>
* mail-send-recv.c (receive_update_got_store): If updating a store
that we don't have an associated storage for, just request a
folder tree and then free it. (For the Connector)
* mail-callbacks.h: Add missing part of Jeff's 12-03 patch so this
actually compiles.
2001-12-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): s/PREVIEW_RELEASE/VERSION_COMMENT
2001-12-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Don't append "(Preview Version)"
at the end of the version string. Use the PREVIEW_RELEASE #define
instead.
2001-12-03 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c: Setup the UI for the AddSenderToAddressbook
ui verb thingy.
* mail-callbacks.c (add_sender_to_addrbook): New bonobo-ui
callback that adds a sender to the addressbook.
2001-12-04 Jon Trowbridge <trow@ximian.com>
* folder-browser-ui.c (folder_browser_ui_set_selection_state):
Allow 'n' and 'p' to work when multiple messages are selected.
Fixes #12062.
2001-11-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (save_msg_ok): If the path exists, make sure
it's a regular file (or we can't possibly save to it). Fix for
#14127.
2001-11-28 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (message_list_select): Cleaned up the code.
* mail-callbacks.c (previous_unread_msg): Pass wraparound as TRUE.
2001-11-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (pgpopen): Fix the boolean check to be && and not
||.
2001-11-20 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c: Disable search if no message
loaded/viewed. Also for #14348.
* folder-browser.c: Disable "Add sender to addressbook" if we dont
have a message loaded (it wont work). For #14348.
2001-11-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (load_content_loaded): Make sure the mail-display
object is still "alive" before accessing any of it's data.
2001-11-14 Zbigniew Chyla <cyba@gnome.pl>
* mail-autofilter.c (rule_match_recipients, rule_from_message,
rule_from_mlist): s/_/U_/ (filter_rule_set_name requires UTF-8 string)
2001-11-14 Dan Winship <danw@ximian.com>
* main.c (segv_redirect): Instead of doing pthread_exit() after
redirecting the SEGV, try to lock a mutex we know is already
locked. This will hopefully help debug a bunch of bugs where the
crashed thread seems to be missing from the bug-buddy report.
2001-11-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (pass_got): Call e_passwords_remember_password()
for account passwords if the user set the "remember password"
checkbox.
2001-11-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_load_storage): Add a NULL check for
rule->name.
(mail_vfolder_add_uri): Same here.
2001-11-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_message): If we already have the
message loaded in the mail-display, don't bother re-loading. This
happens to fix bug #14848.
2001-11-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tools_x_evolution_message_parse): Was
x_evolution_message_parse from folder-browser.c. A space char is
no longer used to separate the folder URI and the first uid,
instead this is now done with a nul-char so update to parse the
newer/better format.
* component-factory.c (destination_folder_handle_drop): Update to
parse the new/better format.
* folder-browser.c (x_evolution_message_parse): Moved to
mail-tools.c
(message_list_drag_data_get): Instead of placing a space char
after the folder URI, instead use a nul-char.
2001-11-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (pgp_path_changed): Call
mail_config_pgp_type_detect_from_path() instead of doing our own
lame auto-detection that didn't even work ;-)
* mail-config.c (auto_detect_pgp_variables): Execute the pgp
binary and look at it's version string if we have a version string
to compare to.
(mail_config_pgp_type_detect_from_path): New function that takes a
pgp path and attempts to figure out what pgp version it is.
2001-11-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp): Add a "x-inline-pgp-hack=true"
paramter to the multipart's content-type.
2001-11-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (construct): Don't make the account editor
modal either.
* mail-accounts.c (mail_add): Use the new global account druid
variable so that we can avoid having more than a single druid at a
time. If a druid already exists, bring it to the top.
(mail_edit): Same idea only for the account editor this time.
(mail_editor_destroyed): Set the global editor to NULL.
(mail_add_finished): Set the global druid to NULL.
(mail_delete): Don't allow any deletes if an account editor is
opened (we don't want to be able to delete the account we are
editing...)
(news_edit): Same thing for the news editor.
(news_editor_destroyed): Set the news editor to NULL.
(news_add): And again for the news add.
* mail-account-gui.c (service_check_supported): Updated to pass a
GtkWindow argument to mail_config_check_service().
* mail-config.c (mail_config_check_service): Now takes a GtkWindow
argument so we can set our parent window. Also, don't make this
dialog modal either.
* mail-config-druid.c (construct): Don't make this druid modal.
2001-11-05 <NotZed@Ximian.com>
* message-browser.c (set_bonobo_ui): Override the Move/Copy
handlers setup by the folder_browser_ui code, and use our own,
because we need to pass it a live window which we can't.
(transfer_msg): Our own version of mail-callbacks.c:transfer_msg,
so we can properly pass the parent to the user_select_folder.
(transfer_msg_done): Also copy this so we can pass it diff args.
All fix #13919.
* mail-callbacks.c (transfer_msg): Set physical/uri to NULL before
calling, because althought he shell client api call is supposed to
null these out, it doesn't with its stupid assertion checks on
entry. Also free physical to plug a memleak. Bugs exposed by
#13919.
2001-11-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.h (mail_html_write): Renamed from
mail_html_write_string.
* mail-display.c (mail_text_write): Don't bother with varargs
since nothing used them, we were only passing strings anyway...
(mail_error_printf): Renamed from mail_error_write, this makes
more sense.
(mail_html_write): Removed.
* mail-format.c: Updated to use gtk_html_stream_printf directly
and s/mail_html_write_string/mail_html_write.
(mail_lookup_handler): Don't use %.*s here either...
(handle_text_enriched): Same.
(write_one_text_plain_chunk): And finally here (also update for
new mail_text_write api).
(handle_multipart_signed): Update for new mail_text_write api.
(format_mime_part): Update for new mail_error_text/printf name
change.
(handle_multipart_encrypted): Same.
* mail-tools.c (mail_tool_generate_forward_subject): Same as
mail_generate_reply.
* mail-callbacks.c (mail_generate_reply): Don't use %.*s in any
*printf* functions.
2001-11-02 Christopher James Lahey <clahey@ximian.com>
* message-list.c (ml_tree_value_at): Use GINT_TO_POINTER here for
platforms where simply casting an int to void * won't work.
(build_flat_diff, main_folder_changed): Call
e_tree_model_pre_change here.
2001-11-02 <NotZed@Ximian.com>
* message-browser.c (message_browser_message_list_built):
Disconnect from the message_list_built function so we dont do it
every time the list is rebuilt.
* mail-callbacks.c (composer_send_cb): Disable autosave when we're
sending mail.
(composer_sent_cb): Re-enable autosave.
* folder-browser-ui.c (fbui_sensitize_timeout): Make sure we reset
any data we're using on the folderbrowser before doing anything
'cause things could vanish while we're doing it, and also
ref/unref the folderbrowser so it doesn't vanish while w'ere
working.
* folder-browser.c (folder_browser_set_ui_component): If we are
changing the ui comp, remove any pending timeouts. For #13719.
2001-11-01 Larry Ewing <lewing@ximian.com>
* folder-browser.c (folder_browser_copy): fix cut & paste from the
message body.
2001-11-01 Dan Winship <danw@ximian.com>
* mail-format.c (handle_multipart_signed): Write out the url
before callind add_url since add_url may free it. Fixes #13839.
Remove debug printf.
* mail-display.c (on_object_requested): Remove debug printf.
2001-10-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (list_add_addresses): Don't use a
case-sensitive comparison.
2001-10-31 Dan Winship <danw@ximian.com>
* mail-format.c (try_inline_pgp_sig): Make this work again.
2001-10-30 Larry Ewing <lewing@ximian.com>
* mail-account-gui.c (delete_event_cb): add delete_event_handler.
(menu_file_save_close_cb): add save and close command.
(launch_signature_editor): initial the editor as having changed
and attach the delete event handler.
2001-10-30 <NotZed@Ximian.com>
* message-browser.c (d): Turn it off.
* mail-mt.c: Added exception strings to some of the op logging.
* mail-format.c (elide_quotes): Remove, uh, what was this for, its
not used anywhere? Also loops the instant it had a ", good one
trow! :)
(write_address): Remove name_arg/email_arg, these aren't used
anywhere.
* mail-mt.c (mail_msg_received): If we have a cancellation setup,
destroy it immediately, to save fd's.
(mail_msg_cancel): Check cancel != NULL.
(mail_msg_free): Same.
* folder-info.c: Comment out the Folder: and you've got mail
prints.
* mail-config-druid.c (wizard_next_cb): If we have a next
function, honour if it tells us its going to set the page, and
dont set it, otherwise, set it to the next page, unless we're at
the end of our pages, and let the wizard do it itself.
(wizard_back_cb): Same for going back. Rest of fix for #12127,
see e-shell-startup-wizard for the rest.
(next_func): If we're not on the last page, tell the druid we're
gonna handle the next button, so we can sync properly with it,
needed for above changes.
(back_func): Similarly for going back past page 0.
(wizard_listener_event): We want to set the page to the actual one
asked for not, pagenum-1.
* mail-local.c (mls_rename_folder): Oops, dont use the url storage
path to offset the folder name we're renaming/opening, etc.
* subscribe-dialog.c (fe_cancel_op_foreach): Argh!!! Dont free the
async op data here, the async op is still running and will access
it! Just try to cancel it and mark it as cancelled (id == -1)
(fe_done_subscribing): Only remove outselves from the hash table
if we're not cancelled. The handle should always be set here,
since this code runs in the gui thread.
* message-list.c (on_cursor_activated_idle): If nothing
selected/cursor not activated, then select no message.
* mail-folder-cache.c (update_1folder): Make the trash count
optional on EVOLUTION_COUNT_TRASH, becuase some lusers are just
too stupid to understand what its for.
* component-factory.c (storage_xfer_folder): Return slightly
better error codes for copying folders, since its not implemented
yet.
* mail-vfolder.c, mail-local.c, mail-folder-cache.c,
message-list.c component-factory.c, mail-ops.c,
subscribe-dialog.c, mail-session.c: d() out some debug printfs,
w() out some warnings.
* folder-browser-ui.c (folder_browser_ui_add_message): Fix typo,
Resent->Resend.
2001-10-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (transfer_messages_transfer): Don't warn the user if
the source and destination folders are the same.
2001-10-29 Dan Winship <danw@ximian.com>
* mail-format.c (handle_multipart_signed): add some debug spew re
13839.
* mail-display.c (on_object_requested): here too
2001-10-29 Christopher James Lahey <clahey@ximian.com>
* e-searching-tokenizer.c (search_info_set_match_size_increase):
Fixed a warning by #if 0ing out this function.
* folder-browser.c, folder-browser.h (on_selection_changed):
Update status bar in an idle call. Fixes Ximian bug #13929.
* mail-folder-cache.c (folder_renamed, store_folder_renamed):
Fixed some warnings here.
2001-10-29 Dan Winship <danw@ximian.com>
* folder-browser.c (folder_browser_copy): Fix the focus check.
It's not fb->message_list that has focus, it's one of its
children. #13616.
2001-10-29 <NotZed@Ximian.com>
* mail-folder-cache.c (store_folder_renamed): Sort the folder
updates first, since we dont seem to get them in the right order,
or infact in any tree representation whatsoever when using IMAP
...? get_folder_info bugs?
Unrelated note to self, the subscribe dialogue may interfere with
the folder cache.
* mail-vfolder.c (rule_changed): Copy the folder's full_name
before trying to use it to rename.
(vfolder_edit_rule): Set 'orig' to be a reference of the original
rule.
(edit_rule_clicked): Dont lookup orig by name, copy it over
instead.
* folder-browser.c (got_folder): oops, emit signal before
unreffing object, incase we got killded during getting folder.
(got_folder): Reset get_id.
(folder_browser_new): Set get_id of the get_folder task.
(folder_browser_init): Init get_id.
(folder_browser_destroy): IF we have outstanding 'get folder' op,
cancel it.
2001-10-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Call
mail_autoreceive_setup() instead of
mail_autoreceive_setup_account() since that code was completely
broken anyway.
* mail-send-recv.c (mail_autoreceive_setup_account): Removed.
* mail-callbacks.c (transfer_msg_done): Move the message-list
cursor to the next message.
(transfer_msg): If we are moving messages, then pass
transfer_msg_done() to mail_transfer_messages() so when it
finishes it can move the cursor to the next undeleted message.
* mail-format.c (try_inline_pgp): Check that the special PGP lines
begin and end with \n so as to avoid matching against quoted PGP
lines.
2001-10-28 <NotZed@Ximian.com>
* mail-callbacks.c (mark_all_as_seen): fb = user_data, not fb =
fb!, fixes 13844.
* mail-local.c (mlf_rename): add the folder name to the path when
passing down to the subordinate folder.
* folder-browser-ui.c (fbui_sensitize_timeout): Remove uic, kill
dumb warning.
* mail-autofilter.c (mail_filter_rename_uri): Implement function
for filters to keep track of uri's being renamed.
(mail_filter_delete_uri): Similarly for deleting uri's. Note that
these functions are just noops though.
2001-10-28 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c: Deactivate the Print right-click menu option
if the message isn't loaded. Fixes bug #10346.
2001-10-28 <NotZed@Ximian.com>
* mail-vfolder.c (mail_vfolder_rename_uri): Implemented.
(mail_vfolder_rename_uri): We do want to check renamed uri's from
vstores.
(mail_vfolder_delete_uri): Same.
(store_folder_renamed): Fix the folder hash at the same time.
* mail-folder-cache.c (real_flush_updates): Pass the rename event
to vfolder rename uri.
(real_flush_updates): Also rename and delete uri's from filters.
* mail-local.c (mail_local_folder_reconfigure): Change the store
path to be same as parent + mbox to be full path.
(mls_delete_folder): Change store path to be parent path, and mbox
to be full path.
(mail_local_folder_reconfigure): Fix a leak of tmpname.
(mls_delete_folder): Unref the store when done.
(mls_rename_folder): Fix implementation, shell already created
destination folder, so we can't just rename :(
* component-factory.c (xfer_folder): Only do a rename if we have
remove set, cleaned up logic a bit.
(idle_quit): Put the components still active check last last of
all.
(storage_create_folder): IF we have a fragment, use that as part
part for parent.
(xfer_folder): Manually call rename code, since the shell will do
a remove/add later on, AND there's no way we can determine the new
path from the crock of an api we have to work with.
2001-10-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_get_data_wrapper_text): Allow the
user to shoot him/herself in the foot when overriding message
charsets. Permanantly fixes bug #921.
2001-10-26 Dan Winship <danw@ximian.com>
* folder-browser.c (etree_key): Work around something that we
think is a GtkHTML bug, where sometimes the adjustments have
slightly bogus values and scrolling ends up working backwards.
(Ximian 4939)
* mail-display.c (do_signature, do_attachment_header): Set the
icon to be 24x24 here so that (assuming it's not a thumbnail), no
resizes will have to be queued later. (There's still a bug with
the text to the left of the button being drawn twice for some
reason though.)
* mail-callbacks.c (delete_msg): Fix a bug here that makes
deleting multiple messages cause a gratuitous message body fetch.
(Ximian 12355)
2001-10-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (providers_config): Set the GdkWindow of the
FolderBrowser, not the GtkWindow...
2001-10-26 <NotZed@Ximian.com>
* mail-local.c (mlf_set_folder): Changed to open the source store
from '/', so we can do renames across directories. Of course,
this doesn't quite work with different filesystems, but we'll
assume this isn't a problem we're going to have.
(mail_local_folder_get_type): Setup parent_class.
(mlf_rename): Implement folder rename call, rename internal data.
Is this a security issue? Well, not really, no more than anything
else.
* mail-folder-cache.c (mail_note_store): Listen to rename event.
(store_folder_renamed): Function to handle it, empty.
(mail_note_store_remove): Unhook from rename event.
(mail_note_folder): Hook onto renamed event.
(unset_folder_info): Unhook from renamed event.
(folder_finalised): Lock around update.
(folder_deleted): Lock around update.
(real_flush_updates): If we have a path to remove remove it.
(rename_folders): Scan folderinfo's, if we can find ones renamed,
rename them, otherwise add them.
* component-factory.c (owner_unset_cb): Use a timeout not an idle
handler.
(storage_xfer_folder): Implementation of xfer_folder signal
handler, so we can rename imap/vfolders/etc.
* component-factory.c (owner_unset_cb): Use a timeout not an idle
handler.
* mail-callbacks.c (providers_config): Only set the parent window.
* mail-accounts.c (mail_edit): Set the parent on the account editor.
2001-10-25 <NotZed@Ximian.com>
* openpgp-utils.c (openpgp_verify): s/iconv/e_iconv/.
2001-10-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (send_mail_free): Don't forget to unref the filter
driver here.
2001-10-25 <NotZed@Ximian.com>
* folder-browser-ui.c (fbui_sensitize_timeout): So apparently the
uicomp can just 'vanish' while we're using it. Joy. Take care of
that case here, fixes #13482.
(fbui_sensitise_item): Check here too just for kicks.
* mail-folder-cache.c (store_finalised): If we can't destroy our
async event, then queue another one to do it.
(store_finalised_finish): And handle it here, until we can, then
free it.
(mail_note_store): Queue an async event to get folderinfo, dont
use mail_get_folderinfo.
(update_folders_get): thread-async event to retrieve the
folderinfo, and build it, then queues gui-async event to update
the gui.
(add_unmatched_info): Taken from mail-ops, adds unmatched if
required.
(add_vtrash_info): From mail-ops, add trash if required.
(update_folders): Thread async event to update gui.
(mail_note_store): Ref the store and storage when created.
(update_1folder): Changed to assume we have info_lock, and store
updates in an updates list.
(setup_folder): Same.
(folder_changed): Changed to call update_1folder directly.
(real_folder_changed): Removed.
(mail_note_folder): Changed to call update_1folder directly.
(real_note_folder): Removed.
(store_folder_subscribed): Call setup_folder directly.
(real_folder_created): Removed.
(real_flush_update): Function that actually does the updates in
the gui thread.
(mail_note_store): Go back to using mail_get_folderinfo.
(update_folders): Fixed upf ro changed api's.
(unset_folder_info): Changed to queue pending updates.
(real_folder_deleted): Removed.
(store_folder_unsubscribed): Do the removal work directly.
(mail_note_store): Dont link to finalised event of store - we now
ref it.
(mail_note_store_remove): If we have any pending updates, clear
them out. Also cancel any pending folderinfo retrieve operations.
(update_folders): Remove our update from the storeinfo list, if it
still exists.
(update_1folder): Make 'sent folder shows all counts' optional via
an environmental variable EVOLUTION_COUNT_SENT for all those
bloody whinging lusers out there.
(mail_note_store_remove): Unref the storage when done.
* mail-mt.c (mail_async_event_emit): If we're in main and have a
gui task, set it to run via an idle function.
(idle_async_event): Wrapper for calling do_async_event from idle
function, and freeing the message when done.
(idle_async_event): Call mail_msg_free not free on the finished
message.
* component-factory.c (mail_remove_storage): Destroy the storage
async.
(store_disconnect): This does the work.
(free_storage): Un-note the store when we remove it, so the store
noting code can unref things properly.
(idle_quit): Return false when done, dont loop.
2001-10-24 <NotZed@Ximian.com>
* component-factory.c (owner_set_cb): Setup an async_event
handler.
(idle_quit): Try to destroy the async_event, or keep dropping out
if it can't (deadlock).
* mail-mt.c (do_async_event): Set the threadid of the thread we're
running in so we know its running/which thread its in.
(mail_async_event_emit): Added new argument 'type' which is the
type of thread to execute against, gui or another one. Fixed all
callers.
(mail_async_event_destroy): Return -1 if this operation will fail
(deadlock possibility). If we're in the thread of the task
we're going to wait for, then return a failure (since we will
deadlock).
(mail_async_event_emit): Changed to use MailAsyncFunc type as the
function type, which just takes 3 void args, change args to suit.
* mail-folder-cache.c (mail_note_store): Record the pending update
events in a pending list. We should really be able to use an
async event for this, but that doesn't return to the gui loop when
done :-/
(update_folders): Remove from pending update when done.
2001-10-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (get_receive_type): Check for a NULL provider.
(build_dialogue): Check for invalid source urls.
(mail_receive_uri): Same.
2001-10-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): No longer need to pass a
settext argument.
(do_forward_non_attached): Same.
* mail-format.c (mail_get_message_body): Fix to not always return
NULL for html parts, doh!.
2001-10-24 <NotZed@Ximian.com>
* folder-browser-ui.c (ui_add):
(fbui_sensitize_timeout): Same.
* folder-browser-factory.c (control_activate): Comment out freeze/thaw.
(control_deactivate):
2001-10-24 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Fixed some weird casting
crack that got in here somehow, removed superfluous box-packing
that was generating a gtk warning.
2001-10-23 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_unset_cb): Unref the global
search_context.
(owner_set_cb): create the global search_context.
* folder-browser.c (folder_browser_gui_init): Pass along the
global search_context to the e_filter_bar_new call.
2001-10-24 <NotZed@Ximian.com>
* message-browser.c (message_browser_message_loaded): Call
ui_message_loaded when we are.
* folder-browser-factory.c (control_activate): Freeze/thaw around
all updates.
(control_deactivate): Freeze/thaw around all updates.
* folder-browser.c (folder_browser_init): Setup a hashtable to
keep track of *our* sensitise state, so we can optimise pushes to
bonobo.
(folder_browser_finalise): Free hash here.
(folder_browser_set_message_preview): Call a ui_message_loaded,
even though it isn't, so it updates sensitivities right.
(done_message_selected): Call ui_message_loaded when it really is,
rather than the very fucked up idea of reversing the loaded_uid
check.
* folder-browser-ui.c (folder_browser_ui_set_selection_state):
Dont enable the message-enabled options if the message display is
hidden, e.g. print, view headers, etc.
(folder_browser_ui_rm_all): Forget sensitise state.
(fbui_sensitise_item): Sensitise items via a current-state table,
so we dont have to do bonobo calls every time.
(folder_browser_setup_property_menu): Call sensitise_item.
(folder_browser_ui_add_message):
(folder_browser_ui_add_global): Leave current set_prop "sensitive"
for the stop button, so it doesn't get lost by the stuff in
mail-mt.c
(fbui_real_sensitize_items): Removed.
(fbui_sensitize_timeout): Cleaned up, use sensitise_item to do
work.
(folder_browser_ui_message_loaded): Setup sensitive based on
preview_shown too.
(folder_browser_ui_set_selection_state): And here too.
2001-10-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (service_check_supported): Don't allow an
auth-type to be set when saving the service.
(mail_account_gui_new): Initialize the source and transport
provider_type's here so we don't forget to do it when it matters.
(mail_account_gui_setup): Don't bother setting the provider_type's
here, they are already set in mail_account_gui_new() now.
2001-10-23 <NotZed@Ximian.com>
* mail-display.c (mail_display_destroy): Remove the idle_id when
we're destroyed so the idle func doesn't run on an invalid object.
* message-list.c (regen_list_regened): Dont do anything if we're
destroyed #13021.
* mail-mt.c (mail_user_message):
(mail_get_password): Removed, all functionality moved to
mail-session.
* mail-config.c (mail_config_write_on_exit): Check
threaded/preview hash is null before using it, its setup on demand
so itmight nto be initialised here.
* mail-session.c (request_password): Remove password_current
stuff.
(alert_user): Redont, similar to get_pass. Do things as async as
possible, and dont even wait for a response if we're not asking
for the cancel button (this may or may not be right behaviour -
need to check). mail_user_message() code replaced from the stuff
in mail-mt.c
(MailSession): Added a lock field.
(init): Setup lock.
(finalise): fRee lock.
(register_timeout): Redone. We now allocate our own 'timeoutid's,
and <> to the real things asynchronously. Use async_event's so we
can make sure we have no outstanding ones after shutdown.
(mail_session_enable_interaction): If interaction has been
disabled, and we have either a message-box open, or a password
request open and/or any pending message boxes/passwords, blow 'em
away.
(main_register_timeout): If we have pending remove of this same
timeout, dont do anything.
(timeout_timeout): Properly honour the result, remove the timout
if it returns false.
(do_user_message): Setup the message_destroy_id when we setup the
destroy handler so it doesn't get called twice.
2001-10-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (reply_to_sender): Make sure the fb and it's
message-list exist.
(reply_to_list): same.
(reply_to_all): And here...
(forward_message): Here too.
(forward_attached): Again here.
(transfer_msg): Here too.
(apply_filters): Same.
(select_all): Yet again here...
(select_thread): And here.
(invert_selection): Same.
(flag_messages): Here too.
(mark_as_unseen): and here...
(mark_all_as_seen): ...
(zoom_in):
(zoom_out):
(zoom_reset):
(search_msg):
(load_images):
(save_msg):
(next_msg):
(next_flagged_msg):
(next_unread_msg):
(previous_msg):
(previous_unread_msg):
(expunge_folder):
(configure_folder):
(empty_trash):
2001-10-23 <NotZed@Ximian.com>
* mail-mt.c: Added missing errno.h
(mail_msg_new): Fix the logic a bit, dont try to open the log file
unless logging is actually requested.
(mail_enable_stop, mail_disable_stop, do_set_busy,
mail_operation_statys): Dont bother propagating events if
global_shell_client isn't up yet.
2001-10-23 Dan Winship <danw@ximian.com>
* mail-mt.c (mail_msg_new): If the fopen() fails (eg, because
evolution-mail was started by oafd with PWD=/), don't try to use
the NULL file handle.
2001-10-23 <NotZed@Ximian.com>
* mail-session.c (get_password): Completely re-done. We now hae a
completely async dialogue when requested from antoehr thread, and
dont use gtk_main() if we can avoid it (which is normally the
case). This stuff is only partially finished, and will mena the
removal of the same from mail-mt.c, and the mail_user_message()
code will be moved here and changed to work in a similar way.
* mail-callbacks.c (empty_trash): Dont try and connect to remote
stores just to get the trash. Also, always run empty trash async,
and make sure we unref the trash.
(empty_trash): Hmm, dont unref the trash, causes a problem on
exit, i suspect something else is doing funky unrefs on it.
* mail-tools.c (mail_tool_get_trash): Pass a 'connect' arg, tell
it whether it should tryand connect or not to the parent service,
if it isn't already connected.
* component-factory.c (owner_unset_cb): Dont try wait_all here,
could potentially deadlock.
(idle_quit): Keep returning TRUE if we have outstanding
processing. Note that this may busy-wait during exit processign
with busy tasks :(
(idle_quit): Keep calling ourselves till we no longer get called
(i.e. gtk_main really quits).
* mail-mt.c (mail_msg_active): New function, returns TRUE if
events are still active/outstanding.
(do_op_status): @$@$#@@!#@!! didn't unlock the mail_msg_lock if
data->activity was NULL and we had no global_shell_client anymore!
Also shortcut processing if this is going to be the case.
(mail_msg_init): Setup a temporary other gui_port for redoing with
new semantics password, user message and progress reporting.
(mail_get_password): #ifdef'd out all this code temporarily, till
it gets fully moved to mail-session.c
2001-10-22 <NotZed@Ximian.com>
* component-factory.c (owner_set_cb): Dont call enable_interaction
here.
(interactive_cb): But here instead, let the shell tell us when its
ok to go interactive.
2001-10-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_one_text_plain_chunk): Oops, revert my
change to this function.
* mail-display.h (mail_html_write_string): New fun macro.
* mail-format.c (write_one_text_plain_chunk): Use gtk_html_write
instead of mail_html_write so we avoid strdup'ing the text.
(handle_text_plain_flowed): Use the mail_html_write_string macro.
(handle_message_rfc822): Here too.
(mail_format_raw_message): We can do it here also...
(attachment_header): We can do it a little bit here...
(write_address): A microscopic bit here...
(write_hr): same.
2001-10-22 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: Added several new accelerators to the edit account
dialog, and fixed the focus targets on all existing accelerators. I
was hoping that since the widgets used in the account editor are also
used in the first-time start-up druid and them mail-config druid,
that this would fix all accelerator problems for those druids as well,
but there is something wrong with Bonobo which is preventing
the druids from responding to their accelerators. Sigh. Anyway,
most accelerators in the edit account dialog work correctly
now, though there are few (such as _Full Name) which fail to
do anything. I don't know why.
2001-10-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-stream-gtkhtml.c (mail_stream_gtkhtml_new): New class that
wraps writing to a GtkHTML stream so that we don't have to write
to an intermediate GByteArray.
* mail-display.c (on_url_requested): Use the new Camel->GtkHTML
stream - this means we don't have to chew up nearly as much
memory...yay!
(try_part_urls): Here too.
2001-10-22 Ettore Perazzoli <ettore@ximian.com>
* mail-mt.c (do_op_status): Don't free `clientid' as it's
uninitialized.
2001-10-22 Christopher James Lahey <clahey@ximian.com>
* message-list.etspec (Score): disable this column. Fixes Ximian
bug #12381.
2001-10-22 Ettore Perazzoli <ettore@ximian.com>
* mail-mt.c: #include "component-factory.h".
(do_op_status): Pass the component ID instead of the msg ID.
* component-factory.h (COMPONENT_ID): #define here instead of
`component-factory.c'.
(SUMMARY_FACTORY_ID): Likewise.
2001-10-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (format_mime_part): Don't wrap error text with
<blockquote>, this is done inside mail_error_write.
(handle_multipart_encrypted): If we get an exception trying to
decrypt the mime part, display an error rather than trying to
treat it as multipart/mixed.
* mail-callbacks.c (empty_trash): Confirm expunge.
* folder-browser.c (folder_browser_destroy): Move the folder sync
code along with a few other things from folder_browser_finalise()
into here instead.
(folder_browser_finalise): Moved some cleanup functions into
destroy.
2001-10-22 Dan Winship <danw@ximian.com>
PGP verification UI changes to make it not HTML spoofable.
* mail-format.c (handle_application_pgp): Remove this unused
hack.
(mail_format_mime_message): Initialize a fourth hash table, used
to keep track of fake MIME parts.
(mail_part_set_default_displayed_inline): New routine to set the
default disposition of a part (doesn't change it if the user has
already overridden it).
(format_mime_part): Wrap a blockquote around the error text (moved
here from mail_error_write since it doesn't apply in other cases).
(write_hr): Write a <hr> with appropriate padding between MIME
parts.
(write_one_text_plain_chunk): Write some plain text with
appropriate margins.
(handle_text_plain): Use write_one_text_plain_chunk. Update for
inline specials handler API change.
(fake_mime_part_from_data): Use the "fake_parts" hash to avoid
recreating the same fake parts again if the message is
redisplayed. Lets you toggle the shown/hiddenness of uudecode
parts, and do the new pgp verification thing for inline pgp
signatures.
(try_inline_pgp): Don't do any actual PGP handling here: Just
rewrite as a multipart/encrypted.
(try_inline_pgp_sig): Likewise, just do a multipart/signed (with
the x-inline-pgp-hack parameter set).
(try_uudecoding, try_inline_binhex): Update for API changes.
(handle_multipart_signed): Exciting and new. Use <object> to
create a button which the user must click to do the
verification. Change the formatting of the gpg output text a bit.
* mail-display.c (on_link_clicked): Remove x-evolution-decode-pgp
hack, which is no longer used.
(pixbuf_gen_idle): Add a hack for the PGP verification button.
(do_attachment_header, do_external_viewer): Split out of
on_object_requeested for clarity.
(do_signature): New routine to do the PGP verification button.
(on_object_requested): Now just dispatches to
do_attachment_header, do_external_viewer, or do_signature.
(mail_error_write): Don't do <blockquote> here. Fixed the problem
that was trying to fix elsewhere.
2001-10-22 Dan Winship <danw@ximian.com>
* mail-callbacks.c (transfer_msg): Fix these functions so they
don't crash evolution-mail. Too bad it still crashes in the
shell.
2001-10-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_url_requested): Use
mail_format_get_data_wrapper_text for text parts so we get free
charset conversion.
* mail-format.c (mail_format_get_data_wrapper_text): Renamed from
get_data_wrapper_text and now returns a GByteArray.
(handle_text_plain): Updated to use the new get_data_wrapper_text.
(handle_application_pgp): Same. Wow...also fixed a mem leak and
made a bit more efficient by doing so.
(handle_text_enriched): Here too. Also use string->len instead of
strlen (string->str).
(mail_format_raw_message): Same.
2001-10-22 <NotZed@Ximian.com>
* mail-callbacks.c (mark_all_as_seen): Instead of select_all()
then using the tree's selected nodes to iterate, just do it on the
folder which keeps the current selection. Fixes #3658.
2001-10-21 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c: Call the new move/copy_msg_cb's
* mail-callbacks.c (move_msg_cb): Renamed from move_msg.
(copy_msg_cb): Renamed from copy_msg.
(move_msg): The bonobo-ui-component callback.
(copy_msg): Same.
2001-10-21 <NotZed@Ximian.com>
* mail-vfolder.c (mail_vfolder_shutdown): Clear variables once
done, for debugging.
(mail_vfolder_add_uri, mail_vfolder_delete_uri): Dont do anything
if we're shutdown (context == NULL).
* component-factory.c (idle_quit): Move mail_vfolder_shutdown
here, it should be one of the last things shutdown.
* mail-format.c (handle_text_plain): Dont use (if (!p++), and then
check p!= later, since its now 1, oops. Fixes #13106, thought it
was a start of uuencoded stuff!
* folder-browser.c (on_right_click): Escape _'s before adding them
to menu from mailing list name, also remove some dead code that
someone forgot to remove when refactoring. #11307.
(folder_browser_is_drafts): Use the store's uri_cmp function to
compare to the drafts uri's.
(folder_browser_is_sent): Same. Slight cleanup for #11351.
2001-10-21 Dan Winship <danw@ximian.com>
* mail-callbacks.c (mail_generate_reply): Update for
e_msg_composer_add_messages_attachments arg change.
(do_forward_non_attached): Likewise.
2001-10-20 Jon Trowbridge <trow@ximian.com>
* mail-display.c (mail_display_new): Don't leak our
ESearchingTokenizer.
2001-10-20 Larry Ewing <lewing@ximian.com>
* folder-browser-ui.c: hook up zoom functions.
* mail-callbacks.h: add prototypes.
* mail-callbacks.c (zoom_in): added.
(zoom_out): added.
(zoom_reset): added.
2001-10-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Allow copy/move to/from vTrash
folders as well.
* component-factory.c (destination_folder_handle_drop): Properly
handle local vTrash folders.
2001-10-19 <NotZed@Ximian.com>
* mail-account-gui.c (build_auth_menu): Dont translate camel strings.
(mail_account_gui_setup): "
2001-10-19 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (destination_folder_handle_motion): Get
@folder_type here too [to match the changes in the
EvolutionShellComponentDnd interface]. Also, remove a debugging
message.
(destination_folder_handle_drop): Likewise.
2001-10-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Update to reflect API
changes to e_msg_composer_add_message_attachments().
(do_forward_non_attached): Same.
(providers_config): Oops, pass a GdkWindow instead of a GtkWindow.
2001-10-19 <NotZed@Ximian.com>
* mail-folder-cache.c (store_finalised): Free folders_uri.
(real_folder_deleted): If folder is deleted, remove it from the
hashtables.
2001-10-18 <NotZed@Ximian.com>
* subscribe-dialog.c (get_short_folderinfo_get): Remove the
register/unregister, they're already done above us.
* mail-vfolder.c (vfolder_adduri): Added remove flag - its not
adduri, its removeuri, its less typing than creating a removeuri.
(vfolder_adduri_do): Implement the remove flag.
(mail_vfolder_remove_uri): Changed to mail_vfolder_delte_uri, to
indicate its actually been deleted.
(mail_vfolder_add_uri): Added remove flag.
(rule_changed): When adding existing folders to a new rule, strdup
the list data.
(mail_vfolder_delete_uri): Dont do any work to remove the actual
folder from the vfolder (we'd have to look it up first), let the
vfolder remove it itself. Just update the rules.
* mail-folder-cache.c (store_finalised): Unhook from all events
when done.
(mail_note_store_remove): Remove a store from being noted.
(free_folder_info): Also if we have a folder, unhook all events.
Also remove the uri from vfolders.
(mail_note_folder): Remove warning about adding folders to stores
that aren't added yet - we might actually be removing the store.
* component-factory.c (mail_remove_storage): Call
mail_note_store_remove when we remove the storage.
2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (providers_config): Don't make the mail
settings dialog modal.
2001-10-17 Ettore Perazzoli <ettore@ximian.com>
* mail-account-gui.c (folder_picker_clicked): Pass the toplevel to
`evolution_shell_client_user_select_folder()'.
* mail-callbacks.c (transfer_msg): Likewise.
2001-10-18 <NotZed@Ximian.com>
* mail-send-recv.c (build_dialogue): call setup_send_data *after*
we've setup the global dialogue thingy.
(mail_send_receive): Instead of using static local to check for
re-running of dialogue, use a global, setup by build_dialogue.
These fix #12335.
(mail_send_receive): Dont assert dialogue is realized, it might
still be being built, so only show if it is realized.
2001-10-18 Dan Winship <danw@ximian.com>
* mail-mt.c (mail_call_main): Use G_VA_COPY to make this compile
on ppc again.
(do_call): Here too.
2001-10-17 <NotZed@Ximian.com>
* mail-folder-cache.c (store_folder_subscribed): Clone the
folderinfo before passing to async event.
(real_folder_created): Free when done.
(store_folder_unsubscribed):
(real_folder_deleted): And same here.
* mail-ops.c (mail_expunge_folder): Use the queued thread for
expunging folders.
2001-10-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): No longer need to copy the
description now that camel-exceptions have been fixed.
* subscribe-dialog.h (subscribe_dialog_show): Helper macro.
* subscribe-dialog.c (subscribe_dialog_run_and_close): Removed.
* mail-callbacks.c (check_send_configuration): Don't use
gnome_dialog_run_and_close() here, we can easily get away with
just using a gtk_widget_show().
(providers_config): Don't use a gnome_dialog_run_and_close() here
either. No longer need to use e_gnome_dialog utils.
(manage_subscriptions): Don't run_and_close().
2001-10-17 <NotZed@Ximian.com>
* mail-callbacks.c (empty_trash): Only empty trash on enabled
accounts, fixes #12821.
2001-10-17 Dan Winship <danw@ximian.com>
* mail-format.c (write_default_header): Make Reply-To bold too
since no one ever figures out why it's not currently.
2001-10-17 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c: Fix the typo.
2001-10-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (uid_cachename_hack): Lets put the UID cache in
~/evolution/mail/pop3 as this makes more sense than ~/mail/config
does. Perform checking to see what flavor cache-path the user is
on and compensate.
* message-list.c (on_cursor_activated_idle): Check that the
cursor_uid is non-NULL before emitting a "message_selected"
signal. Fixes bug #6015.
2001-10-16 Jon Trowbridge <trow@ximian.com>
* e-searching-tokenizer.c (e_searching_tokenizer_begin): Always
explicitly clear out the SearchInfo.
2001-10-16 <NotZed@Ximian.com>
* mail-folder-cache.c: Added an async_event handler to store_info.
(mail_note_store): Setup async event handler here.
(store_finalised): Flush out async events here.
(folder_changed): Use async event handler to emit event.
(mail_note_folder): Chagned, do most of the work in the calling
context, only do the corba stuff in main.
(store_folder_subscribed): Use async event, and do more work locally.
(store_folder_unsubscribed): Same.
(store_folder_deleted): Call store_folder_unsubscribed if we have
to do any work.
(store_folder_created): Call store_folder_subscribed if we have to
do any work.
(store_folder_unsubscribed): Ref store while busy.
(real_folder_deleted): And unref here.
(store_folder_subscribed): Reg store while busy.
(real_folder_created): Unref here.
(mail_note_folder): Ref folder while busy.
(real_note_folder): And unref here.
(mail_note_folder): Hook onto folder_deleted event.
(folder_deleted): Just mark this folder as no longer available.
* mail-session.c (register_timeout): Use mail_call_main instead of
proxy_event.
(remove_timeout): Same here.
* folder-browser.c (folder_changed): use the new mail_async_event
stuff.
(folder_changed_main): Remove old async event handling stuff.
(FOLDER_BROWSER_LOCK/UNLOCK): Removed.
(FolderBrowserPrivate): Removed too, sigh.
(folder_browser_set_message_preview): Return do nothing if we're
destroyed (message_list == NULL).
(folder_browser_search_query_changed): "
(folder_browser_toggle_preview): "
(folder_browser_toggle_threads): "
(folder_browser_toggle_hide_deleted): "
(folder_browser_set_message_display_style): "
(folder_browser_charset_changed): " All for #12613.
* mail-mt.c (mail_async_event_new, mail_async_event_emit,
mail_async_event_destroy): New functions to handle async events.
(mail_proxy_event, mail_proxy_event_id): Removed old functions for
async events.
(do_call): Add suport for MAIL_CALL_p_pp.
(mail_msg_free): Use mail_async_event instead of proxy_event.
* message-list.c (message_changed): Promote the message_changed to
a folder_changed and use main_folder_changed to process it.
(main_message_changed): Remove.d
(message_list_init): Setup async event handler.
(message_list_destroy): Remove async handler.
(folder_changed): Use async hanler to emit event in main loop.
(message_changed): Same.
* mail-mt.c (mail_proxy_event_id): New function to return the id
of the currently executing proxied event.
* folder-browser.h: Added private field.
* folder-browser.c (folder_changed): Keep track of tasks
outstanding in the tasks list, locked access.
(FOLDER_BROWSER_LOCK, UNLOCK): Macros to lock the folder browser
for poking about in diff threads.
(folder_browser_finalise): Wait for any outstanding takss to
finish before cleaning ourself up.
(folder_browser_destroy): Move the seen_id handling to finalise,
also add a loading_id handling code.
(main_folder_changed): Remove our running task when done.
2001-10-15 Larry Ewing <lewing@ximian.com>
* mail-display.c (mail_error_write): don't write strings longer
than they actually are.
2001-10-15 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_destroy): Remove the mark_seen
timeout.
2001-10-15 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (mail_generate_reply): don't apply the body
text in replys since we will just replace it anyway.
2001-10-15 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_unset_cb): Call
mail_vfolder_shutdown.
* mail-vfolder.c (mail_vfolder_shutdown): Unref all of our
VFolders.
* mail-folder-cache.c (real_note_folder): Remember to unref the
folder before returning if we have already noted this folder.
2001-10-15 <NotZed@Ximian.com>
* mail-session.c (get_password): Proxy get-password call to main
thread.
(forget_password): same for forget_password.
(get_filter_driver): and same for get_filter_driver, since it uses
gtk objects.
* mail-mt.c (mail_call_main): new generic interface for calling
stuff/proxying in the gui thread.
2001-10-14 Jon Trowbridge <trow@ximian.com>
* e-searching-tokenizer.c (e_searching_tokenizer_clone): Share
more state between the parent and its clones, so that our multiple
tokenizers don't get out of sync when we are rendering frames and
iframes. (Bug #11638)
2001-10-13 Jon Trowbridge <trow@ximian.com>
* e-searching-tokenizer.c (search_info_compare): Bad hacker!
Don't implicitly assume that utf8 characters are one byte in size!
(Bug #9520)
(e_searching_tokenizer_begin): As long as I'm touching those code:
don't increase the size of search matches. I'll fix the colors
later. (part of bug #11589)
2001-10-13 Dan Winship <danw@ximian.com>
* mail-callbacks.c (create_msg_composer): Don't emit a gtk warning
if the composer creation fails.
2001-10-12 Dan Winship <danw@ximian.com>
* message-list.c, message-list.h, message-list.etspec: Revert the
change to remove the Score column until Chris can fix ETable so
it's possible to remove a column without breaking everyone's
exisiting settings.
2001-10-12 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Don't ever create
the folder here. Wait until the shell has created it. Otherwise we get
loads of race conditions where the mailer can create a subfolder before
the shell has registered the parent.
2001-10-12 Chris Toshok <toshok@ximian.com>
* main.c (main): call e_passwords_init and e_passwords_shutdown.
* mail-session.h: add prototypes for
mail_session_{get,add}_password.
* mail-session.c (init): empty this out - we use e_passwords
instead of a local hashtable.
(get_password): use e_passwords_get_password and
e_passwords_add_password.
(forget_password): use e_passwords_forget_password.
(mail_session_remember_password): use
e_passwords_remember_password.
(mail_session_forget_password): use e_passwords_forget_password.
(mail_session_get_password): new function, use
e_passwords_get_password.
(mail_session_add_password): same, use e_passwords_add_password.
(mail_session_forget_passwords): use e_passwords_forget_passwords.
* mail-config.c (mail_config_write_on_exit): fix this up so it
works as desired with the e_passwords stuff.
2001-10-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_error_write): Convert URLS so we can get
clickable links.
* message-list.c: Removed score stuff.
2001-10-12 Jon Trowbridge <trow@ximian.com>
* mail-display.c (html_button_press_event): Store our listener id.
(popup_info_free): Disconnect our listener when we free the popup.
(Bug #11040)
2001-10-11 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (addrbook_sender): Listen for "destroy" events
from the control, so that we don't leave stray windows laying
around. (Bug #9101)
2001-10-11 <NotZed@Ximian.com>
* local-config.glade: Added a checkbox for body indexing.
* mail-local.c (mail_local_reconfigure_folder): Get index_body
widget.
(mail_local_folder_reconfigure): Add an 'index_body' argument &
implement. Dont do anything if nothing changed.
* openpgp-utils.c (openpgp_verify): Use e_iconv_open.
2001-10-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_forward_non_attached): Attach the message
attachments. Fixes bug #5439.
2001-10-11 Dan Winship <danw@ximian.com>
* mail-folder-cache.c (update_1folder): No longer need to pass
folder display name to storage update_folder methods.
(setup_folder, free_folder_info): Meaning we no longer need to
keep track of it.
* evolution-outlook-importer.[ch], evolution-mbox-importer.[ch]:
These copies are cruft. The real ones are in importers/.
2001-10-11 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (free_storage): Make sure the
service/storage are non-NULL.
* mail-callbacks.c (e_gnome_dialog_parent_destroyed): Call
gtk_main_quit.
(send_receive_mail): Don't use e_gnome stuff since this doesn't
need to be run using gnome_dialog_run_and_close().
(composer_send_cb): Same.
(edit_msg): Here too.
(resend_msg): And here.
(search_msg): Same.
(filter_edit): Here too.
(filter_edit): Don't use e_gnome_dialog_set_parent() because we
don't do gnome_dialog_run_and_close on this dialog.
(e_gnome_error_dialog_parented): Removed.
(e_gnome_ok_dialog_parented): Removed.
2001-10-10 Dan Winship <danw@ximian.com>
* mail-config.c (new_source_created): Fix up the logic here.
2001-10-10 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (mail_generate_reply): use new function to copy
the attachments from the source message. This still isn't perfect
but it should avoid the problems with headers being transfered.
This makes images in replies work again.
* mail-display.c (save_url): copy the data. We can't ref the byte
array and we can't free it so we have to copy it.
2001-10-10 <NotZed@Ximian.com>
* mail-ops.c (transfer_messages_transfer): IF the source and
destination folders are the same, do nothing. Oh, and return an
error, otherwise the shell goes and removes it anyway. Fixes a
rather serious bug with dnd of folders onto their current
location.
2001-10-09 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_part): ref the part.
(save_destroy_cb): new function to unref the part when we have
closed the dialog.
(save_url): fake a mime part so that we can save data urls without
extra effort. This is less sucky than it seems since it handles
filenames and ref counting with minimal fuss.
2001-10-09 <NotZed@Ximian.com>
* component-factory.c (owner_unset_cb): Disconnect from all the
signals we were listening to, so we dont try and do shit twice on
exit (one on unset_cb, one on destroy).
(create_component): Setup the signal handlers using a table, so
they're easier to disconnect on finish.
* mail-folder-cache.c (folder_changed): Ref folder so it hangs
around till we're done with it.
(real_folder_changed): Unref folder when we are done with it.
Should fix #11981.
2001-10-09 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (done_message_selected): Make sure the
mail-display is non-NULL.
2001-10-09 <NotZed@Ximian.com>
* mail-local.c (mlf_search_by_uids): Implement.
2001-10-09 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_message): Create a
chaqrset picker submenu in the View menu.
* mail-format.c (mail_format_raw_message): Pass the mail-display
to get_data_wrapper_text.
(get_data_wrapper_text): Use the user's override charset if one is
provided, otherwise user the user's default charset.
(handle_text_plain): Pass along the mail-display to
get_data_wrapper_text.
(handle_application_pgp): Same.
(handle_text_enriched): Here too.
(mail_get_message_body): Pass NULL as the mail-display to
get_data_wrapper_text since we don't have access to a
mail-display.
* mail-display.c (mail_display_set_charset): New function to set a
charset on the maildisplay. Once set, the message is redisplayed
using the new charset.
(mail_display_destroy): Free the charset.
* folder-browser.c (folder_browser_charset_changed): New callback
for when a user overrides the message charset.
2001-10-09 Dan Winship <danw@ximian.com>
* mail-callbacks.c (e_gnome_dialog_set_parent): Use
gtk_signal_connect_while_alive here so
e_gnome_dialog_parent_destroyed doesn't get called on an
already-destroyed dialog.
* mail-config-druid.c (*_prepare): Record which page we're
currently in.
(*_changed): Only update the druid buttons if we're the current
page. Fixes a problem that could make it impossible to get beyond
the first page of the setup wizard.
* mail-callbacks.c (mail_generate_reply): Revert the change to use
e_msg_composer_new_with_message. That has unwanted side effects.
(This commit re-breaks replying to HTML messages with inline
images.)
2001-10-08 Dan Winship <danw@ximian.com>
* mail-local.c (mlf_set_folder, mlf_unset_folder): Update for
folder_flags.
* folder-browser-ui.c (folder_browser_ui_add_list): Check
CAMEL_FOLDER_IS_TRASH flag rather than checking
CAMEL_IS_VTRASH_FOLDER.
* folder-browser.c (folder_browser_toggle_hide_deleted): Likewise
* message-list.c (message_list_set_folder): Likewise.
(message_list_set_hidedeleted): Remove redundant trash check.
2001-10-08 Jon Trowbridge <trow@ximian.com>
* mail-format.c (write_default_header): Write out the Bcc: header
when applicable. Fixes bug #5823.
2001-10-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (attachment_header): Convert the htmlinfo into
utf8. Fixes bug #11966.
2001-10-08 Dan Winship <danw@ximian.com>
* component-factory.c (create_view): For mailstorage folders,
connect to the control's "activate" signal, and don't try to
connect to the store.
(storage_activate): Instead, do it here, so if the connection
fails, or the user cancels, or whatever else, he can try again
later.
2001-10-07 Dan Winship <danw@ximian.com>
* mail-tools.c (mail_tool_do_movemail): Remove #ifndef
MOVEMAIL_PATH code, since the setting of that variable has been
meaningless for a while now, and the rest of the code DTRT whether
that code executes or not.
2001-10-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (pass_got): Fix a merge-conflict leftover.
2001-10-05 <NotZed@Ximian.com>
* folder-browser.c: reformatted the menu tables so they're a bit
more bloody readable.
* mail-folder-cache.c (mail_note_store): Hook into
subscribed/unsubscribed events. Only 'add/remove' folders from
the add/removed events if we aren't subscribed, otherwise use the
subscribed events. Rest of fix for #11831
2001-10-05 Jon Trowbridge <trow@ximian.com>
* mail-config.glade: Add toggle button to config menu to turn the
"confirm sending unwanted HTML" dialog on/off. (Bug 10794)
* mail-accounts.c (construct): Make said toggle button actually
work.
2001-10-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (e_gnome_dialog_set_parent): New convenience
function that not only sets the gnome-dialog's parent window but
also makes sure that the gnome-dialog closes when it's parent
closes.
(e_gnome_warning_dialog_parented): New conmvenience wrapper around
the libgnomeui version that also does the same thing as
e_gnome_dialog_set_parent.
(e_gnome_error_dialog_parented): Same.
(e_gnome_ok_dialog_parented): And again...
(e_gnome_ok_cancel_dialog_parented): And once again.
2001-10-05 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (mail_generate_reply): use
e_msg_composer_new_with_message rather than e_msg_composer_new.
This way we bring in all the attachment of the message we are
replying to.
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* message-list.c (message_list_setup_etree): Turn on
"uniform_row_height" argument.
2001-10-04 <NotZed@Ximian.com>
* folder-browser.c (update_status_bar): Show "nn sent" as total in
sent folder, rather than just 'total'.
* mail-folder-cache.c (update_1folder): Also show total message
count for sent_folder.
* folder-browser-ui.c (folder_browser_setup_property_menu): Do a
better job of setting up the name. Also de-sensitise when we
can't configure the folder.
2001-10-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (providers_config): Set the parent window as
the fb. This fixes bug #11723.
(filter_edit): Do the same thing here too and also to the warning
dialog.
(edit_msg): Set the parent on the warning dialog.
(resend_msg): And here.
(search_msg): Here too.
(confirm_expunge): Set the parent window on the dialog here too.
(save_msg_ok): Same here.
* mail-accounts.c (images_radio_toggled): Ignore the signal if the
radio button is not "on". This fixes bug #10532 because the on/off
signals don't always come in the off->on order.
* mail-ops.c (mail_send_message): Reduced some redundancy.
2001-10-04 Dan Winship <danw@ximian.com>
* mail-format.c (write_address): Fix so that an email address with
no name is once again just "foo@bar.com", not "<foo@bar.com>".
2001-10-04 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Only pass
CAMEL_STORE_FOLDER_CREATE when the shell will be creating the
folder.
2001-10-04 <NotZed@Ximian.com>
* mail-callbacks.c (configure_folder): If we're accessing a
vfolder uri, then popup the vfolder editor instead of trying the
mail local one.
* mail-vfolder.c (vfolder_edit_rule): Edit a vfolder by name.
2001-10-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Added some more NULL
checks.
2001-10-04 <NotZed@Ximian.com>
* component-factory.c (storage_remove_folder): Do the url
fragment/path -> folder name hack. Removing vfolders from shell
works now?
2001-10-03 <NotZed@Ximian.com>
* mail-send-recv.c (build_dialogue): Only build destination data
if we have destination != NULL. Fixes crash of bug #10835.
* folder-browser.c (folder_browser_config_search): Set 'to' ->
'recipient' data for search object. #6199.
* mail-local.c (local_storage_new_folder_cb): Handle vtrash case,
emit 'folder_created' event for the folder-cache to work, etc.
2001-10-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_write_authenticity): Don't use the wax-seal
icons for the pgp stuff anymore, use Jimmac's new icons instead.
2001-10-03 <NotZed@Ximian.com>
* mail-folder-cache.c (folder_changed): Dont wait for event to
finish before returning. This could however mean we process it
after things have vanished below us? Fixes another case of ctrl-d
deadlock.
* folder-browser.c (update_status_bar): If we have hide deleted
set, then dont count deleted messages in the 'total' messages
count. Fixes #6591.
* mail-ops.c (add_vtrash_info): If we have a fragment, override
that, rather than the path. Fixes #5251.
(remove_folder_get): Freeze/thaw around deleting all messages in
folder.
2001-10-03 Rodrigo Moya <rodrigo@ximian.com>
* importers/Makefile.am: add $BONOBO_GNOME_CFLAGS to make it work
with latest Bonobo
2001-10-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Pass an empty flags argument to
mail_transfer_messages - destination folder should already be
created by this point.
* folder-browser.c (message_list_drag_data_received): Pass an
empty flags argument to mail_transfer_messages.
(selection_received): Same.
* component-factory.c (xfer_folder): Pass the CREATE flag to
mail_transfer_messages() so that the dest folder gets created.
(destination_folder_handle_drop): Update for mail-ops API change.
* mail-ops.c (mail_transfer_messages): Now takes a dest_flags
argument that it passes along to mail_tool_uri_to_folder when
opening the destination folder.
2001-10-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_setup_do): Pass an empty flags argument
to mail_tool_uri_to_folder.
(vfolder_adduri_do): Same.
* mail-session.c (get_folder): Pass an empty flags argument to
mail_tool_uri_to_folder.
* mail-send-recv.c (receive_get_folder): Pass an empty flags
argument to mail_tool_uri_to_folder.
* mail-ops.c (get_folder_get): Pass the flags to
mail_tool_uri_to_folder.
(mail_get_folder): Now takes a flags argument.
(remove_folder_get): Pass an empty flags argument to
mail_tool_uri_to_folder.
(mail_send_message): Pass an empty argument flag to
mail_tool_uri_to_folder.
(transfer_messages_transfer): Same. Destination folder should
already be created by this time.
* folder-info.c (do_get_info): Pass an empty flags argument to
mail_tool_uri_to_folder.
* importers/evolution-mbox-importer.c (folder_created_cb): Pass
the CREATE flag here too.
(load_file_fn): And here.
(load_file_fn): And here too.
* importers/evolution-outlook-importer.c (load_file_fn): Pass the
CREATE flag to mail_tool_uri_to_folder.
* folder-browser.c (folder_browser_new): Pass an empty flags
argument.
(x_evolution_message_parse): Pass an empty flags argument to
mail_tool_uri_to_folder.
* component-factory.c (create_folder): Pass a CREATE flag to
mail_get_folder here too.
(owner_set_cb): And here.
(xfer_folder): Shouldn't need the CREATE flag here, so not passing
any flags.
(destination_folder_handle_drop): Same.
* mail-local.c (mail_local_store_add_folder): Pass a CREATE flag
to mail_get_folder.
(reconfigure_folder_reconfigure): Pass an empty flags argument to
mail_tool_uri_to_folder.
* mail-tools.c (mail_tool_uri_to_folder): Take a flags argument.
(mail_tool_get_local_inbox): Pass an empty flags argument to
mail_tool_uri_to_folder.
2001-10-02 Ettore Perazzoli <ettore@ximian.com>
* mail-account-gui.c (launch_signature_editor): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.
2001-10-01 Jon Trowbridge <trow@ximian.com>
* mail-display.c (on_url_requested): Make sure we aren't dealing
with a pathological message w/o a From: header.
(ebook_callback): Properly check that the address we queried
matches the address on the current message. (Bug #10038)
2001-10-01 Iain Holmes <iain@ximian.com>
* component-factory.c (component_factory_init): Check for errors.
* mail.h: Change prototype for evolution_folder_info_factory_init.
* folder-info.c (evolution_folder_info_factory_init): Return TRUE
or FALSE.
* mail-config.c (evolution_mail_config_factory_init): Return TRUE or
FALSE.
* mail-config.h: Change prototype for above.
2001-10-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (mail_vfolder_remove_uri): replace my_list_find()
== NULL with my_list_find() != NULL.
2001-10-01 Dan Winship <danw@ximian.com>
* component-factory.c (mail_load_storage_by_uri): create storages
for providers that are STORAGE and aren't EXTERNAL, rather than
"(STORAGE and REMOTE) or spool, maildir, or vfolder".
(mail_remove_storage_by_uri): Use the same rule here (which makes
it possible now to remove maildir and spool stores now, which
weren't properly special-cased before). Remove some CamelException
misuse.
* mail-config.c (new_source_created): Fix up the broken INBOX-
shortcut-generating assumption a little by only assuming that if
you call camel_store_get_inbox(), that its full_name is the same
as its path. (This happens to always be true for inboxes now, and
will be always true by definition at some point in the future.)
Now maildir stores get working Inbox shortcuts.
* mail-send-recv.c (get_receive_type): If PROVIDER_IS_STORAGE
then use SEND_UPDATE, if not, use SEND_RECEIVE.
* mail-local.c (local_provider): The local provider is EXTERNAL.
(The shell creates it.)
(mail_local_reconfigure_folder): Allow reconfiguring between
IS_LOCAL providers.
* mail-accounts.c (news_delete): Don't need to check the provider
flags here... we know nntp is a STORAGE.
2001-10-01 Dan Winship <danw@ximian.com>
* mail-local.c (mail_local_reconfigure_folder): Don't use
mail_tool_get_folder_name here since that function only existed to
be clever in a certain case that this is not.
(reconfigure_folder_free): Remove the dialog from the hash table
here so that it gets removed in the successfully-reconfigured case
too. Don't unref folder_out if it never got set.
(reconfigure_clicked): Remove the hash table code from here; it's
in reconfigure_folder_free now.
* mail-tools.c (mail_tool_get_folder_name): No longer used by
anything.
(mail_tool_get_folder_from_urlname): Also not used anywhere.
2001-10-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): Don't pass the CREATE
flag, we shouldn't ever need this...
2001-10-01 Larry Ewing <lewing@ximian.com>
* mail-identify.c (mail_identify_mime_part): if gnome-vfs returns
application/octet-stream with the magic check, use the filename
check instead since it at least has a chance of being useful.
2001-09-28 Dan Winship <danw@ximian.com>
* folder-browser-ui.c (fbui_sensitize_timeout): wrap a
bonobo_ui_component_freeze/thaw around all of the set_props so
they all update at once.
2001-09-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Don't create checkboxes for global
Threaded or Preview options as they are now removed.
2001-09-28 <NotZed@Ximian.com>
* component-factory.c (owner_set_cb): Setup vfolder storage before
all others.
* mail-local.c (mail_local_store_remove_folder): Emit
folder_deleted event.
(remove_find_path): Fix, compare against path, not full_name.
* mail-tools.c (mail_tool_uri_to_folder): Dont
vfolder_register_source anymore.
* mail-vfolder.c (rule_changed): Changed to access
mail_fodler_cahce to find out if the folder exist yet before
trying to open them, also use the cache as a cache so we dont have
to open the folder if its already been opened.
(vfolder_register_source, register_source): Removed.
(source_finalise): Removed,
(check_source): Removed. All handled through diff mechanism.
(mail_vfolder_add_uri): New function, records uri's of available
folders, and adds them to any active vfolders if required.
(mail_vfolder_remove_uri): New function, removes a uri from
available folders, and checks any rules to see fi they need
updating.
(vfolder_adduri): New async function to add a uri to all vfolders
that need it.
(store_folder_deleted): oops! free user, not rule!!
* mail-folder-cache.c: Add uri->folderinfo hashtable, and the
store from which they come into the store info struct.
Add uri to the folder_info.
(setup_folder): Store the uri in the folderinfo.
(setup_folder): And the uri in the folder_uri hashtable.
(mail_note_store): Store the store in the storeinfo, and setup the
folders_uri hashtable via the store's hash functions.
(setup_folder): Call mail_vfolder_add_uri to note this newly setup
folder uri.
(store_folder_deleted): Proxy call to main thread.
(real_folder_deleted): And tell the vfolder to remove this uri
from its folder list.
(setup_folder): Dont call vfolder_add_uri if noselect is set on
the uri.
2001-09-27 <NotZed@Ximian.com>
* mail-vfolder.c: Removed vfolder_info struct, vfolder_storage.
Neither used anymore.
2001-09-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_account_by_transport_url): Use
Camel to compare the urls rather than using e_url_equal which does
all sorts of funky shit that may not work in every case.
2001-09-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_provider_init): Setup the url_hash and
url_equal functions for the local provider.
* mail-account-gui.c (mail_account_gui_save): Add code here to
check to make sure that the Drafts and Sent folders are pointing
to valid urls. This is kinda nasty and only really solves the case
where the user changes, say, his imap server or
something. Unfortunately we still have the problem where if
account A's sent/drafts folders point to account B's store and the
user changes the url for account B.
* mail-config.c (mail_config_get_account_by_source_url): Use Camel
to compare the urls rather than using e_url_equal which does all
sorts of funky shit that may not work in every case.
2001-09-28 Dan Winship <danw@ximian.com>
* mail-mt.c (pass_got): Don't call
mail_config_service_set_save_passwd if we didn't find a service.
2001-09-27 Ettore Perazzoli <ettore@ximian.com>
* mail-config.c (add_shortcut_entry): Just add the shortcut to the
first group.
2001-09-28 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_list): Call
folder_browser_toggle_threads() here after setting the value. This
should fix bug #6415 and if it doesn't, then this whole deal is
just a lost cause.
* mail-mt.h: Added mail_msg_cleanup() prototype.
2001-09-28 Dan Winship <danw@ximian.com>
* mail-format.c (get_data_wrapper_text): Deal with
camel_mime_filter_charset_new_convert returning NULL. (Every other
call to it does, and something's wrong with iconv on the Sun right
now so it keeps failing.)
2001-09-27 Ettore Perazzoli <ettore@ximian.com>
* mail-mt.c (do_user_message): Always make the Cancel button the
last one.
2001-09-27 <NotZed@Ximian.com>
* mail-folder-cache.c (real_note_folder): No such event finalized!
Its finalize.
(mail_note_store): "
Fixed dan's comment a bit, info != NULL for folder_created, info==
NULL for changed.
2001-09-26 <NotZed@Ximian.com>
* mail-local.c (mlf_set_message_flags): Proxy the
set_message_flags call too. Doesn't fix the 'local folder counts
dont update' problem, but its more correct.
2001-09-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (mail_session_remember_password): Perform a
NULL-check. Hopefully fixes bug #7874.
2001-09-27 Dan Winship <danw@ximian.com>
* mail-offline-handler.c (service_is_relevant): A service needs to
be disconnected if it's remote, not already offline, and either
connected OR connecting.
(storage_go_offline): Don't put non-relevant stores offline. (Eg,
don't force an IMAP store which you hadn't already connected to to
connect and sync.)
(storage_go_online): Likewise, don't "reconnect" stores that
weren't connected before.
* mail-ops.c (set_offline_desc): Fix the message to say
"reconnecting" instead of "disconnecting" when appropriate.
(mail_store_set_offline): If offline is TRUE, call
camel_service_cancel_connect on the store. (We do this here
because we don't want the cancel_connect request to get queued up
behind a hanging connection attempt.)
2001-09-26 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: Added a "Description:" label and moved
the source_description and transport_description labels to
a more appropriate place.
2001-09-26 Christopher James Lahey <clahey@ximian.com>
* message-list.c (mlfe_callback): Check for the root node here.
Fixes Ximian bug #11029.
2001-09-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (do_get_pass): Change the wording of the password
dialog if we are getting a pgp passphrase so that users don't
misinterpret it to mean saving the passphrase forever.
2001-09-26 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (composer_get_message): strdup our "This
message contains invalid recipients" string, since it gets freed
later. And then don't leak the message string. (Bug #10877)
* mail-format.c (write_address): Use camel_address_format,
not camel_address_encode.
* mail-display.c (html_button_press_event): Decode our URL before
extracting the address to pop up contact info.
* mail-format.c (write_address): When writing out a mailto: link,
make sure we construct a valid URL w/ correct encoding. Make sure
our address is properly quoted, if necessary.
2001-09-26 Dan Winship <danw@ximian.com>
* mail-folder-cache.c: Add a big comment explaining unread message
counts so no one can mess them up again in the future. :-)
(update_1folder): If info->unread_message_count is -1, don't do
anything.
* component-factory.c (component_factory_init): warn and exit if
oaf_active_server_register returns OAF_REG_ALREADY_ACTIVE.
2001-09-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_read): Oops, translate the fake account
name to UTF-8.
2001-09-26 Christopher James Lahey <clahey@ximian.com>
* message-list.c (message_list_foreach): Use
e_tree_selected_path_foreach instead of
e_tree_selected_row_foreach here.
2001-09-27 Michael Meeks <michael@ximian.com>
* mail-config.c (mail_config_init): report the
exception on failure and abort quickly instead of hitting
a strange assert later.
2001-09-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (decode_pgp): Update to not send the
remember-passphrase option to the context, it doesn't need it
anymore.
(try_inline_pgp_sig): Same.
* mail-accounts.c (construct): The remember-passphrase option is
no longer there. This can now be set on the passphrase prompt
dialog.
(construct): Add confirm expunge options.
* mail-config.c (config_read): We no longer read-in the
remember-passphrase state because we no longer need it.
(mail_config_write_on_exit): We no longer save it either.
(mail_config_get_remember_pgp_passphrase): Removed.
(mail_config_set_remember_pgp_passphrase): Removed.
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): No longer do we
need to send the remember passphrase state to the pgp context.
(mail_crypto_pgp_mime_part_verify): Same.
(mail_crypto_pgp_mime_part_encrypt): Here too.
(mail_crypto_pgp_mime_part_decrypt): And here.
2001-09-25 Ettore Perazzoli <ettore@ximian.com>
[Patch for Automake 1.5 compatibility pointed out by Richard
Boulton <richard@tartarus.org>, as per #9258.]
* Makefile.am (CLEANFILES): Assign directly, not with `+='.
2001-09-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-folder-cache.c (update_1folder): The folder-info needs to
take priority over the folder because of the way IMAP works (which
is that it doesn't actually update the folders until you SELECT
them and so when you do get_folder_info(), it doesn't actually
SELECT the folders, it just STATUS's them).
2001-09-25 <NotZed@Ximian.com>
* folder-browser.c (folder_browser_destroy): Deal with destroy vs
finalise semantics. Only destroy widgets here.
(folder_browser_finalise): object finalise function, actually
unref/free all other objects here.
(folder_browser_class_init): Init the finalise hook.
(got_folder): Check if message_list == NULL -> we've been
destroyed before the thread got a chance to finish loading the
folder.
(folder_browser_is_drafts): Dont use a g_return_if_fail to return
in what could be a valid state of the object.
(folder_browser_is_sent): Likewise.
(folder_browser_copy): Do nothing if message_list == NULL.
* main.c (main): call mail_msg_cleanup() before leaving threads.
* component-factory.c (owner_unset_cb): Wait for all outstanding
operations to finish before setting up to quit.
(idle_quit): Wait for all outstanding ops to finish before
cleanup.
(unref_standard_folders): NULL out the standard folder before
unreffing it.
* mail-mt.c (mail_msg_wait_all): New function to wait for all
outstanding thread operations.
(mail_msg_cleanup): Destroy the io channels before we're
finished. Also wait for all outstanding threads first. Made
public.
(mail_msg_init): Dont call mail_msg_cleanup atexit automatically.
2001-09-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (get_data_wrapper_text): If the data wrapper
contains raw text, treat the contents as if they were in the
user's default charset and convert them to UTF-8.
* component-factory.c (owner_set_cb): Throw up a warning dialog if
we suspect the config database is corrupt.
* mail-config.c (config_read): If the account name is NULL, then
we have a corrupt config database most likely - so generate a fake
account name and set the corrupt but to TRUE.
(mail_config_is_corrupt): New function to find out if the config
is suspected of being corrupted.
2001-09-25 Iain Holmes <iain@ximian.com>
* mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount):
Check if the transport is NULL.
2001-09-25 Iain Holmes <iain@ximian.com>
* mail-display.c (link_menu): Remove the Save Link as (FIXME)
item.
2001-09-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (pass_got): Only cache the password for the service if
it has an entry in the account database. Fixes bug #10875.
2001-09-24 Christopher James Lahey <clahey@ximian.com>
* message-list.c (filter_date): Use e_strftime_fix_am_pm instead
of strftime.
2001-09-24 <NotZed@Ximian.com>
* mail-local.c (mls_get_folder): Removed unused variables.
* component-factory.c (storage_create_folder): Remove unused
variable.
* mail-format.c (write_default_header): Used to write a header
that we know about/normally print. Use a static header table to
index these.
(write_header): removed.
(default_header_index): Return the index of the default header.
(write_headers): Changed the way it writes headers a bit. Use
write_default_header or write_text_header directly. Also try and
use the header charset as a fallback if the header can't be
decoded using the locale charset.
2001-09-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (pass_got): Always cache POP and IMAP passwords, even
if the user didn't tell us to. Fixes bug #10569.
2001-09-21 <NotZed@Ximian.com>
* mail-mt.c (mail_msg_check_error): If we have an operation that
failed before, dont show the dialogue for the the new error. Also
use gtk_widget_show rather than invoking another main loop. Fix
for lazy people who like to leave their mailers running and go
home.
2001-09-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Use the mail-tools convenience
functions to remove and restore the X-Evolution headers.
(mail_update_subfolders): Removed.
2001-09-21 <NotZed@Ximian.com>
* mail-callbacks.c (mail_storage_create_folder, folder_created,
create_folders): All made redundant by new mail-folder-cache
code.
(delete_folders, folder_deleted): Uh, code that isn't used
anywhere. Removed.
* component-factory.c (storage_create_folder): Dont call
folder_created, let the folder_created event handle the update.
* mail-local.c (mail_local_store_add_folder): Use url path as
full_name, not shell path.
(mail_local_folder_construct): Remove path argument, and use the
full_name instead.
(mls_get_folder): Dont lookup folderinfo in cache. Like duh the
shell hasn't told me its there yet, smaaaart.
* mail-folder-cache.c (mail_note_store): Take a new argument
'done' that can callback when complete. Fixed callers
appropriately.
* mail-ops.c (mail_update_subfolders): Removed. Isn't used
anymore.
(mail_scan_subfolders): Remove, no longer used.
* mail-send-recv.c (receive_update_got_store): Remove call to
mail_update_subfolders.
2001-09-20 <NotZed@Ximian.com>
* mail-vfolder.c (check_source): Dont let drafts/outbox/sent be
added via a generic 'all local folders' rule.
* component-factory.c (got_folder): trigger a folder changed
event, so the folderinfocache stuff has a chance to see if this is
the outbox_folder or not.
* mail-folder-cache.c (update_1folder): If we have -1 unread
count, pass that as 0 to the shell so it doesn't go bolding.
(setup_folder): Same.
2001-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Only add the account
if it doesn't already exist in the config db.
* mail-config.c (mail_config_find_account): New convenience
function.
* mail-config-druid.c (wizard_finish_cb): Do not add the account
here as this is taken care of in mail_account_gui_save() since it
has to be able to set the default account.
* mail-config.c (mail_config_set_default_account): Don't allow the
index to become invalid.
* mail-account-gui.c (mail_account_gui_save): Add the account
before setting it as the default.
2001-09-20 <NotZed@Ximian.com>
* folder-browser.c (folder_browser_set_shell_view): Update the
status bar here, assuming we've just been activated.
* mail-ops.c (add_vtrash_info): Scan whole list, rather than
missing the last one. Also dont assume its always the last,
otherwise we could lose following folders.
2001-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): Don't "note" the folder
if we failed to get it.
2001-09-20 Iain Holmes <iain@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Set the sensitivity
of the edit buttons correctly.
2001-09-20 <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_register_source): Lock around
hashtable/list manipulation. Also dont try scan vfolder_hash if
it hasn't been setup yet.
(source_finalise): Lock around list access.
(rule_changed): Lock around hash access.
(context_rule_added): Lock around hash access.
(context_rule_removed): "
(rule_changed): Lock around list access.
(all): d(x) out debug printfs
* mail-local.c (storage_listener_startup): Fix for api change.
(local_storage_new_folder_cb): Dont skip over leading / in path.
(local_storage_removed_folder_cb): ditto.
* mail-folder-cache.c (create_folders): No longer pass prefix
between recursive calls - we have the path in the folderinfo.
(setup_folder): No longer take path arg, we get it from
folderinfo.
(mail_note_folder): No longer take path arg, we use
folder->full_name to key the folder table.
(mail_note_store): Consolidate note_store interface, pass storage
or corba_storage to it.
(mail_note_local_store): Removed.
(update_1folder): If its a vtrash folder, or the outbox_folder,
and we have a folder, then make the 'count' the total message
count, not unread messages count.
2001-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_store_add_folder): Set the folder info
path.
2001-09-20 <NotZed@Ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): Register vfolder sources
here.
* folder-browser.c (got_folder): Dont register vfolder sources
here.
* mail-ops.c (mail_get_folder): Add thread parameter. Fix callers.
(add_unmatched_info): Scan for unmatched name and re-title.
* mail-vfolder.c (vfolder_setup): Use the 'slow' queue for setting
up vfolders.
* mail-mt.c (mail_msg_init): Limit the maximum number of threads
on the 'new' thread to 10.
(mail_msg_init): Create a new queue 'slow' for doing slow
operations.
2001-09-20 Iain Holmes <iain@ximian.com>
* mail-display.c (mail_error_write): Add a <blockquote> to make
the error message look better.
2001-09-20 <NotZed@Ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): Dont special case file:
url's anymore.
* mail-local.c: Add real_path to MailLocalFolder.
(mail_local_folder_construct): Added path argument, setup
full_name == path, and real_path == full_name.
(mls_get_folder): First lookup folderinfo to confirm this folder
exists, then use that to properly construct the folder paths.
(mail_local_folder_reconfigure): Use real_path not full_name to
create the store uri.
(mlf_set_folder): Use real_path not folder_name to get real uri
path.
2001-09-19 <NotZed@Ximian.com>
* mail-folder-cache.c (setup_store): Use the wrong spelling of
finalised for the event hook.
(real_note_folder): Use the wrong spelling of finalised for the
event hook.
(free_folder_info): Free the full_name parameter.
(setup_folder):
(real_note_folder): Key the folderinfo table on full_name, not
path.
2001-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (save_messages_save): Convert all textual parts to
8bit before saving. Fixes bug #10388.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Oops,
don't free memory that we don't own.
2001-09-20 Dan Winship <danw@ximian.com>
* mail-config.c (evolution_mail_config_factory_init): No need to
have g_warnings here. If it's done properly, therapeutically,
there's no danger involved.
2001-09-19 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (mail_generate_reply): Truncate extremely long
subjects. (inspired by bug #9158)
* mail-tools.c (mail_tool_generate_forward_subject): Truncate
extremely long subjects. (bug #9158)
2001-09-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (receive_update_got_store): Here too.
* component-factory.c (create_view): Call mail_note_store()
instead of mail_scan_subfolders() here so that these folders get
hooked up with the unread count code.
2001-09-12 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Fix memory
leak.
2001-09-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Convert
the names to the locale charset.
2001-09-19 Dan Winship <danw@ximian.com>
* mail-callbacks.c (create_folders): Pass the actual unread
message count, not just whether or not it's > 0. Fixes ximian
9089.
2001-09-19 <NotZed@Ximian.com>
* component-factory.c: Added missing header.
* mail-local.c (mail_local_store_add_folder): Async load the
folder we just added, so it can update the folder counts in the
display. We just discard the folder afterwards?
* mail-ops.c (mail_get_folder): Use the queued thread to get
folders.
* General cleanup of mail debug printfs.
* mail-folder-cache.[ch]: Completely rewritten. Removed all calls
to the old code everywhere they were used. Nuff said.
* folder-browser.h: Add shell_view to folder_browser & api to set
it.
* folder-browser-factory.c (control_activate): Set the shell-view
on the folder_browser.
(control_deactivate): And clear it here.
* folder-browser.c (folder_browser_destroy): Unhook from changed
events on the folder before giving it away.
(got_folder): Hook onto the folder-changed events.
(folder_changed): Event hook proxy for folder_changed events
(main_folder_changed): And the main code version.
(update_status_bar): And the one that actually does the work.
(on_selection_changed): Also call update_status_bar() to update
the selection count.
(folder_browser_set_shell_view): Implement function to set the
shell_view on the folder_browser.
(folder_browser_destroy): Release the shell_view here too.
* mail-tools.c (mail_tool_uri_to_folder): Dont 'note' the new
folder if its from a file: url, this is handled by hte local store
(yeeruughck).
* mail-local.c (mls_init):
(free_info):
(mls_finalise): Setup init/finalise funcs for the folderinfo hash.
(local_storage_removed_folder_cb): re-enable.
2001-09-18 <NotZed@Ximian.com>
* mail-local.c (MailLocalStore): Add a hash table to store
uri<>folderinfo data.
(mail_local_store_add_folder): Add a new folderinfo to our hash.
(mail_local_store_remove_folder): Remove a folder by uri.
(storage_listener_startup): Add this store to those monitored by
the folder tree.
2001-09-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (do_get_pass): Make the title translatable, and also
use the account name when possible. Sorta fixes bug #6277.
2001-09-17 <NotZed@Ximian.com>
* mail-send-recv.c (get_receive_type): Function to get the real
receive tpe for ag iven url. IMAP/SPOOL/MAILDIR types just update
their info, dont download.
(build_dialogue):
(mail_receive_uri): Use function above to get the right receive
type.
2001-09-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_remove_xevolution_headers): Oops, forgot
about X-Evolution-Format.
(mail_tool_restore_xevolution_headers): Same.
2001-09-18 Dan Winship <danw@ximian.com>
* folder-browser.c (folder_browser_set_uri): Merged into
folder_browser_new: nothing ever changes the URI of an existing
folder browser any more.
(folder_browser_new): Make this take a uri argument and do the
work folder_browser_set_uri used to do, except that we set fb->uri
right away, so that if the folder browser's control is activated
before got_folder() gets called, then folder_browser_ui_add_list()
will have access to the correct uri for purposes of setting
ViewThreaded, etc. Fixes #4913.
(got_folder): Don't set fb->uri here since it will already have
been set. Don't call message_list_set_threaded, since it should be
a noop now (and if it's not, it would make the message list not
match the menu item).
* folder-browser-ui.c (folder_browser_ui_add_list): Remove some
code that was failing to work around the problems above.
* message-browser.c (message_browser_new): Pass uri to
folder_browser_new, remove call to set_uri.
* folder-browser-factory.c (folder_browser_factory_new_control):
Likewise. Also fix a s/destroy/unref/ in an error cleanup.
2001-09-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (get_password): Pass a 'cache-me' argument to
mail_get_password.
* mail-mt.c (pass_got): Make less confusing...
(mail_get_password): Now takes an argument 'cache' that allows our
caller to determine if the user wanted to cache his/her password
or not.
(pass_got): Set the cache option.
2001-09-18 Dan Winship <danw@ximian.com>
* mail-format.c (mail_format_raw_message): Call
mail_content_loaded here rather than blocking if the message data
isn't available.
2001-09-17 <NotZed@Ximian.com>
* mail-ops.c (mail_get_folderinfo): Get folderinfo 1 at a time
rather than all at once.
2001-09-17 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Unsubscribe from
the folder before deleting it. Also, use the url's path instead of
the shell's path since IMAP doesn't necessarily have to use "/" as
the dir sep.
* mail-ops.c (remove_folder_get): If the store supports
subscriptions, make sure to unsubscribe from the folder before
deleting it.
2001-09-17 <NotZed@Ximian.com>
* mail-local.c (storage_listener_startup): Setup global
corba_storage variable.
(mls_get_folder): Set 'update lstorage' on the newly opened
folder.
2001-09-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (invisible_selection_get_callback): Do nothing if
the selection is NULL? Maybe this is the cause of bug #6817.
* mail-config.c (mail_config_folder_to_cachename): Go back to
generating the cachename ourselves, but continue doing it the way
the dfault implementation of camel_folder_get_uri worked.
2001-09-16 Christopher James Lahey <clahey@ximian.com>
* message-list.c (ml_get_node_by_id): Made save_id const here.
2001-09-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (pixbuf_gen_idle): Don;t destroy the pixbuf
loader, unref it instead.
* mail-config.c (mail_config_folder_to_cachename): Use
camel_folder_get_uri().
2001-09-15 <NotZed@Ximian.com>
* mail-vfolder.c: Major rewrite of most of the guts, handle
changes based on signals and events, etc. Use the main storage
handling code that imap uses, etc.
* mail-tools.c (mail_tool_uri_to_folder): Dont special case
vfolder: anymore.
* component-factory.c (owner_set_cb): use vfolder_load_storage(),
new function to setup vfolder storage, after interaction has been
enabled only. This might need some tweaking ...
(storage_remove_folder): Removed all the folder lookup stuff.
Just delete the folder based on the path passed in. There should
be no reason this wouldn't work, right?
2001-09-14 <NotZed@Ximian.com>
* mail-ops.c (get_folderinfo_get): Only add vtrash folder info, if
store supports vtrash.
* component-factory.c (mail_load_storage_by_uri): Let 'vfolder'
stores show up too.
2001-09-13 <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_uri_to_folder): Open a vfolder then set
its expression, since name?query open method is removed.
2001-09-14 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (fe_root_value_at): Return the cached value
of camel_service_get_name so that we don't leak memory.
(fe_real_value_at): Don't strdup the node's name.
(folder_etree_construct): Set the service_name.
(fe_destroy): Free the service_name.
* mail-ops.c (add_vtrash_info): Free the temporary path variable
here.
* subscribe-dialog.c (store_data_new): Added a refcount variable
so set the refcount to 1.
(sd_got_store): Unref the store-data.
(store_data_async_get_store): Ref the store-data.
(store_data_ref): New function.
(store_data_unref): New function.
(subscribe_dialog_destroy): Instead of freeing the store-data
here, unref it instead. We may just have an async function
running. Set the callback function to NULL so that when the
(remaining) async functions finish, they become no-ops.
* mail-send-recv.c (build_dialogue): Revert my bar_destroy code
and replace it with dialog_destroy instead.
* mail-ops.c (mail_send_message): Append a message to any
exception we get appending to any folders after having sent the
message successfully saying that the message was sent successfully
so the user doesn't misinterpret the error.
2001-09-13 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (composer_get_message): Fixed double-freeing of
EDestination vector when sending html mail to people who don't
necessarily want it. Fixes bug #9848.
2001-09-13 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (get_short_folderinfo_desc):
(get_short_folderinfo_get):
(get_short_folderinfo_got):
(get_short_folderinfo_free):
(subscribe_get_short_folderinfo): Modified to take a FolderETree
instead of a CamelStore (since the CamelStore is inside the
FolderETree anyway) so that we could ref the ETree to prevent a
race condition. Should fix bug #9827.
* mail-format.c (try_inline_pgp_sig): Make sure that the
charset_filter is non-NULL before using it since iconv may fail.
2001-09-13 Larry Ewing <lewing@ximian.com>
* mail-tools.c (mail_tool_quote_message): free the credits string.
2001-09-12 <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_remove_cb): Fixed the remove callback
prototype, and return the result properly using the listener.
(vfolder_uri_to_folder): Always use the same store uri, so we dont
create a new store for each folder.
2001-09-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write_on_exit): Save transport
passwords too. This fixes bug #3020.
2001-09-11 Dan Winship <danw@ximian.com>
* mail-folder-cache.c (mail_folder_cache_note_folderinfo): Don't
set the folderinfo's unread count to 0 when camel reports -1,
since that may overwrite a valid unread count from before.
(get_folder_info): Do it here instead when first creating a new
folderinfo structure.
Should fix bug #1756.
2001-09-11 Larry Ewing <lewing@ximian.com>
* mail-account-gui.c (menu_file_save_cb): call menu_file_save_error
when there is an exception while saving.
(menu_file_save_error): pop up a dialog telling the user the file
has not been saved.
2001-09-10 <NotZed@Ximian.com>
* mail-local.c (mail_local_reconfigure_folder): Dynamically create
the folder type list from camel.
(reconfigure_clicked): And change code to handle changes.
2001-09-10 <NotZed@Ximian.com>
* merged mail_local patch from peterw. Many changes.
2001-09-10 Iain Holmes <iain@ximian.com>
* mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Add a
none account if the url is empty.
2001-09-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Don't use
new_with_sig_file, that function no longer exists.
(forward_get_composer): Same here.
2001-09-10 Zbigniew Chyla <cyba@gnome.pl>
* mail-config.c
(add_shortcut_entry): Marked string for translation.
(new_source_created): Ditto.
* mail-send-recv.c
(format_url): Marked strings for translation.
(build_dialogue): Ditto.
2001-09-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Hide the S/MIME frame
if we don't support S/MIME.
* mail-send-recv.c (build_dialogue): Attach to the destroy event
for each progressbar using bar_destroyed as the callback.
(bar_destroyed): New callback to unregister the timeout and set
the send-info's bar member to NULL so we don't try to update a
destroyed progressbar.
* mail-callbacks.c (mail_generate_reply): Pass along the right
string, this fixes bug #9518.
* mail-account-gui.c (save_service): Don't save the authmech if
the username doesn't exist. Fixes bug #9474.
* mail-callbacks.c (do_edit_messages): Remove some mailer-set
headers. Fixes bug #9462.
2001-09-10 Dan Winship <danw@ximian.com>
* mail-callbacks.c (composer_get_message): Fix obvious dumb
mistake in previous commit that made it *always* complain you had
invalid recipients.
2001-09-09 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (composer_get_message): Complain if we are
trying to send to invalid recipients. (Bug #8875)
2001-09-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (evolution_mail_config_wizard_factory_fn):
We need to initialize all of the struct fields or else god knows
what will happen later when we try to use 'em. Also set a destroy
function for the MailConfigWizard so we don't leak it.
2001-09-08 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Added.
Shows a (hopefully) informative dialog warning you that some
recipients might not want HTML mail (who are listed), and gives
the option to cancel sending. (FIXME: The wording of this dialog
could use some work.)
(composer_get_message): Check if we are sending HTML to someone
who might not want it, and raise the dialog if we are. Use our
new destination-vector based api when talking to the composer.
Touch our destinations here, boosting their use scores. This is
the right place for this to happen --- closer to the end of the
sending process, where incorrect/artificial use score inflation is
less likely to occur.
* mail-config.c (config_read): Added
/Mail/Format/confirm_unwanted_html key. This flag determines
whether or not we want to see the warning dialog when we send HTML
mail to contacts who don't want it. Default is TRUE.
(mail_config_write_on_exit): Write out the confirm_unwanted_html
key.
(mail_config_get_confirm_unwanted_html): Added.
(mail_config_set_confirm_unwanted_html): Added.
2001-09-08 Dan Winship <danw@ximian.com>
* mail-display.c (mail_display_destroy): Unref the invisible,
don't just destroy it.
2001-09-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_write_authenticity): Give the full path of
the wax-seal icons.
(try_inline_pgp_sig): Convert the charset from UTF-8 to whatever
charset it should be. Now takes a CamelMimePart argument as well.
(try_uudecoding): Now takes a part argument as well.
(try_inline_pgp): Here too.
(try_binhex): And finally here.
(handle_text_plain): Pass along the mime part to the try_*
functions.
2001-09-06 Chris Toshok <toshok@ximian.com>
* component-factory.c (notify_listener): new function, to notify
the bonobo listener in remove_folder/create_folder.
(storage_create_folder): match EvolutionStorage create_folder
signal's signature.
(storage_remove_folder): match EvolutionStorage remove_folder
signal's signature.
2001-09-06 Dan Winship <danw@ximian.com>
Fix a bunch of replying/forwarding-related formatting bugs.
2749 - Message text not included in reply, but html attachment is
4294 - "forward inline" should quote the same headers as the
normal mail display
6100 - Reply to a forwarded email displays email headers
7255 - Replying to HTML message
7527 - replying to forwarded message w/ attachments does the wrong
thing
* mail-format.c (mail_get_message_rfc822): New function to get
message headers and body together, for inline forwards, or replies
containing attached messages.
(mail_get_message_body): Redo this to always return HTML, but keep
the "want_plain" flag, to decide whether to return HTML that looks
like HTML or HTML that looks like plain text. Use
mail_get_message_rfc822 to handle attached message/rfc822 parts.
Don't include the text of vcard or icalendar attachments. Don't
fail to include text parts just because we found an HTML part.
(Since we're always returning HTML now, this doesn't cause
problems any more.)
* mail-tools.c (mail_tool_quote_message): Simplify greatly.
mail_get_message_body always returns HTML now, and we let it take
care of prepending "> "s too. We then let GtkHTML deal with
converting the HTML to plain text if the user wants to reply in
plain text.
(mail_tool_forward_message): Simplify this a ton too: parts of it
are moved into mail_get_message_rfc822 and parts are now
unnecessary.
* mail-callbacks.c (do_forward_non_attached): Call
mail_tool_forward_message here always, and let it do the "> "
quoting in the "quoted" case, so that we get the headers too when
forwarding quoted. Related to bug #4294.
2001-09-05 Dan Winship <danw@ximian.com>
* mail-display.c (launch_cb): the "command" of a
GnomeVFSMimeApplication can include arguments as well. Deal with
that. Fixes support for CodeWeavers' CrossOver Plugin.
2001-09-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_remove_account): Adjust the
default_account index correctly.
2001-09-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_accounts): Added a g_assert to
make sure that config wasn't NULL. This is meant to help debug bug
#4911 and friends.
* component-factory.c (owner_set_cb): Do not mail_config_init()
here as we've already called this in main() in main.c.
2001-09-05 Ettore Perazzoli <ettore@ximian.com>
[Fix #958, ShellComponents should not be created by factories, for
the mailer case.]
* GNOME_Evolution_Mail.oaf.in: Remove the
GNOME_Evolution_Mail_ShellComponentFactory.
* component-factory.c: Changed to not use a factory.
(COMPONENT_FACTORY_ID): Removed.
(COMPONENT_ID): New.
(idle_quit): Don't unref the component_factory.
(create_component): Renamed from `component_fn'. Take no args.
(component_factory_init): Create the component with
`create_component' and register it on OAF.
2001-09-06 Radek Doulik <rodo@ximian.com>
* everywhere updated for new mail_content_loaded definition
(prototype)
2001-09-05 Radek Doulik <rodo@ximian.com>
* mail-display.c (mail_display_redisplay): increase
redisplay_counter
(try_part_urls): new helper function
(try_data_urls): ditto
(load_content_loaded): if it has stream handle available and if
it's still valid, it writes to this stream instead of
redisplaying, uses try_part_urls and try_data_urls
* mail-display.h: added redisplay_counter to MailDisplay, I use
it in load_content_loaded to be sure that there wasn't any
redisplay and that remembered handle is still valid
* mail-display.c (on_url_requested): don't end stream with error
if part is not loaded yet
(on_url_requested): don't end stream in cases when we are going to
load image using http
(stream_write_or_redisplay_when_loaded): new helper function,
which is extracted from mail_display_redisplay_when_loaded. it's
extended to handle gtkhtml stream writting
(mail_display_redisplay_when_loaded): use
stream_write_or_redisplay_when_loaded
(mail_display_stream_write_when_loaded): new function, uses
stream_write_or_redisplay_when_loaded
struct _load_content_msg: added handle, url and redisplay_counter
fields
* mail-format.c (mail_content_loaded): added redisplay, url and
handle parameter for case when we are loading image content and
want it write to stream instead of redisplaying
2001-09-05 Ettore Perazzoli <ettore@ximian.com>
* message-browser.c (message_browser_new): s/Evolution/Ximian
Evolution/.
2001-09-04 Ettore Perazzoli <ettore@ximian.com>
[Fix #7542, "Crash Afer Closing".]
* component-factory.c (owner_unset_cb): NULL the
global_shell_client as the first thing here. Otherwise we might
get into a slight race that causes the shell to crash. [Still, of
course the shell shouldn't crash, but I haven't been able to track
that down yet.]
2001-09-04 Zbigniew Chyla <cyba@gnome.pl>
Fixes #7251
* mail-ops.c (add_vtrash_info): Mark "Trash" with U_(), not _().
2001-09-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (fetch_mail_fetch): Unref the source folder here
because it might be a POP folder. We do this because on store
finalize, we now try to disconnect cleanly which means that we may
block.
* mail-send-recv.c (build_dialogue): Fix capitalization. Fixes bug
#7486.
2001-09-04 Peter Williams <peterw@ximian.com>
* mail-local.c (mlf_init): Remove accidentally left-in "choke on
this" preprocessor thingie.
(mail_local_folder_reconfigure): Instead of creating our own local
exception, just assert that ex != NULL.
(*): Staticize everything that can be and remove some obnoxious
prototypes.
2001-08-31 Peter Williams <peterw@ximian.com>
* mail-local.c (mail_local_reconfigure_folder): Use (NULL, NULL)
as the arguments to g_hash_table_new instead of g_direct_foo.
Instead of checking the URI, check MAIL_IS_LOCAL_FOLDER (fb->folder)
to check whether we can reconfigure the folder. Instead of
gnome_dialog_run_and_close, use gnome_dialog_run...
(reconfigure_clicked): And deal with removing the hash table
elements here.
(local_storage_new_folder_cb): Set the folder's name to the
displayName to i18nize correctly (after shell patch is applied).
2001-08-30 Peter Williams <peterw@ximian.com>
* mail-local.c: Rewrite as a more complete CamelStore.
* component-factory.c (create_folder): We can now chuck out most
of this function and just call mail_get_folder.
(xfer_folder_done): If we succeeded in moving the messages, now
delete the source folder as we should be.
(xfer_folder): In order to do so, create a new xfer_folder_data
struct that records the value of 'remove_source' Fix a leak by
unreffing the source folder.
* mail-ops.[ch]: We no longer need the mail_new_folder operation.
* folder-browser.[ch]: Don't need the 'reconfigure' member
anymore, because the loaded folder's URL doesn't change.
(do_message_selected): Don't check it
(on_right_click): Same.
(folder_browser_set_uri): Same.
(got_folder): Same.
2001-08-31 Zbigniew Chyla <cyba@gnome.pl>
* mail-vfolder.c (vfolder_create_storage): Marked string for
translation (with U_).
2001-08-28 Zbigniew Chyla <cyba@gnome.pl>
* message-list.c (e_mail_address_compare): Use g_utf8_collate
instead of g_strcasecmp for comparing names.
(subject_compare): Replaced g_strcasecmp, isspace, var++ with
UTF-8 counterparts.
2001-08-30 Iain Holmes <iain@ximian.com>
* importer/evolution-mbox-importer.c (load_file_fn): Check if it's
a folder, if so, create a folder.
(process_item_fn): If it was a folder created, just finish up
importing
2001-08-29 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c: Turn off debugging, remove
spewage.
(process_item_fn): Notify the importer if the folder isn't opened
or created yet.
(load_file_fn): Allow the function to continue if the folder is
being created.
2001-08-30 Peter Williams <peterw@ximian.com>
Due to the introduction of mail_folder_cache_remove(), we can no
longer assume that mail_folder_info's always exist, so we need to
robustify a lot of this.
* mail-folder-cache.c (folder_browser_destroyed): New
function. Called when the folder browser is destroyed -- analogous
to camel_folder_finalized.
(mail_folder_cache_note_fb): Hook it up here.
(struct _mail_folder_info): Add a member, mail_info_id, that
records the get_mail operation's id, so that we can cancel it if
we need to.
(get_folder_info): Initialize it here.
(get_mail_info_reply): Clear it here.
(mail_folder_cache_remove_folder): If necessary, cancel it here.
(mail_folder_cache_note_folder): Check it here before starting a
new operation, just in case.
(update_message_counts_main): Take a URI instead of a
mail_folder_info *, in case the MFI has gotten destroyed.
(update_message_counts): Take a quark of the URI instead of a
mail_folder_info *, for the same reason. We use a quark instead of
an allocated gchar * because figuring out when to free the string
gets tricky. Then go from quark -> URI string -> MFI. Return if
the folder is no longer valid, because this indicates that the MFI
was removed before this signal got called. Pass a string to
update_message_counts_main instead of an MFI.
(camel_folder_finalized): Don't bother unhooking the signals here.
Same change as above, but don't bother checking for a valid folder
because we're about to make it invalid anyway.
(message_list_built): Analogous to the above, except with the
FolderBrowser instead of the CamelFolder.
(selection_changed): As above.
(folder_browser_destroyed): As above.
(struct get_mail_info_msg): Instead of taking a mail_folder_info
*, take a URI, for reasons explained above.
(get_mail_info_receive): Go from URI -> MFI before doing anything.
(get_mail_info_reply): Same.
(get_mail_info_destroy): Free the URI.
(get_mail_info): Take a URI and return the message id so that it
can be cancelled if necessary.
(mail_folder_cache_remove_folder): Disconnect from signals and
events before removing.
(mail_folder_cache_note_folder): Use a GQuark instead of the
mail_folder_info * as the user_data.
(mail_folder_cache_note_fb): Same.
(mail_folder_cache_note_folderinfo): Little formatting change.
2001-08-30 Jeffrey Stedfast <fejj@ximian.com>
* message-browser.c (message_browser_message_loaded): Fixed a
memory leak.
(message_browser_new): Added a comment as to why , after
reparenting, we do not unref the mail_display.
(message_browser_destroy): Don't call gtk_widget_destroy() on the
message_list here.
2001-08-30 Peter Williams <peterw@ximian.com>
* mail-ops.c (remove_folder_get): Instead of removing the folder
from the folder cache here...
(remove_folder_got): ... do it here, in the main thread.
2001-08-29 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (composer_get_message): When calling
e_msg_composer_get_message, pass in TRUE for the 'sending' arg.
(Part of the fix for bug #8332)
2001-08-29 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c: Fix the pixmap for /commands/MessageUndelete.
* component-factory.c (owner_set_cb): Toss in a call to
mail_config_init () cause it might contribute to solving
bug 4911, and it won't hurt.
2001-08-28 Peter Williams <peterw@ximian.com>
* component-factory.c (owner_unset_cb): Disable interaction once
the shell has quit.
(create_view): Instead of
folder_browser_factory_new_control ("", corba_shell) when looking
at a mailstorage folder, use create_noselect_control().
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* mail-local.c: Match the studlyCapsification of
shell/Evolution*.idl.
* mail-config-druid.h: Change type of `event_source' from
`Bonobo_EventSource *' to `Bonobo_EventSource'.
* mail-accounts.c (mail_delete): Remove unused local variable
`label'.
* folder-info.c (do_get_info): `#if 0' unused variables.
2001-08-27 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (mail_generate_reply): Check if we are trying
to reply to a message with no From: field, and try to do something
graceful in that case. (Bug #7028)
* mail-display.c (ebook_callback): Add paranoid checks for the
case of a message with a From: field. (Also maybe bug #7028)
2001-08-27 Iain Holmes <iain@ximian.com>
* mail-config-druid.c (druid_finish): Free the list and hash table.
(druid_cancel): Free the list and hash table.
2001-08-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Set the source and
transport description labels.
(transport_type_changed): Set the transport description label.
(source_type_changed): Set the source description label.
* mail-tools.c (mail_tool_make_message_attachment): Remove
X-Evolution* headers.
(mail_tool_remove_xevolution_headers): New function to convenience
removing the X-Evolution headers.
(mail_tool_restore_xevolution_headers): New convenience function
to restore the X-Evolution headers.
(mail_tool_destroy_xevolution): New function to cleanup the
structure.
(mail_tool_forward_message): Remove and restore the X-Evolution
headers here too.
2001-08-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (receive_update_got_store): If the store is not
connected, scan it's subfolders first.
* mail-ops.c (report_status): Call va_end() so LinuxPPC doesn't
have a caniption.
2001-08-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (launch_cb): Use the new e_mkdtemp function.
* folder-browser.c (message_list_drag_data_get): Use the new
e_mkdtemp function.
2001-08-24 Ettore Perazzoli <ettore@ximian.com>
[Fix #8024, Empty strings marked for translation.]
* component-factory.c: Don't mark empty strings for translation.
Rather, give descriptions and display names to types "mailstorage"
and "vtrash".
2001-08-24 Peter Williams <peterw@ximian.com>
* mail-ops.c (remove_folder_get): Save the folder's full_name,
unref it, and *then* unref the store, so that the folder has been
closed before it gets deleted.
2001-08-24 Peter Williams <peterw@ximian.com>
* mail-config.c (add_shortcut_entry): Instead of using the length
of the shortcuts list as the index for the shortcut, use -1, which
means "last".
* mail-config-druid.c (druid_finish): Remove the account adding
stuff since that happens in wizard_finish now.
* mail-config.c (add_new_storage): New function. Add a
MailConfigAccount to the shell as a storage.
(maybe_add_shortcut): Renamed to new_source_created.
(new_source_created): Call add_new_storage here.
* component-factory.c (mail_remove_storage_by_uri): Don't warn if
the storage isn't remote... no point in making the caller do extra
work.
2001-08-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_thread_list): Don't let the uri
be an empty string (how the fuck is this even happening in the
first place??).
(mail_config_get_thread_list): Same.
(mail_config_set_show_preview): And here.
(mail_config_get_show_preview): And finally here.
2001-08-23 Larry Ewing <lewing@ximian.com>
* mail-search.c (mail_search_construct): attach to the destroy
handler to reset the tokenizer.
(dialog_destroy_cb): reset the tokenizer here so that destroying
the dialog with the window manager still clears the hilighted
items.
2001-08-23 Peter Williams <peterw@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Eek, let the user create
new accounts if old_account == NULL.
2001-08-23 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (destination_folder_handle_drop): Check to
make sure we actually have drag data.
* folder-browser.c (message_list_drag_data_received): Check to
make sure we have valid data.
2001-08-21 Christopher James Lahey <clahey@ximian.com>
* Revert fix for Ximian bug #6995.
2001-08-23 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (maybe_update): Record the timeout_id so we
can cancel it if the mail_folder_info is later freed. Also obviates
the use of the _UPDATE_QUEUED flag.
(mail_folder_cache_remove_folder): Cancel the timeout if we need to.
Lock around the hash table operations. Free mfi itself. Add debugging
spew.
(get_folder_info): Initialiae the timeout_id to 0.
2001-08-22 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c (ask_confirm_for_only_bcc): Provide alternative
text for this dialog for the case when a message has only Bcc
recipients because of a hidden contact list's addresses being
moved from To/Cc to Bcc.
(composer_get_message): Try to detect when our message has only
Bcc recipients because of moving addresses around due to a hidden
contact list, and show the dialog with the revised wording in this
case.
2001-08-22 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (create_view): Don't blindly make all vtrash
folder types have a uri of vtrash:file:/, instead only make it use
vtrash:file:/ if it's a file: uri, else use physical_uri.
2001-08-22 jacob berkman <jacob@ximian.com>
* mail-display.c: rework how the e-card-popup thing has its life
managed. we now hide the window on the Hide event and destroy it
on the Destroy event emitted from its event source
2001-08-22 Peter Williams <peterw@ximian.com>
* mail-send-recv.c (set_send_status): We don't need to escape this
for printf'ing.
2001-08-22 Peter Williams <peterw@ximian.com>
Prevent the user from creating two accounts with the same name.
* mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount):
Abort if the account has the same name as another account.
* mail-account-gui.c (mail_account_gui_save): Don't let the user
save if the account has the same name as another account.
* mail-config-druid.c (management_check): Disable the next button
if the account name is the same as a preexisting account.
(construct): The only part of 'pages' that was being used was the
name. 'wizard_pages' now has the callbacks, while 'pages' is just
an array of char *'s.
(wizard_finish_cb): Save the account first because that's the
right way, and try to honor mail_account_gui_save's return value.
* mail-config.glade: Add a label noting that you're not allowed to
create two accounts with the same name.
2001-08-22 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c (fbui_sensitize_timeout): Check for NULL uic
here as well.
(fbui_sensitize_items): Up the timeout interval to 110 ms.
2001-08-21 Peter Williams <peterw@ximian.com>
* mail-account-editor.c (apply_changes): Honor the return value of
mail_account_gui_save.
* mail-ops.c (sync_folder_desc): Say which folder is getting
saved.
2001-08-21 Dan Winship <danw@ximian.com>
* mail-identify.c (mail_identify_mime_part): Don't trust gnome-vfs
when it says "text/plain" if gnome_vfs_mime_type_from_name says
something different. Fixes a problem with recognizing icalendar
attachments labeled "application/octet-stream". Also, don't bother
asking gnome-vfs about winmail.dat attachments, since it will
often claim that they're MPEGs due to some mis-magic.
2001-08-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (mail_session_forget_password): zero-ize the
password before freeing.
(forget_password): Same.
2001-08-21 Peter Williams <peterw@ximian.com>
* message-list.c (message_list_set_folder): Don't sink the extras
since _set_folder can get called more than once (on reconfigure.)
(message_list_destroy): So just unref the extras here.
* mail-send-recv.c (build_dialogue): Treat the spool provider like
IMAP: update instead of performing an explicit receive.
2001-08-21 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c (fbui_sensitize_items): Rename to
fbui_real_sensitize_items. Now we queue a change and set up a
timeout, making sure weed out redundant changes, fixing flicker.
(fbui_sensitize_timeout): New function. The timeout.
(fbui_real_sensitize_items): Semi-new function. Rename of old
fbui_sensitize_items.
(folder_browser_ui_set_selection_state): Pass the FB instead of
only the UIC to sensitize_items.
(folder_browser_ui_message_loaded): Same.
* folder-browser.c (folder_browser_destroy): Kill the new timeout
if it is registered.
* folder-browser.h: Add some members to FolderBrowser for keeping
track of the queue of changes.
2001-08-20 Iain Holmes <iain@ximian.com>
* mail-config.druid: Fix the jumping around.
2001-08-20 Peter Williams <peterw@ximian.com>
* mail-ops.c (remove_folder_get): Fix double-unref of the store.
2001-08-20 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (create_folder): Modify the url and set the
protocol to mbox rather than hacking it and prepending mbox: to
the uri.
* mail-local.c (get_folder): Don't prepend the folder_name with
the store's path because the hash key is folder_name, not
/folder_name.
2001-08-20 Iain Holmes <iain@ximian.com>
* mail-config-druid.c: Change some of the text labels.
(create_label): Make a label instead of a GtkHTML widget.
2001-08-18 Iain Holmes <iain@ximian.com>
* mail-account-gui.c (mail_account_gui_setup): Stop hiding the source
and transport frames.
2001-08-20 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-ui.c (folder_browser_setup_property_menu):
Updated as ChangeFolderProperties is now in the
ComponentPlaceholder.
2001-08-20 Peter Williams <peterw@ximian.com>
* mail-accounts.c (mail_able): Whoops, make sure that the account
has a source before removing it or what-have-you.
* subscribe-dialog.c: Add a few comments.
2001-08-20 Damon Chaplin <damon@ximian.com>
* folder-browser-ui.c: use new small trash icon for Delete command.
2001-08-20 Ettore Perazzoli <ettore@ximian.com>
* mail-ops.c (sync_folder_desc): s/Synchronising/Synchronizing/.
2001-08-20 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_create_folder):
camel_folder_create_folder can now return a heirachial tree so
subscribe to down the tree.
2001-08-20 Damon Chaplin <damon@ximian.com>
* folder-browser-ui.c: use new Cut/Copy/Paste icons.
2001-08-19 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c: Update the folder list to include a display
name and a description.
2001-08-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (do_op_status): Allow the activity to be NULL if there
isn't a global_shell_client so that we don't try and report status
updates when the shell is destroyed.
* mail-config.c (add_shortcut_entry): Return if there isn't a
global_shell_client.
* component-factory.c (owner_set_cb): set the global_shell_client
here and connect to the destroy signal.
* mail-vfolder.c (vfolder_create_storage): Use an extern
global_shell_client.
2001-08-19 Christopher James Lahey <clahey@ximian.com>
* mail-callbacks.c (delete_msg): Made delete make the cursor go
backwards if the user is sorting by descending date. Fixes Ximian
bug #6995. (Reverted.)
2001-08-19 Jeffrey Stedfast <fejj@ximian.com>
Note: The following changes were based on Zbigniew Chyla's fixes.
* mail-callbacks.c (mail_generate_reply): Convert the date string
to UTF-8.
(do_forward_non_attached): Same here.
2001-08-05 Zbigniew Chyla <cyba@gnome.pl>
* folder-info.c: Added missing #include <config.h>. (applied by Damon)
2001-08-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_read): Change the default values for
"always-sign" to false.
* mail-callbacks.c (open_msg): if the folder is Outbox, let the
user edit the message(s) too I guess.
2001-08-18 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-ui.c: Hook the new `delete-message.png' up.
2001-08-17 Damon Chaplin <damon@ximian.com>
* mail-display.c (pixmap_press): stop signal emission so the GtkButton
class method doesn't mess up the popup menu. Hopefully fixes bug #1828.
2001-08-17 Zbigniew Chyla <cyba@gnome.pl>
* mail-search.c (mail_search_construct): Put _() instead of N_()
around of the "Search" string, gnome_dialog_constructv doesn't
translate button names.
2001-08-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_write_authenticity): We want wax-seal.png
instead, since I added the png files to cvs and renamed it to
wax-seal.png.
2001-08-17 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Fix
warnings.
2001-08-17 JP Rosevear <jpr@ximian.com>
* component-factory.c (owner_set_cb): don't init the config here
* main.c (main): init the config here
2001-08-17 JP Rosevear <jpr@ximian.com>
* mail-config-druid.c: remove dead structure
2001-08-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write): Save the always-sign options
for pgp and smime.
(config_read): Read in the always-save options for pgp and smime.
2001-08-17 Christopher James Lahey <clahey@ximian.com>
* message-list.etspec: Made the default values for column
expansions here more reasonable.
2001-08-16 Iain Holmes <iain@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Add the Wizard stuff.
* component-factory.c (component_fn): Init the Wizard factory.
(mail_load_storages): Check service isn't NULL before it's been
dereferenced.
* mail-account-gui.c (mail_account_gui_setup): Only show the top level
widget is it's not NULL.
Change the gtk_widget_set_usizes to gtk_widget_hides.
* mail-config-druid.c: Rewrite to use the EvolutionWizard stuff.
* mail-config-druid.h: Add stuff to the MailConfigDruid struct.
* mail-config.c (mail_config_get_default_account): Init the config if
it's not been inited.
2001-08-16 Jason Leach <jleach@ximian.com>
* mail-tools.c (mail_tool_quote_message): Only starting cutting
the signature out when we match "-- \n", so "--\n" in the middle
of a mail won't omit the rest for a quoted reply. Bug #7454.
2001-08-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (confirm_expunge): Respect the user's desire to
be prompted to confirm that he wants to expunge the blasted
folder. Also, don't set the usize - that's just an evil hack and
you may find it will cut off text once the label has been
translated.
(create_msg_composer): In order for the security options to be
checked when composing a new message, we must set the from account
explicitly even though the composer hdrs sets the default from
account and emits the signal because at that stage the composer
hasn't yet connected to the signals and thus the bonobo menu items
don't get set.
* mail-config.c (mail_config_set_confirm_expunge): New.
(mail_config_get_confirm_expunge): New.
2001-08-16 Peter Williams <peterw@ximian.com>
* subscribe-dialog.c (fe_got_children): Sort the nodes here...
(fe_sort_folder): ... using this function.
* folder-browser-ui.c (folder_browser_ui_message_loaded): Check
for uic == NULL. I'm not sure how this could happen, but...
2001-08-16 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c (folder_browser_ui_set_selection_state):
Disable "Search Message" when more or less than exactly one
message is selected.
* subscribe-dialog.c (fe_done_subscribing): Instead of hackfully
getting the path, use a CamelURL so that escaping is
handled. Silly me. -- See below --
(fe_node_to_shell_path): Use node->name and node->full_name to
generate the the shell path of this item. Don't need to escape the
URL, and handle cases when dir_sep != '/'
(fe_done_subscribing): Use fe_node_to_shell_path instead of the
CamelURL. Third time's the charm... * folder-browser-ui.c
(folder_browser_ui_set_selection_state): Disable "Search Message"
when more or less than exactly one message is selected.
* subscribe-dialog.c (fe_done_subscribing): Instead of hackfully
getting the path, use a CamelURL so that escaping is
handled. Silly me. -- See below --
(fe_node_to_shell_path): Use node->name and node->full_name to
generate the the shell path of this item. Don't need to escape the
URL, and handle cases when dir_sep != '/'
(fe_done_subscribing): Use fe_node_to_shell_path instead of the
CamelURL. Third time's the charm...
2001-08-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (save_part): Remember the filename is in utf8, so
use the e_utf8 functions to set the filename in the file selection
dialog.
2001-08-15 Peter Williams <peterw@ximian.com>
* message-list.c (on_cursor_activated_idle): Always remove the
idle and return FALSE, instead of returning TRUE if more than one
message is selected.
2001-08-15 Jason Leach <jleach@ximian.com>
* mail-tools.c (mail_tool_quote_message): Stop building the quote
after a sigdash, hence, omitting the signature from a
reply/forward. Bug #5529.
2001-08-15 Anna Marie Dirks <anna@ximian.com>
* mail-callbacks.c (expunge-folders): Re-added, at Ettore's
request, the confirm-expunge dialog.
2001-08-15 Jason Leach <jleach@ximian.com>
* message-list.c (message_list_init): Use ALWAYS for scroll frame
policy because ETable acts lame with AUTOMATIC. Bug #6925.
2001-08-16 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (expunge_folder): Don't confirm expunge.
2001-08-15 Not Zed <NotZed@Ximian.com>
* mail-local.c (register_folder_register): Remove operation
registration/etc. Handled by mail-mt.c
* message-list.c (regen_list_regen): Remove camel operation
registration/etc.
2001-08-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (load_accounts): Convert the UTF-8 account name
string into a gtk-string before using it in the GtkCList.
2001-08-14 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (previous_unread_msg): Make previous unread
wrap around too.
* mail-accounts.c (load_accounts): If the account is enabled,
set a checkmark pixmap instead of a strange plus sign.
(mail_accounts_dialog_init): Load the pixmap here.
(mail_accounts_dialog_finalise): Free it here.
* mail-accounts.h: Prototype it here.
2001-08-14 Dan Winship <danw@ximian.com>
* folder-browser.c (message_list_drag_data_get): Fix the fix for
#6722.
* mail-ops.c (save_messages_save): Likewise.
(save_part_save): Deal with the possibility that
camel_mime_filter_charset_new_convert will return NULL (bad
charset name). Fixes #6611.
2001-08-13 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Disable the "search
forward/backward" option in the search dialog. Why? Well, it
doesn't work properly (bug #4869), and the reason it doesn't work
is because of some scary stuff deep inside of gtkhtml that I don't
understand at all. So since I'm paranoid, and since the GUI
freeze is tomorrow, and since it isn't really an important feature
at all, I'm #if 0-ing it out. If the gtkhtml stuff gets sorted
out, we can slip it back in for 1.1.
2001-08-13 Peter Williams <peterw@ximian.com>
* component-factory.c (user_create_new_item_cb): New function,
handle "user creatable items".
(component_fn): Tell the shell that we're capable of creating
mail messages.
2001-08-13 Jason Leach <jleach@ximian.com>
* mail-local.c (get_folder): Fix this so it can actually get
folders from the hash of folders on the local store (it was
looking up plain @folder_name, which is typically "mbox", instead
of the full URI, /home/jleach/evolution/local/Foo/mbox).
* component-factory.c (do_remove_folder): Rename to
remove_folder_done, more fitting for it's purpose.
(do_xfer_folder): Similar name change.
(do_create_folder): Similar name change.
(remove_folder): Don't notifyResult for the component here, we
will notify with our result in remove_folder_done.
(xfer_folder): Ditto.
* mail-vfolder.c (vfolder_refresh): Create new folders with unread
counts of "0" instead of #FALSE (which just happens to be #defined
as zero).
2001-08-13 Peter Williams <peterw@ximian.com>
* mail-send-recv.c (mail_autoreceive_setup): Break most of the
functionality into a separate function.
(autoreceive_setup_list): Rename of mail_autoreceive_setup that is
passed a list of accounts.
(mail_autoreceive_setup_account): New function. Set up a single
account using autoreceive_setup_account.
* mail-send-receive.h: Prototype mail_autoreceive_setup_account.
* mail-account-gui.c (mail_account_gui_save): Instead of setting
up all accounts, set up only this source with the new
mail_autoreceive_setup_account.
* mail-config-druid.c (druid_finish): ... which means we can call
mail_config_add_account() after the MailConfigAccount has been
created by mail_account_gui_save() because we no longer need the
account to be in the list for mail_autoreceive_setup()
* mail-config.c (mail_config_add_account): ... which means we can
possibly add a shortcut to the account's sources's Inbox here.
(maybe_add_shortcut): New function. If the store is a storage, add
a shortcut to its inbox. Hope that /INBOX exists.
(add_shortcut_entry): New function. Creates a shortcut if it doesn't
yet exist.
2001-08-13 Peter Williams <peterw@ximian.com>
* mail-account-gui.c (service_complete): Take account of the fact that
service->path may be NULL (if service is a transport.)
* mail-config-druid.c (druid_finish): Bleah, bugfix in case the
account has no source.
2001-08-13 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: Changed all instances of "Wizard" and "Druid"
to "Assistant".
* mail-config-druid.c: Ditto.
2001-08-13 Anna Marie Dirks <anna@ximian.com>
* mail-accounts.c: Changed the title of the Mail Settings
dialog from "Evolution Account Manager" to "Mail Settings" .
2001-08-13 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (get_message_uid): Do some g_assert()
action. Make sure that the node passed in is non-NULL and also
make sure that the CamelMessageInfo gotten from the ETree is
non-NULL.
(get_message_info): Same here.
* mail-callbacks.c (expunge_folder): Confirm that the user really
wants to expunge.
(save_msg_ok): Set the parent window here.
2001-08-13 Peter Williams <peterw@ximian.com>
* mail-config.c (remove_account_shortcuts): Remove the shortcuts
corresponding to an account (they all point to
evolution:/accountname/..)
(mail_config_remove_account): When deleting the account, remove
its shortcuts.
2001-08-10 Peter Williams <peterw@ximian.com>
* mail-config-druid.c (druid_finish): Whoa, fatal typo. Sorry.
2001-08-13 Jason Leach <jleach@ximian.com>
* mail-local.c (init_trash): Tell folder cache the path for our
Trash is /Trash, because that's what Shell needs to hear for
updating folders.
2001-08-11 Jason Leach <jleach@ximian.com>
* mail-offline-handler.c (impl_goOnline): Set the session as
online so auto mail checking (and the composer) will be doing the
right things when you go online. Bug #6343 and #4601.
* folder-browser.c: Make the right click "Resend..." into "Edit as
New Message...", bug #6838.
* mail-accounts.h: Remove unecessary #include <camel.h>
* mail.h: Removed a prototype for a non-existant
mail_view_create().
2001-08-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (build_auth_menu): Fix bug #4523 for good.
(save_service): If service->authitem is NULL, then the user tried
to enable authentication but the provider doesn't actually support
it.
2001-08-10 Jon Trowbridge <trow@ximian.com>
* folder-browser.c: Set our ESearchBarItems subitems to NULL.
2001-08-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Prepend the uri with evolution:
to fix bug #6916.
2001-08-10 Jason Leach <jleach@ximian.com>
* folder-browser.c: Make the context menu for the Sent folder have
"Resend..." instead of "Resend", to clarify that it will bring up
a dialog needing your input rather than just blindly sending the
message again. Also give it the 'e' accelerator. Bug #6838.
* mail-callbacks.c (next_unread_msg): Since 'N' keypresses go
through here now, use wrap-around selecting.
(previous_unread_msg): Same for 'P' here.
* message-list.c (on_cursor_activated_idle): Stop this idle timer
when we have multiple items selected, this keeps it from loading
and then marking the last item in your selection list as read.
Bug #4693.
2001-08-10 Peter Williams <peterw@ximian.com>
* mail-accounts.c (mail_delete): Don't remove the account from the
tree if it's not enabled.
2001-08-10 Jason Leach <jleach@ximian.com>
* mail-ops.c (remove_folder_get): Remove all the messages from a
folder that's being deleted before actually doing the
camel_store_delete_folder, so it won't leave behind an mbox file
that's going to prevent the actual directory from being deleted,
and strange effects like new folders with the same name being made
in it's place. Bug #5618.
* mail-folder-cache.c (mail_folder_cache_remove_folder): New
function, a way to get something out of the folder cache, like
folders being deleted. Bug #6878.
2001-08-10 Peter Williams <peterw@ximian.com>
* mail-accounts.c (news_add_destroyed): Whoops, compile fix.
2001-08-10 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (mark_as_unseen): If marking messages as
unread, remove the automatic mark-as-read timer. Bug #4153.
2001-08-08 Peter Williams <peterw@ximian.com>
* component-factory.c (mail_load_storages): Don't load the storage
if it isn't enabled.
(mail_remove_storage_by_uri): New function. Goes through the
gymnastics of getting a CamelStore from the URI and calling
mail_remove_storage. Copied from mail_delete().
(mail_load_storage_by_uri): Break out the storage-loading part of
mail_load_storages into a single function.
(mail_load_storages): Just call mail_load_storage_by_uri several
times.
* mail.h: Prototype our new _by_uri functions.
* mail-accounts.c (news_add_destroyed): Instead of hacking around
mail_load_storages, call mail_load_storage_by_uri.
(mail_delete): Move this chunk of code into
mail_remove_storage_by_uri.
(mail_able): Add or remove the storage as necessary, with our
new _by_uri functions.
* mail-config-druid.c (druid_finish): See news_add_destroyed above.
2001-08-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_show_preview): Free dbkey if we
don't use it.
* folder-browser.c (on_right_click): Added a comment about leaking
memory here, but we seem to not even use the 2 strings we
strdup...is this code still under construction?
* mail-ops.c (mail_send_message): Free the sent_folder_uri at the
bottom of the function (ironically enough we were freeing it if we
encountered an error but never free'd it on success :-)
(get_folderinfo_got): Fixed a memory leak...this one would have
gone away once we got rid of the debug g_warning though.
2001-08-10 Not Zed <NotZed@Ximian.com>
* mail-ops.c (mail_transfer_messages): Dont want it to keep on
running if it got bad arguments, want it to bloody well crash.
(mail_append_mail): Same here.
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (mlfe_callback): Added a g_assert_not_reached() -
I'm hoping this will help us track down the "can't delete message
sometimes" (ie bug #6637 and friends) bugs that users have been
reporting. If herein lies the problem, then we can expect some
crashes and some good backtraces, hopefully.
2001-08-09 Peter Williams <peterw@ximian.com>
* folder-browser.c (on_key_press): The bonobo menu items now
handle 'n' and 'p'.
(on_key_press): 'q' as well.
* message-list.c (message_list_select): Fix inline documentation.
2001-08-09 Anna Marie Dirks <anna@ximian.com>
Fixes bug #6918
* folder-browser.c: Changed the "Store search as vFolder" menu
item to "Create vFolder from Search".
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #6722
* mail-ops.c (save_messages_save): Don't set the default perms
here, let the user's umask deal with permissions.
* folder-browser.c (message_list_drag_data_get): Don't set any
default perms.
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Save the pgp and
smime always-sign options.
* mail-config.c (account_copy): Copy the always-sign options over
too.
2001-08-08 Not Zed <NotZed@Ximian.com>
* mail-ops.c (send_mail_send): Dont double-register this
operation, mail-mt will do it for us.
(get_folderinfo_get): "
(get_folder_get): "
(get_store_get): "
(create_folder_get): "
(remove_folder_get): "
(sync_folder_sync): "
(get_message_get): "
* message-list.c (message_list_setup_etree): Free the etstate
object after we're done using it.
2001-08-08 Peter Williams <peterw@ximian.com>
* subscribe-dialog.c (sc_selection_changed): New function. Set the
sensitivity of the subscribe buttons based on whether any folders
are selected.
(menu_item_selected): If getting the widget for the first time,
hook up sc_selection_changed.
2001-08-08 Peter Williams <peterw@ximian.com>
* mail-ops.c (mail_update_subfolders): Change this gtk_object_ref
on the storage to a bonobo_object_ref.
* component-factory.c (mail_lookup_storage): And here.
* mail-vfolder.c (mail_vfolder_get_vfolder_storage): And here.
2001-08-07 Ettore Perazzoli <ettore@ximian.com>
* message-browser.c (set_bonobo_ui): Remove the "Customize
Toolbar" thing.
2001-08-07 Not Zed <NotZed@Ximian.com>
* mail-config.c (mail_config_get_thread_list): Free the dbkey if
we found the config option.
* mail-send-recv.c (build_dialogue): Free the pretty_url after
we've used it.
(free_send_info): Free the 'what' string.
(receive_done): Use free_send_info to make sure we free
everything.
* mail-ops.c (send_queue_free): Unref the filter driver when done.
(send_queue_send): Unref the driver here too, force any long
taking operations to run in our thread.
2001-08-07 Peter Williams <peterw@ximian.com>
* Revert Jeff's changes to subscribe-dialog.[ch]. It's not a widget,
it's an object from which you can obtain a widget.
2001-08-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (manage_subscriptions): Hide the app->window.
(do_mail_print): Set the parent of the gnome-dialog to be the
folder-browser so that when evolution is closed, the print dialog
gets destroyed. Should fix bug #4781.
* subscribe-dialog.c (subscribe_dialog_new): This should return a
GtkWidget not a GtkObject.
* mail-session.c (get_filter_driver): Update to use user's logging
preferences.
* mail-accounts.c (filter_log_toggled): New.
(filter_log_path_changed): New.
(construct): Get and attach signals to the filter logging option
widgets.
* mail-config.c (config_read): Read in filter logging options.
(mail_config_write_on_exit): Save filter logging options.
(mail_config_set_filter_log_path): Implemented.
(mail_config_get_filter_log_path): Implemented.
(mail_config_set_filter_log): Implemented.
(mail_config_get_filter_log): Implemented.
2001-08-07 Peter Williams <peterw@ximian.com>
* subscribe-dialog.c (folder_etree_construct): Move
fe_create_root_node farther down, so we can check for its children
without problems.
* mail-callbacks.c (folder_created): Use bonobo_object_unref on
the storage since it's a bonobo object.
(mail_storage_create_folder): Same.
(folder_deleted): Same.
* mail-send-recv.c (receive_update_got_store): Same.
* mail-ops.c (do_update_subfolders): Same.
* subscribe-dialog.c (fe_destroy): Unref the e_storage since
lookup_store gives us a ref.
2001-08-07 Peter Williams <peterw@ximian.com>
* subscribe-dialog.c (folder_etree_construct): Move
fe_create_root_node farther down, so we can check for its children
without problems.
(storage_tree_path): Removed, this was broken.
(subscribe_get_short_folderinfo): Use the queued thread instead of
the new thread.
(subscribe_do_subscribe_folder): Same.
(ftree_node_new_root): Don't create the path anymore; it was
broken and there's a better way to get it now.
(fe_got_children): Remove some debugging output.
(fe_check_for_children): Here too.
(fe_done_subscribing): Get the path from the URI instead of the
ftree_node.
(_SubscribeDialogPrivate): Add all of our useful widgets as
members.
(sc_refresh_pressed): Don't clear the search... that makes no
sense now.
(sc_search_activated): Don't set the filter radio button as active
now; we use sensitivity instead.
(sc_all_toggled): Make the search entry insensitive.
(sc_filter_toggled): Make the search entry sensitive.
(kill_default_view): New function. Gets rid of the default view
stuff and makes all the widgetry sensitive.
(menu_item_selected): Check if we moved off of the default view
and, if so, call kill_default_view().
(subscribe_dialog_construct): Initialize our new private widget
members, and by default insensitize most of the buttons because
they make no sense in the default view.
2001-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.glade: Added key accelerators to a bunch of the
config options and moved the Bcc and empty-subject checkboxes to
the composer tab where they belong.
* mail-callbacks.c (providers_config): Raise the dialog if it
exists already.
(manage_subscriptions): Raise the dialog if it already exists.
(main_select_first_unread): Removed (we haven't needed this code
in ages).
(select_first_unread): Same.
(save_msg_ok): If the path is empty, just return.
* mail-local.c (mail_local_reconfigure_folder): Raise the dialog
if it already exists.
2001-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (expunge_folder): Set the message-display
message to NULL if we can't get an info too.
2001-08-06 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (create_folders): Make vtrash folders on other
storages with a "vtrash" type, so they get the little trashcan
icon.
2001-08-06 Peter Williams <peterw@ximian.com>
* subscribe-dialog.[ch]: Reimplement to be asynchronous and pretty,
with progressive folder loading and all sorts of wonderful
improvements.
* mail-callbacks.c (manage_subscriptions): Change to reflect API
update.
* Makefile.am (etspec_DATA): Add subscribe-dialog.etspec.
(glade_DATA): And the glade file.
* subscribe-dialog.etspec: New file, break out the specification
from inside the subscribe-dialog.c
* subscribe-dialog.glade: Update this, actually use it now.
2001-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (empty_trash): Yuck. Special case whether or
not we want to expunge all the trash folders syncronously or
asyncronously based on whether or not we are doing Empty-On-Exit
or emptying trash by user request respectively.
2001-08-06 Jason Leach <jleach@ximian.com>
* mail-folder-cache.c (make_folder_name): Removed this function,
it's not needed anymore.
(mail_folder_cache_note_folderinfo): Initialize mfi->unread to 0
always, so the shell won't get sent a random int for vtrash or
potentially other folders.
* message-list.c (message_list_select): Fix a minor glitch with
how it started a backwards wraparound at the 2nd to last message,
skipping the very last message.
2001-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.glade: s/character set/character encoding
2001-08-05 Ettore Perazzoli <ettore@ximian.com>
* message-browser.c (message_browser_message_loaded): Make the
title of the window "subject - Message" instead of just "subject".
Also, display "(No subject)" if the subject is NULL.
[Fix #6399, 8-bit characters are not displayed in window title.]
* message-browser.c (message_browser_message_loaded): Convert the
subject from UTF-8 to GTK.
2001-08-05 Ettore Perazzoli <ettore@ximian.com>
[Revert the previous changes, there seems to be something wrong
with it.]
* component-factory.c (component_factory_init): Back to using
`bonobo_generic_factory_new()'.
(component_fn): Updated accordingly.
2001-08-04 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (component_factory_init): Use
`e_bonobo_generic_factory_multi_display_new()' instead of just
`bonobo_generic_factory_new()'.
(component_fn): Added @component_id arg.
2001-08-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_part_is_inline): Add yet another
special-case hack for application/pgp.
2001-08-04 Jason Leach <jleach@ximian.com>
* message-list.c (message_list_select): Add a @wraparound
argument, so the 'n' and 'p' keypresses (or anything else that
wants to) can wrap around to find the next unread.
* folder-browser.c (on_key_press): Tell it to wrap around here.
* mail-callbacks.c (delete_msg): Don't wrap around here (or the
other callbacks in this file).
2001-08-03 Jason Leach <jleach@ximian.com>
* mail-folder-cache.c (update_idle): Updates for EvolutionStorage
API changes.
* mail-importer.c (mail_importer_create_folder): Ditto.
* mail-local.c: Same here.
2001-08-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (build_auth_menu): Try to restore the choice
the user had chosen before hitting the "Check Supported Types"
button.
* mail-format.c (write_headers): Removed a no-longer-needed
g_warning.
2001-08-03 Not Zed <NotZed@Ximian.com>
* mail-session.c (get_password): return the source url for
popb4smtp auth request.
2001-08-02 Jon Trowbridge <trow@ximian.com>
* mail-ops.c (filter_folder_describe): Added. Provide
description for filter_folder_op.
(fetch_mail_describe): Added. Provide description for
fetch_mail_op.
* message-list.c (regen_list_describe): Added. Provide
description for regen_list_op.
* mail-config.c (check_service_describe): Added. Provide
description for check_service_op.
* folder-info.c (do_describe_info): Added. Provide description
for get_info_op.
2001-08-02 Larry Ewing <lewing@ximian.com>
* mail-send-recv.c (format_url): handle null paths in the dialog
so that we avoid printing NULL strings
2001-08-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (filter_edit): Raise the filter-editor window
if it's already created.
* folder-browser.c (message_list_drag_data_received): I obviously
can't spell recieved, er, received...uh, yea.
2001-08-02 Jason Leach <jleach@ximian.com>
* mail-config.glade: Set history_id's for the sig and html sig
gnome file entry boxes so it can persist history, also add titles
to the dialogs that popup when you click the "Browse..." button.
Bug #5595.
2001-08-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_create_storage): Connect to the
folder_remove signal on the storage.
(vfolder_remove): New function to remove a vfolder.
(vfolder_edit): Raise the window if it already exists.
2001-08-02 Not Zed <NotZed@Ximian.com>
* Makefile.am (INCLUDES): Add EVOLUTION_BUTTONSDIR to get to some
different icons.
* mail-ops.c (mail_sync_folder): Queue the folder sync operation,
rather than running it in parallel.
* mail-send-recv.c: applies anna's patch for prettier send-recv
dialogue.
(parse_url): Renamed to format_url, fixed callers.
(format_url): Use camel_url_free instead of g_free, also handle
case where we have no host (use path instead).
(build_dialogue): Cleaned up some whitespace.
(build_dialogue): Create the label directly with the right text,
dont set any text in the progress bar, and save the label into the
info struct for later updating.
(struct _send_info): Added 'status' the label with the status
string.
(operation_status_timeout):
(receive_done):
(receive_cancel): Set the status label, not the progress format
text.
(hide_send_info): NULL out status too.
(mail_receive_uri): Init status.
(free_folder_info): Initiate a folder sync here, so we can ...
(free_send_data): ... Remove the awful hack of iterating through
bonobo controls to sync all open folders.
(free_send_data): Initiate a sync of the inbox too.
(build_dialogue): Remove set_alignment on the icon, its not a
gtkmisc object.
2001-08-01 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_copy): Do the Right Thing (tm)
if the message list is not the widget in focus (which is to copy
the text selected in the html viewer instead). Fixes bug #5868.
2001-08-01 Jason Leach <jleach@ximian.com>
* folder-browser-ui.c: Use the new Save As and Message Search
icons from Jakub.
* mail-callbacks.c (delete_msg): Don't move cursors around when
deleting last message and Hide Deleted Messages isn't enabled.
Bug #5928.
2001-07-31 Anna Marie Dirks <anna@ximian.com>
* mail-mt.c (do_get_pass): Changed the title of this dialog
to "Enter Password".
2001-07-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (do_get_pass): We are not guarenteed to have a
non-NULL service (ie. PGP) thus check for it.
(pass_got): And again here.
(mail_get_password): And of course here too.
* mail-format.c (decode_pgp): When writing out a CamelException to
the HTML stream, be sure to translate it first.
(handle_message_external_body): Convert to UTF8 here too - I know
this function is basically a dead end right now but eventually we
will want to do something. I mostly did this because param values
are UTF8 encoded so we should avoid mixing and matching UTF with
non UTF8.
(format_mime_part): Avoid writing non-UTF8 to the HTML stream.
* mail-tools.c (mail_tool_make_message_attachment): Convert
translated strings to UTF8 here too.
(mail_tool_forward_message): Here too.
2001-07-23 Zbigniew Chyla <cyba@gnome.pl>
* mail-format.c (attachment_header, write_address, decode_pgp,
mail_write_authenticity):
Convert translated strings to UTF8 before calling mail_html_write.
I modified the patch slightly and cleaned up bits of code around
it as well. For example, we probably want to avoid having HTML
tags in the strings to be translated. -- fejj
2001-07-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Restore old security
settings from the saved configuration. Fixes bug #5710.
2001-07-30 Not Zed <NotZed@Ximian.com>
* mail-session.c (do_register_timeout): Actually add the timeout,
this time in the gtk thread.
(do_remove_timeout): And same for remove.
(register_timeout):
(remove_timeout): Proxy the gtk calls to the main thread, and
wait for them to execute synchronously.
(register_timeout): Instead of return with fail for a too small
timeout, just increase the timeout.
2001-07-27 Zbigniew Chyla <cyba@gnome.pl>
* component-factory.c (populate_folder_context_menu): Added (unused)
table with strings intended to be translated (i18n tools can't extract
strings from XML data inside .c file).
2001-07-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (focus_on_entry): Don't need this anymore.
(do_get_pass): Since we already have the entry widget, no need to
do the nasty focus_on_entry hack.
2001-07-26 Peter Williams <peterw@ximian.com>
* mail-mt.c (do_get_pass): Figure out whether we're getting the
password for the source or the transport, and get the toggle
button accordingly.
(pass_got): Same.
* mail-config.c (mail_config_get_account_by_transport_url): New
function. Cut + paste + search + replace of _by_source_url.
* mail-config.h: Prototype here.
2001-07-26 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (message_list_drag_data_get): If we don't have
any messages selected, break out. This fixes bug #5612.
* component-factory.c (xfer_folder): Fixed a strstr (url,
"noselect=yes") brokenness.
(destination_folder_handle_motion): Same.
(destination_folder_handle_drop): And again here.
* mail-format.c (handle_application_pgp): Implemented.
(setup_mime_tables): Setup the application/pgp handler to use
handle_application_pgp instead of handle_text_plain.
(handle_text_plain): Remove special-case hacks for application/pgp
types.
* mail-config.glade: beautification.
2001-07-26 Peter Williams <peterw@ximian.com>
* mail-mt.c (do_get_pass): Use magic to make the password
remembering checkbutton come after the entry, visually.
2001-07-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_headers): Respect Gtk theme colors for the
fonts and calculate a new table gbcolor based on gtk theme
preferences.
* mail-config.glade: Label the enabled field.
2001-07-26 Peter Williams <peterw@ximian.com>
* message-list.etspec: Make the date column smaller and the
subject column larger, relatively.
* mail-folder-cache.c (make_folder_status): Don't display "0
hidden".
* folder-browser.c (on_key_press): Make 'q' a toggle, not one-way.
* message-list.etspec: Rename "Date" column to "Sent".
2001-07-25 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: fixed a mis-spelling of "Fashion" in the mail
accounts window. (See bug 5433)
2001-07-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (make_key): Don't make the key url:item if we
have the url, just make it url. This fixes bug #5339.
(mail_session_set_password): Removed.
2001-07-25 Peter Williams <peterw@ximian.com>
* folder-browser.c (etree_key): Make it so Enter always opens the
message in another window.
2001-07-25 Peter Williams <peterw@ximian.com>
* mail-mt.c (mail_get_password): Now take a CamelService parameter
(as passed by Camel). Allows us to have a "remember password"
checkbox that is set correctly and whose settings can be
propagated back to the proper MailConfigService.
(do_get_pass): Add a checkbutton allowing the user to change
whether the password is remembered or not.
(pass_got): Apply the setting of the "remember password"
checkbutton (if not cancelled.)
* mail-mt.h: Update the prototype here.
* mail-config.c (mail_config_service_set_save_passwd): New
function, pretty bland.
* mail-config.h: Prototype our bland new function. (Get it? It's a
pun!)
* mail-session.c (get_password): Pass the service as well.
2001-07-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (build_auth_menu): Now takes a
check_supported gboolean argument saying whether or not to disable
non-supported authtypes.
(source_type_changed): Update for build_auth_menu.
(transport_type_changed): Same.
(service_check_supported): Pass in TRUE for the disable
non-supported authtypes to build_auth_menu and also disable
check-supported button and the authtype menu if we get a NULL
supported auth list.
* mail-callbacks.c (mail_generate_reply): Initialize `me' to NULL.
(forward_attached): If we are only forwarding a single message,
pass the message along as the callback data, else pass NULL.
(do_forward_attach): Updated for changes to
forward_get_composer().
(do_forward_non_attached): Same.
(forward_get_composer): Try to guess which account to forward the
message from if the message passed in is non-NULL.
2001-07-24 Peter Williams <peterw@ximian.com>
* mail-config.c (mail_config_write): Um, write the HTML signature
settings in the right place. Whoops.
2001-07-24 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (delete_msg): If we're deleting the last
message, select the previous, not next, which actually selects
nothing. Fixes #5323.
2001-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (save_part_save): Pass the O_TRUNC flag to open so
that we don't leave trailing garbage at the end of the file if the
new file content is shorter than the old file content.
* component-factory.c (create_view): Fix for bug #5174.
2001-07-24 Jason Leach <jleach@ximian.com>
* mail-config.c (config_read): Match the prefix for the
"remember_passphrase" setting with where it's being saved to
(/Mail/Prompts), so the setting gets loaded correctly. Fixes
#5351.
2001-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): check_specials if this is an
application/pgp type as well.
* mail-ops.c (add_vtrash_info): When dumping the CamelURL to a
string, hide all the params.
2001-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (guess_me): Do a case-insensitive comparison.
(mail_generate_reply): Only resort to the source account's
identity if we can't find out which identity to use based on the
recipients of the message first.
* mail-config.c (mail_config_get_default_account): Make sure to
return the 0th account if we don't have a default. We don't want
to return NULL.
* mail-callbacks.c (empty_trash): Use mail_tool_get_trash for the
remote store trash folders.
* mail-tools.c (mail_tool_get_trash): New convenience function.
2001-07-24 Jason Leach <jleach@ximian.com>
* mail-config.c (config_read): get_boolean_with_default for the
"Mark as read" timeout, not get_long_with_default. Fixes #5176.
2001-07-24 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (make_folder_name): Don't display "(0 unsent)" if
the outbox is empty.
* mail-local.c (init_trash): Set up the local trash in the folder
cache.
* mail-folder-cache.c (update_idle): Make the error reporting a little
but more descriptive.
2001-07-24 Peter Williams <peterw@ximian.com>
* mail-config.glade: Add new label widgets with a message that SSL
isn't supported.
* mail-account-gui.h: Add a new member to the Transport GUI struct
for the 'SSL is not supported' message.
* mail-account-gui.c (source_type_changed): Change logic to display
a message stating that SSL isn't supported if SSL isn't supported.
(transport_type_changed): Same.
(mail_account_gui_new): Also load the labels for the the no-SSL
message.
* mail-accounts.c (construct): Fix typo.
2001-07-24 Not Zed <NotZed@Ximian.com>
* component-factory.c (create_folder): Dont call notifyResult here
if we've just launched a thread to do the work, it calls it
itself. This apparently breaks the importers, but thats a
different issue.
2001-07-23 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msgport_replied): Go back to calling
mail_msg_free here.
(mail_msg_destroy): Remove the operation unregistration stuff.
(mail_msg_received): And put it here, so we unregister as soon as
the async part of the operation is complete. I thought about this
and we should be doing this anyway so we register/unregister
always in the same thread, although the camel_operation api
doesn't enforce it, this *is* what it expects.
* message-list.c (regen_list_regen): re-add reporting to
rebuilding the message list. Basically fixes #4931
2001-07-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-search.c (toggled_fwd_cb): Oops. Uncomment this code since
Trow fixed GtkHTML to actually have this function now.
* mail-config.glade: Fixed the "Read" to be Read in the glade file
per menesis' request.
* mail-accounts.c (construct): Give the dialog a Close button
instead of an OK button.
(prompt_bcc_only_toggled): New.
(threaded_list_toggled): New.
(show_preview_toggled): New.
(construct): Add code for the bcc-only-prompt, threaded-list, and
show-preview checkboxes.
* mail-ops.c (transfer_messages_transfer): If the source and
destination folders are the same, just mark the uids as undeleted
(in case they were marked as deleted before).
2001-07-23 Jon Trowbridge <trow@ximian.com>
* mail-search.c (begin_cb): Carefully check for NULL everywhere,
and do the right thing if the message we are currently looking at
gets expunged. (Bug #4870)
2001-07-23 Jason Leach <jleach@ximian.com>
[Bug #5225: No UI way to mark as unimportant]
* folder-browser.c (on_right_click): Do the necessary stuff to
show or hide the correct "Mark Important" or "Mark as Unimportant"
menu items depending on the status of messages that are selected.
* folder-browser-ui.c: Add the MarkAsUnimportant verb here.
* mail-callbacks.c (mark_as_unimportant): Simple function that's
the callback for these new menu items.
2001-07-22 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (remove_folder): Updated to get a @type
argument. Return an error if the type isn't "mail".
(xfer_folder): Likewise.
2001-07-21 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c: Make types "mailstorage" and "vtrash"
non-user-creatable.
2001-07-20 Jason Leach <jleach@ximian.com>
* mail-summary.c (generate_html_summary): Change this back to the
"evolution:/local/Inbox" URI.
2001-07-20 Peter Williams <peterw@ximian.com>
* component-factory.c (storage_remove_folder): Don't let the user
remove vtrash folders.
2001-07-20 Peter Williams <peterw@ximian.com>
* mail-mt.c (mail_msgport_replied): Fix DanW's fix. Pass the right
arguments to mail_msg_destroy.
* component-factory.c (component_fn): Don't populate the context
menu; our only action didn't even work.
(populate_folder_context_menu): Removed. ChangeFolderProperties
needs a FolderBrowser which we don't have. It didn't even work
before.
* mail-local.c (mail_local_reconfigure_folder): Bring the creation
of the hash table to the beginning to prevent warnings. Complain
if the mailbox is non-local.
2001-07-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (filter_folder_filter): Don't expunge the source
folder if we have a cache.
2001-07-20 Dan Winship <danw@ximian.com>
* mail-mt.c (mail_msgport_replied): Use mail_msg_destroy rather
than mail_msg_free, so the cancellation operation gets
unregistered and doesn't leak two file descriptors.
2001-07-19 Jason Leach <jleach@ximian.com>
* mail-summary.c (generate_html_summary): Update this
evolution:/local/ URI to evolution:/Local Folders/ to go along
with today's shell changes.
2001-07-19 Jason Leach <jleach@ximian.com>
* mail-display.c: Fix #4605: "Save Image as" should be "Save Image
as...".
2001-07-19 Jason Leach <jleach@ximian.com>
* mail-display.c (mail_display_new): Set the vertical scrolling
policy for the mail display to AUTOMATIC, only get a scrollbar if
the e-mail is longer than one frame.
* folder-browser.c (my_folder_browser_init): We were setting the
policy twice (and to two different things). Removed this one.
* message-list.c (message_list_init): Set the policy for the
message list scroll frame to be horizontal=NEVER,
vertical=AUTOMATIC (scrollbar only if you have >1 page of
messages).
2001-07-19 Peter Williams <peterw@ximian.com>
Track the NoSelect changes in Camel.
* mail-callbacks.c (create_folders): We don't need to check if
the URL is NULL or not anymore.
* component-factory.c (create_noselect_control): New
function. Create a dummy control for folders that can't contain
messages (ie \NoSelect)
(create_view): If the URI says the folder is noselect, make a
dummy control. FIXME: still should merge in the global UI
elements.
(xfer_folder): Don't allow the operation if the destination is
NoSelect.
(destination_folder_handle_motion): Ditto.
(destination_folder_handle_drop): Ditto.
2001-07-19 Not Zed <NotZed@Ximian.com>
* mail-local.c (reconfigure_folder_reconfigure): remvoed
register/start/end etc code.
* mail-ops.c (get_messages_desc): Add the count here.
(get_messages_get): Remove the register/start code, its handled
above us.
(save_messages_desc): Added count.
(save_messages_save): Removed register/start/end code.
* mail-mt.c (mail_msg_received, mail_msg_destroy): Changed to use
camel_operation rather than mail_status.
(mail_msgport_received, mail_msgport_replied): Turn of the
mail_status stuff, we dont need to report on stuff running in the
gui thread right?
(retrieve_shell_view_interface_from_control, set_view_data,
mail_statusf, mail_status, mail_status_end, mail_status_start,
status_timeout, do_del_status, set_status_op): removed now
redundant stuff.
(mail_msg_free): Removed reference to timeout_id.
2001-07-18 Not Zed <NotZed@Ximian.com>
* mail-local.c (reconfigure_folder_reconfigure): Changed to use
camel_operation rathre than mail_status.
(reconfigure_folder_describe): re-enabled this function.
* mail-ops.c (get_messages_get): Changed to use camel-progress for
status reporting.
(save_messages_save): Likewise.
2001-07-17 Not Zed <NotZed@Ximian.com>
* mail-mt.c (struct _mail_msg_priv, destroy_objects, mail_msg_new,
mail_msg_free, do_op_status): Changed to use an EvolutionActivityClient for
progress.
2001-07-18 Jason Leach <jleach@ximian.com>
* mail-tools.h (mail_tool_get_local_inbox_url): Remove this
prototype for a function that was removed long ago.
(mail_tool_get_local_movemail_url): Ditto.
2001-07-18 Jason Leach <jleach@ximian.com>
[Simplifying how default account is stored and used internally,
fixes possabilities of having multiple default accounts and things
like deleting the current default account]
* mail-account-gui.c (mail_account_gui_new): Update for new way of
finding out the default account.
(mail_account_gui_save): Ditto.
* mail-accounts.c (load_accounts): Ditto.
* mail-config-druid.c (make_default_account): Ditto.
* mail-config.c: Added an int MailConfig::default_account, to be
used instead of a 'default_account' boolean on each mail account.
(mail_config_set_default_account_num): New function, facilitates
things.
* Mail.idl: removed the Account::default_account boolean.
2001-07-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_generate_forward_subject): Do what was
suggested in #4596.
2001-07-18 Peter Williams <peterw@ximian.com>
* mail-accounts.c (construct): Add GTK_WIDGET to the charset
picker. Reportedly prevent a craash for someone... ?
* mail-config.glade: Typo fix.
Later: And actually fix the typo.
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_delete): Setup the auto-receive here
instead.
* mail-config.c (mail_config_remove_account): Don't setup the
auto-recv here.
2001-07-17 Iain Holmes <iain@ximian.com>
* mail-accounts.c (mail_able): Reset the auto receive.
* mail-config.h (mail_config_remove_account): Reset the autoreceive.
2001-07-17 Jason Leach <jleach@ximian.com>
* mail-account-gui.c (source_type_changed): Fix for last change:
hide the entire widget, not just the entry.
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (message_list_drag_data_recieved): Fix to
correctly handle text/uri-lists that contain more than a single
url.
* component-factory.c (destination_folder_handle_drop): Fix to
correctly handle text/uri-lists that contain more than a single
url.
2001-07-17 Jason Leach <jleach@ximian.com>
* mail-config.glade: Make the Path: entry into a GnomeFileEntry so
you get a nice "Browse..." button that pops up a file selector to
locate your mbox files. Bug #3501.
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_part_toggle_displayed): Cleaned up a bit.
(handle_multipart_encrypted): Replace the encrypted part with the
decrypted part.
2001-07-17 Iain Holmes <iain@ximian.com>
* mail-accounts.c (mail_delete): Make a nicer dialog.
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (init_trash): Use CAMEL_VTRASH_NAME.
* mail-ops.c (add_vtrash_info): Use CAMEL_VTRASH_NAME.
* folder-browser.c: turned off some debugging
2001-07-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Disallow vtrash for now...
* mail-ops.c (add_vtrash_info): Use g_strcasecmp() when looking
for a Trash folder - it may be lowercase or something funky.
(transfer_messages_transfer): Special-case vtrash folders.
* mail-local.c (init_trash): No need to specify the vfolder
expression here. This code was moved into camel-vtrash-folder.c
ages ago.
* component-factory.c: Let VTrash folders accept/export the same
dnd types as normal folders.
2001-07-16 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (outbox_folder): prototype outbox_folder so
we can check if a folder is it.
(make_folder_name): If the folder is the outbox, display the count
of total messages as "unsent".
(make_folder_status): If the folder is the outbox, display
"unsent" instead of "total"
2001-07-16 Peter Williams <peterw@ximian.com>
* mail-display.c (mail_display_redisplay): Use our own
display_style member instead of the global setting.
(mail_display_init): Initialize display_style.
* mail-display.h: Include "mail-config.h" and add a display_style
member.
* mail-format.c (write_headers): Look at the MailDisplay's
display_style instead of using the full_headers data.
* folder-browser.c (folder_browser_set_message_display_style): Set
the MailDisplay's display style as well as the global display
style.
(my_folder_browser_init): Don't save preference changes by
default. (This is only observered wrt. the message display style
but should apply to other items.)
* folder-browser-factory.c (folder_browser_factory_new_control):
Set this FB to save the preferences set in it.
* folder-browser-ui.c (folder_browser_ui_add_message): Read our
display's state instead of the global setting.
2001-07-16 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (mail_folder_cache_set_folder_browser): DUH.
No need to update every folder if we set the folder browser to
NULL.
2001-07-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Call
mail_autoreceive_setup() so that any changes to the list of
accounts will be respected the next time mail is checked.
2001-07-13 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (expunge_folder): Segfault prevention here if
no uid is currently loaded.
* mail-vfolder.c (unlist_vfolder): New function. If a vfolder in
our list gets finalized, NULL out info->folder (Is it wrong if
this happens?) Also, locking issues?
(vfolder_uri_to_folder): Hook up to the finalize event here.
2001-07-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (filter_folder_filter): Updated to reflect changes in
the filter API by passing in the provided uid cache to
camel_filter_driver_filter_folder.
(mail_filter_folder): Set the cache to NULL.
(mail_fetch_mail): Set the cache to NULL.
(fetch_mail_fetch): If a cache exists for this folder, set
it. When we are finished filtering the incoming messages, the
logic changes a bit. We now save the cache if keep_on_server is
set *or* if there was an exception this way if the user's download
gets interrupted, he won't have to download all the messages
again.
(fetch_mail_fetch): Oh yea, and just so if we get an exception
with `delete' turned on, the next time the user checks mail and an
exception *doesn't* occur, it will go back and mark all the
messages for deletion.
2001-07-12 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Check that
the folder does exist before trying to import it.
2001-07-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (expunge_folder): Force-hide all deleted
messages before expunging.
(expunged_folder): Restore the user's "hide deleted messages"
preference.
2001-07-12 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (expunge_folder): Only blank the mail display
if the message being viewed is one of those to be expunged. Bug
#4030.
2001-07-12 Jason Leach <jleach@ximian.com>
* mail-config.c (config_read): Should be saving the
'identity_html_signature' and 'identity_has_html_signature" keys
in the /Mail/Accounts prefix (with the rest of the per-account
stuff, not on it's own)
2001-07-11 JP Rosevear <jpr@ximian.com>
* mail-display.c (get_embedded_for_component): no longer need to
set a my address property
2001-07-10 Federico Mena Quintero <federico@ximian.com>
* mail-display.c (link_copy_location): Set the CLIPBOARD selection
as well as the primary selection so that Edit/Paste will work in
other programs (e.g. Netscape).
(mail_display_new): Add the target for the CLIPBOARD selection.
2001-07-10 Jason Leach <jleach@ximian.com>
[Bug #4305: Make the automatic mark-as-read timer optional]
* mail-config.glade: Necessary changes to make the Mark as "Read"
label a toggle button instead.
* mail-accounts.c (construct): Connect to the "toggled" on our new
toggle.
(timeout_toggled): New callback, called from above.
* mail-config.c (mail_config_get_do_seen_timeout): New.
(mail_config_set_do_seen_timeout): New.
(mail_config_write_on_exit): Save the preference here.
(config_read): Load it here.
2001-07-10 JP Rosevear <jpr@ximian.com>
* folder-browser.c: Cosmetic patch - replace our defines with the
e-popup ones
* Makefile.am: Typo
2001-07-10 Peter Williams <peterw@ximian.com>
* mail-format.c (attachment_header): Took the logic of whether or
not to make the attachment header out of the actual function.
(mail_part_is_displayed_inline): Return if the part is being
displayed inline (regardless of whether it is actually inline).
(mail_part_toggle_displayed): Toggle whether it's displayed inline
or not.
(get_inline_flags): Determine whether the part is displayed inline
and whether it is actually inline.
(mail_format_mime_message): Initialize the attachment_status hash
table.
* mail-display.c (inline_cb): Instead of modifying the
CamelMimePart, use mail_part_toggle_displayed
(button_press): As above.
(pixmap_press): Use mail_part_is_displayed_inline instead of
mail_part_is_inline. Get the MailDisplay from the popup to do
this.
* mail.h: Add prototypes.
2001-07-10 JP Rosevear <jpr@ximian.com>
* Makefile.am: extra dist the news files
2001-07-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write_on_exit): Use
bonobo_config_set_string_wrapper.
(mail_config_write): Same.
(bonobo_config_set_string_wrapper): Macro wrapping
bonobo_config_set_string that passes "" as the val if the val is
NULL.
* mail-callbacks.c (mail_generate_reply): Make sure that the
reply-to addr i non-NULL before trying to add it to the hash
table.
2001-07-09 JP Rosevear <jpr@ximian.com>
* mail-account-gui.c (get_focused_widget): fix typo so it compiles
2001-07-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (setup_mime_tables): Handle application/pgp using
the text/plain handler.
* mail-account-gui.c (get_focused_widget): New function to
determine which widget is focused.
* mail-account-editor.c (apply_changes): Not only flip to the
notebook page that wasn't finished, but also grab the focus of the
incomplete widget.
* mail-config-druid.c (source_changed): Grab the focus of the
incomplete widget.
(transport_prepare): And here.
(identity_changed): Here too.
* mail-account-gui.c (mail_account_gui_identity_complete): Take an
incomplete argument so we can set which widget is incomplete and
then the caller can focus it or whatever.
(service_complete): Same.
(mail_account_gui_transport_complete): And again here.
(mail_account_gui_management_complete): And here too.
2001-07-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (decode_pgp): Update to pass in the `remember'
argument when creating a new pgp context.
(try_inline_pgp_sig): And here...
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Update to pass
in the `remember' argument when creating a new pgp context.
(mail_crypto_pgp_mime_part_verify): Same.
(mail_crypto_pgp_mime_part_encrypt): And here...
(mail_crypto_pgp_mime_part_decrypt): And finally here.
* mail-config.c (mail_config_get_remember_pgp_passphrase): New.
(mail_config_set_remember_pgp_passphrase): New.
(config_read): Read in the "remember passphrase" value.
(mail_config_write_on_exit): Save the remember-passphrase value.
* mail-accounts.c (construct): Allow the user to set "Remember PGP
Passphrase".
(remember_pgp_passphrase_toggled): Set the toggle state.
2001-07-09 Peter Williams <peterw@ximian.com>
* mail-ops.c (get_folderinfo_got): Check for an exception and
print it. Call done anyway.
(do_update_subfolders): Check for NULL info.
2001-07-09 Peter Williams <peterw@ximian.com>
* mail-config.c (mail_config_write): Some NULL protection for our
strings: pgp_key, html_signature, smime_key. Probably we should do
this for all strings. Either that or change Bonobo Config.
* message-list.c (message_list_init): Explicitly initialize search
to NULL. Bug 3951 might to be due to a problem wrt this, and it
can't hurt.
2001-07-09 Dan Winship <danw@ximian.com>
* mail-display.c (save_part): g_strdup the result of
g_get_home_dir since this variable will get free'd later.
* mail-format.c (mail_lookup_handler): Use
gnome_vfs_mime_get_short_list_applications rather than
gnome_vfs_mime_get_default_application.
* mail-display.c (pixmap_press): Construct the EPopupMenu array on
the fly, based on the number of applications available to open the
MIME type.
(launch_cb): Figure out which menu item was clicked, and invoke
the appropriate application. Ugh, messy, because of the EPopupMenu
interface. Probably should get rewritten some day. Also, make this
handle apps with expects_uris set too.
2001-07-09 Peter Williams <peterw@ximian.com>
* mail-config.c (mail_config_write): Change html_signature stuff
over to bonobo-config -- someone forgot to do this.
* mail-folder-cache.c (dm): Gave up and got rid of dm. Just
replaced it with d(g_message()) and set G_LOG_DOMAIN.
2001-07-09 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (mail_folder_cache_set_update_shellview):
Deleted
(as opposed to #if 0)
(get_folder_info): Changed to assume it has the folder lock.
(make_folder_name): Same.
(make_folder_status): Same.
(update_idle): Don't unlock around the make_folder_ functions.
(*): Changed behavior wrt. get_folder_info. Lock before calling,
but also move preconditions before -- get_folder_info can only
return NULL if uri is NULL. Also add preconditions for other
arguments where necessary.
2001-07-07 Christopher James Lahey <clahey@ximian.com>
* message-list.c (on_cursor_activated_cmd): Check for new_uid !=
NULL here before strcmping.
2001-07-07 Dan Winship <danw@ximian.com>
* main.c (main): Only install the segv_redirect handler if SEGV's
handler is not currently SIG_DFL. Otherwise you get an infinite
SEGV loop if you run with GNOME_DISABLE_CRASH_DIALOG.
2001-07-07 Christopher James Lahey <clahey@ximian.com>
* message-list.c (message_list_select): Made this handle being
given a row that's outside the range better.
2001-07-06 Jason Leach <jleach@ximian.com>
[Fix bug #1100, default account is stored strangely]
* mail-config.c (mail_config_get_default_account_num): New
function, returns the integer of the position of the default
account, used to save which account is the default to the config
db.
(mail_config_write): Save the default account number here in
"/Mail/Accounts/default_account".
(config_read): Load in which is the default here.
2001-07-06 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (composer_send_cb): add a NULL check since that
is a valid return.
2001-07-06 Peter Williams <peterw@ximian.com>
* mail-format.c (format_mime_part): Prevent infinite recursion when
viewing attachments that we can't / shouldn't display but are some
form of plaintext. Cf bug #2234
2001-07-06 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_copy): Freeze and Thaw the
folder.
2001-07-06 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_copy): Mark the messages as
Seen also.
(folder_browser_class_init): Create an atom type for
X-Evolution-Message selection type.
(my_folder_browser_init): Add our multiple selection types, one of
which is the default string type.
* component-factory.c (destination_folder_handle_drop): Update to
use the new X-Evolution-Message type format.
* folder-browser.c (selection_get): Convert the
X-Evolution-Message clipboard type to whatever format the target
wants.
(message_list_drag_data_get): Update because the
X-Evolution-Message type changed.
(folder_browser_copy): Same.
(x_evolution_message_parse): And here too.
2001-07-06 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (composer_postpone_cb): Don't free the psd here --
it will be freed on the "destroy" signal.
* mail-folder-cache.c (maybe_update): Instead of an idle, use a very
short timeout in hopes of reducing the number of redundant updates.
* mail-tools.c (mail_tool_uri_to_folder): Only note the folder in the
cache if we successfully got it.
2001-07-06 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (delete_msg): Select the very next message
after deleting, not the next undeleted (it can make things jump
around in annoying ways if you are deleting many messages), bug #4032.
* folder-browser.c: Forgot to commit the "Mark as Important" right
click menu item.
* message-list.c (message_list_set_folder): Setup the strikeout
column here (after we've gotten the folder) so we can disable
strikeouts for vtrash folders, part of bug #2224.
2001-07-06 Dan Winship <danw@ximian.com>
* mail-folder-cache.c (mail_folder_cache_set_folder_browser): Fix
obvious bug in previous bugfix: Pass "fb" to check_for_fb_match()
so only the selected folder gets updated, instead of "all folders
that haven't yet been selected".
2001-07-06 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (populate_folder_context_menu): New function
to populate the right-click menu for mail folders.
(component_fn): Pass it to `evolution_shell_component_new()'.
2001-07-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Add a checkbox for prompting when
sending a message with an empty subject.
* mail-ops.c (mail_send_message): If filtering fails, return right
away.
* mail-config.c (mail_config_set_show_preview): Okay, apparently I
was wrong. Oh well.
(mail_config_set_thread_list): Fix this one too.
2001-07-05 Peter Williams <peterw@ximian.com>
* mail-vfolder.c (vfolder_uri_to_folder): Add mail folder cache
hookups.
* Makefile.am: Remove the ridiculuous relic known as
test-mail. Clean up a bit.
* mail-vfolder.c (vfolder_uri_to_folder): Add mail folder cache
hookups.
2001-07-05 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (mail_folder_cache_set_folder_browser):
Clear the shell view label if mailer loses focus.
* mail-ops.c (do_update_subfolders_rec): Check for NULL url before
calling folder cache functions.
2001-07-04 Gediminas Paulauskas <menesis@delfi.lt>
* folder-browser-ui.c (message_pixcache): set icon for
ApplyFilters command.
2001-07-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_show_preview): Revert Sam's
changes.
Note: Uhm, g_hash_table_lookup_extended gives us a pointer to the
original value which we can just change to update the hash table
without the need to re-insert - it's already there!! Also, you
don't want to g_hash_table_insert the new value with the same key
without at least first removing the existing bucket. And, you
certainly don't want to g_free() the key after you insert it -
eek!!
2001-07-03 Sam Creasey <sammy@oh.verio.com>
* mail-config.c (mail_config_set_show_preview): Replace value in
config->preview_hash when it already exists. Old code never
re-inserted into the hash, just assigned to val -- it's an int
here, not a real pointer.
2001-07-03 Joe Shaw <joe@ximian.com>
* mail-callbacks.c (expunge_folder): Unset the message being displayed
when expunging. This makes expunged messages not show in the preview
pane when they're not there anymore. Fixes #3591.
2001-07-03 Joe Shaw <joe@ximian.com>
* mail-callbacks.c (mail_reply): If msg is NULL, fetch the message
and requeue a mail_reply call. Fixes bug #3816.
(requeue_mail_reply): Callback from mail_get_message().
2001-07-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_show_preview): Use a better
GHashTable technique that will hopefully solve some bugs and also
use _with_default bonobo-config call.
(mail_config_set_show_preview): No sense in removing the entry
from the hash table and then re-inserting it. Just reset the
value.
(mail_config_get_thread_list): Use the same logic.
(mail_config_set_thread_list): And again here.
2001-07-03 Peter Williams <peterw@ximian.com>
* mail-folder-cache.c (make_folder_name, make_folder_status):
Split make_string into these.
(update_idle): Use (name and status) instead of (wide and thin)
for the text.
2001-07-03 Jason Leach <jleach@ximian.com>
* folder-browser-ui.c: "Mark as Important" menu thingy here.
2001-07-03 Peter Williams <peterw@ximian.com>
* folder-browser.c (message_list_drag_data_get): Compile fixes.
#include errno.h and gnome-dialog-utils.h. s/dirname/tmpdir/
2001-07-03 Peter Williams <peterw@ximian.com>
Prevent folders from appearing to have -1 new messages. Prevent
nonactive folders from updating the title bar. Make the title bar
update when switching to an already-opened folder.
* mail-folder-cache.c (update_message_counts): Ignore the value
for 'unread' if it is -1.
(get_mail_info_receive): Same
(mail_folder_cache_note_folderinfo): Same.
(get_folder_info): Initialize 'fb' to NULL.
(mail_folder_info): Add 'fb' member.
(mail_folder_cache_note_fb): Change note_message_list to this.
(update_idle): Only update the ShellView if the active folder
browser is the same as the one that the MFI references.
(mail_folder_cache_set_folder_browser): New function. Use it to
set the active folder browser. NULL is okay.
(check_for_fb_match): Called from the above. If the MFI has the
new folder browser as its view, queue an update.
* mail-folder-cache.h: Fix prototypes.
* mail-callbacks.c (create_folders): Check if fi->url is nonnull.
* folder-browser.c (got_folder): Change to use note_fb instead of
note_messge_list.
* folder-browser-factory.c (control_activate): Set the folder
browser
(control_deactivate): Clear it here.
(fb_get_svi): Kill some inappropriately cut-n-pasted code.
2001-07-03 Dan Winship <danw@ximian.com>
* mail-config.glade: Rename some of the widgets in the news config
to not conflict with the mail config stuff, so the mail config
druid will work again.
2001-07-03 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (message_list_drag_data_get): Use mkdtemp if we
have it, else use mktemp but make the code safer than it was
previously.
* mail-display.c (launch_cb): Free the template string if the
tempdir failed to be created.
* folder-browser.c (message_list_drag_data_get): Hide the URL
passwd, auth, and params.
(folder_browser_copy): Same.
2001-07-03 Dan Winship <danw@ximian.com>
* mail-ops.c (filter_folder_filter): Don't pass a dirty exception
to camel_folder_sync. Fixes an IMAP filtering crash.
2001-07-02 Sam Creasey <sammy@oh.verio.com>
* mail-account-editor-news.c: Added an MailAccountEditorNews, for
NNTP configuratuion. Based on MailAccountEditor, but stripped.
* Makefile.am: added mail-account-editor-news.c and
mail-account-editor-news.h to SOURCES if ENABLE_NNTP is defined.
* mail-accounts.c (load_news): Moved this function, and fixed some
slight brokenness.
(news_edit): Added functional code using MailAccountEditorNews
(news_add): Added functional code using news_edit after
allocation.
* mail-config.glade: news_editor_window widget added. Used by
MailAccountEditorNews.
* mail-display.c (save_data_cb): Store the pathname used when
saving messages so that the next save box will default to the
previous path.
* message-browser.c (message_browser_new): add signal handler for
size_allocate on the message browser. Thus new windows are size
as they were last allocated.
(message_browser_size_allocate_cb): handler to store allocations.
* message-list.c (message_list_setup_etree): connect to the
info_changed signals for the state of the message_list->tree.
Save the folder state to disk, so that when additional
message_lists are created, they are consistant. e.g. the next
buttons do the same thing in the browser, and in the message
viewer after changing sorting options.
* subscribe-dialog.c (build_tree): freeze sc->folder model while
building the tree. Not doing so takes a very long time over 40000
newsgroups.
2001-07-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Setup the Empty Trash On Exit
widgets.
* mail-config.c (config_read): Option to emtpy trash on exit.
(mail_config_write_on_exit): Same.
(mail_config_set_empty_trash_on_exit): Set the option.
(mail_config_get_empty_trash_on_exit): Get the option.
* component-factory.c (owner_unset_cb): Empty the trash folders if
the user set the "empty trash on exit" option.
2001-07-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Updated for the
mail_transfer_messages API.
* folder-browser.c (message_list_drag_data_recieved): Update for
the mail_transfer_messages API.
(selection_received): Same.
* mail-ops.c (mail_transfer_messages): Renamed from
mail_do_transfer_messages and also added a callback/data arguments
since we need it component_factory::xfer_folder.
* component-factory.c (xfer_folder): Use mail_transfer_messages
instead.
(destination_folder_handle_drop): Update to pass in a NULL
callback arg and a NULL data argument to mail_transfer_messages.
2001-07-02 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_part): move the saving logic out of save_cb
so that we can reuse it for the image saving code.
(save_cb): call save_part.
(save_url): new function to resolve an save an html url.
(image_save_as): save function for images and. Add it to the
link_menu, and add MASK_URL and MASK_SRC to the structure so that
we cans show the proper menus.
(html_button_press_event): call get_src as well to find external
urls references. Add popup masking.
2001-07-02 Peter Williams <peterw@ximian.com>
* README.async: Add a warning about how wrong this document is.
2001-07-02 Peter Williams <peterw@ximian.com>
* mail-folder-cache.h: New file. Protoypes for the Mail Folder
Cache, which provides a place for all the disparate pieces of the
mailer to save bits of information about a folder. Centralizes the
information display code.
* mail-folder-cache.c: New file. Implements the Mail Folder Cache.
* Makefile.am (evolution_mail_SOURCES): Add the
mail-folder-cache.{c,h}
* folder-browser-factory.c (fb_get_svi): Copy of that absurdly
long-named function in mail-display.c that gets the
GNOME_Evolution_ShellView.
(control_activate): Set the ShellView for the folder cache.
* folder-browser.c (got_folder): Tell the folder browser about
this folder.
* mail-callbacks.c (create_folders): Tell the folder cache about
the new folders.
* mail-local.c (reconfigure_folder_reconfigure): Don't unhook our
events as we no longer hook them up.
(register_folder_registered): Tell the folder cache about this
folder's place in the local storage.
(register_folder_register): No longer hook events; the Folder
Cache will do this.
(local_folder_changed, local_folder_changed_proxy): Move to
mail-folder-cache.c
(free_local_folder): No longer unhook events.
* mail-ops.c (do_update_subfolders_rec): Instead of setting the
folder status ourselves, inform the Folder Cache about the
changes.
* mail-tools.c (mail_tool_uri_to_folder): Replace danw's cache
with the new Mail Folder Cache.
(cache_folder, etc): removed.
2001-07-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c: #include widgets/misc/e-charset-picker.h since
it was moved there from libgal.
2001-07-02 Peter Williams <peterw@ximian.com>
* importers/evolution-mbox-importer.c (mbox_factory_fn): Kill
irritating "Returning" g_warning.
2001-07-02 Dan Winship <danw@ximian.com>
* mail-session.c (get_filter_driver): Implement this, based on
code that used to be in mail-ops.c
* mail-ops.c (mail_load_filter_context, setup_filter_driver):
Moved into MailSession::get_filter_driver.
(filter_get_folder): Moved to mail-session.c
(mail_filter_folder, mail_filter_on_demand, mail_fetch_mail,
mail_send_mail, mail_send_queue): Remove FilterContext args, use
camel_session_get_filter_driver.
* mail-send-recv.c (mail_send_receive, mail_receive_uri):
Remove FilterContexts
2001-07-01 Chris Toshok <toshok@ximian.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): the FolderSearch
control is in a different dockitem now.
2001-07-01 Dan Winship <danw@ximian.com>
* mail-tools.c (update_unread_count): Ref the folder before
proxying the event, in case there's only one reference to it and
it gets unreffed before the other end of the event handler runs.
(update_unread_count_main): And unref it when we're done.
(mail_tool_uri_to_folder): Only hold the lock around the hash
table operations, not the entire function. Holding the lock the
whole time can cause deadlock when resolving vfolders, and the
CamelSession and CamelStore locks ensure that multiple threads
calling this function will end up with the same CamelFolder object
at the end anyway, so we just need to lock and re-check the cache
at the end before adding the folder to the cache.
2001-06-30 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-ui.c: Get MailNext/MailPrevious to use
next-message.png and previous-message.png, respectively. Also
change Print to use print.png.
2001-06-30 Jon Trowbridge <trow@ximian.com>
* mail-display.c (make_popup_window): Changed to return the
created window.
(find_socket): Added. Copied from e-shell-view.c. The fact
that I'm copying this bit of code all over isn't cool.
(html_button_press_event): Properly destroy the popup window when
the widget inside the control is destroyed.
* mail-callbacks.c (addrbook_sender): Added. Implements
the "Add sender to addressbook" right-click. (Bug #3645)
(find_socket): Added. Copied from e-shell-view.c.
* folder-browser.c: Added "Add sender to addressbook" to
context_menu[].
* mail-display.c: (handle_embedded_address_object): Removed.
(on_object_requested): Removed handling for embedded address
objects. (Which was obsolete crap.)
2001-06-29 Larry Ewing <lewing@ximian.com>
* mail-display.c (html_button_press_event): remove redundant
logic.
* mail-callbacks.c (create_msg_composer): make sure we show the
sig file.
2001-06-29 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c (control_deactivate): Turn folder
syncing back on here so that IMAP folders will sync without
needing to hit Send & Receive.
* mail-callbacks.c (ask_confirm_for_only_bcc): Throw up the
confirmation dialog.
(composer_get_message): If the user only specified Bcc recipients,
prompt him/her to make sure we should continue and risk the server
adding an Apparently-To header.
* mail-config.c (config_read): Read in config option for prompting
when only Bcc recipients are specified.
(mail_config_write_on_exit): Save the option.
(mail_config_get_prompt_only_bcc): New.
(mail_config_set_prompt_only_bcc): New.
2001-06-29 Dan Winship <danw@ximian.com>
* mail-account-gui.c (build_auth_menu): Take two authtypes lists,
"all", and "supported", and make the unsupported authtypes grayed
out in the menu rather than missing.
(source_type_changed, transport_type_changed,
service_check_supported): Update build_auth_menu calls.
2001-06-29 Radek Doulik <rodo@ximian.com>
* mail-account-gui.c (menu_file_save_cb): implemented plain saving
2001-06-28 Radek Doulik <rodo@ximian.com>
* mail-account-gui.c (load_signature): implemented plain load
(load_signature): use e_msg_composer_get_signature_html
2001-06-28 Peter Williams <peterw@ximian.com>
* mail-ops.c (mail_send_message): Revert fejj's Bcc header removal;
this unsets the BCC recipients and so doesn't send to the Bcc'd
people at all.
2001-06-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (free_send_data): The e_iterator_get() returns
a gconstpointer and we need a non-const BonoboControl so cast it.
* mail-account-gui.c (mail_account_gui_new):
gui->check_html_signature is GtkToggleButton not a GtkCheckButton.
* folder-info.c: Added some #include's to supress warnings.
2001-06-28 Ettore Perazzoli <ettore@ximian.com>
* mail-display.c: Fix case of labels in the `link_menu' so that it
is consistent with that of the other menus in Evolution
[i.e. "Copy Link Location" instead of "Copy Location" etc.].
2001-06-28 Ettore Perazzoli <ettore@ximian.com>
* mail-display.c (invisible_selection_get_callback): New, signal
handler for "selection_get" on the GtkInvisible widget we use for
selections.
(invisible_selection_clear_event_callback): New, signal handler
for "selection_clear_event" on the same invisible widget.
(mail_display_init): Initialize the `selection' and `invisible'
members. Also, explicitly initialize all the other fields as
well.
(mail_display_destroy): Free `selection'. Destroy `invisible'.
(link_copy_location): Re-implemented to just make the mail display
become the owner of the primary selection.
(on_selection_get): Remove `#if 0'ed code.
(mail_display_new): Remove the `#if 0'ed code that would connect
selection stuff to the HTML widget.
(mail_display_new): Connect the signals and add the targets to the
invisible widget.
* mail-display.h: New members `selection' and `GtkInvisible' in
`MailDisplay'.
2001-06-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write_on_exit): Don't bother trying
to save the passwd if the url is NULL.
* folder-browser.c (vfolder_mlist): Strip the mlist name to fix
bug #3732.
* component-factory.c (destination_folder_handle_drop): Since we
have an exception variable, we might as well use it when getting
folders too.
* folder-browser.c (message_list_drag_data_recieved): Call
gtk_drag_finish.
2001-06-28 Dan Winship <danw@ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): After finding a folder,
attach to its "folder_changed" and "message_changed" signals.
(update_unread_count, update_unread_count_main): Moved here from
folder-browser but basically unchanged. Doing this here lets us
get folder tree updates for folders that have had messages
moved/copied/filtered into them, but which don't yet have a view
associated with them.
* folder-browser.c (update_unread_count, update_unread_count_main,
etc): Moved to mail-tools.c
2001-06-28 Radek Doulik <rodo@ximian.com>
* mail-config.c: use new fields everywhere
* mail-config.h: as below
* Mail.idl: added html_signature and has_html_signature
2001-06-28 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (component_fn): Register for the "mailto"
schema.
(handle_external_uri_cb): Callback for the "handle_external_uri"
signal.
(component_fn): Connect it.
2001-06-27 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (component_fn): Pass NULL as the
@external_uri_schemas argument to
`evolution_shell_component_new()'.
2001-06-27 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c: Uncomment EditSelectThread. Yaay!
* mail-callbacks.c (select_thread): New function. Self-explanatory
name. Implementation is a little hairy.
* mail-callbacks.h: Prototype it here.
* mail-callbacks.c (invert_selection): Here too.
(select_all): Here too.
* subscribe-dialog.c (subscribe_select_all): Update to use new
ETree accessors.
(subscribe_invert_selection): Here too.
2001-06-27 jacob berkman <jacob@ximian.com>
* folder-browser.c (save_cursor_pos): work around an e-tree bug
2001-06-27 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c: Fixed Cut/Copy/Paste to work - it turns out I
couldn't share a single GtkInvisible between all the
FolderBrowser's after all.
2001-06-27 Peter Williams <peterw@ximian.com>
* folder-browser-factory.c (control_deactivate): Change to use
more reality-based API below.
Include folder-browser-ui.h too.
(control_activate): Remove now-unused 'int state'.
* folder-browser-ui.h: Changed prototypes to match changes below.
* folder-browser-ui.c (folder_browser_ui_rm_message): Commented out
to reflect reality of how this stuff works (you can't actually remove
the pieces).
(folder_browser_ui_rm_global): Same.
(folder_browser_ui_rm_list): Left because here we add the view menus.
(folder_browser_ui_add_list): ... which were moved here.
(folder_browser_ui_rm_all): New function, does the job of old ui_rm()
2001-06-26 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c: New file derived from
folder-browser-factory.c. Contains the Bonobo UI code, split into
three groups as described in ui/ChangeLog. Also contains the
GalView stuff and the hookups into the Bonobo UI stuff.
* folder-browser-factory.c: Move most of the UI stuff to
folder-browser-ui.c.
(control_activate): Add all three kinds of UI element to this
folderbrowser.
(control_deactivate): Remove all three kinds.
* folder-browser-ui.h: New file. Prototypes functions to add UI
elements to a FolderBrowser.
* Makefile.am: Add folder-browser-ui.{c,h}
* message-browser.c (PARENT_TYPE): Change to BONOBO_TYPE_WINDOW
(message_browser_destroy): Chain to parent destroy function.
(set_bonobo_ui): New function. Add the 'message' functions from
the folder browser to our UI.
(message_browser_close): BonoboVerbify this.
* message-browser.h: Convert to BonoboWindow.
2001-06-26 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (my_folder_browser_init): Helps if I spell
"received" correctly.
* mail-config.c (mail_config_set_thread_list): If the value is
already in the hash table, first remove it before setting the new
value so we don't leak.
(mail_config_set_show_preview): Same.
2001-06-26 Dan Winship <danw@ximian.com>
* mail-mt.c (op_status_timeout): Don't pop up a progress dialog to
say "I already finished this a while ago".
* component-factory.c (storage_create_folder): Pass the path
prefix to folder_created so it can add it to the folder tree in
the right place.
* mail-callbacks.c (folder_created): Take a path prefix.
2001-06-26 jacob berkman <jacob@ximian.com>
* mail-config.c (mail_config_get_show_preview): make ettore stop
complaining so i can get back to work
2001-06-26 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (message_rfc822_dnd): No longer returns a
gboolean and also takes a CamelException.
(destination_folder_handle_drop): Do better error checking.
* folder-browser.c (my_folder_browser_init): Connect to the
tree-drag-data-recieved signal.
(message_list_drag_data_recieved): New function that handles the
recieving end of the DnD event.
(x_evolution_message_parse): New convenience function to parse the
x-evolution-message type so that the cut/paste and DnD code can
share it.
(selection_received): Use x_evolution_message_parse().
* mail-config.c (config_read): Read in the default show_preview
value.
(mail_config_write_on_exit): Save the default show_preview value
as well as saving the individual settings for each URI that has
been changed.
2001-06-25 Joe Shaw <joe@ximian.com>
* folder-browser.c (invisible_destroyed): Check to make sure that
clipboard_selection is non-NULL before we g_byte_array_free() it.
2001-06-25 jacob berkman <jacob@ximian.com>
* mail-send-recv.c (free_send_data): sync folders after we've
gotten mail
* folder-browser-factory.c (control_activate): set the ui
component on the folder browser
(control_activate): update the view preview item
(control_deactivate): don't sync the folder here
(control_deactivate): unset the ui component of the folder browser
* mail-callbacks.c (toggle_flags): stuff from jleach to add an
importance keybinding
(mark_as_important): ditto
(toggle_as_important): again
* mail-config.c (mail_config_get_show_preview):
(mail_config_set_show_preview): basically a copy of
get_thread_list() but for the preview pane
* folder-browser.c (folder_browser_destroy): unref the our ui
component
(folder_browser_set_ui_component): new function for setting the ui
component
(save_cursor_pos):
(set_cursor_pos): try to show the selected row when the preview
pane is shown
(folder_browser_set_message_preview): implement
(folder_browser_toggle_preview): toggle the preview (duh)
(on_key_press): add keybindings for marking as important (!), and
hiding the preview pane (q)
(etree_key): clean up a little bit, and make enter either show the
preview pane or open the message
(fb_resize_cb): only save the paned size if the preview is alread
shown
(folder_browser_gui_init): pass ourselves to fb_resize_cb
(on_message_selected): only add the timeout if the preview is
shown
2001-06-25 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_destroy): Unref the invisible
window that we use for slections.
(folder_browser_class_init): Init the clipboard_atam type.
(selection_get): New
(selection_clear_event): New
(selection_received): New
(folder_browser_copy): New function to copy the message-list
selection.
(folder_browser_cut): New function to cut the message-list
selection.
(folder_browser_paste): New function to paste the message-list
selection.
(my_folder_browser_init): Initialize `invisible` if it's NULL else
ref it - also set some signals on it.
* folder-browser-factory.c: Added verbs for cut/copy/paste.
2001-06-23 Jason Leach <jleach@ximian.com>
* mail-local.c (local_storage_removed_folder_cb): Fixes here for
removing folders.
* mail-ops.c (remove_folder_get): Some fixes in here too.
2001-06-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_read): Duh, we saved the charset as
"default_charset", not "charset" - no wonder the correct charset
menu item was never being set.
2001-06-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Temporarily remove the Bcc
header before sending the message.
2001-06-21 Jon Trowbridge <trow@ximian.com>
* mail-display.c (html_button_press_event): Remove empty "name"
property setting from the popup control.
2001-06-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Allow the message to be
sent even if there are no To recipients but only as long as there
are other recipients defined.
2001-06-21 Jason Leach <jleach@ximian.com>
* component-factory.c (mail_remove_storage): Deregister the
storage from the shell so it will get removed from the folder
tree.
2001-06-20 Kjartan Maraas <kmaraas@gnome.org>
* folder-browser.c: More than one accel key is a tad
confusing.
2001-06-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c: #include "folder-browser-factory.h"
* component-factory.c (mail_remove_storage): New function to
remove an EvolutionStorage.
* mail-accounts.c (mail_delete): Remove the storage from the
folder-tree.
(news_delete): Same.
2001-06-19 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (destination_folder_handle_drop): Accept
text/uri-list mime types - this allows us to drag messages from
Nautilus into an Evolution folder.
* folder-browser.c (message_list_drag_data_get): Do cleanup and
better error handling.
2001-06-19 Jon Trowbridge <trow@ximian.com>
* mail-tools.c (mail_tool_do_movemail): Properly clean up the
movemail files when no mail was received.
2001-06-19 Radek Doulik <rodo@ximian.com>
* mail-format.c (write_field_row_begin): add column with
between header name and value
(write_field_row_begin): hmm, use just bold as it looks
better
2001-06-18 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (destination_folder_handle_drop): Use a nice
switch statement and use the new enum values.
* mail-callbacks.c (list_add_addresses): Now takes a hash table of
already-used-recipients so that we don't get duplicates.
(mail_generate_reply): Pass in a rcpt_hash argument to
list_add_addresses(). These changes fix bug #1639.
2001-06-18 Dan Winship <danw@ximian.com>
* Makefile.am (evolution_mail_LDADD): Remove DB3_LDADD
2001-06-18 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c: Change the drop-type "x-evolution-dnd" to
"x-evolution-message" since we want to be able to DnD more than
one data type ;-)
* folder-browser.c: Change supported DnD drop types to disclude
URI_LIST as that seems to crash Nautilus and seems overly
complicated. Since I am going to be supporting message/rfc822,
hopefully Nautilus can handle that or else maybe something like
text/plain.
(message_list_drag_data_get): Remove the code for URI_LIST.
2001-06-14 Not Zed <NotZed@Ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): If we have a fragment in
the url, use that as the folder name, and not the path component.
2001-06-13 Not Zed <NotZed@Ximian.com>
* component-factory.c (mail_load_storages): Added temp hack to let
spool providers show up in the list.
2001-06-16 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (my_folder_browser_init): Allow user's to
"copy" drag & drop rather than just "move".
2001-06-15 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (destination_folder_handle_drop): Implemented.
* message-list.c (message_list_construct): Don't connect to the
DnD signals here.
(message_list_drag_data_get): Removed.
(add_uid): Removed.
* folder-browser.c (my_folder_browser_init): Connect to DnD signals.
(message_list_drag_data_get): Implemented.
2001-06-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Fixed misuse of an uninitialized
variable.
* component-factory.c (destination_folder_handle_drop): Implemented.
* mail.h: Added prototype for evolution_folder_info_factory_init.
* mail-ops.c (mail_do_transfer_messages): Now takes a const char*
as the dest_uri. This works better all around since we strdup'd
the string anyway.
2001-06-15 Dan Winship <danw@ximian.com>
* mail-format.c (mail_format_mime_message): We can't output
"<html>" and "</html>" here because it gets called recursively to
display message/rfc822 subparts.
(mail_format_raw_message): Add padding to match the formatted
display.
* mail-display.c (mail_display_redisplay): Move rodo's html header
changes from mail_format_mime_message to here.
2001-06-14 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (got_folder): Updated to reflect changes to
mail_config_[g,s]et_thread_list().
(folder_browser_toggle_threads): Same.
* folder-browser-factory.c (control_activate): Updated to reflect
changes to mail_config_[g,s]et_thread_list().
* mail-config.c (mail_config_write_on_exit): Do cleanup when we're
done.
(mail_config_set_thread_list): Send in a URI so we can save the
state on a per-folder basis.
(mail_config_get_thread_list): Send in a URI so we can retrieve
the state on a per-folder basis.
* component-factory.c: Setup the accepted_dnd_types. Also added
skeleton code for DnD.
2001-06-14 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c: Add Reply-to-List bonobo verbs.
* folder-browser.c: Add Reply-to-List menu items.
* mail-callbacks.c (mail_reply): Use an enum for specifying the
reply mode, becaus enow we can reply-to-list.
(reply_to_list): Implement.
(reply_to_sender): Use REPLY_SENDER.
(reply_to_all): Use REPLY_ALL.
(mail_generate_reply): Handle the different modes.
2001-06-12 JP Rosevear <jpr@ximian.com>
* Makefile.am: Remove folder-info.h until iain checks it in
2001-06-12 Not Zed <NotZed@Ximian.com>
* mail-account-gui.c (source_type_changed): Setup default spool
location same as for mbox mail retrieval.
2001-06-08 Dan Winship <danw@ximian.com>
* folder-browser-factory.c: fix some commands to match the ui file
again.
2001-06-07 Iain Holmes <iain@ximian.com>
* GNOME_Evolution_Mail.oaf.in: Add server info for FolderInfo
Remove server info for the Summary server
* Mail.idl: Add a FolderInfo interface to retreive information about
a mail folder.
* Makefile.am: Remove the executive summary stuff. Add the folder-info
files.
* component-factory.c: Remove the mail-summary.h include.
Remove summary_factory.
(summary_fn): Remove.
(component_factory_init): Remove the summary_factory creation.
Initialise the info_factory.
2001-06-08 Jon Trowbridge <trow@ximian.com>
* mail-ops.c (mail_send_message): Reattach X-Evolution-Account
information to the message after sending it. This way it can
be used to set the identity properly if we later Resend the
message.
* mail-tools.c (mail_tool_get_local_movemail_path): If you had
multiple accounts that used mboxes, and if you received mail in N
of those accounts, you would get N copies of each of your e-mail
messages. This is because everything was being dumped into one
big file by movemail, and the filters would run on that file N
times. To work around this, each mbox account now gets its own
distinct temporary movemail file.
2001-06-07 Jon Trowbridge <trow@ximian.com>
* mail-ops.c (fetch_mail_fetch): Pass the original source URI
to camel_filter_driver_filter_mbox.
(mail_send_message): Pass NULL as the orginal source URI
to camel_filter_driver_filter_message.
2001-06-06 Jon Trowbridge <trow@ximian.com>
* mail-account-gui.c (source_type_changed): Check that the chain
of deferences in gui->account->source->url is safe. This was
causing a segfault when adding a new account if any of the
existing accounts had their sources set to "None".
(i.e. gui->account->source == NULL)
* mail-accounts.c (load_accounts): Check that account->source !=
NULL before dereferencing it.
(load_accounts): The selection is cleared when the account clist
is rebuilt (say after a call to add), but no unselect event is
emitted. Yes, the clist is evil. We work around this by
explictly calling mail_unselect, our unselect signal handler.
(Otherwise, the edit and delete buttons remain sensitive and
accounts_row != 0, but the user can't see which row the dialog
thinks is selected.)
(load_news): Check the account->source != NULL before
dereferencing it.
(mail_unselect): If an insensitive button in a button box has the
focus, and if you hit tab, there is a segfault deep inside of gtk.
This is probably a gtk bug. We work around it by having the add
button (which is always sensitive) grab the focus on an unselect.
2001-06-05 Jason Leach <jleach@ximian.com>
(Fix bug #3211: Should undelete when flagging a delete message as
important)
* message-list.c (on_click): When flagging a message as important,
check to see if it's flagged as deleted, if so, undelete it.
(Fix bug #314: Display URLs in statusbar on mouseover)
* mail-display.c (html_on_url): New function, callback for
GtkHTML's "on_url" signal.
2001-06-05 Radek Doulik <rodo@ximian.com>
* mail-format.c: make HTML and plain mails to have the same
boundary
2001-06-03 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am (evolution_mail_LDADD): Move `$(DB3_LDADD)' before
libeutil.
2001-06-01 Federico Mena Quintero <federico@ximian.com>
* folder-browser.h (FolderBrowser): Added fields for the
GalViewMenus and GalViewCollection, since we need to keep them
around while the component is active.
* folder-browser-factory.c (folder_browser_setup_view_menus): Plug
leaks; unref the spec and factory. Set the view collection and
the view menus on the FolderBrowser object.
(folder_browser_discard_view_menus): New function.
(control_deactivate): Discard the menus.
* folder-browser.c (folder_browser_destroy): Destroy the view
collection and the view menus.
2001-06-01 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am (evolution_mail_LDADD): Add `$(DB3_LDADD)'.
2001-06-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Save the pgp and
smime settings.
(mail_account_gui_new): Setup the pgp and s/mime page (but disable
the s/mime frame if we are not compiled with s/mime support).
* mail-config.c (account_copy): Updated to save extra pgp and
smime options.
(account_destroy): Free draft/sent folder info and also the new
pgp/smime keys.
(config_read): Read in the pgp and s/mime config options.
(mail_config_write): Save the account pgp and smime options.
2001-06-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (source_type_changed): Call
build_extra_conf() here too. This is when we REALLY want to call
it anyway, not on switch-page because then we'd lose any data on
the Receive Options page if we never switch to that page before
applying the changes.
* mail-account-editor.c (construct): Don't connect to the
switch-page event, instead just call build_extra_conf() here with
the source->url.
2001-06-01 Dan Winship <danw@ximian.com>
* mail-config.c (config_read): Fix dumb misuse of g_get_charset.
2001-05-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Removed the code to
check for the validity of an S/MIME part. Stuff works differently
now.
* mail-crypto.c: Rewrote how the S/MIME stuff is going to work.
2001-05-30 Dan Winship <danw@ximian.com>
* mail-config.glade: Rename the "PGP" page back to "Other" and add
a "default charset" option menu.
* mail-config.c (config_read, mail_config_write_on_exit,
mail_config_get_default_charset, mail_config_set_default_charset):
Handle "default charset".
* mail-accounts.c (construct): Fill in the "default_charset" menu
with an e_charset_picker menu.
(charset_menu_deactivate): Update the default charset.
2001-05-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (list_add_addresses): Take another argument to
ignore a certain address.
(mail_generate_reply): Ignore references to the reply-to address
when constructing the Cc list.
2001-05-29 Jason Leach <jleach@ximian.com>
* message-browser.c (message_browser_new): one-line fix for bug
#2536: File->Close in message viewer doesn't work.
(message_browser_new): Also replaced like 4 lines of code with a
one-liner featuring gnome_app_create_toolbar_with_data().
2001-05-28 Jason Leach <jleach@ximian.com>
* mail-local.c (load_metainfo): Don't need to check if (foo!=NULL)
before doing an xmlFreeDoc().
2001-05-28 Dan Winship <danw@ximian.com>
* mail-format.c (write_text_header): Fix a bug that could cause a
crash on messages with an empty subject. Oops.
2001-05-27 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c: Removed the etable spec string.
(message_list_construct): Load the etable spec from a file.
* folder-browser-factory.c: Load the etable spec from the file,
not a string.
* Makefile.am: Add message-list.etspec to be installed.
* message-list.etspec: New file containing the ETable file
specification.
* mail-config.h: Prototype evolution_mail_config_get_type.
2001-05-27 Dan Winship <danw@ximian.com>
* folder-browser-factory.c: #include
"evolution-shell-component-utils.h" rather than "e-gui-utils.h"
for e_pixmaps_update.
* subscribe-dialog.c: Likewise.
2001-05-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp_sig): Fix to work properly.
(handle_multipart_signed): Fixed a bug that caused some
multipart/signed messages to be handled by the multipart_mixed
handler.
2001-05-25 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c: Added callbacks for Next/Previous
Unread and Next/Previous Flagged message.
* mail-callbacks.c (previous_flagged_msg): Implemented.
(next_flagged_msg): Implemented.
2001-05-26 Dan Winship <danw@ximian.com>
* mail-ops.c (mail_send_message, transfer_messages_transfer,
set_offline_do): When unreffing a folder we got ourselves (as
opposed to one passed in by the caller), sync before unreffing,
since we might be holding the only reference to it.
(mail_refresh_folder): New op, like mail_sync_folder, but does a
camel_folder_refresh_info instead.
* folder-browser-factory.c (control_activate): Call
mail_refresh_folder, not mail_sync_folder. (The goal is to see new
messages: sync used to work with imap because imap_sync was
broken, but it doesn't work for that any more.)
2001-05-25 Peter Williams <peterw@ximian.com>
* Makefile.am: Reference libeshell.la instead of libeshell.a.
2001-05-25 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c (control_activate): Disable Resend on
non-Sent folder FolderBrowsers. Thanks to Wayne Davis for this
patch.
* component-factory.c (xfer_folder): This code should be correct
now. Still waiting on the shell to do it's job of creating the
metadata xml file in the destination folder though.
2001-05-24 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (message_list_select_uid): g_strdup the uid into
the ml->cursor_uid.
* message-browser.c (message_browser_forward_msg): Use the default
forward style.
2001-05-24 Dan Winship <danw@ximian.com>
* mail-identify.c (mail_identify_mime_part): If the message data
is online, sniff the data for a MIME type first, and use the
filename second. Makes it more reliable, and deals with the
specific case of "application/octet-stream; name=foo.vcf" which
gnome-vfs will identify as vcalendar, but which can also be a
vcard.
2001-05-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp_sig): Only write the message up to
(but not including) the attached signature block.
2001-05-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_postpone_cb): Don't free the
folder-info here, instead have mail_append_mail() call our new
function, append_mail_cleanup() which'll free the
folder-info. This fixes the problem of send-later segfaulting.
* message-list.c (message_list_set_folder): Make the message-list
respect the "hide deleted messages" setting. Fixes bug #2248.
* component-factory.c (xfer_folder): New function that the shell
component calls to copy/move a folder.
(component_fn): Set the xfer_folder_fn argument.
* mail-ops.c (mail_remove_folder): New async function to remove a
folder. God knows if it does what the ShellComponent needs or not
yet.
(mail_xfer_folder): Yet another yummy async function to move or
copy a folder to a new location.
* component-factory.c (storage_remove_folder): New function for
removing folders.
(remove_folder): New function that the shell component calls to
delete a folder.
(component_fn): Set the remove_folder_fn argument.
2001-05-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write_on_exit): Save the
message-display style.
(config_read): Read the message-display style.
2001-05-22 Dan Winship <danw@ximian.com>
* mail-display.c (on_url_requested): If http mode is
HTTP_SOMETIMES, use e_book_query_address_locally to check the From
address and load images if it's found.
* mail-config.c (config_read): Default http_mode to
MAIL_CONFIG_HTTP_SOMETIMES. Fix typo to make default forward style
actually work.
2001-05-22 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Use MAILER_CFLAGS and MAILER_LIBS.
* message-browser.c (message_browser_folder_loaded): Instead of
calling message_list_select_uid() here, instead connect to the
"message_list_loaded" signal since the message-list is not built
yet at this point.
(message_browser_message_list_built): Call
message_list_select_uid() here instead.
* message-list.c: Lets have a new signal, MESSAGE_LIST_BUILT, that
gets emitted when the message-list has finished being built by one
of the built_*() functions.
(message_list_class_init): Setup the signal stuff.
(regen_list_regened): Emit the signal here (should this perhaps be
moved into each of the build_*() functions instead?).
2001-05-21 Kjartan Maraas <kmaraas@gnome.org>
* mail-local.c: Mark a string for translation.
2001-05-18 Jon Trowbridge <trow@ximian.com>
* Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
now required by the composer.)
2001-05-17 Dan Winship <danw@ximian.com>
* mail-callbacks.c (composer_postpone_cb): mark Outbox messages as
read.
2001-05-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_write_authenticity): New convenience
function for all signature verification functions to use to
display whether or not the signed part was authentic.
(try_inline_pgp_sig): Use mail_write_authentic().
(handle_multipart_signed): Add code to handle S/MIME
multipart/signed parts and also use mail_write_authenticity().
2001-05-17 Dan Winship <danw@ximian.com>
* mail-config.glade: add new icons from jimmac.
2001-05-16 Dan Winship <danw@ximian.com>
* mail-format.c (mail_format_raw_message): add
E_TEXT_TO_HTML_ESCAPE_8BIT to the flags
2001-05-16 Dan Winship <danw@ximian.com>
* folder-browser.c (folder_browser_is_drafts,
folder_browser_is_sent, folder_browser_is_outbox): Functions to
determine if a folderbrowser is one of the drafts, sent, or outbox
folders.
(got_folder): Pass TRUE for the "outgoing" flag to
message_list_set_folder if this is a Sent, Drafts, or Outbox
folder.
* message-list.c (message_list_set_folder): Take a flag saying
whether or not the folder is an "outgoing" folder.
(message_list_setup_etree): Ditto. Use that rather than a
hardcoded list of foldernames for deciding whether to swap From
and To in the default layout.
* mail-config.c (mail_config_folder_to_cachename): Make IMAP
folders have unique cachenames rather than only one per store, so
that IMAP Sent and Drafts folders don't get forced into having the
same layout as the INBOX.
* mail-callbacks.c: (is_sent_folder, is_drafts_folder): Gone.
Replaced with simpler folder_browser_is_* routines.
(edit_msg, resend_msg, open_msg): Use folder_browser_is_*
routines.
* mail-local.c (reconfigure_clicked): Update call to
message_list_set_folder.
2001-05-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_is_smime_v3_signed): Removed (this
now exists in camel/camel-smime.c).
(mail_crypto_is_pkcs7_mime): Same.
(mail_crypto_smime_part_sign): new
(mail_crypto_smime_part_verify): new
(mail_crypto_smime_part_encrypt): new
(mail_crypto_smime_part_decrypt): new
(mail_crypto_pgp_mime_part_sign): Added code to set an exception
if the context fails to be created.
(mail_crypto_pgp_mime_part_verify): And here...
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): And here too.
2001-05-16 Dan Winship <danw@ximian.com>
* mail-display.c (mail_display_redisplay): Deal with full-header
mode in addition to source mode
* mail-format.c (write_field_row_begin): Add WRITE_NOCOLUMNS flag
to write the header in a single table cell rather than two. Output
the second columns's "<td>" when not in NOCOLUMNS mode. Don't
include the ":" in the passed-in header name.
(write_date, write_address): Update for write_field_row_begin
changes.
(write_text_field): Genericified and updated from write_subject.
(write_headers): Deal with both normal and full-header mode.
2001-05-15 Dan Winship <danw@ximian.com>
* mail-display.c (on_url_requested): Load http images if the user
has force-loaded images too.
(mail_display_redisplay): Update for normal/headers/source changes.
(mail_display_load_images): New. Force HTTP image loading for the
current message.
* mail-config.c (mail_config_get_message_display_style,
mail_config_set_message_display_style): Updated and renamed from
mail_config_{get,set}_view_source
* mail-callbacks.c (load_images): New.
* folder-browser.c (folder_browser_set_message_display_style):
Renamed and updated from folder_browser_toggle_view_source.
* folder-browser-factory.c (verbs): Add ViewLoadImages.
(control_activate): Update for normal/headers/source change to
radio group.
2001-05-15 Dan Winship <danw@ximian.com>
* folder-browser-factory.c (verbs): Update for changes in
evolution-mail.xml (many commands were renamed to better match the
current menu layout).
(pixcache): Refer to commands via their paths in /commands/
rather than hardcoding their menu paths.
2001-05-14 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Put frame around dialog
vbox, put mail subject in that frame's label. (Patch by Duncan.)
(mail_search_set_subject): Break out subject-setting code.
Truncate long subjects with ellipses.
2001-05-14 Duncan Mak <duncan@ximian.com>
* mail-search.c (mail_search_construct): set the dialog's
window_icon to jimmac's new find_message.xpm.
2001-05-13 Iain Holmes <iain@ximian.com>
* Makefile.am: Make the LDADD line longer so it actually compiles
everything correctly.
2001-05-14 Dan Winship <danw@ximian.com>
* mail-config.glade: Split "Other" page into three pages, Display,
Composer, and PGP. Add HTML image stuff on the Display page and
default forward style on the Composer page.
* mail-config.c (mail_config_get_default_forward_style,
mail_config_set_default_forward_style): User-specified default
style for forwarding messages.
(config_read, mail_config_write_on_exit): Deal with forward style.
* mail-accounts.c: Handle HTML image display options and default
forward style.
* mail-callbacks.c (forward): New. Forward in the user-selected
default style.
(forward_inline, forward_quoted): Simplify these some. Remove the
fallback to forward attached when forwarding multiple messages: it
should just forward the multiple messages inline or quoted in
those cases. (Which it doesn't yet, but that's a bug.)
* folder-browser.c (context_menu): Remove "Forward inline" and
make "Forward" call forward() rather than forward_attached().
* folder-browser-factory.c: Update command/menu/toolbar/pixmap
gunk for the "MessageForwardAttached" vs "MessageForward" split.
* mail-session.c (mail_session_get_type):
* mail-format.c (format_mime_part):
* mail-account-gui.c (setup_service): Fix warnings.
* mail-mlist-magic.c: Remove this... it's not used any more.
* folder-browser.c:
* message-browser.c: Remove references to mail-mlist-magic.h
2001-05-14 Jon Trowbridge <trow@ximian.com>
* folder-browser.c (folder_browser_config_search): Use secondary
searches here, so that we control the interference between the two
bits of searching UI.
2001-05-13 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Destroy the MailSearch
dialog if the underlying MailDisplay is destroyed. I don't like
the way that label in the dialog with the message subject in it
looks, so I've #ifdef-ed it out for now. Center the Matches
label --- it makes the dialog look more balanced, I think.
(dialog_clicked_cb): Changed to reflect adjusted
ESearchingTokenizer API, using primary searches.
(toggled_case_cb): Use the primary search API.
* e-searching-tokenizer.c: Make searching routines utf8-friendly.
Rationalize how the match begin/end markup is handled; allow for
begin/end markup that varies by search. Add concept of primary and
secondary matching, to disentangle possible interactions between
search-bar searches and search-dialog searches.
2001-05-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_storage_shutdown): Get rid of this - we
don't need it.
* component-factory.c (owner_unset_cb): Don't unref the LocalStore
- we don't own a ref on it!!
2001-05-12 Duncan Mak <duncan@ximian.com>
* mail-search.c (begin_cb): Updates the subject on refresh and
sets subject to "Untitled Message" if subject is NULL.
(mail_search_construct): Moved msg_subject to its own GtkLabel,
sets subject to "Untitled Message" if subject is NULL. Give focus
to entry by default. Made <enter> in entry run
dialog_clicked_cb by setting gnome_dialog_editable_enters.
2001-05-12 Gediminas Paulauskas <menesis@delfi.lt>
* folder-browser-factory.c: load pixmaps for MessageCopy and
MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
for a patch.
2001-05-11 Dan Winship <danw@ximian.com>
* mail-display.c (load_http): callback to use GNOME-VFS to load
http data.
(on_url_requested): Handle http: URLs that refer to either MIME
parts or web data.
(mail_display_redisplay_when_loaded): Moved out of
mail_content_loaded and made more generic.
* mail-format.c (add_url): Handle two different kinds of URLs
(URLs that point to CamelMimeParts and URLs that point to
GByteArrays).
(mail_content_loaded): Use mail_display_redisplay_when_loaded.
(format_mime_part): Renamed from "call_handler_function". Also,
record Content-Location if the part has one. (This is not yet 100%
correct: it doesn't deal with relative URLs at all.)
(handle_text_html): Use Content-Location URL rather than
Content-ID, when available (will help deal with relative URLs once
GtkHTML supports that better).
(etc): Update for changes.
* mail-config.c (mail_config_get_http_mode,
mail_config_set_http_mode): get/set HTTP image downloading mode.
(config_read, mail_config_write_on_exit): save/load that data.
2001-05-11 JP Rosevear <jpr@ximian.com>
* mail-importer.h: add proto
* mail-importer.c (mail_importer_uninit): release and unref the
local storage
* mail-local.c (mail_local_store_finalize): use
bonobo_object_release_unref rather than doing Bonobo_Unknow_unref
and a corba release
(register_folder_registered): "sink" the local_store ref to
prevent circular ref
(mail_local_storage_shutdown): unref the local store
* mail-local.h: new proto
* component-factory.c (owner_unset_cb): uninit the importer and
shutdown the local storage
2001-05-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_reconfigure_folder): Set a title on the
window "Reconfigure %s" where %s is the folder name. Also, don't
allow more than one of these type windows to be opened per folder.
* mail-tools.c (mail_tool_get_folder_name): Fix Danw's kludge to
actually work :-)
2001-05-11 Martha Burke <martha@ximian.com>
* gui/Makefile.am: sanitize LD_ADDS and CFLAGS so the libtool
lines are shorter (fixes problem on solaries due to sed)
2001-05-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_edit): Don't allow multiple copies of
this to be run at a time.
* mail-callbacks.c (providers_config): Don't allow multiple copies
of this to be run at a time.
(manage_subscriptions): Same, but this was a tad more kludgy since
we don't gnome_dialog_run_and_close() this one. I had to make the
widget a semi-global variable. yuck :\
(filter_edit): Same.
2001-05-11 Jon Trowbridge <trow@ximian.com>
* e-searching-tokenizer.c (e_searching_tokenizer_new):
Remove a snippet of debugging code I left in by mistake.
2001-05-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_inlined): If the cursor_uid is NULL,
then we can't forward anything so just return.
(forward_quoted): Same.
2001-05-10 Jon Trowbridge <trow@ximian.com>
* folder-browser.c (folder_browser_config_search): Use the
ESearchingTokenizer to highlight search matches for folder-level
searches. Still mildly broken, but it works for the simple cases.
* mail-display.c (mail_display_new): Use our ESearchingTokenizer
for the mail display GtkHTML widget.
* mail-search.c (dialog_clicked_cb): Use the ESearchingTokenizer to
highlight search matches.
(mail_search_construct): Add a match count to the search dialog.
* e-searching-tokenizer.c
(e_searching_tokenizer_set_search_string): Added. A custom HTML
tokenizer that does highlighting of search strings.
* mail-config.c: No, we don't want to include
bonobo-running-context.h... just bonobo-context.h.
2001-05-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c: Fix some compiler warnings by including the
correct bonobo headers and by using the correct bonobo types.
(config_read): Some fixes so that we can never have an empty
string as a URL.
2001-05-10 Dan Winship <danw@ximian.com>
* folder-browser.c (on_key_press): Don't advance to the next
undeleted message after "Delete"...
* mail-callbacks.c (delete_msg): ...instead, do it here, whether
the user used Delete, Alt+D, or the toolbar. (But only if they
only deleted a single message.)
* message-list.c (message_list_select): Don't clear the display on
failure.
(build_tree): Clear the display when the currently-selected
message stops existing and we don't have an obvious message to
select instead of it. (Eg, when deleting the last message with
"hide deleted messages" set, or expunging while a deleted message
is selected.)
2001-05-09 Dan Winship <danw@ximian.com>
* mail-offline-handler.c: New file, started by Ettore, finished by
me, to implement the GNOME_Evolution_Offline interface.
* Makefile.am (evolution_mail_SOURCES): Add
mail-offline-handler.[ch]
* mail-ops.c (mail_store_set_offline): Set a store online or
offline.
* mail-send-recv.c (auto_timeout): Don't run auto-check-for-mail
while the session is offline.
* component-factory.c (component_fn): Set up offline handler.
2001-05-09 Christopher James Lahey <clahey@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Made a const
char * here.
2001-05-08 Iain Holmes <iain@ximian.com>
* mail-config.[ch]: Moved all references to the Bonobo stuff into the .c file
2001-05-08 Iain Holmes <iain@ximian.com>
* mail-callbacks.c (filter_edit): Set the title of the dialog.
* GNOME_Evolution_Mail.oaf.in: Add a reference for the MailConfig
interface stuff.
* Mail.idl: Add the MailConfig interface, and a MailFilter interface.
* component-factory.c (component_factory_init): Call
evolution_mail_config_factory_init.
* mail-account-gui.c (setup_service): Just return if url == NULL,
don't crash.
* mail-config.c: #include bonobo-object.h, #include Mail.h and define
the Config factory IID.
Implement the MailConfig interface with a BonoboObject.
(impl_GNOME_Evolution_MailConfig_addAccount): Convert the CORBA struct
into the correct MailConfig structures and add the account.
(evolution_mail_config_class_init): Initialise the class.
(evolution_mail_config_init): This function is intentionally left blank.
(evolution_mail_config_factory_fn): Create an EvolutionMailConfig object
and return it.
(evolution_mail_config_factory_init): Set up the bonobo factory.
* mail-config.h: #include bonobo-xobject.h and Mail.h
Declare the object structures.
* importers/Makefile.am: Remove the intelligent importers.
* importers/evolution-mbox-importer.c (folder_created_cb): Callback
from when the folder is created. Opens the folder and unrefs the
listener.
(load_file_fn): Create the folder if it doesn't exist.
2001-05-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_forward_message): Convert the Subject
header to HTML and also make sure that the Subject, To, and From
header values are non-NULL before feeding them into
e_text_to_html().
* mail-callbacks.c (edit_msg_internal): Free the UIDs if the user
decides to not go through with editing all the messages he
selected.
(resend_msg): If the user attempts to resend more than 10
messages, make sure he really means it.
(do_resend_messages): Richard Zach feels that "Resend" should open
the message(s) in a composer since he might want to edit at least
the recipients (maybe he needs to resend because the message
bounced the first time) and Ettore wants pretty much the same
thing. This makes "Resend" basically the same as "Edit" but for
previously sent messages, whereas "Edit" is only for Drafts.
2001-05-08 Gediminas Paulauskas <menesis@delfi.lt>
* mail-search.c: convert search entry to utf8.
* mail-local.c: d() debugging message.
* mail-send-recv.c: replace " ..." with "..."
* Makefile.am: removed EVOLUTION_VERSION.
2001-05-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c: s/HAVE_NSS/HAVE_SSL for the SSL checkbox
stuff.
2001-05-07 Dan Winship <danw@ximian.com>
* folder-browser.c (my_folder_browser_init): Connect to
key_press_event on the GtkHTML widget.
(etree_key): Only handle space/backspace here, pass the rest off
to on_key_press.
(on_key_press): Handle Delete/N/P/Menu in either MessageList or
MailDisplay.
* message-list.c (message_list_select): Grab focus if we don't
have it.
2001-05-03 Dan Winship <danw@ximian.com>
* message-list.c: #include <camel/camel-file-utils.h>
* mail-ops.c (get_folderinfo_get):
* subscribe-dialog.c (build_tree): Update for
camel_store_get_folder_info prototype change.
* mail-format.c (handle_text_plain_flowed): Improve more on the
fix from the other day: the first level of indentation adds blank
lines, but further levels don't...
2001-04-30 Dan Winship <danw@ximian.com>
* folder-browser.c (folder_browser_destroy): Unhook event handlers
before syncing the folder, since the folder browser will have been
destroyed by the time the sync thread completes and calls the
signal handlers.
2001-04-29 Dan Winship <danw@ximian.com>
* mail-format.c (handle_text_plain_flowed): Mojo this a bit so
that "\n\n>" gets translated to "<br><blockquote>" rather than
"<br><br><blockquote>", since the transition to blockquote mode
creates a blank line itself. Makes Mozilla-generated flowed
replies look better.
2001-04-27 Dan Winship <danw@ximian.com>
* mail-session.c: Renamed from session.c and made to be a subclass
of CamelSession.
* mail-mt.c (mail_user_message): Renamed from mail_get_accept and
made more general-purpose, to implement the new
camel_session_alert_user.
2001-04-26 Jeffrey Stedfast <fejj@ximian.com>
* main.c (main): No need to camel_shutdown() anymore...
* mail-callbacks.c (next_msg): Don't filter on Seen status.
(previous_msg): Same.
(next_unread_msg): New function that does what the old callback
next_msg callback did (only better named).
(previous_unread_msg): Same.
* message-list.c (hide_load_state): Updated to use camel-file-util
routines.
(hide_save_1): Same.
(hide_save_state): And here too.
2001-04-26 Dan Winship <danw@ximian.com>
* Makefile.am (INCLUDES): Remove UNICODE_CFLAGS
* mail-format.c (handle_text_plain_flowed): Use <font color=...>
to mark citations rather than italicizing them, which has never
looked very nice. Now this is more consistent with the non-flowed
case.
2001-04-26 Jon Trowbridge <trow@ximian.com>
* folder-browser-factory.c: Added "MessageSearch" verb.
* mail-callbacks.c (search_msg): Added search callback.
(are_you_sure): Added some casts to fix compiler warnings.
* mail-search.c: Added. A simple search-in-message widget,
that uses GtkHTML's searching capabilities.
2001-04-25 Dan Winship <danw@ximian.com>
* mail-callbacks.c (are_you_sure): New foot-shooting-prevention
helper function.
(edit_msg_internal, view_msg): If the user has more than 10
messages selected, ask before opening them all in separate
windows, to protect against misclicks/typos after "select all"
(which we've had at least two reports of now).
2001-04-25 Radek Doulik <rodo@ximian.com>
* mail-tools.c (mail_tool_quote_message): set object data directly
in HTML source
* mail-callbacks.c (mail_generate_reply): remove \n from citation
(mail_generate_reply): don't use e_msg_composer_mark_text_orig
2001-04-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c: Added a new signal, "message_loaded" that gets
emitted when the message has been loaded and set on the
mail_display.
(folder_browser_class_init): Define the "message_loaded" signal
stuff.
(done_message_selected): Emit the "message_loaded" signal here.
* message-browser.c (message_browser_next_msg): Do our own
message-list manipulation. We want the next message, not the next
unread message.
(message_browser_prev_msg): Same here but for previous.
(message_browser_new): Connect to the folder browser's
"message_loaded" signal.
(message_browser_folder_loaded): Don't connect to the
message-list's "message_selected" signal.
(message_browser_message_loaded): Nw callback which replaces the
old message_browser_message_selected callback's functionality.
2001-04-24 Dan Winship <danw@ximian.com>
* folder-browser.c: Add accelerators to the context menu.
(on_right_click): Use e_tree_get_cell_geometry and a
GtkMenuPositionFunc when responding to a Menu-key press so we can
line the menu up with the selected row rather than the cursor.
* message-browser.c: include <gal/util/e-util.h> for E_MAKE_TYPE.
2001-04-23 Jon Trowbridge <trow@ximian.com>
* mail-display.c (html_button_press_event): Check for mailto:
links, and pop up our mail address menu when we find one.
(make_popup_window): The main piece of code (ignoring a zillion
little callbacks) to pop up our windows with reasonable semantics
for having them close automatically.
(mail_text_write): Enable converting addresses to mailto links
in message bodies.
* mail-format.c (write_address): Simplify code, removing Radek's
<DATA> hacks. Write out addresses as mailto: links.
2001-04-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (do_view_message): Use the message-browser
widget rather than the mail-view window.
* mail-view.c: Removed.
* folder-browser.c: Added a folder_loaded signal.
* message-browser.[c,h]: New window to solve all our message
browsing needs. This replaces mail-view.c.
* message-list.c (message_list_select_uid): New function needed by
the new message-browser window.
2001-04-23 Dan Winship <danw@ximian.com>
* mail-callbacks.c (save_msg): Append a "/" to the result of
g_get_home_dir so gets the default dir it was supposed to.
2001-04-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Lets do proper refcounting on
the sent-folder. Also, g_strdup() the sent_folder_uri since we
later free it. If we don't, then we get lovely corrupt memory.
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Make sure we
have a context before we try and use it.
2001-04-22 Gediminas Paulauskas <menesis@delfi.lt>
* folder-browser.c, mail-autofilter.c, mail-callbacks.c,
mail-ops.c, mail-summary.c, mail-vfolder.c: use system =
EVOLUTION_DATADIR "/file" instead of g_strdup_printf. Rename
userrules to user (and system) to be consistent.
* mail-send-recv.c: set window icon to send-receive.xpm
2001-04-21 Gediminas Paulauskas <menesis@delfi.lt>
* mail-summary.c: translate "Mail summary".
2001-04-20 Dan Winship <danw@ximian.com>
* mail-config-druid.c (make_default_account): Convert the result
of g_get_real_name() from the locale charset to UTF8. Noted by
Petter Sundlöf (NOT "Petter Sundl_" :)
2001-04-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_pgp_type): Use a CamelPgpType.
(mail_config_get_pgp_type): Return a CamelPgpType.
(auto_detect_pgp_variables): auto-detect the user's pgp settings.
2001-04-20 Dan Winship <danw@ximian.com>
* mail-format.c (handle_text_plain): Fix a dumb thinko in my 04-11
patch.
2001-04-20 Kjartan Maraas <kmaraas@gnome.org>
* mail-ops.c: (send_mail_desc): Convert subject from utf8
before passing it on.
2001-04-20 Gediminas Paulauskas <menesis@delfi.lt>
* mail-display.c: #if 0'd out my not-working selection code
2001-04-19 Dan Winship <danw@ximian.com>
* mail-format.c (mail_format_raw_message): Make this more raw:
don't do URLs and citations.
2001-04-18 Dan Winship <danw@ximian.com>
* session.c (request_callback): Don't need to dup the string: the
relevant gnome-dialog routine already does.
* message-list.c (message_list_destroy): Free the uid_nodemap.
(hide_save_state): Free the filename when we're done.
2001-04-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (is_sent_folder): Implemented.
(resend_msg): Use is_sent_folder().
2001-04-17 Dan Winship <danw@ximian.com>
* mail-mt.c (mail_msg_check_error): Fix a memory leak.
2001-04-16 Ettore Perazzoli <ettore@ximian.com>
* importers/Makefile.am (INCLUDES): Add `$(EXTRA_GNOME_CFLAGS)'
here.
2001-04-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mark_all_as_seen): Mark the messages as seen,
not unseen.
(is_drafts_folder): New function to attempt to determine if a
folder is a drafts folder.
(open_msg): Use is_drafts_folder().
(edit_msg): And here.
(edit_msg_internal): New function that doesn't do the drafts
checking and is only to be used internally. This should save us
from having to doubly-check a folder to see if it's a drafts
folder when doing an Open on the message.
(open_msg): Call edit_msg_internal once we've established that the
folder is a drafts folder.
2001-04-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_pgp_mime_part_verify): Only use
non-NULL contexts.
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): And here too.
* mail-format.c (try_inline_pgp_sig): Make sure to not use the
context if it is NULL.
(decode_pgp): Same.
* folder-browser-factory.c: Added stuff for filtering/vfoldering
on mailinglists.
2001-04-13 Dan Winship <danw@ximian.com>
* Makefile.am (evolution_mail_LDADD): Remove some redundant LIBS
variables... purify complained that the command line was too
long. :-}
* mail-account-gui.c: Plug leaks.
* mail-display.c (on_url_requested): close the html stream on
error too.
* mail-ops.c (fetch_mail_fetch): Move a line around that probably
doesn't affect anything, but it's correct.
* session.c (auth_callback): Plug leak.
* mail-send-recv.c (receive_status): Initialize "now".
2001-04-13 Christopher James Lahey <clahey@ximian.com>
* message-list.c (on_cursor_activated_cmd): Only activate the
message if the cursor has moved.
2001-04-12 Christopher James Lahey <clahey@ximian.com>
* message-list.c (e_mail_address_new): Updated this function to be
a correct full ordering.
(ml_has_get_node_by_id, ml_get_node_by_id): Implemented these
functions.
(find_next_undeleted): Changed this to find next sorted undeleted
message. Also, changed it so that if the current message is not
deleted, it returns NULL.
(build_tree, build_flat): Changed these to only set the cursor if
the cursor is changed.
* subscribe-dialog.c: Changed this to pass NULL, NULL for
has_get_node_by_id and get_node_by_id.
2001-04-12 Jeffrey Stedfast <fejj@ximian.com>
* session.c (auth_callback): If the service is NULL, just use the
item as the key.
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Use the
CamelCipherHash enum.
(mail_crypto_pgp_mime_part_verify): Use a CamelCipherValidity.
* mail-format.c (try_inline_pgp_sig): Updated to use
CamelCipherValidity instead of CamelPgpValidity.
(handle_multipart_signed): Same.
2001-04-12 Dan Winship <danw@ximian.com>
* folder-browser.c (do_message_selected, on_message_selected):
Don't printf NULL
* mail-format.c (mail_part_is_inline): Don't leak memory.
2001-04-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (pgp_path_changed): Updated for changes to PGP
code.
* component-factory.c (owner_set_cb): Don't init openpgp anymore
because we don't need it.
* mail-crypto.c: Simply wrap the camel-pgp-mime functions (also
renamed the functions to be prefixed with mail_crypto).
* mail-format.c (handle_multipart_signed): Update to use
camel_pgp_mime_is_rfc2015_signed() and other camel-pgp-mime
functions.
(handle_multipart_encrypted): Same but for rfc2015_encrypted.
(decode_pgp): Updated to use camel-pgp-context
(try_inline_pgp): Updated to use camel-pgp-context's.
(try_inline_pgp_sig): Same.
2001-04-11 Dan Winship <danw@ximian.com>
* mail-format.c (handle_text_plain): Only look for special
pseudo-multipart-isms (binhex, uucode, old pgp, etc) if the MIME
type is really text/plain. Otherwise, since there's no handler for
applciation/mac-binhex40, it gets sent to mail-identify.c, which
thinks it's text/plain because it starts with English words, and
so it gets sent back to the text/plain handler, which finds an
embedded binhex part...
* mail-callbacks.c (do_view_message): mark messages as seen when
opening then in a separate window.
2001-04-11 Jeffrey Stedfast <fejj@ximian.com>
* openpgp-utils.c (openpgp_encrypt): Don't g_free the recipient
array members here because we free them in the caller.
2001-04-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (pgp_mime_part_verify): Huh, somehow I forgot to
apply the from filter when verifying signed parts. Oh well,
probably not all that common. Fixed now though.
2001-04-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (save_msg): Use the homedir as the default
filename.
2001-04-11 Christopher James Lahey <clahey@ximian.com>
* message-list.c (save_tree_state, message_list_setup_etree): Save
the expanded state using the ETree built in expanded state code.
2001-04-05 Not Zed <NotZed@Ximian.com>
* Merge from evolution-0-10 to evolution-0-10-merge-0 into head.
2001-04-04 Kjartan Maraas <kmaraas@gnome.org>
* mail-account-gui.c: Add prototype for service_changed().
* message-list.h: Remove #include <gal/e-table/e-tree-simple.h>
since it doesn't get installed.
2001-04-04 Gediminas Paulauskas <menesis@delfi.lt>
* mail-config-druid.c (create_html): set content type to utf8.
* mail-config.c (mail_config_check_service): fix warning.
* mail-display.c (link_open_in_browser): just call on_link_clicked().
(link_menu): Open link works.
(link_copy_location): claim selection.
(on_selection_get): new function, selection handler.
(mail_display_new): connect to selection_get. FIXME: does not work.
2001-04-04 Gediminas Paulauskas <menesis@delfi.lt>
* component-factory.c: use big trash icon, stolen from mc.
2001-04-03 Jeffrey Stedfast <fejj@ximian.com>
* openpgp-utils.c (openpgp_encrypt): Add --no-tty argument to gpg.
2001-04-03 Dan Winship <danw@ximian.com>
* folder-browser-factory.c (control_activate): Sync the folder on
activate.
* session.c (mail_session_remember_password): Use the same
URL-transforming rules we use when hashing the password so this
actually works.
2001-04-02 Iain Holmes <iain@ximian.com>
* importers/elm-importer.c (elm_can_import): Call is_kmail to check for
KMail files.
(is_kmail): Checks if the given directory is a KMail directory.
2001-04-02 Iain Holmes <iain@ximian.com>
* importers/elm-importer.c (elm_can_import): Check for some MH files
to make sure that the dir really is an Elm dir.
2001-04-02 Dan Winship <danw@ximian.com>
* mail-account-gui.c: Add a "provider_type" arg to
MailAccountGuiService.
(transport_needs_auth_toggled): Call service_changed if enabling
the auth pane so the status of the "Check supported types" button
will be correct.
(service_check_supported): Use gsvc->provider_type, not
CAMEL_PROVIDER_STORE.
(mail_account_gui_new): Pass the transport as the user_data to the
"changed" signal on transport.hostname, not the store.
(mail_account_gui_setup): Set up provider_type fields
2001-04-01 Gediminas Paulauskas <menesis@delfi.lt>
* component-factory.c: changed vtrash icon to trash. doh
* folder-browser-factory.c: pixmap cache got moved from here to
e-util/e-gui-utils.c. Changed pixmap paths according to file renames.
Added icons for print, get mail, etc., changed get mail icon as Jacub
suggested.
* subscribe-dialog.c: also use new pixmap cache.
2001-03-30 Dan Winship <danw@ximian.com>
* mail-config.c (check_service_check): Register for cancellation.
(mail_config_check_service): Pop up a modal dialog with a message
and a "Cancel" button for the duration of the check.
2001-03-30 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (load_file_fn): Check if
foldername is \0.
* importers/evolution-outlook-importer.c (load_file_fn): Ditto.
2001-03-30 Jon Trowbridge <trow@ximian.com>
* mail-display.c (mail_text_write): Add (commented-out)
E_TEXT_TO_HTML_CONVERT_ADDRESSES.
* mail-config.c (mail_config_get_account_by_source_url):
Call e_url_equal to compare URLs.
2001-03-30 Dan Winship <danw@ximian.com>
* component-factory.c (debug_cb): If the EvolutionShellComponent
emits a "debug" signal, turn on camel_verbose_debug.
2001-03-30 Radek Doulik <rodo@ximian.com>
* mail-display.c (mail_display_redisplay): reset last_active
2001-03-29 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c: Added #include <time.h> to get things
to compile.
* mail-callbacks.c (mail_generate_reply): Look at the
X-Evolution-Source header, and try to find a corresponding
account. If this works, send the mail from this account.
If not, use the default account.
* mail-ops.c (send_queue_send): Strip out the X-Evolution-Source
header before sending.
* mail-config.c (mail_config_get_account_by_source_url): Added.
Look up accounts by source URL.
2001-03-29 Dan Winship <danw@ximian.com>
* mail-format.c (call_handler_function): if called with a
multipart that's really a 0-part, spew an error and display as
source.
* message-list.c: #include <camel/camel-vtrash-folder.h>
* mail-callbacks.c: #include <libgnome/gnome-paper.h>
for the gnome-print stuff.
* mail-display.c (pixmap_press): Ignore "funky" button clicks
(like scroll wheel scrolls)
2001-03-29 Kjartan Maraas <kmaraas@gnome.org>
* *.*: Cleaned up #includes. Remove unneccesary includes of
<gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more
fine grained headers where needed. Also marked a bunch of
strings for translations and added some missing prototypes.
2001-03-29 Dan Winship <danw@ximian.com>
* mail-account-editor.c (switch_page): Fix this so the "Receiving
Options" page gets filled in again.
* mail-send-recv.c (receive_get_folder): Doh! This was storing
"struct _folder_info"s in the cache and then trying to read them
back as CamelFolders. Fixicate. Fixes the "crash with 2 POP
accounts" bug.
* session.c (auth_callback): Update call to camel_url_to_string.
(Don't include the params in the password hash table key.)
* mail-config.c (mail_config_folder_to_cachename): Call
camel_url_to_string with HIDE_PASSWORD and HIDE_PARAMS so that
changing URL params doesn't change the cachename.
* mail-ops.c (add_vtrash_info):
* mail-local.c (reconfigure_folder_reconfigure):
* mail-account-gui.c (save_service): Update calls to
camel_url_to_string.
2001-04-03 Dan Winship <danw@ximian.com>
* folder-browser-factory.c (control_activate): Sync the folder on
activate.
* session.c (mail_session_remember_password): Use the same
URL-transforming rules we use when hashing the password so this
actually works.
2001-04-03 Not Zed <NotZed@Ximian.com>
* mail-ops.c (mail_send_message): Strip header content before using it.
2001-04-02 Iain Holmes <iain@ximian.com>
* importers/elm-importer.c (elm_can_import): Calls is_kmail to
check for kmail files.
(is_kmail): Checks if the given directory is a KMail directory.
2001-04-02 Dan Winship <danw@ximian.com>
* mail-account-gui.c: Add a "provider_type" arg to
MailAccountGuiService.
(transport_needs_auth_toggled): Call service_changed if enabling
the auth pane so the status of the "Check supported types" button
will be correct.
(service_check_supported): Use gsvc->provider_type, not
CAMEL_PROVIDER_STORE.
(mail_account_gui_new): Pass the transport as the user_data to the
"changed" signal on transport.hostname, not the store.
(mail_account_gui_setup): Set up provider_type fields
2001-04-02 Iain Holmes <iain@ximian.com>
* importers/elm-importer.c (elm_can_import): Check for some MH files
to make sure that the dir really is an Elm dir.
2001-03-30 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_toggle_hide_deleted): New
function to listen for hide_deleted changes.
(folder_browser_toggle_hide_deleted): Only svae the hide-deleted
state if we are not setting a trash folder.
* folder-browser-factory.c (control_activate): Set the
hide_deleted flag appropriately/setup the menu's appropriately.
(control_activate): Workaround to Force setting of options by
bypassing bonobo notification, since it doesn't properly handle
changed components.
* mail-config.c (mail_config_get_hide_deleted):
(mail_config_set_hide_deleted): New functions for
accessing/setting the hide deleted state.
(mail_config_write_on_exit):
(config_read): Save/load the hide_deleted flag.
* message-list.c (main_folder_changed): Oops, remember to copy
over all the rest of the changes too if we removed some.
(find_next_undeleted): Find the first undeleted message below us.
This of course does not follow sorting conventions, but thats
etree. Have to ask chris if there is a way to make it work like
that.
(message_list_set_hidedeleted): Check we dont set hide_delete on a
vtrash.
(build_tree): If the message has vanished, try and get the next
undeleted message set, etc, if it still exists. The set_cursor()
function seems very broken but i'm sure e-lahey will get to it
soon.
(build_flat): Similarly for above.
2001-03-30 Dan Winship <danw@ximian.com>
* mail-config.c (check_service_check): Register for cancellation.
(mail_config_check_service): Pop up a modal dialog with a message
and a "Cancel" button for the duration of the check.
* component-factory.c (debug_cb): If the EvolutionShellComponent
emits a "debug" signal, turn on camel_verbose_debug.
2001-03-30 Radek Doulik <rodo@ximian.com>
* mail-display.c (mail_display_redisplay): reset last_active
2001-03-29 Dan Winship <danw@ximian.com>
* mail-format.c (call_handler_function): if called with a
multipart that's really a 0-part, spew an error and display as
source.
* mail-display.c (pixmap_press): Ignore "funky" button clicks
(like scroll wheel scrolls)
2001-03-29 Dan Winship <danw@ximian.com>
* mail-account-editor.c (switch_page): Fix this so the "Receiving
Options" page gets filled in again.
* mail-send-recv.c (receive_get_folder): Doh! This was storing
"struct _folder_info"s in the cache and then trying to read them
back as CamelFolders. Fixicate. Fixes the "crash with 2 POP
accounts" bug.
* session.c (auth_callback): Update call to camel_url_to_string.
(Don't include the params in the password hash table key.)
* mail-config.c (mail_config_folder_to_cachename): Call
camel_url_to_string with HIDE_PASSWORD and HIDE_PARAMS so that
changing URL params doesn't change the cachename.
* mail-ops.c (add_vtrash_info):
* mail-local.c (reconfigure_folder_reconfigure):
* mail-account-gui.c (save_service): Update calls to
camel_url_to_string.
2001-03-29 Not Zed <NotZed@Ximian.com>
* mail-local.c (init_trash): Create a vtrash folder, not a vee folder.
* folder-browser-factory.c (control_activate): Hook in the hide
deleted thingy.
Removed MessageHideDeleted menu stuff.
* message-list.c (message_list_set_hidedeleted): New function, to
set if we should hide deleted messages automatically/always.
(regen_list_regen): If we have hide deleted messages turned on,
then hide them.
(main_message_changed): Promote to a folder_changed event with a
change list, folder_changed has the optimisations to handle this
appropriately.
(main_folder_changed): IF we get changes events for
deleted/undeleted stuff, change to added/removed events, rebuild
if necessary.
(message_list_set_folder): Setup the default hidedeleted state to
be to hide everything unless it is in a vtrash folder.
2001-03-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (setup_service): Move the
gtk_toggle_button_set_active outside the if.
2001-03-28 Dan Winship <danw@ximian.com>
* mail-account-gui.c (mail_account_gui_new): Set up the
sent/drafts folder buttons.
(folder_picker_clicked): Pop up the folder selector when sent or
drafts is clicked.
(mail_account_gui_save): Save the sent/drafts folders.
* mail-config.c (account_copy): copy sent/drafts info
(config_read): read sent/drafts info
(mail_config_write): write sent/drafts info
* mail-callbacks.c (composer_send_cb, composer_postpone_cb):
split out some common code here (and fix inconsistencies). Always
set headers on the message giving the account name, transport,
and sent folder to use.
* mail-ops.c (mail_send_message): If the message has an
X-Evolution-Account header, use the transport/sent folder info for
that account (assuming it still exists). Otherwise, if it has
X-Evolution-Transport and/or X-Evolution-Fcc, use those. If not,
use the default transport and sent folder.
FIXME: Falls back silently to the default sent folder if it can't
open the account-specific one...
(send_queue_send): remove the X-Evolution-Transport, etc
processing here, as it gets done by mail_send_message now.
FIXME: We only sync the default sent folder.
* component-factory.c (owner_set_cb): While setting up the
standard folders, also record their URIs.
2001-03-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (switch_page): Lets do some NULL checking
here. First, make sure the gsrc isn't NULL and also make sure that
account->source isn't NULL either.
* mail-account-gui.c (mail_account_gui_setup): If there isn't a
source_proto, make sure we select "None" as the source type.
2001-03-27 Dan Winship <danw@ximian.com>
* mail-config-druid.c (construct): set the initial druid button
state after doing the mail_account_gui_setup, since that may
invoke signal handlers that will change it.
* mail-account-gui.c (mail_account_gui_new): Fill in signature and
organization too.
(mail_account_gui_save): Preserve the "enabled" flag on the source.
(save_service): Don't look at authtype if the widget is
insensitive. (Fixes the "smtp://;auth=PLAINservername" bug.)
2001-03-27 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (receive_done): Use gnome-dialog-close instead
of object_unref, for some reason it doesn't like being unref'd
with a refcount of 1, _who knows_. Gets rid of that refcount
warning on get mail.
2001-03-27 Dan Winship <danw@ximian.com>
* mail-config.glade: Probably the very last new config dialog
ever. (Ha ha). From Anna, based on a story by me.
* mail-account-gui.c: New code for the new mail-config.glade. This
abstracts out all of the common code between the account editor
and the druid. It also handles the spiffy new provider-specific
config stuff.
FIXME: The code to check if a service is ok or not is no longer
there... waiting until the online/offline stuff from the shell
appears.
* mail-account-editor.c, mail-config-druid.c: These are much
smaller now, since most of the interesting bits moved to
mail-account-gui.c
* mail-accounts.c: Add an enabled/disabled column/button to
replace the checkbox that used to be in the editor, because it
really makes more sense to have it out here. This looks ugly.
Probably ought to ETable it...
(load_accounts): Fill in the enabled column.
(mail_select, mail_unselect): toggle the sensitivity and name of
the Enable/Disable button appropriately
(mail_able): Handle the enable/disable button.
* mail-config.c: Remove reply-to from MailConfigIdentity since it
didn't belong there (and wasn't being saved anyway).
(mail_config_check_service): Simplify this a bit. This really
needs to pop up a dialog with a "connecting..." message and a
cancel button.
* mail-ops.c (uid_cachename_hack): Kludge, copied+modified from
mail_config_folder_to_cachename to deal with the different
behavior of the URL code now. Will go away when the keep-on-server
code moves.
(get_folderinfo_get): Only pass "subscribed_only" to
camel_store_get_folder_info if the store supports subscriptions...
* mail-local.c (local_provider): Update this to reflect the
CamelProvider structure change
2001-03-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (transfer_msg): Add "vtrash" as an allowed mail
folder type.
* mail-ops.c (transfer_messages_transfer): Updated to reflect
changes made to the move/copy API in camel-folder.c
(add_vtrash_info): Use /Trash as the path instead of Trash.
* mail-local.c (reconfigure_folder_reconfigure): Updated this too.
2001-03-20 Not Zed <NotZed@Ximian.com>
* mail-local.c (init_trash): Fixed vfolder_new api.
2001-03-26 Dan Winship <danw@ximian.com>
* mail-format.c (get_cid): Make fake content-id URLs be guaranteed
unique: the old way (with %p on the CamelMimePart *) would
generate duplicates if memory was freed and re-allocated the right
way.
* mail-display.c (pixbuf_gen_idle, etc): Make the thumbnail cache
global rather than per-MailDisplay, since content-ids ought to be
globally unique. Also, don't leak content-id strings when the
pixbuf generation fails, and remove pixbufs from the cache after 5
minutes.
* component-factory.c (mail_load_storages): Simplify a bit using
camel_session_get_provider.
* mail-callbacks.c (empty_trash): Ditto, and fix up use of
CamelException.
2001-03-26 Radek Doulik <rodo@ximian.com>
* mail-format.c (write_address): clear name and email data after
each address
2001-03-25 Dan Winship <danw@ximian.com>
* component-factory.c (unref_standard_folders): Fix a bug in this
that probably would have been noticed sooner if ETree hadn't always
made the mailer crash before you got here. :-)
2001-03-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (transport_auth_type_changed): Allow the
authtype to be NULL.
(transport_auth_init): If the provider allows authtypes but
doesn't *need* one, create a "None" menu item that the user can
choose. This should fix the bug people have been seeing recently
since dan removed the no_authtype authmech from the smtp provider.
2001-03-24 Jeffrey Stedfast <fejj@ximian.com>
* openpgp-utils.c (openpgp_verify): Default to iso-8859-1 as the
user's charset here if it is undefined. This is a better choice
than us-ascii.
2001-03-23 Jon Trowbridge <trow@ximian.com>
* mail-display.c (handle_embedded_address_object): #ifdef away
some code I don't quite want to delete yet.
(html_button_press_event): Remove some of Radek's placeholder
code, replace it with code to create my AddressPopup bonobo
control.
* mail-format.c: Remove some obsolete code that if #ifdef-ed out
a while ago.
* mail-ops.c (send_queue_send): Strip out the X-Evolution-Identity
header when sending.
2001-03-23 Christopher James Lahey <clahey@ximian.com>
* message-list.c: Turned on BROKEN_ETREE.
2001-03-22 Iain Holmes <iain@ximian.com>
* importers/evolution-outlook-importer.c: Update for new IDL.
* importers/evolution-mbox-importer.c: Update for new IDL.
* importers/Makefile.am: Build the elm importer.
2001-03-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_double_click): New callback to handle a
double-click event in the account clist.
(construct): Setup the double-click event for the account list.
2001-03-22 Radek Doulik <rodo@ximian.com>
* mail-display.c (mail_display_new): connect to button_press_event
and iframe_created events of GtkHTML widget
(html_button_press_event): new signal handler, runs popup on
address fields and on links, later we should add popups for images
and maybe some more? any ideas?
(html_iframe_created): new signal handler, takes care of
connecting to button_press_event of all iframes : plus bunch of
empty methods for popup menu items - to be implemented
(html_motion_notify_event): new handler, highlights addresses by
underline
(html_enter_notify_event): take care of enter event
(update_active): helper function, extracted from
html_motion_notify_event
(update_active): move to absolute coordinates
(html_button_press_event): ditto
* mail-format.c (write_address): revert back to raw HTML text,
store name and email to Text objects, workaround gtkhtml tables
bug (to be fixed soon ;-)
2001-03-21 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-factory.c (update_pixmaps): Don't return if
loading one image fails.
2001-03-21 Dan Winship <danw@ximian.com>
* mail-format.c (handle_multipart_related): Fix a bug in (illegal)
0-part messages
* mail-config-druid.c (incoming_check, incoming_type_changed,
transport_check, transport_type_changed): * mail-account-editor.c
(transport_type_changed, source_check): Use the new URL part
macros
* mail-config.c (check_service_check): Use provider authtype list
if not connecting.
2001-03-20 Miguel de Icaza <miguel@ximian.com>
* folder-browser-factory.c: Added new icons.
2001-03-18 Miguel de Icaza <miguel@ximian.com>
* folder-browser-factory.c: Remove duplicated verb.
2001-03-20 Iain Holmes <iain@ximian.com>
* importers/evolution-mbox-importer.c (process_item_fn): Step the
parser so that it will import more than one message.
2001-03-20 JP Rosevear <jpr@ximian.com>
* importers/Makefile.am: extra dist the oaf files
2001-03-20 Radek Doulik <rodo@ximian.com>
* mail-tools.c (mail_tool_quote_message): set color in html
citation
* mail-config.c: added citation highlighting configuration
* mail-tools.c (mail_tool_quote_message): use citation
highlighting
* mail-display.c (mail_text_write): use citation highlighting
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* folder-browser.c (etree_key): Made this check if the control
mask is set.
2001-03-20 Christopher James Lahey <clahey@ximian.com>
* message-list.c (remove_node_diff, build_flat_diff): Remove the
node before freeing the data it points to.
2001-03-19 Christopher James Lahey <clahey@ximian.com>
* Merged e-tree-rework-branch:
2001-03-18 Christopher James Lahey <clahey@ximian.com>
* message-list.c: Added has_save_id and get_save_id methods.
* subscribe-dialog.c: Added arguments for
e_tree_memory_callbacks_new of get_save_id and has_save_id to
NULL.
2001-03-16 Christopher James Lahey <clahey@ximian.com>
* message-list.c: Added a call to
e_tree_memory_set_expanded_default to TRUE. Removed all calls to
set_expanded on nodes while the tree is frozen since this fails
miserably now.
2001-03-13 Christopher James Lahey <clahey@ximian.com>
* message-list.c (message_list_get_layout): Turned off draw-grid.
2001-03-09 Christopher James Lahey <clahey@ximian.com>
* folder-browser-factory.c, folder-browser.c, message-list.c,
message-list.h, subscribe-dialog.c, subscribe-dialog.h,
mail-callbacks.c: Converted these all to use ETree instead of
ETable.
End of branch
2001-03-19 Iain Holmes <iain@ximian.com>
* importers/pine-importer.c: Pine intelligent mail importer.
* importer/elm-importer.c: Elm imtelligent mail importer.
* importer/GNOME_Evolution_Mail_(Pine|Elm)_Intelligent_Importer.oaf.in:
Pine and Elm oafinfo files.
* importer/netscape-importer.c (maybe_replace_name): Replace some invalid
names with valid ones (Trash -> Netscape-Trash). Change some netscape names
to Evolution names (Unsent Messages -> Outbox).
(scan_dir): Use less variables.
(netscape_import_file): Simplify.
2001-03-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c: Removed gnome.h and ctype.h
(send_queue_send): Don't remove the X-Evolution header here.
(mail_send_message): Remove it here instead (so we only have to
remove it in one place - no matter if you send a single message or
send_queue.
2001-03-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_headers): Write the date header.
* component-factory.c (owner_unset_cb): Call
unref_standard_folders() here instead.
* folder-browser-factory.c: Add Resend Message menu item.
* folder-browser.c (on_right_click): Add resend to the right-click
menu.
* mail-callbacks.c (composer_sent_cb): Unref the message.
(composer_postpone_cb): Unref the message here too.
(resend_msg): New callback to allow resending of messages in the
Sent folder.
2001-03-18 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (unref_standard_folders): unref the standard
folders.
(owner_set_cb): Use g_atexit() to call unref_standard_folders()
when evolution-mail exits. This should solve the problem where
these folders are not synced when evolution-mail closes (because
they still had refs on them on close).
2001-03-17 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msg_free): Move the proxy event outside the lock
(otherwise we always deadlock).
* mail-local.c (reconfigure_clicked): Clear the message list
during update inside the folder thingy. This is a hell mess, need
to move the gui stuff to mail-callbacks and make this reconfigure
thing a more generic func.
* message-list.c (ml_value_to_string): Cleanup the logic to use
lookup tables.
(sort_uid_to_rows): Removed due to rewrite below.
(build_flat_diff): Changes for node/summary/etc changes. Also do
changed nodes too.
(clear_tree): Free the info reference for nodes in our hashtable.
(build_subtree): Ref the info reference in our hash/tree node.
(on_click): Dont free message info, since we just got our ref to
it.
(remove_node_diff): Free messageinfo off node.
(build_flat): Ref messageinfo.
(message_list_set_folder): Allow a NULL folder to be set -
i.e. clear the view.
(message_list_set_folder): Emit a no message sleeted signal.
(build_tree): Change cursor keeping stuff to work with new info.
Turned off BROKEN_ETREE - well maybe it'll work. Check for
duplicate messages displayed, etc.
2001-03-16 Not Zed <NotZed@Ximian.com>
* message-list.h: Added uid_nodemap; mapping of uid's to e-tree
nodes.
* message-list.c (build_flat): Changed to take a summary argument,
and to store node in node map, etc, and store info's in e-tree.
(build_subtree): Changed to store node in node map, and to store
info's in tree directly.
(ml_tree_value_at): Changed to get info directly from tree node,
removed allocated return value logic.
(ml_tree_value_at): Removed all "fake node" handling, no fake
nodes should ever exist.
(id_is_uid, id_is_subject, id_uid, id_subject): Removed macro's no
longer used.
(new_id_from_uid, new_id_from_subject): Removed no longer used.
(get_message_uid):
(get_message_info): Treat tree node data as messageinfo.
(message_list_select): Dont free the messageinfo, as its part of
our data, not retrieved from folder.
(message_list_drag_data_get): ditto.
(subtree_unread): Treat tree node data as messageinfo.
(subtree_size): ditto.
(subtree_earliest): ditto.
(clear_tree): Reset uid_nodemap on clear.
(save_node_state): tree nodes == messageinfo's.
(add_node_diff): ditto.
(remove_node_diff): ditto.
(main_folder_changed): use uid_nodemap to lookup changed nodes.
(main_message_changed): ditto.
2001-03-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (pgp_mime_part_sign_prepare_part): New function to
prepare the mime part and any subparts for pgp signing.
(pgp_mime_part_sign_restore_part): New convenience function to
undo the prepare_part.
(pgp_mime_part_sign): Don't assume the part passed in is a leaf
part, we could very easily get a multipart (and in fact were which
is why people have been having unexpected results when signing
messages with attachments) and set the encoding as if it were a
leaf part. Use our 2 new convenience functions to set the
encoding(s) instead.
2001-03-15 Miguel de Icaza <miguel@ximian.com>
* folder-browser-factory.c (folder_browser_setup_view_menus): Fix
memory leak.
2001-03-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (apply_changes): We don't care about SSL,
yea baby...
(apply_changes): Don't care about SSL, no baby...
(construct): Yea, I said we don't care 'bout SSL, baby
(construct): That's exactly what I said, uh huh...
(transport_auth_type_changed): Set the sensitivity of the
user/passwd entries.
(transport_type_changed): If the hostname hasn't been set yet,
just use "localhost" as it doesn't really matter, since all we
need is a valid URL object.
* mail-config.c: We no longer need `use_ssl' for sources and
transports.
2001-03-15 Dan Winship <danw@ximian.com>
* mail-display.c (mail_display_redisplay): Remove a stray
camel_object_ref that was causing messages to never be finalized
if they got redisplayed (because of attachments, delayed-loading
IMAP parts, etc)
2001-03-15 Not Zed <NotZed@Ximian.com>
* folder-browser.c: Added edit item to search-bar menu.
* mail-callbacks.c (filter_edit): Changed for filter_editor_new()
api addition/change.
* mail-vfolder.c (vfolder_edit): Use vfolder_editor_new intead.
2001-03-14 Jeffrey Stedfast <fejj@ximian.com>
* session.c (mail_session_init): Tell camel to init NSS.
(mail_session_accept_dialog): Doh! NULL terminate the list of
buttons and show the label.
* mail-mt.c (do_get_accept): Same.
2001-03-14 Ettore Perazzoli <ettore@ximian.com>
* importers/Makefile.am (INCLUDES): Add `-I$(top_builddir)/shell'
and `-I$(top_srcdir)'.
2001-03-13 Dan Winship <danw@ximian.com>
* mail-display.c (on_url_requested): Call gtk_html_end() on the
stream so things happen. Fixes a problem with some inline images
(just very small ones maybe?)
* importers/.cvsignore: create
2001-03-13 Jeffrey Stedfast <fejj@ximian.com>
* session.c (mail_session_init): Call camel_init with the
evolution directory passed in. Also, abort if camel cannot be
initialized.
* main.c (main): Shutdown camel.
2001-03-04 Michael Meeks <michael@ximian.com>
* folder-browser-factory.c (free_pixmaps): impl.
(update_pixmaps): accelerate with cache.
2001-03-13 Iain Holmes <iain@ximian.com>
* Makefile.am: Removed the importers and created a subdirectory
for them to live happily as plugins.
* mail-importer.c (mail_importer_create_folder): Modified the
function to take a BonoboListener for the callback.
(get_importer_list): Get a list of importer plugins.
(free_importer_list): Free the list of plugins.
(mail_importer_init): Initalise the list of plugins.
(main_importer_uninit): Unload the modules.
* GNOME_Evolution_Mail.oaf.in: Remove the oaf_server entries for
the importers.
* importers/*: Copy the importers in here.
2001-03-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write): Make the transport save
whether or not it's supposed to use SSL as well.
(config_read): Read in whether or not we should remember the
transport password (for those that support SASL).
(mail_config_write): Save whether or not to save transport
passwords (needed for SASL enabled transports).
* mail-ops.c (add_vtrash_info): Instead of always creating a new
vTrash folder, if the store already has a Trash folder, replace it
with the vTrash. Also, name the folder "Trash" instead of "vTrash"
and i18nify the name.
2001-03-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.h: Added protection.
* folder-browser-factory.c: Add ActionsEmptyTrash. By the way -
should we rename the bonobo verbs now that our menu structure has
changed?
* mail-callbacks.c (empty_trash): New callback to empty ALL of the
trash folders.
2001-03-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (send_queue_send): Remove our X-Evolution header
before we send. Also don't send messages that are marked for
deletion.
2001-03-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (mail_get_accept): New async function that will be
used for SSL certs later.
* session.c (auth_callback): Changed to return a gpointer value.
(mail_session_accept_dialog): New function to handle the new
_ACCEPT authenticator mode.
2001-03-08 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c: Set the Forward->Quoted callback.
Also set the forward->Attachment callback.
* mail-view.c (view_forward_msg): Specify FORWARD_ATTACHED.
* mail-callbacks.c (forward_attached): Don't call
forward_messages() anymore...never really needed to. Just handle
it directly.
(forward_inlined): Specify FORWARD_INLINE as the flag argument.
(forward_quoted): New function sorta like forward_inlined except
this forwards the message quoted.
* mail-tools.c (mail_tool_forward_message): New function to
prepare a message to be forwarded.
2001-03-08 Jon Trowbridge <trow@ximian.com>
* mail-format.c (write_field_row_begin): Added. Table row HTML
broken out into its own function.
(write_subject): Added. Emits the proper HTML for the subject
line.
(write_field_to_stream): #ifdef-ed out of existence.
(write_address): Take a CamelInternetAddress and spit out an
<object> tag with the appropriate <param>s.
* mail-display.c (on_object_requested): Check for an "address"
object. If found, call...
(handle_embedded_address_object): ...this function, which creates
an AddressWidget bonobo control and passes in the necessary info.
I never really realized just quite how much GtkHTML kicks ass
until I figured out how to make this work.
2001-03-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-vtrash.[c,h]: Removed from cvs
* Makefile.am: Removed mail-vtrash.[c,h]
* main.c: Don't #include "mail-vtrash" anymore.
* component-factory.c: Add "vtrash" as a folder type we support.
(create_view): Kludgy-kludge around the vtrash type.
(owner_set_cb): Don't create the vTrash folder here anymore...
* folder-browser.c (on_double_click): Call open_msg here so that
it does the Right Thing (tm).
2001-03-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_store_class_init): Override the default
init_trash() with the our custom one (since MailLocalStore doesn't
let the CamelStore keep a hash of opened folders and instead
keepts track of them itself).
(init_trash): custom implementation of the init_trash method for
MailLocalStores
(get_folder): i18nize.
(register_folder_registered): Don't add the folder to the vtrash
here.
2001-03-08 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (component_fn): Specify a NULL
`EvolutionShellComponentGetDndSelectionFn'.
2001-03-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-autofilter.c (filter_rule_from_message): Add an action-part
widget.
(filter_rule_from_mlist): Same here. This should get rid of the
problem where people go to create a rule based on a message and
forget to fill-in the action part.
2001-03-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_is_smime_v3_signed): New function to
decide if a mime part is an S/MIME v3 signed part.
(mail_crypto_is_pkcs7_mime): New function to decide if a mime part
is an application/pkcs7-mime part (or an application/octet-stream
part with application/pkcs7-mime data).
* mail-account-editor.c (source_auth_init): Move the signal
emittion to after the set_menu call so that it actually works.
(transport_type_changed): Updated to manipulate the user/passwd
fields for the transport.
(construct): Updated to init the user/passwd fields for the
transport.
(transport_auth_init): Renamed. Also fill in the user/passwd
fields if available.
2001-03-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Disable the NNTP code if NNTP is
not enabled. This prevents some runtime warnings...
* mail-config-druid.c: Updated to have a transport auth page.
2001-03-01 Miguel de Icaza <miguel@ximian.com>
* folder-browser.c (on_right_click): Move the context menus to
the toplevel code; Use enumerations for the various bitfield
constants.
Add support for hiding items that are not required (read/unread
and delete/undelete).
This requires my previous patch, as it assumes "Open" does the
right thing instead of having two operations: Open and Edit.
2001-02-28 Miguel de Icaza <miguel@ximian.com>
* folder-browser.c (on_right_click): Removed draft folders op
here, since open_msg now does the right thing (edit or view).
* folder-browser-factory.c (update_pixmaps): Removed MessageEdit
from here.
* mail-callbacks.c (open_msg): New function, does the "right
thing" to a message (either, edit or open).
* folder-browser-factory.c: Register new command here.
(update_pixmaps): Rename keys that have been shuffled around.
(update_pixmaps): Rename to match new updates on xml file.
Rename MessageOpenNewWindow to MessageOpen. Change action from
"view_message" to "open_message".
* mail-callbacks.c (mark_all_as_seen): New command. Marks all
messages as seen.
2001-03-06 Dan Winship <danw@ximian.com>
* mail-ops.c (get_folderinfo_got): If the folderinfo has no URL
(ie, can't contain messages), don't add it as a vtrash source.
2001-03-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c: Don't access the `active` data member of a
GtkToggleButton directly - bad programming, shame on me.
* mail-account-editor.c: Same here.
* mail-accounts.c: And here too.
* mail-callbacks.c (empty_subject_destroyed): And finally here.
* mail-crypto.c (pgp_mime_part_sign): Correcty set the mime type
for the multipart. Hmmm, still doesn't wrap correctly. NotZed?
Ideas?
(pgp_mime_part_encrypt): Here too.
2001-03-03 Not Zed <NotZed@Ximian.com>
* mail-tools.c: Remove very old camel lock stuff.
* mail-local.c (register_folder_registered): Add the local folder
as a potential vfolder source.
* folder-browser.c (got_folder): When we have a new folder,
register it as a potential vfolder source.
* mail-vfolder.c: Added the source rule to the vfolder_info.
(vfolder_refresh): Store the rule in the vfolder info, etc.
(vfolder_register_source): Function to register a newly opened
folder with us.
(vfolder_uri_to_folder): Save the folder in the vfolder_info too.
(source_finalise): Handle clenaup when the folder dies.
2001-03-02 Not Zed <NotZed@Ximian.com>
* mail-mt.c (set_stop): Check the container is not NIL before
trying to set thje prop.
2001-03-01 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_search_menu_activated): Fixes
for changes to search bar.
(search_save): Removed.
(search_full): Removed.
(search_full_clicked): Removed.
(folder_browser_search_option_items[]): Removed.
(folder_browser_search_query_changed): Changed for search bar
changes.
(folder_browser_clear_search): Removed.
* mail-vfolder.c (vfolder_clone_rule): New function to clone a
filter/search rule into a matching vfolder rule.
* mail-send-recv.c (mail_receive_uri): Setup a timeout for status
updates.
(build_dialogue): Setup timeout id for status updates.
(operation_status_timeout): New function to set the status via a
timeout.
(receive_done): Remove the timeout handler if we need to.
(operation_status):
(receive_status): Just update the info, and let the timeout
handler update the gui.
(do_free_status):
(do_show_status): Removed gui thread status message processing.
2001-02-28 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_config_search): New function to
configure the FilterRule for the search mechanism.
2001-02-27 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_gui_init): Setup the search bar
as a filterbar.
(got_folder): Set the whole search bar sensitive or not based on
the search capability of the folder.
* folder-browser.h: Changed to use efilterbar instead of esearchbar.
2001-02-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (configure_mail): Return TRUE if the user
configured his/her settings, else return FALSE.
(check_send_configuration): If configure_mail() returns TRUE, then
continue otherwise quit.
(send_receive_mail): Same.
2001-02-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Set a "References"
header no matter what if we are able to get a Message-Id. Fixes
bug #1583.
* mail-accounts.c (mail_delete): Confirm that the user REALLY
wants to delete this account.
(news_delete): Same.
* mail-ops.c (mail_send_message): Changed the product string -
will change it to use User-Agent once I get the RFC/DRUMS draft or
whatever. Until then I'll stick with X-Mailer.
2001-02-26 Dan Winship <danw@ximian.com>
* mail-callbacks.c (delete_msg): Mark deleted messages as "seen"
as well so they don't count towards the unread count.
* mail-view.c (view_delete_msg): ditto
2001-02-25 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_set_cb): Re-add the
mail_vtrash_create() hack back in for LocalStores since there's no
better way to register a vTrash folder on the Local Storage yet.
* mail-local.c (register_folder_registered): Add folders to the
vTrash folder here since the LocalStore does not let the parent
CamelStore class keep it's own hash of the folders.
2001-02-25 Jeffrey Stedfast <fejj@ximian.com>
* session.c (mail_session_forget_password): New function to force
the removal of a given password.
* openpgp-utils.c (openpgp_decrypt): On failure, forget the
passphrase.
(openpgp_encrypt): Here too. (cleaned this up a bit too)
(openpgp_clearsign): And here.
(openpgp_sign): Again...
* mail-callbacks.c (composer_postpone_cb): Abort if the message is
NULL (which is valid if an error occured).
(composer_send_cb): Same.
2001-02-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c: Toss the mail_tool_camel_lock* stuff.
* mail-ops.c: Same.
* mail-summary.c: Here too.
* mail-tools.c (mail_tool_uri_to_folder_noex): Blown away!
(mail_tool_filter_get_folder_func): *kapoosh*
(mail_tool_camel_lock_up): Same.
(mail_tool_camel_lock_down): Same.
(mail_tool_set_uid_flags): Don't need this rubbish anymore either.
2001-02-24 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (mail_load_storages): No longer need to
construct the vTrash here.
(owner_set_cb): Don't make the vTrash for the local store here.
* mail-ops.c (add_vtrash_info): New function to add a vTrash
folder info to a pre-constructed CamelFolderInfo for use in the
get_folder_info async function.
2001-02-23 Jeffrey Stedfast <fejj@ximian.com>
* main.c (main): No longer need to do a vtrash_cleanup() (it also
doesn't exist anymore).
* component-factory.c (mail_load_storages): Updated to use the new
vtrash code.
(owner_set_cb): Same.
* mail-tools.c (mail_tool_uri_to_folder): Update to handle the
"vtrash:" url prefix so that we can extract the REAL uri and know
to get the trash folder.
* mail-vtrash.c (mail_vtrash_add): Add the vTrash folder to the
EvolutionStorage.
(mail_vtrash_create): Get the store based on the uri (async) and
then call mail_trash_add.
(vtrash_cleanup): Removed.
(vtrash_uri_to_folder): Removed.
(vtrash_create): Replaced by mail_vtrash_create()
2001-02-23 Iain Holmes <iain@ximian.com>
* component-factory.c (owner_set_cb): Init the importer here.
* mail-importer.[ch] (mail_importer_create_folder): Add a function
that creates new folders in the shell.
(mail_importer_init): Take in an EvolutionShellClient, and get the
local_storage corba_object from it.
2001-02-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-vtrash.c (create_trash_vfolder): Come up with a unique
store uri for each vtrash (using %p and the CamelStore we're gonna
place it on).
(get_trash_get): Pass in the store so we can use it for %p.
2001-02-23 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (vfolder_gui_add_from_mlist): Rule to add mlist
vfolder.
* mail-autofilter.c (filter_gui_add_for_mailing_list): Removed.
(rule_from_mlist): Build a generic match rule from an mlist.
(vfolder_rule_from_mlist): Setup the vfolder rule for an mlist.
(filter_rule_from_mlist): Setup a filter rule fro an mlist.
(filter_gui_add_from_mlist): GUI thingy to do the work.
* folder-browser.c (on_right_click): Added vfolder on mailing list
to filter menu.
(on_right_click): Use header_raw_check_mailign_list instead of
mlist magic to get the mailing list name.
(filter_mlist): Changed to use new add_from_mlist() call.
(vfolder_mlist): New function for vfolder from mlist.
* mail-send-recv.c (build_dialogue): Only allow downloading if the
source is enabled at this time.
(mail_autoreceive_setup): Check for enabled sources before setting
up autodownload.
2001-02-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (construct): Construct the PGP Path
GnomeFileEntry widget.
(pgp_path_changed): Try to auto-detect which PGP type the binary
file is based on the basename (yuck).
2001-02-23 Not Zed <NotZed@Ximian.com>
* mail-ops.c (create_folder_get): Make op cancellable/report
internals.
(get_folder_get):
(sync_folder_sync):
(get_folderinfo_get): Make op cancellable/report internals.
* mail-vtrash.c (get_trash_get): Setup the operation registration,
and create a pseudo "start/stop" operation.
(get_trash_free): Free store if we have it.
(get_trash_got): Move vtrash add into here, so we execute in the
right thread.
* component-factory.c (owner_set_cb): Make trash creation async.
* mail-local.c (register_folder_desc): A description of what we're
doing.
* mail-mt.c (mail_msg_new): Set status callback to operation_new.
(mail_operation_status): Operation status function, proxy messages
to main thread, and attempt to present a meaningful ui experience
for operations.
2001-02-22 Jeffrey Stedfast <fejj@ximian.com>
* openpgp-utils.c (openpgp_verify): Fixed memory corruption bug.
* mail-format.c (try_inline_pgp_sig): Check to make sure the
validity isn't NULL.
(handle_multipart_signed): Check for NULL validities.
2001-02-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): Protect against NULL
uri's.
* mail-vtrash.c: Do mutex locking on the global hash table - this
should clear up some segfaults ;-)
* mail-config-druid.c (druid_finish): Set the 'enabled' member of
the source to TRUE if the URL exists else set to FALSE.
(incoming_type_changed): If the provider chosen is "None" then
gray-out the auto-check widgets and the check-settings, otherwise
sensitize them.
* mail-account-editor.c (construct): Added a few more settings.
(apply_changes): Save the new settings.
* mail-config.c (service_copy): Updated.
(config_read): Read in whether or not the account is enabled.
(mail_config_write): Save if the account is enabled or not.
2001-02-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Updated to reflect changes to
the filter-driver code.
2001-02-22 Not Zed <NotZed@Ximian.com>
* Makefile.am (CAMEL_OBJS_EXTRA): Removed, no longer link with
libcamelvee.
(evolution_mail_LDADD): Ditto.
* mail-vtrash.c: Moved camel-vee-store header ot camel levle.
* mail-tools.c: Moved camel-vee-folder header to camel.
* mail-local.c (local_storage_new_folder_cb): started hack for
progress reporting, which is currently to the console.
* mail-mt.c (set_stop): Set the stop button sensitivity.
(mail_msg_received): enable/disable stop button while we're
processing stuff in another thread.
* message-list.c (ml_tree_value_at): If our uid entry vanishes
before w'ere ready, then make a fake.
2001-02-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (pgp_mime_part_verify): Changed to use
PgpValidity.
* openpgp-utils.c (openpgp_verify): Return a PgpValidity and set
the description as UTF-8 for later use in mail-format.c when
writing to GtkHTML.
* mail-format.c (try_inline_pgp_sig): Updated to use the new
PgpValidity code.
(handle_multipart_signed): Updated.
2001-02-21 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (composer_postpone_cb): Fix for api changes to
append_mail.
* Makefile.am (evolution_mail_SOURCES): Removed mail-threads.[ch].
* mail-threads.[ch]: Removed.
* subscribe-dialog.c (subscribe_do_get_store): Chagned to use new
thread stuff. This is really getting boring.
(subscribe_do_subscribe_folder): Changed to use new thread stuff.
Last one at last, phew.
* session.c (register_callback): Changed to use new thread stuff.
YUCK. I dropped some functionality, now the timeout callback
return is ignored, so basically it keeps running till finished.
* mail-ops.c (mail_operation_run): Removed, no longer used/needed.
(mail_do_append_mail): Changed to use new thread stuff.
(mail_do_transfer_messages): ditto.
* mail-local.c (local_storage_new_folder_cb): Use new thread
stuff, also only run synchronous for this operation.
(mail_local_reconfigure_folder):
(reconfigure_clicked): Changed to use new mail thread stuff.
* mail-config.c (mail_config_check_service): Changed to use new
thread stuff.
2001-02-20 Dan Winship <danw@ximian.com>
* mail-vtrash.c (get_trash_get): Pass NULL, not "/" for @top.
* mail-callbacks.c (create_folders): Make this work with
CamelStores where the separator character isn't /. folder_created
and folder_deleted are still broken.
2001-02-20 Not Zed <NotZed@Ximian.com>
* mail-vtrash.c: Include the camel-vee-store.h header from the
uninstalled copy.
2001-02-19 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (mail_load_storages): Create vTrash folders
for all remote stores as well.
2001-02-20 Not Zed <NotZed@Ximian.com>
* mail-vtrash.c (create_trash_vfolder): Add the auto-update flag
to the folder open flags.
2001-02-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (mail_vfolder_get_vfolder_storage): New handy
dandy function to ref and return the vfolder storage (will
probably be disavowed once I figure out how to get the vTrash
folder to show up in the EvolutionLocalStorage).
* main.c (main): Call vtrash_cleanup().
* mail-vtrash.c: New file.
(vtrash_uri_to_folder): vtrash: URI handler
(vtrash_create): Replacement async vtrash function for the old one
in mail-ops.c
(vtrash_cleanup): Cleanup code - unrefs the cached vtrash folders
and free's the hashtable.
* Makefile.am: Added mail-vtrash.[c,h].
* mail-tools.c (mail_tool_uri_to_folder): If we have a vtrash:
URI, call the vtrash URI handler function rather than continuing
on. Yes, I know this is a hack and it needs to be fixed.
* mail-ops.c (mail_do_setup_trash): Removed.
(mail_trash_get): Removed.
* component-factory.c (owner_set_cb): Create the vTrash folder for
the LocalStore here.
* mail-local.c (get_folder_info): Implement.
2001-02-20 Not Zed <NotZed@Ximian.com>
* mail-ops.c (fetch_mail_fetch): Unref the driver here, in the
subthread, so we dont block the gui while it sync's all the
folders.
(fetch_mail_fetched): Rewmoved above code from here.
2001-02-16 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (receive_status): Dont do the thaw/freeze set here.
(update_folders): "
* mail-vfolder.c (vfolder_refresh): Setup the virtual
'unmatched' folder by default.
(vfolder_uri_to_folder): HAndle UNMATCHED folder specially, it has
no explicit sources.
2001-02-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (receive_get_folder): Not sure it makes any
difference, but lets ref the folder while the hash table is locked
rather than after we unlock it.
2001-02-16 Jeffrey Stedfast <fejj@ximian.com>
* main.c: * component-factory.c: Reverse the changes I made
yesterday.
2001-02-15 Jeffrey Stedfast <fejj@ximian.com>
* main.c (main): Have the mail-config and openpgp initialize here
instead.
* component-factory.c (owner_set_cb): No need to have mail-config
and openpgp init here.
2001-02-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (do_scan_subfolders): Use mail_storage_create_folder
* mail-callbacks.c (mail_storage_create_folder): Convenience
function so we can keep all the evolution_storage_add_new_folder()
code in one place as much as possible.
* subscribe-dialog.c (recursive_add_folder): Use 'name' rather
than the no-description bs since that's what all the other places
do.
* mail-callbacks.c (folder_created): New callback to handle the
"folder_created" signal - handles CamelFolderInfo's recursively.
(folder_deleted): Same but for "folder_deleted".
* component-factory.c (storage_create_folder): Instead of doing
the evolution_storage_new_folder() stuff by hand, pass it off to
the new callback: folder_created(). At some point this will be
unecessary as we'll attach this callback to the "folder_created"
signal.
2001-02-15 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c: Wrapped the address compare functions in a
#ifdef
(address_compare): #ifdef the use of the smart address sorting
code and provide a #else for using g_strcasecmp().
2001-02-14 Jeffrey Stedfast <fejj@ximian.com>
* openpgp-utils.c (openpgp_verify): Add the --no-tty flag.
2001-02-14 Dan Winship <danw@ximian.com>
* mail-mlist-magic.c: Rewrite explanatory comments to use normal
regexps rather than procmail weirdness.
(check_sender): match "foo-owner" as well as "owner-foo".
(check_list_post): (New) Check for "List-Post: <mailto:..."
(mail_mlist_magic_detect_list): Iterate through an array of
function pointers rather than calling each checker explicitly.
* component-factory.c (add_storage): Connect to the
"create_folder" signal on the storage.
(storage_create_folder): Do folder creation.
2001-02-14 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_set_cb): Setup the Trash folder.
* mail-ops.c (create_trash_vfolder): Do better error handling.
(populate_folder_urls): Oops, helps to strdup the url into the
array if we plan on freeing the data.
(mail_get_trash): New async function that may eventually replace
mail_do_setup_trash().
(do_setup_trash): Do better error handling.
* mail-local.c (mail_local_store_class_init): Override
get_folder_info.
(get_folder_info): Implement.
2001-02-13 Christopher James Lahey <clahey@ximian.com>
* mail-local.c (do_reconfigure_folder): Fix some uninitialized
variables.
2001-02-12 Not Zed <NotZed@Ximian.com>
* message-list.c (build_tree): if doing a full update, save the
cursor pos and restore it afterwards.
(on_cursor_activated_cmd): Copy the current_uid to a new string.
I dont know why this is required, but it is.
(message_list_destroy): Free the cursor_uid as we're done with it.
(build_flat): IF the current uid disappeared from the list, then
unset the message.
(build_tree): Likewise.
2001-02-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write): Clean out the cruft in the
Accounts section before writing the current accounts out to the
config file.
* mail-account-editor.c (construct): Strip the leading "/" from
the Namespace/Path entry if the provider doesn't require absolute
pathnames.
2001-02-12 Kjartan Maraas <kmaraas@gnome.org>
* Makefile.am: xml-i18n-tools setup.
* GNOME_Evolution_Mail.oaf.in: Mark strings for translation.
2001-02-11 Dan Winship <danw@ximian.com>
* mail-callbacks.[ch]: Re-add non-static forward_messages.
mail-view.c needs it.
2001-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_inlined): Don't leak memory.
(forward_messages): change doinline to be a gboolean argument.
2001-02-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (list_add_addresses): Check the full list of
IDs instead of just the default id and if we find an address
matching one of the user's ids, then save it.
(mail_generate_reply): Try to guess which account to use based
upon the list of To and Cc addresses and pass that as the 'From'
address to e_msg_composer_set_headers().
(forward_get_composer): Updated to reflect changes to
e-msg-composer.
2001-02-11 Gediminas Paulauskas <menesis@delfi.lt>
* mail-config.glade.h: removed, xml-i18n-extract's the strings itself.
* *.glade: do not output_translatable_strings
* Makefile.am: removed *.glade.h from EXTRA_DIST.
2001-02-09 Dan Winship <danw@ximian.com>
* mail-local.c: Updates for CamelStore changes, small memory leak
fixes.
(lookup_folder): Removed (and moved into the reconfigure code)
since this method no longer exists in CamelStore.
(do_reconfigure_folder, etc): Update the info in the
MailLocalStore after reconfiguring.
(mail_local_lookup_folder): Removed
* local-config.glade: fix padding of the label_format
* message-list.c (ml_tree_value_at): Don't keep message infos
reffed across calls, since this can cause badness after a
reconfigure. Instead, just strdup the needed values and free those
on the next call.
* mail-tools.c (mail_tool_get_root_of_store): Unused, remove.
(mail_tool_get_inbox): use camel_store_get_inbox.
* evolution-outlook-importer.c (load_file_fn):
* evolution-mbox-importer.c (load_file_fn): Use
mail_tool_get_local_inbox() instead of mail_importer_get_folder()
* mail-importer.c (mail_importer_get_folder): Removed
2001-02-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): New location for this
function.
* mail-format.c: Removed mail_generate_reply as it's ONLY ever
used in mail-callbacks.c.
* mail-ops.c (fetch_mail_fetch): Reworked some keep-mail-on-server
logic so that we ALWAYS look for a cached array of UIDs that we
may have downloaded previously so as not to download them again
even if we will be deleting them off the server. This fixes bug
#1344.
2001-02-09 Not Zed <NotZed@Ximian.com>
* mail-ops.c (filter_folder_free): only free driver, if set.
(fetch_mail_fetched): Unref the driver here, so it can cleanup
before we call the 'done' callback.
* component-factory.c (owner_set_cb): Add setup for mail
autoreceive stuff.
* mail-send-recv.c (free_info_data): Free the send info's from teh
active hash, not the running list.
(receive_done): As we finish downloads, remove them and clean them
up, and also close the window.
(mail_autoreceive_setup): New function to setup & maintain
automatic download stuff.
2001-02-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (construct): Set the sensitivity of the spin
button based on the state of the checkbox.
* mail-config.c (config_read): Properly do defaults here.
(mail_config_write): Removed some of the settings being saved
here.
(mail_config_write_on_exit): Save those settings here instead.
2001-02-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_object_requested): Cast the CamelMedium to a
CamelMimePart before performing actions on it as if it were a
CamelMimePart.
* mail-config-druid.c (druid_finish): Save the auto-check settings.
(construct): Initialize auto-check widgets.
(mail_config_druid_get_auto_check): New function
(mail_config_druid_get_auto_check_minutes): New functions
* mail-config.c (config_read): Read in whether or not to check
every x minutes.
(mail_config_write): Save auto-check config data and SSL.
2001-02-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-autofilter.c (rule_add_subject): Use "contains" because the
subject might be broken into subparts and using the "is" rule will
then fail ;-)
2001-02-08 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (mail_send_receive):
(mail_receive_uri): Init active_downloads hash if it hasn't been yet.
2001-02-07 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (operation_status): Handle internal camel status return.
(receive_done): Remove active download when done.
(mail_receive_uri): Initiate download of a single source, with no gui.
(build_dialogue): Mark any new items as real active downloads.
(do_show_status): Make the progress bar optional.
2001-02-06 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c: camel_cancel->camel_operation.
* mail-ops.old.c: camel_cancel->camel_operation.
* mail-ops.c: camel_cancel->camel_operation.
* mail-mt.c: camel_cancel->camel_operation.
* mail-callbacks.c (stop_threads): camel_cancel->camel_operation.
* mail-mt.h: CamelCancel->CamelOperation.
2001-02-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (set_view_data): Check current_message for NULL - this
fixes a bug running under SunOS (not a major deal tho as it's in a
debug printf).
2001-02-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write_on_exit): Oops, save the
seen_timeout variable.
2001-02-06 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (evolution_mail_LDADD): Added libmenus.la.
* folder-browser-factory.c (control_activate): Added GalView menus
here.
* message-list.c, message-list.h (message_list_get_layout): Made
message_list_get_layout export.
2001-02-06 Iain Holmes <iain@ximian.com>
* mail-display.c (pixbuf_gen_idle): Set the size of the icon to 24x24
always.
(button_press): Function to toggle the disposition of an attachment.
(on_object_requested): New way to indicate functions on attachments.
* message-list.c (hide_load_state): Free the olduid.
2001-02-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (set_defaults): Updated to checkfor
"(none)".
* mail-account-editor.c (entry_changed): Make sure the email
address is valid.
* mail-config-druid.c (identity_check): Check to make sure we have
a valid email address.
(is_email): New function to check a string to see if it's a valid
email address.
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* evolution-mbox-importer.c: We are now going to use a file
descriptor and a CamelMimeParser rather than a FILE pointer.
(load_file_fn): Open the file descriptor and initialize the
CamelMimeParser.
(importer_destroy_cb): Unref the mime parser.
(support_format_fn): Use an fd and use a case-insensitive
comparison as well as elimate a buffer overrun.
(process_item_fn): Process 1 CamelMimeMessage per invocation so as
to not lock up Iain's GUI and to work similar to the way Iain
originally coded it.
2001-02-05 Christopher James Lahey <clahey@ximian.com>
* evolution-mbox-importer.c, evolution-mbox-importer.h: Moved
bonobo includes from the .c to the .h. Include
evolution-mbox-importer.h in evolution-mbox-importer.c.
* evolution-outlook-importer.c, evolution-outlook-importer.h:
Moved bonobo includes from the .c to the .h. Include
evolution-outlook-importer.h in evolution-outlook-importer.c.
* mail-callbacks.c: Include mail-send-recv.h.
* mail-local.c (mail_local_lookup_folder): Cast local_store to
CAMEL_STORE.
* mail-mt.c (mail_msg_cleanup): Make this function static.
* mail-send-recv.c, mail-send-recv.h: Created mail_send_recv.h.
Included it in mail-send-recv.c. Added a #include
<libgnomeui/gnome-window-icon.h>.
(mail_send_receive): Added a cast.
* mail-summary.c (new_folder_cb, removed_folder_cb,
create_summary_view): Cast the source func in calling g_idle_add.
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp_sig): New function to handle
inline pgp-signatures.
* mail-config-druid.c (construct): Keep track of the CheckSettings
check boxes.
(transport_next): Connect if the user says so.
(incoming_next): Same. Also, don't jump to the next page if
test-settings fails.
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (incoming_next): Updated to not connect when
getting a list of authtypes.
(transport_next): No longer connects - again, this is
useless. Read the apply_changes argument for the reason why.
* mail-account-editor.c (apply_changes): Updated. Set the
'connect' argument to FALSE for now, this basically means that the
call is worthless tho so it may be best to either get rid of the
checks altogether or else make it connect.
(source_auth_init): Don't connect here, it's just plain annoying.
(transport_construct_authmenu): Same here.
* mail-config.c (mail_config_check_service): Now takes a connect
argument.
2001-02-03 Michael Meeks <michael@helixcode.com>
* mail-local.c (load_metainfo): Fix dodgy libxml allocation
pollution, and potential faults on NULL attributes.
2001-02-02 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (mail_send_receive): Cleaned up so we dont add
an unecessary level of indenting.
* message-list.c (ml_tree_value_at): For collapsed tree nodes,
scan the collapses nodes for the unread and status information.
Since we dont really have fake nodes anymore.
2001-01-30 Ian Campbell <ijc25@cam.ac.uk>
* message-list.c: Add support for new icons for being
read/unread for fake root messages on threads.
2001-01-30 Iain Holmes <iain@ximian.com>
* mail-send-recv.c (mail_send_receive): Only allow one send and
receive to be running at once.
(build_dialogue): Set the icon for the window.
* evolution-mbox-importer.c (support_format_fn): Only compare the first
5 bytes of the signature.
2001-01-30 Kjartan Maraas <kmaraas@gnome.org>
* folder-browser.c: Fix typo.
2001-01-29 Jeffrey Stedfast <fejj@helixcode.com>
* mail-importer.c (mail_importer_add_line): Cast the
camel_stream_mem_new() to a CamelStreamMem.
2001-01-29 JP Rosevear <jpr@ximian.com>
* main.c: Return efence ifdefs to 0 for solaris build
2001-01-29 Not Zed <NotZed@Ximian.com>
* message-list.c (tree_equal): Debug function to compare the tree
we think we have, after an incremental update.
(build_tree): Check the tree after we've built it.
(build_tree): Oops, turn on BROKEN_ETREE again.
* mail-mt.c (mail_get_password): If we are being called from the
main gui thread, then just call the dialogue directly. Ideally we
dont want this anyway but lets handle the case nicely.
(mail_get_password): Try locking around the password request, to
single-queue any password requests.
(mail_msg_init): Push an exit handler to clean it up on completion.
* mail-send-recv.c (receive_update_got_store): New function called
when the store has been retrieved asynchronously.
(mail_send_receive): Get the store asynchronously. This was
causing problems where the password dialogue would try and be
called from the main thread via a message.
* mail-ops.c (mail_get_store): New function to get a store
(a)synchronously. More or less taken from subscribe-dialog, which
i will remove later.
(mail_scan_subfolders): Try running the scan subfolder thing
asynchronously, to help startup time. Not sure if this will work,
but presumably the shell can handle the folders appearing later
ok.
2001-01-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (set_defaults): Turns out that I was wrong
about the g_get_real_name mem leak, god damn glib for not
following the const char* standard.
2001-01-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (management_prepare): Use UTF-8.
(set_defaults): Use UTF-8 and also fixed a memory leak by freeing
the string returned by g_get_real_name().
(mail_config_druid_get_account_name): Use UTF-8.
(mail_config_druid_get_full_name): Same.
(mail_config_druid_get_email_address): Same.
(mail_config_druid_get_organization): Same.
* mail-account-editor.c (apply_changes): Save UTF-8 strings rather
than gtk strings.
(construct): Use the UTF-8 convenience functions to set the gtk
entries for the ID fields.
2001-01-28 Ettore Perazzoli <ettore@ximian.com>
* mail-vfolder.c (vfolder_gui_add_rule): Make the OK button the
default one.
* mail-search-dialogue.c (mail_search_dialogue_init): Use stock
buttons for OK and Cancel. Make the OK button the default one.
2001-01-28 Ettore Perazzoli <ettore@ximian.com>
* mail-vfolder.c (vfolder_gui_add_rule): Set a default size for
the window so that more rules are visible.
* mail-search-dialogue.c (mail_search_dialogue_construct): Set a
default size for the window so that more rules are visible.
2001-01-28 Not Zed <NotZed@Ximian.com>
* mail-display.c (write_data_to_file): Changed to use
mail_save_part to save the data in another thread.
(save_data_cb): Hide the fileselector once we have a button press,
and are saving stuff.
* mail-ops.c (mail_save_part): New function to save a part content
asynchronously.
2001-01-27 Christopher James Lahey <clahey@helixcode.com>
* folder-browser.c (etable_key): Don't handle home and end keys
since %ETable deals with them now.
2001-01-27 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (address_compare): Protect against NULL address
pointers.
(subject_compare): Same but for subject pointers.
2001-01-27 Iain Holmes <iain@ximian.com>
* mail-summary.c (create_summary_view): Applied patch from John R Sheets
to fix some warnings.
(idle_check): Fixed the prototype to fix some warnngs as well.
2001-01-26 Ettore Perazzoli <ettore@ximian.com>
* mail-display.c (get_embedded_for_component): Try a control
first, instead of an embeddable.
2001-01-26 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (populate_store_foreach): Check for a NULL
service->url as we obviously can't subscribe to folders on a
non-existant mail source :-)
(subscribe_do_get_store): Check for a NULL url here too, not that
we should need it anymore (due to the above fix) but it doesn't
hurt. Also, should we wait on the thread? Probably doesn't matter.
2001-01-26 Iain Holmes <iain@ximian.com>
* evolution-outlook-importer.c (load_file_fn): Replace fsetpos with
fseek and use a long instead of fpos_t.
(process_item_fn): Same.
* mail-importer.h: Add a frozen item to tell when the folder is frozen.
* evolution-mbox-importer.c (process_item_fn): Fix the blank message.
Set the frozen element.
(importer_destroy_cb): Thaw the folder if frozen.
2001-01-26 Dan Winship <danw@ximian.com>
* mail-identify.c (mail_identify_mime_part): Fix an uninitialized
variable use.
2001-01-26 Jason Leach <jasonleach@usa.net>
(Fixing an old FIXME)
* component-factory.c (create_vfolder_storage): removing
create_vfolder_storage, replacing call to it with
vfolder_create_storage.
2001-01-26 Not Zed <NotZed@Ximian.com>
* message-list.c (build_tree): Define BROKEN_ETREE again, till we
get this stuff fixed better.
2001-01-25 Not Zed <NotZed@Ximian.com>
* folder-browser.c: Moved teh "sender contains" item to the end of
the list, so the gui doesn't suddenly change on everyone. Fixed
the sender-contains search string to be a valid s-exp (ha, didn't
test it even once eh ettore?!)
(search_save): Dont have the sender contains as the default case
(which well, never gets called anyway), oops i guess i should've
reviewed the patch a little more.
2001-01-26 Ettore Perazzoli <ettore@ximian.com>
* folder-browser.c: Add a missing parenthesis to the "from
contains" rule. Also make it the last item instead of the first
one.
2001-01-25 Iain Holmes <iain@ximian.com>
* component-factory.c (component_factory_init): Init the mail
mail importers.
* mail-local.[ch] (mail_local_lookup_folder): retrieve the local
folder given by the name.
* mail-importer.[ch]: Basic functions for all importers to use.
* evolution-mbox-importer.[ch]: Mbox importer.
2001-01-25 Jeffrey Stedfast <fejj@ximian.com>
The following fixes seem to clear up the problem of new mail not
being shown in the Inbox and/or other folders where mail had been
delivered.
* mail-send-recv.c (build_dialogue): Freeze the inbox.
(receive_get_folder): Freeze folders before dumping them into the
hash table.
(free_folder_info): Thaw the folder.
(free_info_data): Thaw the Inbox.
2001-01-25 Jason Leach <jasonleach@usa.net>
(Don't prompt about unsaved changes for replies/forwards that have
not actually been modified)
* mail-callbacks.c (do_forward_inline): Unset the has_changed for
the message composer.
(do_forward_attach): Same here.
(mail_reply): And here.
2001-01-25 Dan Winship <danw@ximian.com>
* mail-format.c (mail_content_loaded): Check if a message part's
content is available, and if it's not, queue a thread that will
load it and then queue an idle-handler redisplay of the message.
(call_handler_function): Call mail_content_loaded() on the part
and don't try to display it if it's currently offline.
(get_data_wrapper_text): Simplify a bit
* mail-display.c (mail_display_queue_redisplay): rename and make
non-static.
(mail_display_redisplay): Use a "new and improved" way of
preserving the GtkHTML scroll location. ("new and improved" is
code for "gross and hackish", but there should be a real interface
for this eventually.)
(on_url_requested): Use mail_content_loaded() and don't write out
offline cid: URLs
* mail-identify.c (mail_identify_mime_part): Use
mail_content_loaded and don't try to identify the data if it's
offline.
2001-01-25 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Made the message list pay attention to the
"cursor_activated" signal instead of the "cursor_change" signal.
2001-01-25 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-factory.c (update_pixmaps): Set the print icon
for various other items.
(set_pixmap): Be a bit more verbose in the warning message if the
icon isn't found [i.e. report the name of the file too].
2001-01-25 Ettore Perazzoli <ettore@ximian.com>
* folder-browser-factory.c (update_pixmaps): Set the pixmaps for
the "/menu/Folder/FolderConfig" and "/menu/Settings/SetMailConfig"
items.
(set_pixmap): Don't prepend the "buttons" prefix.
(update_pixmaps): Update accordingly.
2001-01-24 Not Zed <NotZed@Ximian.com>
* folder-browser.c (search_string[]): Fix the subject match
expression, which was missing a closing ).
* mail-send-recv.c (do_show_status): Escape any % signs in the
string before setting the format string.
2001-01-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.glade: Added a 3rd page to the account editor to
allow users to set their HTML sending preference and also allow
them to change their message status timeout.
* mail-accounts.c (construct): Added handlers for the send-html
checkbox and for the mark-message-as timeout spinbutton.
2001-01-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (apply_changes): Save the source and
transport changes whether the user can connect to the host or not.
2001-01-23 Ettore Perazzoli <ettore@ximian.com>
[Applied patch from Tuomas Kuosmanen <tigert@ximian.com>]
* folder-browser.c: Added enum value `ESB_SENDER_CONTAINS' as well
as a "Sender contains" item to the search menu. Also add a
corresponding "(match-all)" rule to the `search_string' array.
(search_save): Handle `ESB_SENDER_CONTAINS' here.
2001-01-23 Ettore Perazzoli <ettore@ximian.com>
* GNOME_Evolution_Mail.oafinfo: Fixed the repo_ids so that they
use the right syntax.
2001-01-23 Dan Winship <danw@ximian.com>
* folder-browser-factory.c:
* mail-callbacks.c (send_receive_mail): Fix spelling.
2001-01-24 Not Zed <NotZed@Ximian.com>
* mail-ops.c (fetch_mail_fetch): Set the default folder when
copying to mbox. This is a quick fix, i might need to do a slight
redesign to clean it up.
2001-01-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (build_dialogue): Make sure the source->url is
not NULL (which is perfectly valid).
(mail_send_receive): Where oh where should my prototype be?
(receive_get_folder): Make sure to ref the folder before you add
it to the hash table.
* openpgp-utils.c:
* mail-crypto.c: A few minor tweaks.
2001-01-23 Not Zed <NotZed@Ximian.com>
* message-list.c (build_tree): Try turning off the BROKEN_ETREE
thing. It seems to work ok (better?) now, but if its still broken
i'll remove it again for the next release.
2001-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (set_defaults): Automagically fill in the
user's default transport if he/she has setup previous accounts.
* mail-format.c (handle_multipart_signed): Just wrote a temp way
of reporting success/fail of PGP/MIME signature verification
status.
2001-01-22 Iain Holmes <iain@ximian.com>
* evolution-outlook-importer.c: Outlook Express 4 .mbx importer.
* component-factory.c (component_factory_init): initialise the
outlook importer.
* GNOME_Evolution_Mail.oafinfo: Add the details for the Outlook
importer.
2001-01-22 Dan Winship <danw@ximian.com>
* mail-mt.[ch]: make mail_gui_thread non-static.
* main.c (main): Set up signal handler for SEGV, BUS, FPE
(segv_redirect): if a gnome-segv'ing signal is received in
a thread other than mail_gui_thread, re-deliver it to that
thread to work around a problem with the gnome segv handler.
2001-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Fixed to display
subparts (other than the signature part) and started to write a
pretty way to show if the signature verified or not.
2001-01-23 Not Zed <NotZed@Ximian.com>
* mail-crypto.c (pgp_mime_part_verify): Fix a double-free problem.
2001-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (incoming_type_changed): Oops, danw didn't
know 'provider' could be NULL :-)
2001-01-22 Dan Winship <danw@ximian.com>
* mail-config-druid.c (incoming_type_changed): Change "Path:"
label to "Namespace:" for IMAP. Use $MAILDIR rather than $MAIL for
Maildir. If $MAIL isn't set, guess.
* component-factory.c (mail_hash_storage): Function to add a
store/storage mapping.
(add_storage): Use it.
* mail-vfolder.c (vfolder_uri_to_folder): Use the vfolder name
rather than the string "mbox" (which wasn't ever used for
anything) in the vfolder URL. (Combined with the CamelVeeFolder
change, this makes camel_folder_get_name() return a pretty name
for vfolders now.) Call mail_hash_storage() to record the
CamelVeeStore/vfolder_storage mapping. (Ideally, there'd only be a
single CamelVeeStore... this is just a quick hack.)
vfolders now display their unread count once you've looked at them
once.
2001-01-22 Dan Winship <danw@ximian.com>
* mail-tools.h: s/filter-driver.h/camel-filter-driver.h/ and
update first arg of mail_too_filter_get_folder_func
* mail-tools.c (mail_tool_filter_get_folder_func): Update first
arg to CamelFilterDriver *
* mail-send-recv.c (receive_status):
* mail-ops.c (send_queue_send): s/FILTER/CAMEL_FILTER/
* mail-callbacks.c: Remove filter-driver.h include
* mail-accounts.c: Put the news functions inside #ifdef
ENABLE_NNTP to prevent warnings about unused statis functions.
* subscribe-dialog.c (subscribe_folders, unsubscribe_folders,
subscribe_refresh_list): Update prototype to match BONOBO_UI_VERB.
(populate_store_list): add a de-constifying cast
2001-01-22 Not Zed <NotZed@Ximian.com>
* .cvsignore: Added temp profiling files.
* component-factory.c (owner_set_cb): remove a warning with
conditional news compilation.
* mail-ops.h: Cleaned up the header list.
2001-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_is_rfc2015_signed): Helps if I spell
stuff correctly so it can pass the tests ;-)
2001-01-22 Not Zed <NotZed@Ximian.com>
* folder-browser-factory.c: Replace the old get_send mail with the
new one (button).
* mail-ops.c (set_x_mailer):
(mail_load_evolution_rule_context):
(mail_do_fetch_mail):
(mail_do_filter_ondemand):
(mail_send_mail_old):
(mail_do_send_queue): All removed, (for) now lives in mail-send-recv.c.
(load_context):
(setup_filter_driver):
(filter_get_folder):
(mail_filter_folder):
(mail_fetch_mail):
(mail_update_subfolders):
(mail_send_mail):
(mail_send_queue): New equivalents of all these fundtions, moved
from mail-send-recv.c ...
(mail_filter_on_demand): Moved here too.
(mail_load_filter_context): Export this.
* mail-callbacks.c (apply_filters): Use the new
mail_filter_on_demand() call.
(send_receieve_mail): Use mail_send_receive to do the work. Add a
little error handling here that used to be elsewhere.
(send_queued_mail): Removed.
(fetch_mail): Removed.
(select_first_unread): #ifdef'd this out. Not sure if this still
makes sense, but it doesn't get run right now anyway.
(composer_postpone_cb): Fix the setting of message flags. You
dont need to get them first, ever.
* mail-send-recv.c (mail_send_message): Dont use
mail_tool_send_via_transport anymore (it does nothing useful).
* mail-tools.c (mail_tool_camel_lock_up): Turned into a noop.
(mail_tool_camel_lock_down): And here too.
(mail_tool_move_folder_contents): Removed from the code (hasn't
bene used for ages).
(mail_tool_send_via_transport): Removed, it doesn't save anything.
2001-01-21 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_set_cb): Initialize OpenPGP.
* openpgp-utils.c (openpgp_init): No longer takes a passphrase
callback, we'll just use the mail-session one. Makes life simpler.
(pgp_get_passphrase): Use mail_session_request_dialog().
* mail-ops.c (do_send_queue): Remove the X-Evolution header before
we send.
* mail-crypto.c (pgp_mime_part_sign): Don't forget to unref the
filters.
(pgp_mime_part_verify): Same.
(pgp_mime_part_encrypt): Same.
(pgp_mime_part_decrypt): Take NotZed's advice and use
camel_stream_mem_new_with_buffer instead of writing to a new
stream_mem. Also use camel_data_wrapper_construct_from_stream
instead of creating a parser and using that.
2001-01-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c: Updated header comment and fixed some ref/unref
count problems in the various functions. Also fixed some other
little things.
(pgp_mime_part_encrypt): Do some canonical CRLF action before
encrypting.
(pgp_mime_part_sign): Make sure we are the owners of the byte
array.
(pgp_mime_part_verify): Same.
(pgp_mime_part_encrypt): Same.
(pgp_mime_part_decrypt): Same.
2001-01-21 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (message_list_get_layout): Added
draw-focus="true" and selection-mode="browse" attributes to the
ETableSpecification.
(message_list_construct): Removed setting the "draw_focus"
argument since it doesn't exist any more.
2001-01-21 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msg_new): Init a cancel field in the message.
(mail_msg_free): Free it.
(mail_msg_cancel): New function to attempt to cancel an operation
by id. Impelementation functions can still be uncancellable by
not registering for cancellation, etc, or do it themselves as
well.
* mail-send-recv.c (fetch_mail_filter_folder): set folder_uid's
properly, so we can save it later.
(filter_folder_filter): Renamed from fetch_mail_filter_folder,
since its going to be used for all filtering.
(mail_fetch_mail): Changed from mail_filter_mail.
(mail_filter_folder): New function, replaces
mail_do_filter_ondemand functionality.
(mail_filter_on_demand): New function, actually replaces
mail_do_filter_ondemand.
(receive_get_folder): Added an exception arg.
(mail_send_message): New function to just send a message.
(send_mail_send): Use mail_send_message.
(send_queue_send): New send qeue code, use mail_send_message, and
clean up some stuff.
(mail_send_receive): Changed from mail_receive.
(build_dialogue): Setup the sending data, as well.
(mail_update_subfolders): New function to update folder info.
(send_mail_send): hook into cancellation if we want.
2001-01-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (do_send_queue): Strip leading space from the
transport url gotten from the message.
2001-01-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_generate_reply): If the name is empty
string, use the address.
2001-01-19 Dan Winship <danw@ximian.com>
* mail-display.c (pixmap_press): Update for e_popup_menu_run
change.
* folder-browser.c (etable_key): On GDK_Menu (the menu key on
105-key keyboards), pop up the right-click menu.
(on_right_click): update for e_popup_menu_run change.
* subscribe-dialog.c (recursive_add_folder): New function to add a
folder and any parents of it that don't yet exist. Fixes bugzilla
#1028.
2001-01-19 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c: New swanky send/recieve thingy, well it so far
only receives (pop/mbox). Ignore all the warnings for now, and
the ugly 'button' to run it.
2001-01-18 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c: Added the next/previous toolbar
buttons.
* mail-callbacks.c (next_msg): New callback so we can have a next
toolbar button.
(previous_msg): Same but for previous.
2001-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (construct): Anna's dialog now supports
SSL so we can get rid of the ssl-support checks. Also work around
the fact that Anna's dialog doesn't have an optionmenu for the
transport type, it's a label instead.
(transport_type_init): Cast the transport_type widget to a
GtkOptionMenu where appropriate as the widget that stores it is
now generic.
(apply_changes): Modify code to work with anna's dialog...*sigh*
(ok_clicked): Alert the user that one or more servers failed to
validate and allow him to continue anyway.
2001-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_pgp_path): New config function to
set the path to the pgp binary.
(mail_config_get_pgp_path): Gee I wonder...
(mail_config_set_pgp_type): This one sets the type (ie PGP5, PGP2,
or GnuPG - see openpgp-utils.h for values)
(mail_config_get_pgp_type): Der.
2001-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (construct): Handle NULL source and, while
we're at it, transport URLs. Apparently camel_url_new() and/or
camel-url_free() don't handle NULL input well.
* mail-accounts.c (load_accounts): Handle NULL source URLs.
2001-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (construct): Oops. "url && url->host"
doesn't do much without the '?' and ':' ;-)
2001-01-17 Ettore Perazzoli <ettore@ximian.com>
* mail-ops.c (set_x_mailer): New function.
(send_mail_send): Use it.
(do_send_queue): Use it.
2001-01-17 Martin Norbäck <d95mback@dtek.chalmers.se>
* openpgp-utils.c (pgp_get_passphrase): Changed the word entry
to enter, which is the correct word to use.
2001-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (ask_confirm_for_empty_subject): Update to use
EMessageBox and to record if the user doesn't want to ever see
this dialog again.
* mail-config.c (mail_config_get_prompt_empty_subject): New config
function.
(mail_config_set_prompt_empty_subject): Another new one.
2001-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (apply_changes): Modify to be able to
handle a NULL source_url.
(source_auth_init): Allow for a NULL source url.
(source_check): Same.
* mail-config.c (mail_config_write): Allow for NULL source
URLs. And while we're at it, NULL transport URLs as well. Might as
well save the use_ssl variable too.
(config_read): Same.
* mail-config-druid.c (druid_finish): Modify to allow a NULL
source url.
(incoming_next): Modify to check for a NULL source and jump to the
transport page if one is encountered (this means the user decided
not to config a source).
(incoming_type_changed): Modify to set all widgets insensitive if
the user selected the "None" source menu item (aka NULL provider).
(incoming_check): Modify to allow the user to go to the next page
when he/she has chosen "None" for their source type.
(mail_config_druid_get_source_url): Return NULL if the provider is
NULL.
(mail_config_druid_get_transport_url): Same.
2001-01-16 Dan Winship <danw@ximian.com>
* mail-display.c (on_object_requested): Don't do thumbnails for
offline images
2001-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (save_msg_ok): If the user hits "No", then
don't destroy the filesel window.
* mail-ops.c (save_messages_save): Open with mode 0666 as danw
suggests.
2001-01-16 Chris Toshok <toshok@helixcode.com>
* component-factory.c (owner_set_cb): only load the news storage
if ENABLE_NNTP.
* mail-accounts.c (construct): if !ENABLE_NNTP, remove the news
page from the dialog.
2001-01-16 Radek Doulik <rodo@helixcode.com>
* mail-format.c (mail_generate_reply): use
e_msg_composer_mark_text_orig
2001-01-16 Dan Winship <danw@ximian.com>
* mail-ops.c (send_mail_send, do_send_queue): Update the X-Mailer
header to use the string specified by configure.
2001-01-16 Jason Leach <jasonleach@usa.net>
* subscribe-dialog.c: removed unecessary #inlcude "e-title-bar.h"
2001-01-16 Jason Leach <jasonleach@usa.net>
* openpgp-utils.c (pgp_get_passphrase): Fix a string causing
translation problems. Bug #1147.
2001-01-16 Not Zed <NotZed@Ximian.com>
* mail-ops.c (mail_do_fetch_mail): Setup a cancellation handle.
(do_fetch_mail): REgister for cancellation here.
(cleanup_fetch_mail): And unregister for cancellation here.
(mail_get_message): Add a cancel handle.
(get_message_get): Register/deregister for cancel.
(get_message_free): & clean up.
* mail-mt.c (mail_msg_received): Removed debuggng.
* mail-callbacks.c (stop_threads): Callback for stopping.
* folder-browser-factory.c: Add a stop button verb thingy.
(control_activate): Disable the stop button by default.
2001-01-15 Christopher James Lahey <clahey@ximian.com>
* message-list.c, message-list.h: Change from using filters for
date and size to using e_cell_date and e_cell_size. Moved a bunch
of includes from the message-list.h to the message-list.c.
2001-01-15 Miguel de Icaza <miguel@ximian.com>
* mail-callbacks.c (configure_mail): Set the default button to
`Yes' here.
2001-01-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (source_auth_init): If the preferred
authmech isn't found, default to the first one in the list.
(transport_construct_authmenu): This function already did the
above but I made it simpler.
(apply_changes): A number of cleanups.
2001-01-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (druid_finish): Fixed mail_load_storages to
make a mini GSList of the account, not the account->source. Oops.
* mail-accounts.c (news_delete): Updated to use the remove_news()
function.
* mail-config.c (mail_config_remove_news): New convenience
function for removing news accounts.
(mail_config_remove_account): Pretty much the same thing.
* mail-ops.c (do_send_queue): Get the X-Evolution-Transport URL
and use that if it exists, else fall back on the default
transport.
* mail-callbacks.c (composer_postpone_cb): Set an
X-Evolution-Transport header.
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Removed GPG_* variables.
* component-factory.c (mail_load_storages): Now takes a
'is_account_data' variable to specify whether the sources is a
list of accounts of a list of services. Basically, the only time
you should pass in FALSE is when you are setting up NNTP storages.
(add_storage): Now takes a 'name' argument that specifies the name
to use in the storage.
(owner_set_cb): Updated to pass TRUE for accounts and FALSE for
news servers into mail_load_storages.
2001-01-12 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Changed filter_date and filter_size to match the
changes in gal.
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.glade: Anna's dialogs.
* mail-config.c (mail_config_get_account_by_address):
Removed. Danw and I decided on setting a X-Evolution-Transport
header on messages going to the Outbox so we can later guess which
transport to use when sending it.
* mail-account-editor.c (apply_changes): Update to some day be
able to support SSL.
(construct): Update for Anna's dialogs...
* subscribe-dialog.c (populate_store_list): Updated to reflect
past changes to the mail-config API.
2001-01-12 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_send_cb): Get the account by using
the new e_msg_composer_get_preferred_account() function. Also
check to make sure everything is configured (in case they deleted
their accounts while composing mail?).
* mail-config.c (mail_config_get_account_by_address): New
convenience function.
2001-01-12 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (component_fn): Pass NULL as the
@copy_folder_fn arg to `evolution_shell_component_new()'.
* folder-browser.c (on_right_click): Removed hide menu. It
belongs to the view menu now.
2001-01-12 Miguel de Icaza <miguel@ximian.com>
* message-list.c: Add strings for localization
* folder-browser.c: Rename "Save" to "Store search as vFolder".
2001-01-11 Miguel de Icaza <miguel@gnu.org>
* mail-display.c (on_object_requested): Unref the property bag
when we are done with it.
(get_embedded_for_component): Moved the code to request the
embeddable/control to a separate function.
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_account_by_name): New convenience
function that I will need later when I redo the composer From
field.
* mail-display.c (on_object_requested): Update to reflect past
changes to the mail-config API.
* session.c (mail_session_set_password): strdup() the key.
* mail-config-druid.c (construct): We don't want to be able to set
the reply-to in the config druid.
(druid_finish): Don't set a reply-to anymore.
(mail_config_druid_finalise): Don't unref the providers.
* mail-config.glade: Took out the Reply-To field in the druid.
2001-01-11 Miguel de Icaza <miguel@gnu.org>
* mail-config-druid.c (incoming_type_changed): Guess the default
MAIL value for MBOX and Maildir files.
* mail-callbacks.c (configure_mail): Force finalization of the
function before returning fixing the FIXME that was there.
2001-01-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c (transport_next): If the service_check
fails, pop-up a warning dialog letting the user know he or she may
have problems and then let them continue on with their lives.
(incoming_next): Same (+ jump them over the auth page to the
transport page).
* mail-account-editor.c (apply_changes): Eek! Don't destroy the
account if the connection fails, duh. This is what is causing the
segfaults.
2001-01-11 Dan Winship <danw@ximian.com>
* folder-browser.c (got_folder): Connect to folder_changed as well
as message_changed for updating unread count
2001-01-10 Miguel de Icaza <miguel@helixcode.com>
* GNOME_Evolution_Mail.oafinfo: Add Bonobo/ItemContainer as the
set of supported interfaces in GNOME_Evolution_Mail_Composer
component.
2001-01-11 Dan Winship <danw@ximian.com>
* mail-format.c (write_field_to_stream): Translate the header name
to UTF8.
2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (configure_mail): New function that explains to
the user why he can't do the action he requested and then procedes
to ask if he'd like to configure his accounts now.
(check_send_configuration): If the user doesn't have configured
accounts, don't let him continue and call configure_mail().
(fetch_mail): Same.
(send_queued_mail): Same.
(send_receieve_mail): Same.
* mail-config.c (mail_config_write): Don't save a "is_configured"
variable. Instead we'll just check to see if we have accounts - if
yes, then configured == TRUE.
(mail_config_is_configured): return accounts != NULL.
(mail_config_get_default_account): Mark the first account as the
default if none are marked.
2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-account-editor.c (source_auth_type_changed): Set the
sensitivity of the Password label too.
* mail-config-druid.c (transport_back): New callback to handle
when the user hits the "back" button when on the transport
page. This is needed to handle the case where we don't want to
show the user the auth page (due to there being no auth choices).
(incoming_next): If we are going to skip over the auth page, set
the 'have_auth_page' variable to FALSE.
(construct): Initialize the have_auth_page to TRUE.
2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c (incoming_type_changed): Grab the focus of
the first widget that is sensitive.
(transport_type_changed): Same.
(identity_prepare): Grab the focus of the name entry.
* mail-callbacks.c (send_queued_mail): Prevent Federico's segfault.
2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c (auth_type_changed): Clear the password
entry if it's not allowed.
(transport_type_changed): Clear the hostname if it is not allowed
by the provider type.
* mail-account-editor.c (transport_type_changed): If the hostname
is allowed, clear it.
* mail-config-druid.c (incoming_type_changed): Clear the contents
of the entry boxes that are not to be used.
(mail_config_druid_get_source_url): If the text in the entry is
emptry string, don't set it' contents in the url.
2001-01-10 Miguel de Icaza <miguel@helixcode.com>
* mail-callbacks.c (print_msg): Fix proto.
(print_preview_msg): Fix proto.
* subscribe-dialog.c: Remove more UNSAFE macros.
2001-01-09 Jason Leach <jasonleach@usa.net>
* mail-display.c (pixmap_press): Bugfix for #1077: scrollwheel
doesn't work while hovering over an attachment icon.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.glade: Moved to mail-config.glade
* mail-accounts.c (construct): Updated to use mail-config.glade.
* mail-account-editor.c (construct): Updated to use
mail-config.glade.
* mail-config-druid.c (construct): Updated to use
mail-config.glade.
* mail.h: Added the new mail config headers.
2001-01-09 Dan Winship <danw@helixcode.com>
* mail-local.c (local_folder_changed_proxy): Change
mail_op_forward_event to mail_proxy_event.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (save_messages_save): Let the system umask determine
the permissions of this file.
* mail-config-druid.c (incoming_type_changed): Gray out the
appropriate labels too.
(auth_type_changed): And here.
(transport_type_changed): Here too...
* mail-account-editor.c (source_check): Gray out the appropriate
labels too.
(transport_type_changed): And here too.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-account-editor.c: For all optionmenu's, set the appropriate
'history'.
(keep_mail_check): Set the keep-on-server checkbutton sensitivity
based on whether or not the store is a storage or not.
(construct): Call keep_mail_check().
* mail-config-druid.c (incoming_type_changed): Set the
keep-on-server checkbutton sensitivity based on whether or not the
store is a storage or not.
* mail-accounts.c (construct): Make sure the dialog isn't a
scrunched little thingy.
2001-01-09 Dan Winship <danw@helixcode.com>
* Makefile.am (evolution_mail_LDFLAGS): Add -export-dynamic, so
libglade can resolve evolution-mail symbols.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c: Updated.
(decode_pgp): Get rid of #ifdef PGP_PROGRAM's and handle
appropriately.
(handle_multipart_signed): Same.
(handle_multipart_encrypted): Same.
* Makefile.am: Added openpgp-utils.[c,h] to the build.
* openpgp-utils.c: New source file containing all of the pgp
interface code.
* mail-crypto.c: Removed all of the openpgp funtions as they are
being moved to a new file.
(mail_crypto_is_rfc2015_signed): Renamed.
(mail_crypto_is_rfc2015_encrypted): Renamed.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* session.c (mail_session_set_password): New function to set the
password for a given url.
* mail-config-druid.c (druid_finish): Don't save the password in
the source url, instead insert it into the save-password hash.
(mail_config_druid_get_source_url): Check to make sure the
authmech isn't "", if it is then don't set the authmech.
* mail-account-editor.c (apply_changes): Don't save the password
in the source url, instead insert it into the save-password
hash. Also check to make sure we don't set an empty string as the
authmech for the source or transport.
* mail-accounts.c (mail_default): After reloading the accounts,
reselect the previously selected account.
(mail_delete): Same.
* mail-config-druid.c (druid_cancel): Fixed segfault bug.
2001-01-09 Radek Doulik <rodo@helixcode.com>
* mail-format.c (write_headers): remove </center><p>
(handle_text_plain): add <font size=\"-3\"> </font><br> before
msg text
(handle_text_plain_flowed): ditto
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-accounts.c (mail_default): Write the config data and reload
the accounts list so the "default" tag is relocated.
(mail_delete): Write the config data here too.
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
* Makefile.am:
* component-factory.c:
* folder-browser-factory.c:
* folder-browser.c:
* mail-accounts.[c,h]:
* mail-account-editor.[c,h]:
* mail-callbacks.c:
* mail-config.[c,h]:
* mail-config-druid.[c,h]:
* mail-config-druid.glade:
* mail-display.c:
* mail-format.c:
* mail-tools.c: Brand spankin' new config druid, editor,
and manager.
2001-01-08 Dan Winship <danw@helixcode.com>
* mail-ops.c: Add an #include <errno.h>
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
* Makefile.am:
* component-factory.c:
* folder-browser-factory.c:
* folder-browser.c:
* mail-callbacks.c:
* mail-config.[c,h]:
* mail-display.c:
* mail-format.c:
* mail-tools.c: Reverted mail-config changes temporarily until
I get it working correctly.
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c: More lovely fixes...
* mail-callbacks.c: Don't segfault if a default account doesn't
exist.
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c: A bunch of fixes.
* mail-accounts.c: More fixes...
* mail-account-editor.c (construct): Reparent the notebook to the
editor->vbox and set the resize policy.
2001-01-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (providers_config): Use a
gnome_dialog_run_and_close().
* mail-accounts.c (construct): Reparent the notebook to the
dialog->vbox not to the dialog itself. Also set the resize policy
to allow the user to stretch it.
2001-01-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-tools.c (mail_tool_quote_message): Updated to reflect
changes to the mail-config API.
* mail-display.c (redisplay): Updated to reflect changes to the
mail-config API.
* mail-callbacks.c (providers_config): Use the new account dialog.
* mail-config-druid.c (druid_finish): Load the new storage into
the shell.
(mail_config_druid_new): Take a shell argument.
* mail-format.c (mail_generate_reply): Updated to reflect changes
to the mail-config API.
* mail-config-druid.c: Fixed this to build.
* mail-callbacks.c (check_send_configuration): Updated to reflect
changes to the mail-config API.
(create_msg_composer): Same.
(forward_get_composer): Same.
(send_queued_mail): Same.
(composer_send_cb): Same.
* mail-account-editor.c: Updated to build cleanly. *
mail-config-druid.c: Same. * mail-accounts.c: Same.
* folder-browser-factory.c (control_activate): Updated for API
changes in mail-config.
* folder-browser.c (done_message_selected): Updated for API
changed in mail-config.
(folder_browser_gui_init): Same.
(got_folder): Same.
* component-factory.c (owner_set_cb): After using the sources
list, free it as it is no longer a const GSList as with the older
mail-config code.
* mail-config.c: Totally rewritten.
2001-01-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-accounts.c (mail_edit): Implemented.
* mail-account-editor.c (apply_clicked): Implemented.
(ok_clicked): Implemented.
(cancel_clicked): Implemented.
(source_auth_type_changed): Implemented.
(source_auth_init): Implemented.
(transport_construct_authmenu): Implemented.
(transport_type_changed): Updated to change regenerate the auth
option menu.
(construct): Attached callbacks to OK, Apply and Cancel buttons.
* mail-account-editor.c (source_auth_init): Use the new
mail_config_check_service().
* mail-config-druid.c: Remove check_service() as it will be moved
into mail-config.
2001-01-06 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (message_list_select): Made it so that going to
the next or previous message in the list will at least move one
message, even if the current message matches the query. This
makes 'n' go to the next unread message, even if the current
message is unread.
2001-01-06 Jeffrey Stedfast <fejj@helixcode.com>
* mail-account-editor.c: Coded a bunch of the methods.
2001-01-04 Iain Holmes <iain@helixcode.com>
* mail-summary.c (idle_check): Check if the HTML for the current
summary has been created, and if not then keep trying until it
has.
(new_folder_cb)
(removed_folder_cb)
(create_summary_view): Use the idle_check function to generate the
summary.
(create_summary_view): Don't set the HTML here. Set it via the
pipe.
2001-01-05 Jeffrey Stedfast <fejj@helixcode.com>
* mail-account-editor.[c,h]: New source files to provide an
account editor widget.
* mail-config-druid.c (auth_type_changed): Set the authproto on
the druid so we can look it up later.
2001-01-05 Jeffrey Stedfast <fejj@helixcode.com>
* mail-accounts.c (mail_add): Since the druid now handles adding
the new account to the config, we'll just connect to the destroy
event and show the druid.
(mail_add_finished): Just reload the account list here.
* mail-config-druid.c (druid_finish): New callback to handle the
"finish" signal. On second thought, it seems it would be best for
the finish callback to be here rather than in mail-accounts.c.
* mail-accounts.[c,h]: Added. Contains source for the Account manager
window. And just like mail-config-druid.c, it's not yet complete.
* mail-config-druid.c (mail_config_druid_get_incoming_keep_mail):
Renamed from _delete_mail
(mail_config_druid_get_transport_url): New convenience function
that replaces the get_hostname, get_protocol, etc.
(mail_config_druid_get_source_url): Same.
* mail-config-druid.glade: Changed "Delete mail from server" to
"Keep mail on server" as this has a more positive ring to it. Both
I and Aaron agree this is the better phrase.
2001-01-04 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c: Fixed a few 'Oops'es.
* mail-config-druid.glade: Added a "Default" button for marking an
account as the default.
2001-01-04 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.glade: Updated. What else can I say?
2001-01-04 Dan Winship <danw@helixcode.com>
* folder-browser.c (got_folder): Connect to "message_changed" on
the folder if it's on a remote storage.
(update_unread_count): Update the folder unread count / highlight
in the shell when the unread message count changes
2001-01-04 Not Zed <NotZed@HelixCode.com>
* mail-ops.c (mail_do_send_mail): Removed old implementation.
* folder-browser.c (do_message_selected): If we haven't got a real
uid, then clear the display instead.
* message-list.c (message_list_drag_data_get): Use new save
message function, and also wait for it to finish before
continuing.
(folder_changed):
(message_changed): Use mail_proxy_event instead of
mail_do_forward.
(mail_regen_list): New iplementation to replace the old.
: remove <gnome.h> from headers. Dont define timeit by default.
(main_folder_changed):
(message_list_set_folder):
(message_list_set_threaded):
(message_list_set_search):
(message_list_hide_add):
(message_list_hide_uids):
(message_list_hide_clear): Use mail_regen_list instead of
mail_do_regenerate_messagelist.
(mail_do_regenerate_messagelist): Removed the old stuff. No
functionality changed yet, just using different thread stuff.
* mail-callbacks.c (save_msg_ok): Use new save message function.
* component-factory.c (create_view):
(add_storage): Use mail_scan_subfolders to build the folder info.
(create_folder): Use new implementation with our own callback.
(owner_set_cb): Changed b ack to use mail_get_folder, but now wait
for it to finish. This will let any gui still run, but also gives
us the required synchronous operation.
(got_folder): Callback for when the folder has been opened.
* mail-ops.c (mail_get_folderinfo): New function to just get the
folder info in another thread.
(mail_scan_subfolders): New scan subfolder implementation that
uses mail_get_folderinfo.
(mail_do_scan_subfolders): Removed old implementation.
(mail_create_folder): Nerw implementation to create a folder, only.
(mail_do_create_folder): Removed old implementation.
(mail_save_messages): New implementation, fixes a couple of minor
problems, and now provides a return so it can be waited on. Also
check that the writes worked, etc.
(mail_do_save_messages): Remove previous implementation.
(mail_do_flag_messages): Removed, nothing uses it.
(mail_do_flag_messages): Removed, nothing uses it anymore.
(mail_get_folder): REturn the operation id, so callers can wait
for it.
(sync_folder_desc):
(expunge_folder_desc): Add describe functions so we know what its
doing.
(mail_send_mail): More generic implementation of sending mail.
* mail-mt.c (mail_msg_new): Lock around seq increment. And insert
each new message into a hash table of active messages.
(mail_msg_init): Init the active message table.
(mail_msg_free): Remove the message from the active message table.
(mail_msg_wait): New function, waits for a message to be
processed, by id.
(mail_msg_check_error): Dont display the error if it is a
user-cancelled operation.
(mail_proxy_event): new implementation of mail_op_forward_event.
Only real difference is it uses the new thread stuff, and you can
wait for it to finish if you want.
(mail_proxy_event): If we're already in the main thread, just call
the function.
2001-01-03 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c: New source file that implements
mail-config-druid. Note: this is not yet complete.
2001-01-03 Not Zed <NotZed@HelixCode.com>
* mail-view.c (view_forward_msg): Call
mail-callbacks.c:forward_messages(), so the behaviour is the same
as from the folder browser.
* mail-callbacks.c (forward_messages): New function to forward
messages, attached or not.
(forward_inlined): Changed to use new forward-messages
implementation.
(forward_attached): Likewise.
(do_forward_attach): Callback for forwarding as attachment, once
we have built it.
(do_forward_inline): Likewise, for inline, once we have retrieved
the message.
(forward_message): Removed.
* mail-ops.c (mail_build_attachment): New function to build an
attachment of messages.
(mail_do_attach_message): Removed, functionality superceeded by
above.
(mail_do_forward_message): Removed. Likewise.
(mail_create_folder): Started work on an alternative
implementation of create_folder, but not sure about it yet.
* mail-tools.c (mail_tool_generate_forward_subject): Remove locking.
(mail_tool_make_message_attachment): Free the description when done.
2001-01-03 Radek Doulik <rodo@helixcode.com>
* mail-format.c (write_headers): add font color setting for table,
changed border behavior
* mail-display.c (redisplay): don't set body bg and text color
2001-01-02 Not Zed <NotZed@HelixCode.com>
* mail-callbacks.c (view_msg): Fix for mail_get_message change,
use queue thread.
* folder-browser.c (done_message_selected): Fix mail_Get_message
calls, use new thread.
(do_message_selected): "
* mail-ops.c (mail_get_message): Add a thread argument so callers
can specify which queue it executes on.
* mail-mt.c (mail_msg_free): Fix a free order problem.
(mail_msg_destroy): Call mail_msg_free to do the work.
(mail_msgport_replied): "
(mail_msgport_replied): Check/display errors if we get them.
(mail_msgport_received): If we have a describe function, say what
we're doing, also set busy/unbusy.
(mail_msgport_replied): Clear busy when we get a reply.
(mail_get_password): Unset busy.
(mail_msg_received): Set busy as we go.
(mail_msg_destroy): Unset busy when done.
(mail_status): Blah blah, new status interface, the other wans't
workable with the way the shell api works.
2000-12-29 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (do_message_selected): If we are reconfiguring,
just keep polling till we are done (yeah kinda shitty, but easy).
(folder_browser_set_uri): Clear reconfigure flag here. ick.
(got_folder): And here too.
(on_right_click): Remove locking.
(hide_sender): and here too.
(hide_subject): And here.
(on_right_click): If we are in reconfigure, then the whole menu is disabled.
* mail-mt.c (status_busy_timeout): Clear the status_busy_timeout_id.
* mail-local.c (local_storage_new_folder_cb): Made getting folders
completely synchronous. The shell expects it, and it was only
synchronous before by a sideeffect.
(do_reconfigure_folder): Remove locking stuff.
(do_reconfigure_folder): Use our own much simpler copying routine
than that stupid move_folder_contents thing.
(update_progress): Use mail_status_message() instead.
(do_reconfigure_folder): Set the reconfigure flag during
reconfigure & set busy flag.
(cleanup_reconfigure_folder): clear busy flag.
* mail-tools.c (mail_tool_uri_to_folder): Remove the tool_lock
stuff.
(mail_tool_uri_to_folder_noex): Clear exception on exit.
(mail_tool_move_folder_contents): Get rid of this really stupid
function that is only used in one place.
* component-factory.c (owner_set_cb): Use direct calls to get the
folders, as this code must run synchronous. Remove the event wait
stuff.
* mail-callbacks.c (edit_msg): Call mail_get_messages, and create
the composers ourself.
(do_edit_messages): get_messages callback, create the composers
and connect to signals we need.
(view_msg): Dont call do_view_messages, just call
mail_get_messge for each to get them in parallel.
(do_view_message): view a single message.
* mail-ops.c (mail_edit_messages): Just use mail_get_messages
for this operation. Removed the other async operation stuff.
Changed my mind, just removed entirely.
(mail_do_view_messages): Removed.
(mail_do_setup_folder): Removed.
(mail_do_scan_subfolders): Make this run synchronously, as every
caller expects it to (even if they didn't realise).
2000-12-28 Not Zed <NotZed@HelixCode.com>
* mail-callbacks.c (send_queued_mail): Dont expunge the folder
here, but in send_queue, otherwise it might execute out of order.
(expunge_folder): Remove the talbe prechange stuff, and infact
references to the message_list folder, as we have our own folder.
Also, dont allow expunge if we're already expunging.
(expunged_folder): Clkear the expunging flag if we're finished.
* folder-browser-factory.c (control_deactivate): Likewise here.
Hrm, i thought this function required a callback, silly me.
* mail-tools.c (mail_tool_make_message_attachment): Remov e
locking.
* folder-browser.c (on_message_selected): Use a timeout handler so
we dont select immediately.
(folder_browser_set_uri): Changed to use mail_get_folder.
(got_folder): New callback called when get_folder is finished.
(folder_browser_destroy): Use new sync interface.
* mail-ops.c (mail_get_message): New function to asynchrounously
get a message.
: #define out mail_tool_camel_lock stuff entirely.
(mail_get_folder): New function to asynchrounously get a folder.
(mail_do_load_folder): Removed, replaced by more generic function
above.
(mail_do_display_message): Removed, replaced by the more generic
funciton get_message.
(mail_get_messages): New function to get a list of messages
asynchronously.
(mail_sync_folder): New interface to sync a folder async.
(mail_expunge_folder): New interface for expunging folder, with
callback.
(do_send_queue): Remove lock stuff, and expunge if (and only if)
successful, also sync the sent folder while we're at it.
* session.c (mail_session_request_dialog): Changed to use new
mail_get_password call.
* mail-mt.[ch]: New threading/interthread messaging framework.
* main.c (main): Init the message/thread system.
2001-01-02 Dan Winship <danw@helixcode.com>
* mail-format.c (mail_part_is_inline):
(find_preferred_alternative):
* mail-display.c (launch_cb): Use header_content_type_simple, not
header_content_type_format.
2000-12-26 Jeffrey Stedfast <fejj@helixcode.com>
* mail-crypto.c (mail_crypto_openpgp_verify): Implemented.
2000-12-23 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (mail_do_setup_trash): New function similar to
mail_do_setup_folder() except that this creates the Trash VFolder
(special-case).
2000-12-21 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_send_mail): Don't free info inside the last
if-statement, if sent_folder doesn't exist we'll have a memory
leak. Instead free it afterward.
2000-12-29 Dan Winship <danw@helixcode.com>
* mail-crypto.c: Oops. Update this for CamelContentType stuff too.
2000-12-28 Dan Winship <danw@helixcode.com>
* mail-format.c (mail_part_is_inline, mail_get_message_body): Use
CamelContentType, and use header_content_type_is instead of doing
it by hand.
(handle_text_plain):
(handle_multipart_related):
(find_preferred_alternative):
(handle_message_external_body): Use CamelContentType and
header_content_type_* functions instead of GMimeContentField.
* mail-display.c (write_data_to_file, launch_cb): Use
CamelContentType and header_content_type_* functions instead of
GMimeContentField.
2000-12-26 Iain Holmes <iain@helixcode.com>
* mail-display.c (mail_display_init): Initialise the thumbnail cache.
(mail_display_destroy): Free the cache.
(pixbuf_gen_idle): Check the cache for a pixbuf, add the pixbuf to the
cache if it's not there.
2000-12-26 Iain Holmes <iain@helixcode.com>
* mail-summary.c (create_summary_view): Create a shared
BonoboEventSource object and use it for all the objects that
aggregate Bonobo::EventSource.
2000-12-27 Dan Winship <danw@helixcode.com>
* subscribe-dialog.c (setup_subscribe_folder): Use info->name, not
input->full_name. Fixes #1029 in bugzilla.helixcode.com.
({setup,do,cleanup}_subscribe_folder): Update previous fix: Jeff
had changed it to use ->full_name instead of ->name because that's
what camel_store_subscribe_folder needed. So we need to have
*both* names available, one for Camel, one for the shell.
2000-12-24 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (filter_date): Changed this to format times in 12
hour time instead of 24 hour time.
2000-12-24 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (filter_date): Changed this to do different
formatting of dates within the last week.
2000-12-24 Not Zed <NotZed@HelixCode.com>
* Merge from camel-mt-branch.
2000-12-23 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (filter_date): Changed this to do different
formatting of dates based on the current time.
2000-12-23 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (message_list_get_layout): Added titles to the
pixbuf columns.
2000-12-21 Iain Holmes <iain@helixcode.com>
* mail-summary.c: Added code to detect and regenerate the summary
when a new vfolder is created or removed.
* mail-vfolder.c: Export the vfolder_storage variable, so that
the summary can add a listener to it.
2000-12-05 Iain Holmes <iain@helixcode.com>
* component-factory.c (factory_destroy): Wait till all views have
gone and then destroy both factories.
2000-12-21 Dan Winship <danw@helixcode.com>
* mail-display.c (pixbuf_for_mime_type): Deal with the possibility
that we have an icon-filename listed for a MIME type, but the icon
file doesn't actually exist. Also, if gnome-unknown.png can't be
found, fall back. Might fix a crash people have been reporting...
2000-12-18 Chris Toshok <toshok@helixcode.com>
* mail-format.c (handle_multipart_encrypted): for now #ifdef
PGP_PROGRAM falling back to handle_multipart_mixed.
(handle_multipart_signed): same.
2000-12-18 Dan Winship <danw@helixcode.com>
* message-list.c (hide_save_state): Unlock camel when done to
prevent a hang later.
2000-12-18 Miguel de Icaza <miguel@helixcode.com>
* mail-tools.c (mail_tool_move_folder_contents): Only update
display every 2 seconds.
* mail-ops.c (do_view_messages): Only update display every 2 seconds.
2000-12-23 Not Zed <NotZed@HelixCode.com>
* message-list.h (MessageList): Add a specific hide data lock.
* message-list.c (message_list_drag_data_get): Do not use
cursor_uid, but get all currentlys elected messages directly off
the message-list.
(message_list_destroy): Removed mail_tool_camel_lock stuff.
(on_click): "
(message_list_hide_add, message_list_hide_uids, hide_load_state,
hide_save_state, message_list_hide_clear): ", but use a specfic
lock for the hide data.
(do_regenerate_messagelist): remove mail_tool_camel_lock stuff,
add hide_lock where required.
(message_list_init): Setup the hide_lock.
(message_list_destroy): Free the hide_lock.
2000-12-22 Not Zed <NotZed@HelixCode.com>
* mail-ops.c (mail_do_sync_folder): Run sync in different thread
each time. Just a quick litlte hack to check multithreading.
There are now few operations that single-queue. Need to work out
a way to make the allocation of threads & resources easier, so we
dont get overwhelmed with threads, but we dont block when we dont
have to, either.
* message-list.c (main_folder_changed): If we have only changed
events, then process them directly.
(mail_do_regenerate_messagelist): Run regenerate in a new thread
each time, another quick hack to check mutlithreading.
* mail-view.c (view_delete_msg): Call camel folder set message
flags directly. mail_do_set_message_flags() is now completely
unused.
* folder-browser.c (mark_msg_seen): Call camel folder
set_message_flags directly.
* mail-callbacks.c (flag_messages): New function, that just sets
flags of all selected messages, without all that messy thread
stuff (setting flags is in-memory).
(mark_as_seen): Use flag_messages().
(mark_as_unseen): "
(undelete_msg): "
(delete_msg): "
2000-12-20 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_select): Free messageinfo lookups.
(message_list_drag_data_get): "
(subtree_unread): "
(subtree_size): "
(subtree_earliest): "
(ml_tree_value_at): " Also, keep the message info around in a
static variable, and ref'd, so that any internal references we
have to it dont vanish while we're not looking. This has a couple
of problems ... esp since we never unref the last access, although
camel-folder-summary wont check this when its unref'd, so we're
'safe'.
(save_node_state): free messageinfo lookups.
(on_click): "
(get_message_info): deconstify return.
* mail-tools.c (mail_tool_move_folder_contents): Free messageinfo
lookups.
* mail-ops.c (do_filter_ondemand): Free messageinfo lookups.
(do_flag_messages): "
(do_fetch_mail): Remove mail_tool_lock stuff.
(mail_operation_run): Quick hack to run an operation
asynchrounously, in a brand-new thread.
* folder-browser.c (on_right_click): Free messageinfo lookups.
2000-12-16 Not Zed <NotZed@HelixCode.com>
* message-list.c (build_tree): Always use the slow (full-update)
version of the tree update code, to get around a bug(?) in etree.
(build_flat): Likewise.
2000-12-15 Not Zed <NotZed@HelixCode.com>
* mail-display.c (write_data_to_file): Dont blindly convert all
parts to utf8, e.g. image/jpg. We only convert text/* parts, and
only then if required.
2000-12-14 Not Zed <NotZed@HelixCode.com>
* component-factory.c (create_view): cast over a warning.
* folder-browser-factory.c: Add verbs for hide functions.
* message-list.c (message_list_hide_clear):
(message_list_hide_uids):
(message_list_hide_add): Some api renaming.
(message_list_hide_add): Allow ML_HIDE_SAME to be passed to mean
not to change the upper/lower range at all.
(hide_save_state): Save the state of the hide list to stable
storage.
(hide_load_state): Load the state of hte hide list.
(message_list_set_folder): Load/save the state of the folder if it
is changed/set.
(message_list_destroy): Save the state of the folder hide list
when done.
(save_tree_state): If we wrote out an empty state file, simply
remove it instead.
* folder-browser.c (on_right_click): Add some hide menus.
(hide_read): Hide read messages.
(hide_deleted): Hide deleted messages.
(hide_selected): Hide selected/current message.
(hide_none): Show all hidden messages.
(on_right_click): Lock around accesses to the message (inside
mlist_detect_magic).
(on_right_click): Free the mailing list name.
2000-12-13 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (on_right_click): Add camel locking since we
call it directly. Whoever heard of a lock you 'down' to unlock?
* message-list.c (mail_do_regenerate_messagelist): Added hide
expression, messages to hide. Fixed all callers.
(do_regenerate_messagelist): IF we have a hide expression, search
and remove those from the uid list. If we have a hide range,
apply that afterwards.
(cleanup_regenerate_messagelist): Handle freeing the hide uid
temporary data, if required.
(message_list_destroy): Free hide data, also lock around all camel
object stuff.
(message_list_length): New function to get the number of messages
avaialble to be hidden by range.
(message_list_set_hide): Set the hide expression and range.
Issue: Should hiding be remembered?
(message_list_unhide_all): Turn off all hiding.
(message_list_hide_uids): Hide a list of uid's.
2000-12-15 Dan Winship <danw@helixcode.com>
* subscribe-dialog.c (folder_toggle_cb): Update this for the new
signal handler prototype. Fixes the crash on double-click.
2000-12-15 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (handle_multipart_signed): New callback to handle
multipart/signed parts.
(decode_pgp): Update to account for the cipherlen argument needed
for openpgp_decrypt.
(is_rfc2015): Removed as we now have a better version in
mail-crypto.
(handle_multipart_encrypted): Updated to use the PGP/MIME utility
functions.
* mail-crypto.c (mail_crypto_openpgp_decrypt): Don't check
(!*plaintext) as it could be a binary stream. Now also takes a
cipherlen argument.
(mail_crypto_openpgp_sign): New function.
(pgp_mime_part_sign): New function to replace a mime part with the
pgp signed equivalent.
(pgp_mime_part_encrypt): New function to replace a mime part with
the pgp encrypted equivalent.
(pgp_mime_part_decrypt): New function to decrypt a pgp encrypted
mime part (like from pgp_mime_part_encrypt) and replace it.
(is_rfc2015_signed): New function to determine if a mime part is
an rfc2015 signed part.
(is_rfc2015_encrypted): New function to determine if a mime part
is an rfc2015 encrypted part.
(mail_crypto_openpgp_verify): New openpgp function to verify a
signature.
2000-12-14 Christopher James Lahey <clahey@helixcode.com>
* mail-threads.c (update_active_views): Unref the iterator when
we're done with it.
2000-12-14 Larry Ewing <lewing@helixcode.com>
* mail-display.c (mail_display_new): call
gtk_html_set_default_content_type to make gkthtml default to utf-8
when parsing. This requires gtkhtml >= the released 0.8.
2000-12-14 Ettore Perazzoli <ettore@helixcode.com>
* mail-threads.c (read_msg): Call `ui_set_busy()' before
`ui_set_message()' so that we are sure that the
set_busy/unset_busy calls always happen in order.
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* folder-browser.c (my_folder_browser_init): Made the vertical
scrollbar always be there.
* message-list.c (message_list_get_layout): Changed the minimum
width of some of the pixmap column headers.
2000-12-12 Christopher James Lahey <clahey@helixcode.com>
* component-factory.c (create_view): Added a cast.
* mail-summary.c: Added #include "mail-summary.h". Commented out
folder_free, summary_free, and view_destroy_cb since they're not
used.
(do_changed): Added a cast.
(create_summary_view): Changed some types so that casting would be
easier.
* session.c (mail_session_remember_password): Added a cast.
2000-12-12 Dan Winship <danw@helixcode.com>
* mail-summary.h: Fix to use the right .h instead of the
deprecated one.
2000-12-12 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (forward_message): Attach a signature when
forwarding, fixes bug #826.
2000-12-11 Dan Winship <danw@helixcode.com>
* session.c (mail_session_enable_interaction): New function to
tell the code that it's ok (or not) to interact with the user when
trying to authenticate to a service. Starts out turned off.
(mail_session_request_dialog): If interaction is disabled, fail if
the password isn't in the cache.
* component-factory.c (owner_set_cb): Call
mail_session_enable_interaction() after everything else. (This
means that the IMAP password dialog will no longer pop up [under
the splash screen] at startup.)
2000-12-11 Dan Winship <danw@helixcode.com>
* component-factory.c (create_view): Deal with "mailstorage" type
views (top-level mail storages) by trying to fill the storage's
folder tree again if we failed before.
(add_storage): Create new storages with a URI and type
"mailstorage".
* mail-ops.c (cleanup_scan_subfolders): On success, mark the
storage as having been loaded, so create_view won't try again.
2000-12-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (decode_pgp): Updated to reflect arguments to the
openpgp functions - now also takes an outlen argument.
(try_inline_pgp): Updated.
(handle_multipart_encrypted): Updated here too.
* mail-crypto.c (crypto_exec_with_passwd): Updated to handle
binary streams and such.
(mail_crypto_openpgp_encrypt): Always initialize the passwd_fds
even if we don't plan on signing. Added an 'inlen' to specify the
length of the input data (as it could be binary). Also added a
'userid' argument for cases when we want to sign as well as
encrypt.
(mail_crypto_openpgp_decrypt): Updated to take an outlen argument
in case the ciphertext is encrypted binary data.
(mail_crypto_openpgp_clearsign): Added a 'hash' and 'detach'
arguments. 'hash' allows the program to specify the preferred hash
function (which will come in handy when generating
PGP/MIME). 'detach' allows the program to specify whether it wants
a detached signature or the entire signed text.
2000-12-11 Dan Winship <danw@helixcode.com>
* message-list.c: Remove the never-once-used BonoboObject stuff
and make MessageList be a GtkWidget instead. Also, keep track of
the ETable directly rather than repeatedly calling
e_table_scrolled_get_table.
* folder-browser.c (folder_browser_destroy): Use gtk methods
rather than bonobo methods to destroy the message list.
(on_right_click, on_double_click): These are being attached to the
ETable directly now, so fix the first argument (which isn't being
used anyway, but...). Ignore double-clicks on "active" columns
(the ones where clicking does something beyond "select"), fixing
bug #811, which is what got me started on this to begin with...
(folder_browser_gui_init): simplify now that MessageList itself is
a widget. Also use message_list->table rather than
e_table_scrolled_get_table.
* mail-local.c (mail_local_reconfigure_folder): Add "mail_" to
the beginning of this function name to match its prototype and the
other vague namespace conventions in the mailer.
* mail-callbacks.c (select_all, invert_selection): Use ml->table.
(configure_folder): s/local_reconfigure_folder/mail_&/
* mail-ops.c (do_flag_messages): clean up the cleanup a bit
* mail-tools.c (mail_tool_quote_message): Remove an unused
variable.
2000-12-11 Not Zed <NotZed@HelixCode.com>
* local-config.glade: reordered the options and added maildir,
mbox, maildir, mh, in that order.
* mail-local.c (reconfigure_clicked): Added maildir, re-ordered to
match the changed xml file too.
(do_reconfigure_folder): WHoever 'threaded' this code forgot to
check that folder_browser functions shouldn't be called here.
(cleanup_reconfigure_folder): Call it here instead.
(lookup_folder): Blah blah, we have to lookup the folder and
verify its still the same format, joy. Becaause someone thought
it would be wise to make the code 5x more complicated for no
reason, and totally break 'mail reconfigure' in the process. i'm
really happy about that one.
(cleanup_register_folder): Uh, yeah, so like, the
local_store->folders hashtable is supposed to point to like,
LocalFolders, not CamelFolders.
(free_local_folder): Free the localfolder struct properly.
(free_folder): Call above to free data properly.
(get_folder): Fix for fixing folders hashtable.
(local_storage_removed_folder_cb): Same here.
(local_storage_new_folder_cb): Ref the local_store when putting it
in the local_folder.
(cleanup_register_folder): Properly free the local_folder if the
op failed.
(free_local_folder): Unhook events also.
(d): Oops, left debug turned on.
2000-12-09 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (message_list_init): Change the "drawfocus"
argument on e_table_scrolled_get_table(etable) instead of on
etable (etable is an ETableScrolled.)
2000-12-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (save_msg_ok): Check to see if the file already
exists, if it does prompt the user to for permission to overwrite
the file.
(forward_message): g_strdup the cursor_uid if there is only a
single message to be forwarded or we'll segfault later.
* mail-ops.c (do_save_messages): Rewrote yet again. I'm back to
almost an identical implementation as the first time I wrote this
except now we write the From line which I had forgotten last
time. This means that we no longer have to unlink the .ev-summary
file created and we also use fewer resources (no need to create a
CamelMboxFolder object).
2000-12-08 JP Rosevear <jpr@helixcode.com>
* folder-browser.c (on_double_click): the e-table double-click
signal now has extra params
2000-12-07 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (add_storage): Pass `NULL' as the
@toplevel_node_handler_id arg in `evolution_storage_new()'.
FIXME: We should be passing the ID of the mail component here.
* mail-vfolder.c (vfolder_create_storage): Likewise.
2000-12-08 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (message_list_get_layout): Set the "Size" field
to sort using integer comparison instead of string.
(filter_size): New function to transform a integer size into a
more readable form.
(ml_value_to_string): Use filter_size.
(ml_value_is_empty): COL_SIZE is no longer a string, so handle
this as an integer.
(ml_initialize_value): Here too.
(ml_free_value): And here.
(ml_duplicate_value): And here too.
(message_list_create_extras): Setup the size etable cell.
2000-12-08 Christopher James Lahey <clahey@helixcode.com>
* folder-browser.c: Connect to signals on the ETable instead of
the ETableScrolled.
* subscribe-dialog.c: Used the e_table_scrolled_get_table function
instead of accessing the variable directly.
2000-12-08 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Connect to signals on the ETable instead of the
ETableScrolled.
2000-12-07 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Got rid of code referencing the ETableScrolled
proxy functions. Changed the call to e_table_set_cursor_row to
send a model row instead of a view row.
2000-12-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (forward_message): Only do a
message_list_foreach if we plan on attaching messages, otherwise
just use ml->cursor_uid.
* mail-ops.c (cleanup_forward_messages): If attaching multiple
forwarded message, wrap them in a multipart/digest otherwise just
attach the single message as a message/rfc822.
2000-12-07 Dan Winship <danw@helixcode.com>
* mail-display.c (on_object_requested): Make the iTip hack spew a
g_warning and not crash if you have no identity configured. To be
revisited.
* mail-callbacks.c: (various)
* folder-browser.c (filter_mlist):
* mail-autofilter.c (filter_gui_add_from_message):
* mail-vfolder.c (vfolder_gui_add_from_message): Add some
g_return_if_fail()s to protect from crashes until the code to
enable/disable commands based on how many messages are selected is
done.
2000-12-06 Jeffrey Stedfast <fejj@helixcode.com>
* mail-vfolder.c (vfolder_gui_add_rule): Make the vfolder editor
resize correctly. Fixes bug #835.
2000-12-06 Dan Winship <danw@helixcode.com>
Fix up shutdown so that things that should be destroyed get
destroyed. Among other things, this fixes the bug where IMAP
stores weren't disconnected at shutdown.
* mail-threads.c (update_active_views): Update for
folder_browser_factory_get_control_list change to EList.
* folder-browser-factory.c: Turn control_list into an EList so
that we can safely remove items from it while it's being iterated
(which will happen as FolderBrowsers are destroyed at shutdown
while the thread code is trying to update the status bars).
(control_destroy_cb): Just destroy the folder_browser.
(browser_destroy_cb): New callback for FolderBrowser destroy.
Remove the control from control_list here instead of
control_destroy_cb, because the controls don't seem to get
destroyed reliably...
* component-factory.c: Clean up stuff.
(factory_destroy): Get rid of this.
(owner_unset_cb): Schedule an idle handler to quit.
(idle_quit): Wait for all of the FolderBrowsers to be destroyed
and then destroy the storages and quit.
* mail-summary.h (create_summary_view): Fix prototype
2000-12-06 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (mail_config_folder_to_cachename): Use
e_filename_make_safe (which used to be e_str_make_safe).
* mail-display.c (make_safe_filename): And here.
* message-list.c (message_list_drag_data_get): Here too.
2000-12-06 Dan Winship <danw@helixcode.com>
* mail-local.c (cleanup_register_folder): Run the folder_changed
code on message_changed as well, so the unread message counts
update as messages are read.
* folder-browser.c: Remove bits of filter-on-demand and toolbar
bug workaround cruft that don't do anything useful any more.
* mail-ops.c (cleanup_load_folder): unref the ref we added in
setup_load_folder.
2000-12-05 Jeffrey Stedfast <fejj@helixcode.com>
* mail-display.c (write_data_to_file): Use a charset filter to
make sure the data is written out in the charset it was meant to
be in instead of UTF-8.
* mail-format.c (mail_format_raw_message): Don't use the raw
message body as the format argument, use "%s" instead. If the raw
message contains %'s then it will segfault otherwise.
2000-12-04 Dan Winship <danw@helixcode.com>
* mail-config-gui.c (service_page_item_new): Fix a typo so that
toggling the "remember password" checkbox will activate the "OK"
button if it was inactive.
2000-12-05 Ettore Perazzoli <ettore@helixcode.com>
* mail-vfolder.c (vfolder_create_storage): Updated the call to
`evolution_storage_new()': pass NULL for @toplevel_node_uri.
* component-factory.c (add_storage): Updated the call to
`evolution_storage_new()': pass NULL for @toplevel_node_uri.
2000-12-04 Jeffrey Stedfast <fejj@helixcode.com>
* subscribe-dialog.c (setup_subscribe_folder): Use info->full_name
rather than info->name so that we get the namespace part of the
folder path as well.
2000-12-04 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c: Updated to define verbs
"MessageForwardInlined" and "MessageForwardAttached" instead of
"MessageForwardInline" and "MessageForwardAttach".
* folder-browser.c (on_right_click): Make forwarding as an
attachment the default.
* mail-callbacks.c (forward_inlined): Renamed from `forward_msg'.
(forward_attached): Renamed from `forward_attach'.
* mail-callbacks.h: Updated accordingly.
2000-12-01 Dan Winship <danw@helixcode.com>
* session.c (mail_session_remember_password): Writes out passwords
(to .gnome_private) in our patented proprietary "Best Awesome
Super Encryption 64" ("BASE64") format which could not possibly
ever be cracked by even the most cryptographically knowledgeable
five-year-olds.
(mail_session_init): Load remembered passwords at startup.
(mail_session_forget_passwords): Erase them from disk as well as
memory.
* mail-config.c: Add "remember_password" field to
MailConfigService.
(mail_config_write_on_exit): Call mail_session_remember_password
for services with "remember_password" set.
* mail-config-gui.c: Add "remember password" checkbox to the
dialogs, and make it appear and disappear as appropriate.
* component-factory.c (mail_load_storages): Unref the store
regardless of whether or not we're using it, so we don't leak
references to non-storage stores.
2000-12-01 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (e_mail_address_new): Perform better
error-handling.
2000-12-01 Radek Doulik <rodo@helixcode.com>
* mail-ops.c (mail_op_report_status): use mail_op_set_message_plain
* mail-threads.c (mail_op_set_message_plain): plain version of
mail_op_set_message, doesn't use printf, passes message untouched,
use set_message
(mail_op_set_message): set_message
(set_message): helper function
2000-11-30 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (cleanup_fetch_mail): Don't display a dialog, instead
inform the user that there was no new mail by setting a status
message.
* message-list.c (message_list_drag_data_get): Use the new
e_str_make_safe function.
* mail-display.c (make_safe_filename): And here.
* mail-config.c (mail_config_folder_to_cachename): Here too.
2000-11-30 Not Zed <NotZed@HelixCode.com>
* mail-ops.c (cleanup_load_folder): Set threaded view before
setting the folder (cleanup some flash ons tartup).
* message-list.c (message_list_init): Initialise a mempool for uid
string storage.
(new_id_from_uid): Added messagelist arg, allocate strings from
uid_pool.
(new_id_from_subject): Same. Fixed all callers.
(remove_node_diff): Dont free uid here.
(build_flat_diff): Nor here.
(clear_tree): Flush the mempool, rather than freeing the id's
directly.
(free_tree_ids): Removed, no longer required.
(free_tree_ids): Likewise.
(message_list_init): Dont connect to the table destroy signal
anymore to free the uid table.
(message_list_destroy): Free the uid pool here.
(*): Use accessors for messageid stuff.
(content_is_attachment): Removed, no longer required.
(ml_tree_value_at): Get the attachment flag directly from the
summary.
(ml_tree_value_at): For 'fake' nodes, try and do something better
than "?" for from, to, and size.
(subtree_size): New function, add up the total size of a subtree.
(subtree_earliest): Get the earliest date from a subtree.
(ml_tree_value_at): Return earliest date sent/received for fake
nodes.
(ml_tree_value_at): Return something to mark a fake subject line
as a fake subject, although i dont know, i guess this buggers up
sorting ...
(subtree_size): Check the info node is still there.
(subtree_earliest): Same here.
(subtree_unread): And here. The info node might vanish if the
folder has changed/is changing and we try and redraw stuff while
its doing it.
(message_list_drag_data_get): Use accessors.
2000-11-29 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (message_list_drag_data_get): Implement.
(message_list_init): Connect the d&d signal.
* mail-ops.c (do_save_messages): Use camel a bit more to help us
out. Don't create the file ourselves, treat it as a CamelFolder so
we don't have to worry about formatting.
2000-11-29 Dan Winship <danw@helixcode.com>
* main.c (main): Remove no-longer-needed e_unicode_init.
* mail-tools.c (mail_tool_quote_message): Fix the allocation here
(again) and put a comment explaining it. (Fixes a crash when
replying.)
2000-11-28 Dan Winship <danw@helixcode.com>
* component-factory.c (owner_set_cb): Wait until after setting up
the local storage to find the Drafts/Outbox/Sent folders.
* mail-ops.c (do_setup_folder): Use the file: store rather than
mbox:.
2000-11-28 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Added the SaveAs bonobo menu verb
thingy.
* mail-callbacks.c (save_msg): New callback for saving messages.
(save_msg_ok):
* folder-browser.c (on_right_click): Add a Save As menu item.
* mail-ops.c (cleanup_save_messages): Save all emails to the path
given.
2000-11-28 Dan Winship <danw@helixcode.com>
* mail-local.c (cleanup_register_folder): Fix the initial unread
counts after the last patch.
2000-11-27 Dan Winship <danw@helixcode.com>
* mail-local.c (local_folder_changed): This needs to run from the
main thread, not the camel thread, so add a proxy signal handler
to call mail_op_forward_event. Fixes hangs (eg bugzilla #909).
2000-11-27 Jeffrey Stedfast <fejj@helixcode.com>
* mail-display.c: Removed some unecessary debugging printf's
2000-11-27 Dan Winship <danw@helixcode.com>
* mail-config-druid.glade: Revert the new druid for now, until the
corresponding code is done, so that the druid will work again.
2000-11-21 Iain Holmes <iain@helixcode.com>
* mail-config-gui.c (mail_config): Don't use the "delete-event"
signal.
2000-11-21 Iain Holmes <iain@helixcode.com>
* mail-display.c (pixbuf_for_mime_type): free fm_icon.
* component-factory (summary_fn): Remove the configure param.
(factory_destroy): Made into a generic function so that the
summary_factory can be ref-counted as well as the normal
factory.
2000-11-21 Dan Winship <danw@helixcode.com>
* Makefile.am: add GPGME_CFLAGS and GPGME_LIBS
2000-11-21 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (mail_config_view_source): New function to return
if user wants to view message source.
(mail_config_set_view_source): New function to set whether the
view wants to view source.
* mail-ops.c (mail_do_view_message_sources): Removed. We're not
gonna view-source this way anymore.
* folder-browser-factory.c: Removed the ViewSource bonobo verb
from the Message menu.
(control_activate): Added ViewSource.
* folder-browser.c (on_right_click): Removed Message menu item to
view message source.
(folder_browser_toggle_view_source): New callback to set whether
or not the MailDisplay shows the raw message or the pretty-ified
message.
* mail-callbacks.c: Removed view_source.
* mail-display.c (redisplay): If toggle_raw is set then display
the raw message else display the pretty formatted message.
(mail_display_redisplay): New function to force the redisplay of a
message.
* mail-format.c (mail_format_raw_message): New function to
write the raw message data.
2000-11-21 Not Zed <NotZed@HelixCode.com>
* mail-vfolder.c (vfolder_uri_to_folder): IF we dont find a
source, clear the exception and ignore it silently. for e.g. if
the user reconfigured their mailboxes and one of them no longer
exists.
2000-11-21 Radek Doulik <rodo@helixcode.com>
* mail-display.c: #include <gtkhtml/gtkhtml-embedded.h>
2000-11-21 Not Zed <NotZed@HelixCode.com>
* message-thread.[ch]: Removed. No longer serves a purpose.
* Makefile.am (evolution_mail_SOURCES): Removed message-thread.[ch].
* message-list.c (build_subtree):
(node_equal):
(add_node_diff):
(build_subtree_diff):
(do_regenerate_messagelist):
(cleanup_regenerate_messagelist): Changed to use camel-folder-thread.
(message_list_set_folder): If we get set a new folder, unhook any
events before unrefing the folder too (the folder is never reset
currently, but this would cause problems).
(subtree_unread): Check for uid null, wont crash, but its a bug.
(ml_tree_value_at): If the uid is null, then fake an obviously bad
line.
(build_subtree): Yeah well, we can't like freeze/thaw here,
because this is called recursive, and freeze/thaw isn't
recursive, like pre model and post model change was.
(build_tree): Maybe we can try it here, although i dont think
it'll help much.
(build_flat): And this is also a tree. yes a tree.
(build_tree): Added changes arg. If set, then try the 'diff'
approach, unless the tree is already empty.
(message_list_set_threaded): Dont clear the tree here.
(message_list_set_search): Or here.
2000-11-20 Not Zed <NotZed@HelixCode.com>
* message-list.c (save_node_state): Save out the md5 hash of the
messageid as hex, since thats all we have for those nodes.
(build_subtree): Expand the messageid to a hex string first, then
check it.
(add_node_diff): And the same here.
* message-thread.c (thread_messages): Changed for changes to
messageid/references items.
(id_hash, id_equal): New functions to hash on the binary message id hash.
(thread_messages): removed some more no longer used dead code.
2000-11-20 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (e_mail_address_compare): New comparison function
that will replace address_compare if/when we ever go to save the
preparsed addresses in the ETable rather than parsing them each
time. Also fixed it so that we should get better sorting when
addresses don't contain name parts (I was checking for NULL but
not '\0').
(address_compare): Use e_mail_address_compare.
2000-11-19 Peter Williams <peterw@helixcode.com>
* mail-ops.c (update_changed_folders): Instead of making the CORBA
call in the dispatch thread, store the new display names and have
cleanup_fetch_mail make the CORBA calls. Fixes deadlocks.
(cleanup_fech_mail): Loop through the update_infos and make the
CORBA calls.
(setup_fetch_mail): Clear some new data items.
2000-11-17 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_generate_reply): Use the new quote_message
function and make it start with "On %s, %s wrote:" since people
seem to want that.
* mail-ops.c (cleanup_forward_messages): Use the new quote_message
function.
* mail-tools.c (mail_tool_quote_message): New convenience function
to quote a message body (since both the reply and forward code do
similar quoting)
2000-11-17 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_destroy): Before we destroy
ourselves, unhook ourselves from the folder update events. Should
fix a common crash on exit case.
2000-11-16 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Added the MessageViewSource bonobo
menu verb.
* mail-ops.c (mail_do_save_messages): New async function to save
messages as individual files in a given path.
2000-11-15 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Added a new Forward as Attachment
bonobo menu item verb.
* mail-view.c (view_forward_msg): Updated to reflect changes to
mail_do_forward_message(). It now forwards the message without
attaching it - is this what we want?
* mail-ops.c (mail_do_view_message_sources): New async function to
display message source dialog windows.
(setup_forward_messages): If we were asked not to forward the
message(s) as attachment(s) and the user chose more than a single
message, then default to making each message an attachment.
(cleanup_forward_messages): If we aren't forwarding the message as
an attachment, then quote the text and set the composer's body
with it.
* mail-callbacks.c (view_source): New callback to view the message
source of all messages that are currently selected.
(forward_attach): New callback to forward a message as an
attachment (forward_msg is now for forwarding a message without it
being an attachment).
(forward_message): Convenience function for forwarding messages.
2000-11-13 Jeffrey Stedfast <fejj@helixcode.com>
* subscribe-dialog.c (subscribe_do_subscribe_folder): Take a
'subscribe' argument so that this can function as a subscribe AND
unsibscribe method.
(describe_subscribe_folder): Updated.
(do_subscribe_folder): Updated.
(cleanup_subscribe_folder): Updated.
(subscribe_folder_info): Pass along a TRUE as the 'subscribe'
param.
(unsubscribe_folder_info): Pass along a FALSE as the 'subscribe'
param.
2000-11-13 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Removed some e_table_model calls and replaced
them with e_tree_model calls.
2000-11-12 Dan Winship <danw@helixcode.com>
* mail-local.c (mail_do_register_folder): Do this the normal way
rather than calling mail_operation_wait_for_finish. There was some
reason for it originally, but it no longer applies. This makes
adding new folders from the folder selection dialog no longer
hang.
2000-11-12 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_filter_ondemand): Sync the source folder.
2000-11-11 Matt Bissiri <bissiri@eecs.umich.edu>
* evolution-mail.oafinfo:
* mail-threads.c: (retrieve_shell_view_interface_from_control):
Update the remaining "IDL:Evolution*" to "IDL:GNOME/Evolution*"
to sync up with yesterday's IDL re-scoping.
2000-11-10 Michael Meeks <michael@helixcode.com>
* Makefile.am ($(EVOLUTION_MAIL_CORBA_GENERATED)): sort include order.
2000-11-09 Jeffrey Stedfast <fejj@helixcode.com>
* subscribe-dialog.glade[.h]: New glade file for possibly using to
create the subscribe dialog.
2000-11-08 Radek Doulik <rodo@helixcode.com>
* mail-format.c (mail_generate_reply): likewise
* mail-callbacks.c (create_msg_composer): added send_html arg to
e_msg_composer_new_with_sig_file call
2000-11-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-search-dialogue.c (mail_search_dialogue_construct): Allow
rule part to expand when the user resizes the dialog.
2000-11-07 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (search_save): Don't handle custom searching
anymore... we don't want this.
(search_full): Same.
(folder_browser_search_menu_activated): Set the search entry
widget sensitive.
(folder_browser_search_query_changed): Same.
2000-11-07 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (search_full_clicked): Updated to use the
ESearchBar object rather than the previously used search widgets.
(search_full): Same.
(search_save): Same. Also use enums to make it a little easier to
read now that we have to have enums anyway.
(folder_browser_search_menu_activated): New ESearchBar menu
callback.
(folder_browser_search_query_changed): New ESearchBar query
callback. Replaces search_set()
(folder_browser_clear_search): Updated to use the ESearchBar
object rather than the previously used search widgets.
(folder_browser_gui_init): Don't hand construct a search widget,
use the new ESearchBar convenience widget.
* mail-ops.c (cleanup_load_folder): Updated to reflect changes to
FolderBrowser.
2000-11-07 Jesse Pavel <jpavel@helixcode.com>
* mail-display.c (pixmap_press): modified some of the EPopupMenu
structures to account for differences in the popup menu API (as
informed by Jeff.
(on_object_requested): passed the user's default email address
to the iTip control.
2000-11-07 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (INCLUDES): Add the composer dirs.
2000-11-07 Not Zed <NotZed@HelixCode.com>
* mail-display.c (on_object_requested): God, I sure wish people
would listen when i'm saying i'm changing and API. I mean
I even mailed everyone and everything. Can't see any changelog
either.
2000-11-06 Not Zed <NotZed@HelixCode.com>
* mail-autofilter.c (rule_from_message): Updates for api changes.
* mail-tools.c (mail_tool_generate_forward_subject): Fixed for api
changes. Sigh, whoever wrote the multithread code of the mailer,
had little idea. You can't just lock for getting a const value,
until you are finished with it, cause the owner still owns it.
Fixed this too. Yuck, what a horrid forwarding format, can we
change this, or make it configurable? The mail headers show who
forwarded it, we dont need to duplicate it in that UGLY subject.
* mail-format.c (write_field_to_stream): Removed some jeffness.
dont g_strdup stuff we dont need to, and remove the
value_is_encoded thing since we can get the unencoded address
now.
(write_address): New function to write an address field.
(write_headers): Uses write_address to write addresses, cleaner,
fixed the god-awful unreadable indenting too.
(handle_text_plain): Use a 'smarter' printf format, so we dont
need to allocate and copy substrings unecessarily (esp since
they're about to be allocated any copied another few times
anyway *sigh*).
(write_field_to_stream): Commented out the isprint check, which
afaik serves no purpose.
(list_add_addresses): New function to build a list of
display-ready addresses. Although I think the composer then uses
these as internet-ready addresses. It should probably take a list
of CamelAddress's if thats what it wants.
(mail_generate_reply): Cleaned up the address list creation stuff
a heap, and fixes for camel api changes. Also fixed a small
memory leak as a side effect (fulladdr wasn't freed if it was the
same as the sender).
* mail-display.c (on_object_requested): Changed for interface
changes to the from address. I think passing the encoded
(internet version) of the address is right here.
2000-11-06 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (on_right_click): Move filter stuff into a
submenu of the popup menu.
2000-11-06 Jesse Pavel <jpavel@helixcode.com>
* mail-display.c: used Camel to parse the full address before
passing the email address to my iTip control.
2000-11-06 Dan Winship <danw@helixcode.com>
First draft of folder tree unread message indication for /local
mail folders.
* mail-local.c: Add a new CamelStore subclass, MailLocalStore,
which attaches to an Evolution_LocalStorage on one side and
CamelSession on the other, and keeps track of local folders. Some
of this code was previously in mail-local-storage.c, which no
longer exists.
(local_reconfigure_folder, etc): Various mail_op-related cleanups,
and wrap d() around a bunch of printfs.
* mail-tools.c (mail_tool_get_local_inbox_url,
mail_tool_get_local_movemail_url): Removed
(mail_tool_get_local_inbox): Simplified.
(mail_tool_do_movemail): Remove unused dest_url variable.
(mail_tool_uri_to_folder): Simplify. Now down to two cases
(vfolder, and everything else).
* component-factory.c (owner_set_cb): Pass evolution_dir to
mail_local_storage_startup.
* Makefile.am (evolution_mail_SOURCES): Remove
mail-local-storage.[ch]
* mail-summary.c: Remove mail-local-storage.h include
2000-11-06 Kjartan Maraas <kmaraas@gnome.org>
* mail-autofilter.c: Fix up #include <config.h>
* mail-crypto.c: Same here.
* mail-search-dialog.c: Here too.
* main.c: Fix indentation of #ifdef
* message-thread.c: Fix include.
2000-11-06 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (delete_msg): Don't invert the flag.
(undelete_msg): Same (when multiple messages are selected).
2000-11-06 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Updated to have the same menu items as
the new right-click menu - eventually these 2 menus should be the
same.
* folder-browser.c (on_right_click): Now correctly handles the
case of multiple selection.
* mail-callbacks.c (enumerate_msg): Make public so it can be used
in other source files (it's a useful function!)
2000-11-05 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (on_right_click): Added an "Undelete" option to
the right-click menu and also set a mask so it was only selectable
if the message is marked as deleted. Also set a mask for "Mark as
Read" and "Mark as Unread".
* mail-callbacks.c (undelete_msg): New callback to undelete
messages.
2000-11-03 Dan Winship <danw@helixcode.com>
* message-list.c (cleanup_regenerate_messagelist): don't free the
MessageList search when it's being reused
2000-11-03 Jeffrey Stedfast <fejj@helixcode.com>
* mail-local.c (mail_local_map_uri): Don't show the passwd in the
url string.
(mail_tool_local_uri_to_folder): Same.
(do_reconfigure_folder): Same.
2000-11-03 Jeffrey Stedfast <fejj@helixcode.com>
* Makefile.am: Added new header files.
* component-factory.c (owner_set_cb):
s/session_init/mail_session_init
* session.c: Renamed public functions to mail_session_*.
FIXME: Rename session.c to mail-session.c
* folder-browser-factory.c: #include "mail-callbacks.h", #include
"mail-session.h" and replace forget_passwords with
mail_session_forget_passwords
* mail.h: Move session prototypes to mail-session.h, Move
mail-crypto prototypes to mail-crypto.h, Move mail-callback
prototypes to mail-callbacks.h
* mail-session.h: New header file containing public prototypes
for session.c
* mail-format.c: #include "mail-crypto.h"
* mail-view.c:
* folder-browser.c: #include "mail-callbacks.h"
* mail-crypto.h: New header file containing public prototypes
for mail-crypto.c
* mail-callbacks.h: New header file containing public prototypes
for mail-callbacks.c
* message-list.c (message_list_get_layout): Set useful defaults.
(message_list_setup_etable): Don't set the Outbox defaults on a
folder just because it doesn't have a corresponding saved file.
2000-11-03 Dan Winship <danw@helixcode.com>
* mail-config-gui.c (service_page_item_new): url_flags are now on
CamelProvider, not CamelService
* main.c:
* subscribe-dialog.c:
* mail-threads.c: Kill warnings
2000-11-03 Federico Mena Quintero <federico@helixcode.com>
* Makefile.am: Clean the idl-generated files properly.
2000-11-03 Not Zed <NotZed@HelixCode.com>
* mail-view.c: Added mail-display.h.
* mail-autofilter.c: Removed unecessary headers. Who ran indent
over this code? Sigh.
* mail-ops.c (display_message_input_s): Added messagedisplay.
(mail_do_display_message): Added messagedisplay arg.
(mail_do_display_message): Dont bother doing another thread when
we know we dont have a uid.
(): Added folder-browser.h to headers. Sigh.
* folder-browser-factory.c (control_activate): Setup the
viewthreaded callback to the folder_browser function.
* folder-browser.c (my_folder_browser_init): Connect to
right_click of etable of the messagelist here.
(on_right_click): Changed for argument changes.
(folder_browser_toggle_threads): Changed to take a fb, and to set
threaded mode on the messagelist.
(my_folder_browser_init): Connect also to the double_click signal.
(my_folder_browser_init): Connect to the message_selected signal
of the message_list.
(on_message_selected): Signal handler for message selected.
(my_folder_browser_init): Fix for change to message_list_new().
* message-list.h: Dont include folder-browser.h.
(message_list_toggle_threads): Moved into folder-browser.h.
(struct _MessageList): Removed folderbrowser.
* mail.h: Dont include folder-browser.h here either, but
mail-types.h instead.
Moved prototypes moved into folder-browser.c into
folder-browser.h. (vfolder_*, filter_*).
* mail-display.h: Dont include folder-browser.h here, but
mail-types.h and specific camel headers.
* message-thread.c (sort_node): Invert the sort order logic so the
list is sorted in mailbox order, not reverse mailbox order.
* message-list.c (free_tree_ids): Fix a merge foo.
(remove_node_diff): Removed unused row argument. Fixed
callers/prototype.
(clear_tree): pre_change on the removal of the root node.
(build_flat): Only perform pre_change if we are rebuilding the
whole lot. For incremental change let etable do its thing.
(build_tree): Likewise for building the tree view. If making
incremental updates, do them as we build it.
(vfolder_subject):
(vfolder_sender):
(vfolder_recipient):
(filter_subject):
(filter_sender):
(filter_recipient):
(filter_mlist):
(on_right_click): Moved to folder-browser.c, where they belong.
(message_list_init): Dont connect to right_click anymore.
(message_list_toggle_threads): Moved to folder-browser.c, renamed.
(on_double_click): Moved to folder-browser.c
(on_click): Set the flags directly, rather than in anothre thread,
which is just not necessary.
(message_list_class_init): Added a new signal 'message_selected',
to indicate when a message was selected.
(on_cursor_change_idle): Emit a signal, rather than directly
triggering the display update.
(select_row): Removed, no longer used.
(idle_select_row): And this too.
(select_msg): Removed as well.
(message_list_select): Emit a signal, rather
thandisplaying/clearing the mail-display directly.
(mark_msg_seen): Moved to folder-browser.c
(message_list_new): Removed folderbrowser argument.
2000-11-02 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (on_right_click): Sync with message
menu. Addresses bugzilla bug #778.
2000-11-02 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Turn on draw grid for the main ETable (this may
not be working in ETable itself.)
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* mail-threads.c (mail_op_set_message): fmt argument should be
const.
2000-11-01 Dan Winship <danw@helixcode.com>
Make "Get Mail" even more functional on IMAP (scans all folders),
and do a first cut at folder tree highlighting (for IMAP/news
only).
* mail-ops.c (do_fetch_mail): For imap (sigh, we *still* shouldn't
be hardcoding that), rescan the store's folder tree, rescan each
changed folder for new messages, and update the shell folder tree.
(do_scan_subfolders): Update for component-factory.c changes, and
set folder display names and highlights appropriately when
building the storage.
* component-factory.c (add_storage): Make this static (was
mail_add_new_storage). Use camel_service_get_name for the name
rather than url->host. (Among other things, this lets you use a
single machine as both an IMAP server and a news server.)
(mail_lookup_storage): Hash storages based on their CamelStore
rather than the URL.
(factory_destroy): Disconnect each of the CamelStores in the
storages_hash.
* subscribe-dialog.c (cleanup_subscribe_folder):
* mail-vfolder.c (vfolder_refresh): Pass "highlighted" flag to
evolution_storage_new_folder
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (mail_op_report_status): Don't call the default
logging function.
(do_fetch_mail): Set the logfile and don't pass the logfile to
filter_driver_set_status_func - it's purpose has been altered.
(do_filter_ondemand): Same.
2000-11-02 Not Zed <NotZed@HelixCode.com>
** Merged in camel-incremental-branch.
* mail-format.c (mail_get_message_body): Jeff! Sigh.
We should definetly not be strduping the
content, it has already been copied and duplicated. Look at
get_data_wrapper_text.
2000-11-01 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.h: add fields search_entry and search_top.
* subscribe-dialog.c: add mail-ops.c style async operations for
getting the store (to remove deadlock in the case where a auth
dialog is dismissed at startup and then the subscribe dialog is
brought up), and subscribing/unsubscribing to folders. One case
remains, that is getting the list of all folders.
(subscribe_search): flesh out this function
(build_tree): use the search_top field so we can search for
groups/folders.
(subscribe_dialog_destroy): free search_top.
(subscribe_dialog_construct): init search_top.
2000-10-30 Iain Holmes <iain@helixcode.com>
* mail-summary.c (generate_folder_summaries): Fix spelling :)
Set folder->uri to NULL for the Inbox.
2000-10-26 Iain Holmes <iain@helixcode.com>
* mail-summary.c (generate_html_summary): Add view:// uris to
switch the display to that folder.
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Hmmm, someone can't spell Filder,
er...I mean Filter ;-)
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* mail-autofilter.c (rule_from_message): If the name is NULL or
empty, then set the title to "Mail from <address>". Closes
bugzilla bug #777. Also when filtering on Subject, set the file
name to "Subject is <subject>" rather than just "<subject>" - I
think this is a bit more user-friendly.
(strip_re): Use unsigned char when passing to is<type>()
functions from ctype.h.
(rule_add_subject): Use the "is" rule instead of "contains".
2000-11-01 Jesse Pavel <jpavel@helixcode.com>
* mail-display.c: added property bag support for Bonobo
controls, support which helps only the iTip control, currently.
2000-11-01 Dan Winship <danw@helixcode.com>
* mail-display.c (pixbuf_gen_idle): Lots of fixes and
simplifications. Should get rid of the "missing icon" problem.
There is still a problem with some images failing to get
thumbnails, even though they display correctly.
(pixbuf_for_mime_type): New function to try really hard to get the
right icon for a MIME type, including looking in mc and nautilus's
pixmap directories.
(on_object_requested): Always use pixbuf_gen_idle, even for
non-image types, to prevent code duplication.
2000-10-31 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_get_message_body): Shouldn't we be
strdup'ing the content? This seems to fix the memory corruption
problems.
(mail_generate_reply): Make sure that the last char in the
generated reply text is '\0' (when body text doesn't end with a
\n, a random char will appear otherwise).
2000-10-31 Dan Winship <danw@helixcode.com>
* mail-config-gui.c (do_test_service): Update for
camel_service_disconnect change.
2000-10-31 Jeffrey Stedfast <fejj@helixcode.com>
* mail-autofilter.c (filter_gui_add_for_mailing_list): Match "is"
rather than "contains" now that we have the "is"-rule.
2000-10-30 Dan Winship <danw@helixcode.com>
* mail-config-gui.c (config_do_query_authtypes): Redo this so that
it works for all pages, not just the first page. (Now that this is
finally working again, I expect Anna to finish her redesign in the
next 15 minutes.)
(service_page_item_new): Fix up the sizing of the Auth line to
look more like everything else.
2000-10-29 Dan Winship <danw@helixcode.com>
* mail-tools.c (mail_tool_uri_to_folder): Simplify this a lot by
making IMAP and NNTP use the same code, now that the IMAP
namespace doesn't need special magic handling.
* message-list.c (mail_do_regenerate_messagelist): Don't try to
regenerate the message list if there is no folder. (The Bonobo UI
code will call this as the callback for the "Threaded View"
command.)
* mail-ops.c (do_fetch_mail): Sync the folder before refreshing so
we don't lose flag settings.
2000-10-27 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_send_cb): Check to make sure that the
recipient list is neither NULL nor a 0-length list of addresses
and pop up a dialog letting the user know why we are not allowing
him/her to send the message.
2000-10-26 Dan Winship <danw@helixcode.com>
* mail-display.c (write_data_to_file): Don't destroy a dialog
after run_and_close'ing it.
2000-10-26 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_send_cb): Check for the TO recipient
list being NULL and don't send.
2000-10-25 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_send_mail): Don't forget to unref the
FilterDriver.
* mail-callbacks.c (apply_filters): New callback for applying
on-demand filters. (removed the old on-demand filters callback).
* mail-ops.c (do_filter_ondemand): Rewrote to apply "incoming"
filters to all selected messages.
(mail_do_filter_ondemand): No longer takes a FilterContext
argument or a destination folder argument (why did we ever need
this last one??) but now takes a uids argument.
* folder-browser-factory.c: Add a MessageApplyFilters menu item.
2000-10-25 Iain Holmes <iain@helixcode.com>
* mail-summary.[ch]: Updated for the new ExecutiveSummary code.
* Makefile.am: Added the summary files and the evolution-services CFLAGS
and LIB stuff.
* component-factory.c: Re-enabled the summary stuff.
2000-10-25 Dan Winship <danw@helixcode.com>
* main.c (main): Pass send/postpone signal handler functions to
evolution_composer_factory_init.
2000-10-25 Jeffrey Stedfast <fejj@helixcode.com>
* subscribe-dialog.c (subscribe_select_all): Implemented.
(subscribe_invert_selection): (was unselect_all) Implemented.
2000-10-25 Dan Winship <danw@helixcode.com>
* message-list.c: Add a "flagged" column, based on the Camel
"flagged" flag, for assigning an arbitrary "hey, I care about
this" flag to a message.
(ml_tree_set_value_at): Remove
(ml_tree_is_cell_editable): No, it's not.
(on_click): Handle the read/unread and flagged fields via the
click handler. Among other things, this makes it not select
a message when you change its read status.
2000-10-24 Dan Winship <danw@helixcode.com>
* subscribe-dialog.c (folder_info_subscribed,
subscribe_folder_info, unsubscribe_folder_info): Don't prepend "/"
to the folder's full_name. Deal with hierarchy in the
EvolutionStorage tree better.
(storage_tree_path): Helper function to build a storage path from
a CamelFolderInfo.
2000-10-23 Dan Winship <danw@helixcode.com>
* *: Add some missing _()s and N_()s.
2000-10-23 Dan Winship <danw@helixcode.com>
* Makefile.am (INCLUDES): Update EVOLUTION_LOCALEDIR.
2000-10-23 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_send_mail): Apply outgoing filters to the
message.
2000-10-23 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Fixed a possible error in row numberings. This
needs to be changed quite a bit anyway, but this should make
things slightly nicer in some cases.
2000-10-23 Christopher James Lahey <clahey@helixcode.com>
* folder-browser.c: Made the top of the folder browser a little
prettier.
* mail-display.c, mail-vfolder.c: Made more dialogs resizable.
2000-10-23 Jeffrey Stedfast <fejj@helixcode.com>
* mail-autofilter.c (filter_gui_add_from_message): Don't forget to
set the rule source! (eg "incoming", "demand", or "outgoing")
2000-10-22 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (message_list_init): Always display the vertical
scrollbar.
* mail-display.c (mail_display_new): Always display the vertical
scrollbar.
2000-10-20 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.h: #include <camel/camel-folder.h>
2000-10-20 Michael Meeks <michael@helixcode.com>
* mail.h: s/BonoboUIHandler/BonoboUIComponent/
* mail-callbacks.c (run_filter_ondemand): ditto.
* session.c (forget_passwords): ditto.
2000-10-20 Dan Winship <danw@helixcode.com>
* evolution-mail.oafinfo: Declare composer factory.
* main.c (main): Initialize it
2000-10-19 Chris Toshok <toshok@helixcode.com>
* message-list.c (nuke_uids): e-tree-model is now opaque. use the
accessor to get the root node.
2000-10-19 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c: #include "mail-vfolder.h"
(vfolder_edit_vfolders): Don't call the dummy vfolder_edit
function.
* folder-browser-factory.c: s/VFolderEdit/SetVFolder
2000-10-19 Dan Winship <danw@helixcode.com>
* mail-ops.c: (do_fetch_mail): For an imap store, just refresh the
INBOX.
* folder-browser-factory.c (control_deactivate): Don't sync
non-existent folders.
* message-list.c (nuke_uids): Don't traverse non-existent trees.
2000-10-19 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (glade_messages): New.
(EXTRA_DIST): Add `$(glade_messages)'.
2000-10-19 Dan Winship <danw@helixcode.com>
* mail-ops.c: Clean up some old #if 0 code.
2000-10-19 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_generate_reply): Get the MailConfigIdentity
*before* we create a new composer object so that we can set the
signature file.
2000-10-18 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c (register_ondemand): kill.
(create_ondemand_hooks): die.
(control_activate): remove hook.
* test-mail.c (create_container): kill old UI handler.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Fixed some column widths.
2000-11-02 Not Zed <NotZed@HelixCode.com>
* message-list.c (get_message_info): Call get_message_uid to get
the uid, save some duplicated code.
(folder_changed): Handle the case of a NULL changes input.
* message-thread.c (thread_messages): Removed pointless
variable/assignment 'container'.
(thread_messages): Try and cope with duplicate message id's.
2000-11-01 Not Zed <NotZed@HelixCode.com>
* mail-callbacks.c (main_select_first_unread): Changed to use 0 as
the first row to select a message.
* mail-ops.h (mail_do_regenerate_messagelist): Removed from
header. This function is no longer public since it is really an
internal message-list function.
* folder-browser.c (search_full_clicked): Call the set_search()
function, rather than messagelist_rebuild, which is going private.
(search_set): Same here.
(folder_browser_clear_search): And here.
(etable_key): Call message_list_select() instead of
message_list_home and message_list_end. Removing some odd code
duplication.
* message-thread.c (do_thread_messages): Moved the mail lock to
here, rather than locking for each message lookup (which is
useless anyway). This is still not correct either, as the tree
references folder data ... but a bit better than it was.
(thread_messages): Removed the mail tool lock stuff, lock in
higher functions.
* message-list.h: Added a threaded indicator to the message list
itself.
(threaded_view): removed a mystery variable.
* message-list.c (do_regenerate_messagelist): Made the code a
little more readable.
(build_tree): Fixed argument to be a thread_messages struct, not a
container.
(cleanup_regenerate_messagelist): Free changeinfo.
(mail_do_regenerate_messagelist): If we are adding changes to a
flat view, we dont need to goto the other thread at all, so
process immediately.
(message_list_toggle_threads): Clear the tree if we're changing
the view mode.
(message_list_toggle_threads): And reset the rowmap, since it is no
longer valid.
(build_tree): If we are building into an already empty tree, just
build into that (probably irrelevant optimisation).
(build_subtree): Build hte subtree in the same order as we got it,
not inverted order.
(message_list_set_threaded): New function to select the threaded
view/flat view.
(mail_do_regenerate_messagelist): Removed references to
mail_config, get it from the ml->threaded var instead.
(message_list_destroy): No longer free the key data for the
uid_rowmap.
(new_id_from_uid): Convert a uid string into an id string.
(new_id_from_subject): Likewise for subject strings.
'id' strings replace the 'uid:' and 'subject:' stuff with
accessors and macros and use less memory and is more readable.
(id_is_uid): macro to check if an id string is a uid.
(id_uid): Returns the uid part of a uid id string.
(id_subject): Returns the uid part of a subject id string.
(build_subtree): Use the new id functions, and dont duplicate the
uid in the uid rowmap, but just reference it from the tree node.
(node_equal): Use new id functions.
(add_node_diff): And here too.
(remove_node_diff): And here. Also remove the uid from the
rowmap, and dont free it anymore.
(get_message_info): And here.
(get_message_uid): And here.
(subtree_unread): And here.
(ml_tree_value_at): "
(ml_tree_set_value_at): Noted a memory leak. do_flag_messages()
doesn't free the contents of the uid array, just the uid array
(well that i can tell, teh code has more problems anyway).
(ml_tree_set_value_at): And fix the id accessors.
(save_node_state): "
(build_flat): Use id macros/functions. Dont alloc memory for hash
key.
(build_flat_diff): Use id macros.
(build_flat_diff): Remove the hash table entry before freeing its
key data (in the node).
(free_key): Removed. Keys are no longer alloc'd.
(clear_tree): When we clear the tree, also clear the uid_rowmap,
as it is no longer valid (or contains allocated keys!).
(free_tree_ids): Renamed from nuke_uids.
(free_ids_cb): Renamed from nuke_uids_cb.
(free_tree_ids): Changed arg to be a ETreeModel directly.
(ml_tree_value_at): Map id to subject using the right macro.
(free_tree_ids): Check we have any nodes to traverse first.
(build_flat): Insert to row -1 to append the nodes (faster).
(remove_node_diff): Only remove the uid rowmap entry if it is
referencing this node (i.e. the key string is the same key string,
not just a matching key string).
(add_node_diff): Remove the uid rowmap entry before inserting a
new one to force the key to be replaced. This is required as the
tree may temporarily contain duplicate messages during the
rebuilding phase.
(message_list_set_search): New function, set the search string.
Only redo the search if it has changed, etc.
(mail_do_regenerate_messagelist): Made static. There is no need
for external code to call this.
(message_list_set_folder): NOP if the new folder is the same.
(message_list_set_folder): Clear the tree before rebuilding it.
(message_list_select): Ok, this wins the award for 'most bizarre
interface'. Changed the start row to mean the end of the list if
we supply -1, rather than the start of the list. Also fixed the
endpoints (it would never select message 0 if searching
backwards).
(idle_select_row): Changed start row to 0 from -1.
(message_list_end): Removed.
(message_list_home): Removed.
(go_to_message): Removed. message_list_select can do this.
(message_list_select): Check that direction is one of the valid
ones, otherwise we could be thrown for loops.
2000-10-31 Not Zed <NotZed@HelixCode.com>
* message-list.c (node_equal): Compares an etree node with a
message-thread node to see if they point to the same object.
(add_node_diff): Adds a new thread node to the etree.
(remove_node_diff): Removed an etree node, freeing any additional
data.
(build_subtree_diff): Takes an existing etree definition, and a
new thread definition and makes the etree match, using as few
operations as possible.
(do_regenerate_messagelist): No longer free/clear the uid/rowmap
here.
(regenerate_messagelist_input_t): Added a tree field - are we
building a tree view?
(regnerate_messagelist_data_t): Added a tree field, if we built a
tree result. Added a changes parameter, for building diff's after
search/etc.
(mail_do_regenerate_messagelist): Setup the tree indicator.
(build_flat_diff): Apply a changeset to a message list.
(build_flat): Added a changes argument, if present, use
build_flat_diff() to build the list.
(do_regenerate_messagelist): If we are generating a threaded view,
build the threaded list here, rather in another separate
invocation.
(cleanup_regenerate_messagelist): Call build_tree directly on the
threaded list.
(message_list_init): Init the uid_rowmap hash table here instead
of somewhere odd.
(message_list_destroy): Assume uid_rowmap exists.
(do_regenerate_messagelist): Remove the code here that is messing
with the message list data (search/uid_rowmap). We're in a
different thread boys ...
2000-10-26 Not Zed <NotZed@HelixCode.com>
* message-list.c (cleanup_regenerate_messagelist): Fixed some
logic to make more sense (gboolean)!pointer replaced with
(pointer != NULL).
(build_tree): Put the tree pre/post change stuff in here, where it
should be.
(build_flat): Same here.
(cleanup_regenerate_messagelist): Remove model_changed stuff here.
(setup_regenerate_messagelist): Remove pre_change stuff here.
2000-10-20 Not Zed <NotZed@HelixCode.com>
* message-list.c (main_folder_changed): Perform incremental update
of the display for flat view.
(ml_tree_value_at): Spit out a mroe meaningful warning when we
can't find the uid in our tree, in the folder.
* message-thread.c (thread_messages): Made public.
(thread_messages_free): Made public.
(thread_messages): Now we also return a struct _thread_messages,
which is passed to other functions.
(container_free): Renamed from thread_messages_free.
(thread_messages_free): Take a thread_messages argument.
(thread_messages_add): New function to add a list of uid's to the
thread list.
(thread_messages_remove): Likewise, for removing them.
(cleanup_thread_messages): Change for struct changes.
(do_thread_messages): Likewise.
2000-10-19 Not Zed <NotZed@HelixCode.com>
* mail-tools.c (mail_tool_do_movemail): removed unused var
* folder-browser.c (search_full_clicked): Fix for api changes,
such as it can be called an api, its mroe an utter mess infact.
(search_set): Same.
(search_set): And here.
(folder_browser_clear_search): And here.
* message-list.c (folder_changed): Copy and forward the changeinfo
list to the mian thread.
(main_folder_changed): Free the changeinfo. Todo: something smart
with this information.
(struct regenerate_messagelist_input_s): Added a changes field.
(mail_do_regenerate_messagelist): Added a change list argument.
(message_list_set_folder): Fix for mail_do_regenreate_messagelist
api.
(message_list_toggle_threads): Same.
2000-10-18 Iain Holmes <iain@helixcode.com>
* mail-config-gui.c (mail_config): Make all the CLists have passive
titles.
(identity_dialog): Make the default button the "OK" button, and set
the dialog to close on pressing return on the entryboxes.
2000-10-17 Iain Holmes <iain@helixcode.com>
* mail-config-gui.c (service_page_item_new): Disable the optionmenu
because it is empty.
(service_page_item_auth_fill): Enable the optionmenu as there's stuff
in it now.
* mail-callbacks.c (reply_to_sender): Call check_send_configuration
when we have the FolderBrowser because if it is done in mail_reply
(with passing NULL) it will only be able to continue if the mailer
has already been configured.
(reply_to_all): Same.
2000-10-18 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (folder_browser_gui_init): No, we REALLY dont
want to perform an immediate search as the keys are pressed.
* mail-display.c (on_object_requested): Kill a minor warning with
a cast.
* mail-config.c: Include mising ctype.h to kill a warning.
* message-thread.c (main): Fixed the test case for api changes.
* message-list.c (message_list_drag_data_get): Set some flags to
get_folder(). I dont even think this will work because
mail_tool_get_folder doesn't handle file url's.
* mail-vfolder.c (vfolder_uri_to_folder): Pass appropriate flags.
* mail-ops.c (do_setup_folder): Pass appropriate flags. Hmm,
whats the difference between setup and create. *shrug*
(do_create_folder): Pass appropriate flags to get_folder. Needs a
way to specify the index flag.
* mail-tools.c (mail_tool_get_folder_from_urlname): Changed create
to flags argument.
(mail_tool_get_local_inbox_url): Add an index argument.
(mail_tool_get_local_inbox): honour index flag.
(mail_tool_get_inbox): Changed for api change.
(mail_tool_uri_to_folder): Fixed calls to store_get_folder();
* mail-local.c (load_metainfo): Added an indexed field to the metainfo.
(save_metainfo): And save it too.
(do_reconfigure_folder): Honour index flag when creating the new
folder. Do not open the old folder with an index at all.
(mail_local_map_uri): Add an index argument - tells if the mbox is
indexed.
(mail_tool_local_uri_to_folder): Create & pass flags properly.
(#include gnome.h): Dont include all of gnome, just what we use,
and explicity include xml-memory, so we get xmlFree().
2000-10-16 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (search_full_clicked): Un #if 0'd out
(search_full): Same.
(folder_browser_gui_init): Connect search_full and search_activate.
(search_set): Uncomment search_full()
* Makefile.am: Re-add `mail-search-dialogue.h' and
`mail-search-dialogue.c'.
2000-10-16 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_generate_reply): Decode recipient names so
that they display nicely in the To and Cc fields.
(write_field_to_stream): Now takes another argument
'value_is_encoded' so that we know if we should decode that string
before proceding onward. Since the message subject is already
decoded before it's passed in, we don't want to decode it again
(wasted cpu time and/or any 8bit chars will be assumed to be
latin1 encoded and thus the decoded value will be corrupt).
2000-10-16 Chris Toshok <toshok@helixcode.com>
* mail-config-gui.c (service_page_get_url): only set the url->user
field if the user string is non-NULL and not empty.
2000-10-16 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_setup_etable): Uh, fixed jeff's
wrong fix for setting the speficiation (the function changed to
set_state(), as can be seen in the e_table-scrolled_load_state()
call only 2 lines above).
2000-10-13 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_setup_etable): oops, chose the
wrong thing to cut out after a merge conflict.
2000-10-15 Chris Toshok <toshok@helixcode.com>
* message-list.c (subtree_unread): ETreePath != GNode now, use
accessors.
(ml_tree_value_at): same.
(save_node_state): same.
(save_tree_state): same.
(nuke_uids_cb): convert to e_tree_model_node_traverse required
type.
(nuke_uids): g_node_traverse -> e_tree_model_node_traverse.
2000-10-14 Ettore Perazzoli <ettore@helixcode.com>
* evolution-mail.oafinfo: Add "evolution:shell-component-icon"
attribute.
2000-10-13 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (message_list_setup_etable): Don't free the
service name.
2000-10-12 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): sync & expunge the source folder
after filtering.
2000-10-12 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (message_list_setup_etable): Create the 'spec'
and 'extras' arguments and call e_table_scrolled_new() rather than
set_specification as that function no longer (?) exists.
Also started to add drag & drop functionality to something like
Nautilus (but #if 0'd it out until I had time to finish it and
till after 0.6).
2000-10-12 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_setup_etable): Duh, fix the test
for the folder name, strstr != strcmp is it.
2000-10-10 Not Zed <NotZed@HelixCode.com>
* message-list.c (folder_to_cachename): Removed, changed callers
to use mail_config_folder_to_cachename instead.
* mail-config.c (mail_config_folder_to_cachename): New utility
function to get a cache name for a folder.
* mail-tools.c (mail_tool_do_movemail): Changed to return the path
to the mbox, rather than opening a folder of it.
* mail-ops.c (mail_incorporate_messages): Dont bother making the
pseudo messageinfo, filder_driver_filter_message will do it for
us.
(report_status): Callback to report status of filtering operation.
(do_fetch_mail): Changed significantly - for the api changes to
the filtering system. Also now incorporates a mailbox file
directly, without having to import it into a camel folder first.
(mail_incorporate_messages): Removed entirely, no longer needed.
* mail-vfolder.c (vfolder_refresh): Fix for context api changes.
(vfolder_uri_to_folder): Likewise.
* folder-browser-factory.c (create_ondemand_hooks): Changed for
api changes. Also only adds demand filters to the menu (fixed a
small logic bug).
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (folder_etree_value_at): special case for
folders with NULL urls (which aren't selected/subscribeable).
(unsubscribe_folder_info): can't (un)subscribe from folders with
non-NULL urls.
(subscribe_folder_info): same.
2000-10-12 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Replace To with From except in Drafts, Outbox,
or Sent boxes. Make Subject column pay attention to text
attributes like bold and strikethrough.
2000-10-12 Iain Holmes <iain@helixcode.com>
* component-factory.c: Disable the executive summary.
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (FOLDER_ETABLE_SPEC): set expansion to 0.0,
minimum-width to 16, and resizable to false for the subscribed
column.
(folder_info_subscribed): new function so we can do the correct
path munging.
(subscribe_folder_info): only add the folder to the storage if
there wasn't an exception subscribing it.
(unsubscribe_folder_info): same, but unsubscribing.
(folder_etree_value_at): use folder_info_subscribed.
(folder_toggle_cb): same.
(unsubscribe_folder_foreach): same.
(subscribe_folder_foreach): same.
(subscribe_dialog_gui_init): set the bold column on the text cell,
and add the subscribed pixbuf.
2000-10-11 Anna Marie Dirks <anna@helixcode.com>
* mail-threads.c: Changed the password-getting dialog so that the
text entry has focus.
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (STORE_ETABLE_SPEC): change cell type to
"string" since we're not including it in the extras.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h, subscribe-dialog.c: Changed
these to use the proper form for the column element.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h, subscribe-dialog.c: Updated
these to the new ETable style of specifications.
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): convert to the
new gal e-table stuff.
(html_size_req):
(html_new):
(put_html): #if 0 out the html functions since description stuff
isn't used and we don't want the warnings.
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): remove the html
description stuff for now.
2000-10-10 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (folder_toggle_cb): umm.. duh :) only
subscribe if it's not subscribed, and vice versa.
(subscribe_folder_foreach): make sure to call
e_tree_model_node_changed.
(unsubscribe_folder_foreach): make sure to call
e_tree_model_node_changed.
2000-10-10 Chris Toshok <toshok@helixcode.com>
* mail-ops.c (setup_scan_subfolders): add a ref to input->storage
here so that the ref/unref pattern more closely matches other
mail-ops. also, this keeps the storage from being freed when we
hit the unref in cleanup_scan_subfolders, which is important
because we maintain a reference to it in the storage_hash in
component-factory.c
* subscribe-dialog.h: add storage field.
* subscribe-dialog.c (subscribe_folder_info): new function,
subscribe to a folder given it's CamelFolderInfo, and add it to
the shell - we're generating a path from the name of the folder
which is bad.
(unsubscribe_folder_info): same (except we unsubscribe and remove
from the shell).
(storage_selected_cb): unref the currently selected storage.
(subscribe_dialog_destroy): unref the currently selected storage.
(subscribe_dialog_construct): sc->storage = NULL.
* component-factory.c (mail_lookup_storage): new function, to look
up a EvolutionStorage corresponding to a CamelService. we ref the
EvolutionStorage before passing it back.
(mail_add_new_storage): insert the storage into storages_hash if
result is EVOLUTION_STORAGE_OK.
* mail.h: add prototype for mail_lookup_storage.
2000-10-10 Larry Ewing <lewing@helixcode.com>
* mail-format.c (mail_generate_reply): make sure we dup the return
value of get_reply_to or get_from when building the recipient list.
2000-10-10 Iain Holmes <iain@helixcode.com>
* mail-summary.c (generate_html_summary): Removed the <li> from the
HTML.
2000-10-10 Cody Russell <bratsche@gnome.org>
* mail-threads.c: Added #include <errno.h>
2000-10-09 Iain Holmes <iain@helixcode.com>
* mail-summary.c: Removed the extra arguments to rule_context_load.
2000-10-09 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c, subscribe-dialog.h: use our own etable to
display the stores, and get them from the mail-config api. put
#if 0'ed code in place to add/remove the folders from the shell
when they're subscribed/unsusbcribed. also, react to double
clicks in the folder etable by toggling subscription status.
2000-10-08 Iain Holmes <iain@helixcode.com>
* mail-summary.c (create_summary_view): Updated to use new icon code.
2000-10-08 Iain Holmes <iain@helixcode.com>
* mail-summary.c (generate_html_summary): Generic function to
recreate the HTML of the summary. Checks all the folder summaries.
(generate_folder_summarys): Create a summary of all the vfolders
and the Inbox.
(create_summary_view): Generate the folder summarys before the
HTML.
2000-10-09 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser.c: Don't #include "mail-search-dialogue.h" as
it's missing from the repository.
(search_full_clicked): Temporarily `#if 0'ed out.
(search_full): Likewise.
(folder_browser_gui_init): Don't connect `search_full'.
(create_option_menu): Don't connect `search_menu_deactivate'.
(folder_browser_gui_init): Don't connect `search_activate'.
(search_set): Don't do `search_full()'.
(folder_browser_gui_init): Likewise.
* Makefile.am (evolution_mail_SOURCES): Remove
`mail-search-dialogue.h' and `mail-search-dialogue.c' as NotZed
forgot to put them into CVS.
2000-10-06 Not Zed <NotZed@HelixCode.com>
* mail-search-dialogue.c: New widget, full search dialogue for
mail.
* folder-browser.c (search_set): If we click on custom search, run
the full search dialogue.
(folder_browser_gui_init): Add a button to perform a full search.
(search_full): Bring up the mail search dialogue asynchronously.
(search_full_clicked): Handle search options.
(folder_browser_destroy): Free the saved rule if there is one
there.
(search_options[]): Added a custom option option - brings up the
full search dialogue.
(search_set): Disable the search entry if we are doing a full
search.
* mail-vfolder.c (vfolder_create_storage): Yay, finally
depeterised this stuff.
(vfolder_uri_to_folder): Removed an irrelevant comment.
* mail-callbacks.c (filter_edit): And here.
* mail-ops.c (do_fetch_mail): And here too.
* mail-autofilter.c (filter_gui_add_from_message): Fixed call to
context_load.
(filter_gui_add_for_mailing_list): And here too.
* folder-browser-factory.c (create_ondemand_hooks): Remove that
ondemand callback snot.
2000-10-05 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_init_etable): Build the etable once
we know what folder we are going to use.
(save_header_state): Save the header spec to a cache file.
(message_list_destroy): Save the header spec.
(message_list_setup_etable): Setup the etable spec for this
folder, from a saved version if one exists, or to suit the folder
type (sent/received).
(message_list_set_folder): Setup the etable here once we have a folder.
2000-10-09 Michael Meeks <michael@helixcode.com>
* message-list.c (message_list_toggle_threads): re-write.
* folder-browser-factory.c (control_activate): update paths, need
CVS HEAD bonobo, use a listener not a verb.
2000-10-08 Miguel de Icaza <miguel@helixcode.com>
* mail-ops.c (mail_incorporate_messages): Tag string for translation
(do_flag_messages): ditto.
* mail-threads.c (pipe_write): Repeates writes on EINTRS.
(pipe_read): Repeats reads on EINTRS.
(mail_operation_queue): Use pipe_write
(mail_op_set_percentage): ditto.
(mail_op_hide_progressbar): ditto.
(mail_op_show_progressbar): ditto.
(mail_op_set_message): ditto.
(mail_op_get_password): ditto.
(mail_op_error): ditto.
(mail_op_forward_event): ditto.
(mail_operations_terminate): ditto.
(dispatch): use pipe_read.
(dispatch): use pipe_write
(dispatch): ditto.
* mail-ops.c (mail_incorporate_messages): Only show message being
incorporated every 2 seconds, to avoid a bunch of CORBA round trips.
(do_transfer_messages): ditto.
(do_forward_messages): ditto.
2000-10-07 Miguel de Icaza <miguel@helixcode.com>
* mail-ops.c (do_fetch_mail): Move the functionality to
incorporate messages into mail_incorporate_messages.
(mail_load_evolution_rule_context): New function. Move the
functionality for loading the context rules to its own function.
2000-10-06 Iain Holmes <iain@helixcode.com>
* mail-summary.c: Fix the locking up of the mail by only calling
camel functions from the camel thread, and ORBit functions from
the GTK thread. Watch for the message-changed signal again.
* component-factory.c (summary_fn, component_factory_init):
Re-enabled it, cos I think it works again.
* mail-display.h: Remove the pb_cache.
* Makefile.am: Readd the mail-summary.[ch] files and add the
evolution-services library to the link.
2000-10-06 Chris Toshok <toshok@helixcode.com>
* mail-ops.c (do_scan_subfolders): set the @subscribed_only
parameter to TRUE, since the subscribe UI is the only interface
that should show unsubscribed groups.
2000-10-06 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (do_scan_subfolders): Add missing @subscribed_only
parameter in the call to `camel_store_get_folder_info()'. [FALSE,
I hope that's right.]
2000-10-05 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (write_field_to_stream): Decode the header before
writing it to the header box.
* mail-callbacks.c (send_receieve_mail): fetch mail before
sending, this is a temp fix for POP-before-SMTP authentication.
2000-10-05 Michael Meeks <michael@helixcode.com>
* component-factory.c (summary_fn, component_factory_init):
Disable summary stuff, it appears to be badly broken.
* Makefile.am (evolution_mail_SOURCES): add mail-summary.[ch]
* subscribe-dialog.c (update_pixmaps): upd.
(set_pixmap): upd.
(subscribe_dialog_gui_init): upd.
remove redundant and annoying forward definitions.
* folder-browser-factory.c (control_deactivate): upd.
(control_activate_cb): upd.
(control_activate): upd.
(set_pixmap): upd.
(update_pixmaps): upd.
(register_ondemand): upd.
(create_ondemand_hooks): upd.
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (address_compare): Use CamelInternetAddress
instead of my quick hack (aka InternetAddress).
2000-10-05 Iain Holmes <iain@helixcode.com>
* mail-summary.c: Don't watch for the message-changed signal.
2000-10-05 Iain Holmes <iain@helixcode.com>
* component-factory.c (component_factory_init): Setup the summary
factory as well.
(summary_fn): New function to create the ExecutiveSummaryComponent.
* mail-summary.c: Create the view, and update it when something
changes.
2000-10-04 Iain Holmes <iain@helixcode.com>
* mail-display.c (on_object_requested): Removed the pixbuf cache
as it would return the pixbufs in the reverse order every so often
and generally get all confused.
2000-10-04 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (control_deactivate): Add back the
"sync folder on leave" hack that got lost in the UIHandler merge.
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Instead of UnSelectAll, we want
InvertSelection.
* mail-callbacks.c (select_all): Finished this function.
(invert_selection): Finished. (was unselect_all - but that's not
what we really wanted as it'd be pointless. invert_selection is a
much more useful callback :-)
2000-10-04 Chris Toshok <toshok@helixcode.com>
* mail-tools.c (mail_tool_get_root_of_store): remove news specific
check.
(mail_tool_uri_to_folder): news: -> nntp:
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_filter_ondemand): Don't expunge the source
mailbox on completion.
2000-10-04 Dan Winship <danw@helixcode.com>
* mail-ops.c (do_scan_subfolders): Don't try to add_folders if
get_folder_info returned NULL.
2000-10-04 Not Zed <NotZed@HelixCode.com>
* message-list.c (message_list_init_header): Fix the attachment
icon width.
(content_is_attachment): Perform some simple tests to see if the
message contains an attachment.
(build_subtree): Kill a pointless warning.
2000-10-04 Miguel de Icaza <miguel@helixcode.com>
* mail-callbacks.c (delete_msg): Added a comment to a piece of
code that I was trying to "fix" just to find that the strange
behaviour here that was about to be fixed, was actually a fix to
the problem I was trying to fix.
So put the original comments from Dan, and will hope that someone
with more knowledge about this can figure why the delete key wont
delete messages and select the next unread message.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_destroy): destroy our
tree_model and remove the root node. also, release_unref our
control and view, and unref the listener.
* mail-tools.c (mail_tool_uri_to_folder): news url's contain host
names too, now.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c, subscribe-dialog.h: add a
storage-set-view-listener, and add a little printf saying what
storage was selected.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (subscribe_dialog_gui_init): get
Evolution::StorageSetView interface on our storage set view
control, and set "show_folders" to FALSE.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* Makefile.am (INCLUDES): add -I$(top_srcdir)/widgets/misc
* subscribe-dialog.c (subscribe_dialog_gui_init): change the
window title to Manage Subscriptions, bold subscribed folders, and
add a title bar ala the evolution shell (but without the close
button).
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.h: add fields for the storage set
Bonobo_Control and Evolution_StorageSetView interfaces.
* subscribe-dialog.c (subscribe_dialog_gui_init): create the uih
as early as possible, and add the storage set view to the left
side of the hpaned.
2000-09-22 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c (set_pixmap): upd.
(control_activate): upd.
2000-10-02 Dan Winship <danw@helixcode.com>
* mail-config-gui.c: Remove "Port" entry from source dialog. We'll
use "host:port" like Netscape and other programs do.
(service_page_get_url): If host ends in ":###", use that as port.
(service_page_set_url): If URL contains a port, append it to the
hostname, separated by a colon.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* Makefile.am (evolution_mail_SOURCES): subscribe-control.[ch] ->
subscribe_dialog.[ch]
* mail-callbacks.c (manage_subscriptions): subscribe_control ->
subscribe_dialog. Also, pass the shell to subscribe_dialog_new.
* mail-types.h: SubscribeControl -> SubscribeDialog.
* subscribe-dialog.c, subscribe-dialog.h: rename from
subscribe-control.[ch].
* subscribe-dialog.c (subscribe_dialog_construct): pass
Evolution_Shell in.
(subscribe_dialog_new): takes Evolution_Shell argument now.
2000-10-02 Chris Toshok <toshok@helixcode.com>
* message-list.c (message_list_init_renderers): remove the 2 tree
pixbufs, so adjust the offsets to the score pixbufs. also, pass
NULL for the open/closed pixbufs to the tree cell renderer.
2000-10-02 Dan Winship <danw@helixcode.com>
* mail-ops.c (mail_do_scan_subfolders, etc): Update for
CamelFolderInfo changes.
* message-list.c (message_list_destroy): Don't save_tree_state if
there's no folder associated with the MessageList.
* folder-browser.c (folder_browser_set_uri): Only call
mail_do_load_folder if the URI is not "".
2000-10-02 Iain Holmes <iain@helixcode.com>
* mail-display.[ch]: Add a cache for the pixbufs, hashed on CID,
so that we only have to make a thumbnail once.
2000-10-01 Iain Holmes <iain@helixcode.com>
* mail-display.c: Generate the thumbnails on an idle function so
that the user interface isn't locked. Checks in case the widget it
will use to display the image isn't destroyed.
2000-10-01 Iain Holmes <iain@helixcode.com>
* mail-display.c (on_object_requested): If the attachment is an
image display a thumbnail of it, instead of the generic image
icon.
2000-09-29 Miguel de Icaza <miguel@helixcode.com>
* folder-browser-factory.c: Add print preview verb here.
* mail-callbacks.c (do_mail_print): Handle printing here, the
complete engine.
(mail_print_preview_msg): new. does print previewing.
(mail_print_msg): does printing of the message.
2000-09-29 Chris Toshok <toshok@helixcode.com>
* subscribe-control-factory.c, subscribe-control-factory.h: nuked.
* subscribe-control.c, subscribe-control.h: lots of changes. we
now pop up a dialog, and will have a storage set view on our left
side, like the shell does.
* mail.h: add prototype for manage_subscriptions.
* mail-callbacks.c (manage_subscriptions): new function, pops up
the subscribe dialog.
* folder-browser-factory.c: add the verb for managing
subscriptions.
* Makefile.am (evolution_mail_SOURCES): add subscribe-control.[ch]
again.
2000-09-28 Chris Toshok <toshok@helixcode.com>
* subscribe-control.h (subscribe_search): added prototype.
* subscribe-control.c (subscribe_search): new function.
* subscribe-control-factory.c (make_folder_search_widget): new
function, to add search widget to toolbar.
(control_activate): create the search widget and add it to the
toolbar.
2000-09-28 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_send_queue): Messages should be appended to Sent
as Seen.
(do_send_mail): Same.
2000-09-28 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am: Don't compile `subscribe-control' for now. It
needs to be converted to the new UI handler code in Bonobo; it
doesn't compile right now.
2000-09-27 Chris Toshok <toshok@helixcode.com>
* subscribe-control.c (subscribe_refresh_list): new function.
* subscribe-control.h (subscribe_refresh_list): new prototype.
* subscribe-control-factory.c (update_pixmaps): add RefreshList
pixmap. also, add it to the verbs list.
2000-09-27 Chris Toshok <toshok@helixcode.com>
* mail-types.h: add SubscribeControl typedef.
* Makefile.am (evolution_mail_SOURCES): add the subscribe stuff.
* subscribe-control-factory.h * subscribe-control-factory.c *
subscribe-control.c: * subscribe-control.h: Mostly mocked up
subscribe ui.
2000-09-27 Jeffrey Stedfast <fejj@helixcode.com>
Note: We need a configuration option to specify whether to log
filtering actions or not.
* mail-ops.c (do_filter_ondemand): Updated to pass a log file
pointer to filter_driver_run.
(do_fetch_mail): Same.
(mail_do_fetch_mail): Fixed a compiler warning.
2000-09-27 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_postpone_cb): Fix it so that "send
later" will still mark a message as being replied, forwarded,
whatever. Closes bug #568 on bugzilla.
2000-09-27 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_filter_ondemand): If the message has been
deleted, don't try filtering it - skip to the next message. Fixes
bugzilla bug #639.
2000-09-25 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Shuffling (un)select all menu items to
the Edit menu.
2000-09-25 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Added new menu items
* mail-callbacks.c (mark_as_seen): New callback to mark all
selected messages as Seen.
(mark_as_unseen): New callback to mark all selected messages as
Unseen.
(select_all): New callback to select all messages (not yet
finished)
(unselect_all): New callback to unselect all messages (not yet
finished)
2000-09-25 Not Zed <NotZed@HelixCode.com>
* message-list.c (folder_to_cachename): Function to convert a
folder name/path to a filename for per-folder data.
(save_tree_state):
(load_tree_state):
(free_tree_state): For loading/saving the state of the expansion
of nodes in the tree.
(message_list_destroy): Save the tree state when done.
(save_node_state): Changed logic, we save when the node should be
closed on startup. i.e. any new nodes with children automatically
default to being open.
(subtree_unread): Check for unread messages in a subtree. So
false messages (for tree roots) are properly displayed.
2000-09-25 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (address_compare): Updated to use Nat's
ENameWestern parser.
* Makefile.am: link against e-util/ename/libename.la
2000-09-25 Dan Winship <danw@helixcode.com>
* mail-ops.c: CamelException is not for compile-time errors.
Replace lots of argument checks in setup_ functions with
g_return_if_fails in the public functions. Also remove some
prototypes that weren't needed because they were for static
functions that are defined before they're used.
2000-09-23 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c (set_pixmap): upd.
(control_activate): upd.
2000-09-23 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (internet_address_new_from_string): Skip spaces
at the beginning of the string first before doing anything else.
The code that follows doesn't like the first character of the
string to be a space.
2000-09-22 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (address_compare): New comparison function for
email addresses.
(subject_compare): New comparison function for message subjects.
(message_list_init_header): Updated to use the new compare funcs.
2000-09-21 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_generate_reply): Fixed some memory
leakage. Call free_recipients() so we don't leak memory.
2000-09-19 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_scan_subfolders): Use the folder's full_name so
recursive directory structures display correctly ;-)
2000-09-19 Dan Winship <danw@helixcode.com>
* mail-ops.c (do_scan_subfolders): Update for CamelFolder changes
(subfolder_names -> subfolder_info).
2000-09-19 Dan Winship <danw@helixcode.com>
* mail-callbacks.c (create_msg_composer, compose_msg, send_to_url,
mail_reply, forward_msg): * mail-format.c (mail_generate_reply): *
mail-ops.c (cleanup_edit_messages):
* mail-view.c (view_forward_msg): Deal with NULL composer.
2000-09-18 Dan Winship <danw@helixcode.com>
* main.c (main): Call gnome_vfs_init() since the composer now does
file operations (to get the MIME type of attachments).
2000-09-18 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c: Removed COL_ONLINE_STATUS because we don't want
that. Renamed COL_PRIORITY to COL_SCORE and set it up to sort-of
work, I'm not really sure which renderer I should use.
2000-09-18 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added $(EXTRA_GNOME_CFLAGS) and
$(EXTRA_GNOME_LIBS). Removed unneeded libraries.
* component-factory.c, folder-browser-factory.c, folder-browser.c,
mail-callbacks.c, mail-config-gui.c, mail-display.c,
mail-display.h, main.c, message-list.c, message-list.h: Fixed the
#include lines to deal properly with gal.
2000-09-16 Michael Meeks <michael@helixcode.com>
* Makefile.am (INCLUDES): add datadir
* folder-browser-factory.c (control_activate): use it.
2000-09-15 Dan Winship <danw@helixcode.com>
* mail-callbacks.c (transfer_msg): Revert **Temp fix** from below
since the relevant shell bug has been fixed now.
* mail-ops.c (do_fetch_mail): Fix the sense of the "keep on
server" check so we're not doing this backwards. Don't
get_message_flags, because POP doesn't support it and it's
pointless anyway since we're setting deleted, not toggling it.
call camel_folder_sync with expunge=TRUE so that the deletions are
actually recorded.
2000-09-15 Dan Winship <danw@helixcode.com>
This bug was so much fun to fix the first time that I decided to
fix it again.
2000-07-11 Dan Winship <danw@helixcode.com>
* mail-ops.c (real_send_mail): Set the post_send_data flag
rather than toggling it. (Maybe we'll need more control
over it later, but for now, the only flag we set is
"replied", and we want that set, not toggled.)
2000-09-14 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (transfer_msg): **Temp fix** Send "" as the
default folder to select as anything else seems to cause a
segfault in shell's user_get_folder().
(check_configured): A spoon full of 'line wrapping' makes the
medicine go down, the medicine go dowwwwn...
2000-09-14 Iain Holmes <terrorist@gegl.org>
* mail-callbacks.c (check_configured): Ask if you want to
configure the mail client if it isn't configured already.
(check_send_configuration): Remove the error box if mail isn't
configured.
(send_queued_mail): Same.
2000-09-14 Dan Winship <danw@helixcode.com>
* mail-ops.c (setup_append_mail): camel_folder_append is perfectly
happy to take a NULL info.
2000-09-14 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c: move fn to bonobo.
(set_pixmap): update.
(control_deactivate): add bonobo_ui_handler_unset_container
2000-09-14 Christopher James Lahey <clahey@helixcode.com>
* mail-config-gui.h: Changed the include here because it caused
make distcheck to fail for me. I changed it from <Evolution.h> to
"shell/Evolution.h". This seems to have fixed things.
2000-09-14 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Only use the cache if the user plans
to keep_on_server.
2000-09-14 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c (control_deactivate): kill
warning. (control_activate): set threaded toggle state,
add freeze / thaw.
(set_pixmap, fill_toolbar, update_pixmaps): update.
2000-09-13 Christopher James Lahey <clahey@helixcode.com>
* folder-browser-factory.c: Fixed a warning (Missing include
file.)
2000-09-12 Ettore Perazzoli <ettore@helixcode.com>
($(EVOLUTION_MAIL_CORBA_GENERATED)): Add space after `-I'.
2000-09-12 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am: Remove `ui.xml' stuff.
2000-09-12 Dan Winship <danw@helixcode.com>
* mail-local-storage.c (mail_local_storage_startup): set
folder_tree before adding the listener, since that will eventually
invoke callbacks that will look at it.
* folder-browser-factory.c (control_deactivate): sync the folder
on deactivate.
2000-09-12 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (on_right_click): Also display the name of the
mailing list in the "Filter on Mailing List" item for additional
Coolness factor.
* mail-autofilter.c (filter_gui_add_for_mailing_list): Create the
rule with `filter_filter_new()' so that it also has an action
part.
* mail-mlist-magic.c (get_header): Use the right header name to
retrieve the header.
2000-09-12 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (on_right_click): Grey out the mailing list
filter item if `mail_mlist_magic_detect_list()' returns NULL on
this message [i.e., if we cannot figure out a mailing list for
this message].
(filter_mlist): Good boys don't use F words.
* mail-mlist-magic.c (check_sender): Work safely if
`header_name_return' or `header_value_return' are NULL.
(check_x_been_there): Likewise.
(check_delivered_to): Likewise.
(check_x_mailing_list): Likewise.
(check_x_loop): Likewise.
(get_header): Use the right header name to retrieve the header.
* message-list.c (on_right_click): Mark strings for translation.
2000-09-12 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c: Use the latest, shiny, amazing TigerT
art for the toolbar.
* component-factory.c: #include "mail-local-storage.h".
(owner_set_cb): Removed unused variable.
* message-list.c (filter_sender): Made static.
(filter_recipient): Likewise.
(filter_subject): Likewise.
(vfolder_recipient): Likewise.
(vfolder_sender): Likewise.
(vfolder_subject): Likewise.
* mail.h (vfolder_subject): Removed prototype [WTF was this doing
here?!?!].
(vfolder_sender): Likewise.
(vfolder_recipient): Likewise.
(filter_subject): Likewise.
(filter_sender): Likewise.
(filter_recipient): Likewise.
* message-list.c: Added a new "Filter on mailing list" menu item.
(filter_mlist): Callback for this menu item. Use
`filter_gui_add_for_mailing_list' to pop up the filter dialog with
the appropriate rule.
* mail-autofilter.c (filter_gui_add_for_mailing_list): New.
* message-thread.c (dump_tree): Removed unused variable.
* mail-mlist-magic.c: New.
* mail-mlist-magic.h: New.
* mail-autofilter.c (rule_match_recipients): Mark strings for
translation.
(rule_from_message): Likewise.
(filter_gui_add_from_message): Likewise.
2000-09-12 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Was trying to unhook an event from
the wrong folder - oops.
2000-09-12 Not Zed <NotZed@HelixCode.com>
* message-thread.c: Reverted to version 1.15.
(remove_node): Ok, if a node has a parent, remove it from the
parent list, otherwise remove it from the (supplied) root list.
(group_root_set): When we merge children, free the lost node.
(thread_messages_free): Remove the return, run as is.
(prune_empty): Plugged another small leak.
2000-09-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (run_filter_ondemand): Updated to use the new
mail_do_filter_ondemand.
* mail-ops.c (do_fetch_mail): Update to use the new
filter_driver_run args.
(do_filter_ondemand): Updated to use the new filter_driver_run
args.
(mail_do_filter_ondemand): Take a FilterContext as a argument
instead of a driver as we need to destroy the filter inside the
do_filter_ondemand function and things'd get messy.
2000-09-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Don't have the filter driver
self_destruct.
2000-09-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): If we're fetching from an mbox
formatted file then we need to do some special-casing.
2000-09-11 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (owner_set_cb): Call
`mail_local_storage_startup()' to set up handling of the local
storage.
* mail-local-storage.c: New.
* mail-local-storage.h: New.
2000-09-11 Christopher James Lahey <clahey@helixcode.com>
* mail-display.c: Fixed some warnings.
2000-09-11 Dan Winship <danw@helixcode.com>
* mail-display.c, mail-format.c: Another big rewrite of this
stuff. Now all (well, most) attachments get a small icon with a
description and a (non-obvious) right-click pop-up menu with
options to save, open in an external program, or show/hide inline.
TODO: antialias the icon, add more options to the pop-up for
certain MIME types, add an icon to the headers, fix PGP to work
like everything else, fix message/external-body to work again,
add some icon caching action, etc, etc.
2000-09-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Use the CamelUIDCache so that we
only retrieve *new* messages and also send notes to the status bar
telling it which message we're downloading so that Ettore can
sleep at night ;-)
2000-09-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Updated to not send hook/unhook data
to filter_driver_run as it no longer takes those args.
(do_filter_ondemand): Same. Also wrap filtering in freeze/thaw to
prevent signals from being queued up
2000-09-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Freeze the default folder before
filtering and thaw it afterward to prevent a ton of
"folder_changed" signals from being queued.
2000-09-08 Christopher James Lahey <clahey@helixcode.com>
* folder-browser.c, mail-config-gui.c, mail-ops.c: Fixed some
warnings.
* message-list.c: Added base ETableModel functions.
2000-09-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Updated to pass a CamelMessageInfo
to filter_driver_run
(do_filter_ondemand): Same.
2000-09-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_filter_ondemand): Updated to check the boolean
return code from filter_driver_run to find out whether or not the
message was filtered so that it can decide whether or not to
delete the message from the source folder or not.
2000-09-07 Jesse Pavel <jpavel@helixcode.com>
* mail-format.c (mail_generate_reply) Changed the behavior of
Reply-to-All so that the sender's address does not appear in
the cc: list.
2000-09-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Updated to pass an exception to
filter_driver_run and also check the exception before deleting the
message from the source folder.
(do_filter_ondemand): Updated to pass an exception to
filter_driver_run
2000-09-07 Dan Winship <danw@helixcode.com>
* session.c (session_init): Pass a storage dir to
camel_session_new now.
* main.c (main): Can't call session_init here now, because it
requires evolution_dir to be set.
* component-factory.c (owner_set_cb): call session_init here.
* mail-ops.c (do_fetch_mail): Fix previous fix. (Free the uids,
just do it correctly.)
2000-09-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_fetch_mail): Don't free uids, let the camel
folder do that when it gets finalized
2000-09-06 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (mail_do_filter_ondemand): New async function to
filter messages on demand.
(do_fetch_mail): Updated to filter 1 message at a time using the
new filter-driver code
* mail-callbacks.c (composer_postpone_cb): Send NULL as the
message info.
(run_filter_ondemand): Use mail_do_filter_ondemand instead of
filter_driver_run
* mail-tools.c: Removed mail_tool_filter_contents_into and
mail_tool_fetch_mail_into_searchable as they have now been
deprecated.
2000-09-06 Dan Winship <danw@helixcode.com>
* message-list.c (clear_tree): set the data to NULL for the tree
root, so nuke_uids won't try to free anything.
2000-09-06 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser.c (folder_browser_new): @shell made const.
`CORBA_Object_duplicate()' it before storing it.
(folder_browser_destroy): Free the shell object with
`CORBA_Object_release()', not `CORBA_free()'.
* folder-browser-factory.c (folder_browser_factory_new_control):
@shell made const.
2000-09-05 Dan Winship <danw@helixcode.com>
* mail-display.c (make_safe_filename):
* mail-format.c (handle_mystery):
* mail-identify.c (mail_identify_mime_part):
camel_mime_part_get_filename now deals with both
Content-Disposition and Content-Type.
2000-09-05 Peter Williams <peterw@helixcode.com>
* mail-ops.c (cleanup_load_folder): Check for NULL folder.
(mail_do_setup_folder): Copy the 'name' parameter so that
we can free it.
* message-list.c (nuke_uids): Depth '-1' means "unlimited", not 0.
2000-09-05 Dan Winship <danw@helixcode.com>
* component-factory.c (owner_set_cb): Re-rename "Sent".
* folder-browser.c (fb_resize_cb): Remove the "+ 90" here since it
seems to break things for me, and it's not commented anyway and
there's no excuse for adding 90 to a number with no explanation.
2000-09-05 Peter Williams <peterw@helixcode.com>
* folder-browser.c (folder_browser_destroy): Don't free the shell;
it's not ours.
2000-09-05 Dan Winship <danw@helixcode.com>
* mail-tools.c (mail_tool_move_folder_contents): only call
camel_folder_get_message_info if the folder has
summary_capability. Don't hack up a fake CamelMessageInfo:
append_message will take NULL.
* mail-ops.c: Replace mail_do_setup_draftbox,
mail_do_setup_outbox, and mail_do_setup_sentbox with
mail_do_setup_folder.
(do_send_mail, do_send_queue): s/sentbox_folder/sent_folder/
* component-factory.c (owner_set_cb): Use mail_do_setup_folder,
rename sentbox_folder to sent_folder, and call
mail_operation_wait_for_finish after the setup_folder calls in
case anything needs to use the _folder variables.
2000-09-04 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_generate_reply): Applied Jesse's patch that
will append a signature to the replied message text
* folder-browser-factory.c: Changed "Send & Receieve" back to "Get
Mail" temporarily so that the toolbar buttons don't all get
stretched to some weird proportion
2000-09-03 JP Rosevear <jpr@helixcode.com>
* mail-config.c (mail_config_add_news): Copy the passed in item
before adding
(mail_config_add_source): ditto
(mail_config_add_identity): ditto
* mail-config-gui.c (mail_config): We don't actually need a notebook
pointer.
(identities_edit_clicked): Don't explicitly destroy, we are using
gtk_clist_set_data_full now
(sources_edit_clicked): ditto
(news_edit_clicked): ditto
(mail_config): Use gtk_clist_set_row_data_full to kill leaks
2000-09-03 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Change the "Get Mail" toolbar button
to become "Send & Receieve"
* mail-callbacks.c (send_queued_mail): New callback function for
sending queued mail
(send_receieve_mail): New callback for Send & Receieve that
basically just calls send_queued_mail and then fetch_mail
* mail-ops.c (cleanup_send_mail): Mod to be able to handle a NULL
composer window
(setup_send_mail): Modified to handle a NULL composer widget
(mail_do_send_queue): New convenience async function to send all
messages in a folder (aka all messages in a queue)
2000-09-02 Jeffrey Stedfast <fejj@helixcode.com>
* mail-tools.c (mail_tool_move_folder_contents): Since POP3
doesn't implement get_message_info, we need to check for info to
be NULL. In this case, we need to make our own info structure to
pass to append_message and then remember to free it
afterward. Should we even bother with get_message_info? And if so,
should we then implement get_message_info for POP3?
2000-09-02 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser.c (etable_key): Make the `Home' key to move to
the beginning of the list and `End' to the end of it, using
`message_list_home()' and `message_list_end()'.
* message-list.c (message_list_home): New.
(message_list_end): New.
* folder-browser.c (folder_browser_new): Don't ref the shell here.
(folder_browser_destroy): Don't unref the shell. Instead,
`CORBA_free()' the object reference.
* folder-browser-factory.c (control_activate): Bind "Open in New
Window" to `Ctrl-O'.
2000-09-02 Lauris Kaplinski <lauris@helixcode.com>
* mail-config-gui.c: Use e_utf8 wrappers
* main.c (main): Do e_unicode_init, so we are not confusing
libunicode
2000-09-01 Christopher James Lahey <clahey@helixcode.com>
* folder-browser.c: Removed a warning.
2000-09-01 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (compose_msg): Attach a callback to the
postpone signal
(send_to_url): Same
(mail_reply): Same
(forward_msg): Same
(composer_postpone_cb): Callback function for the postpone signal
* mail-ops.c (mail_do_setup_outbox): New convenience function to
load the Outbox folder
(mail_do_setup_sentbox): Same, but for Sentbox.
(do_send_mail): Now saves messages in Sentbox if sent successfully
(mail_do_append_mail): New convenience async function for
appending messages to a folder
* component-factory.c: Added outbox_folder and sent_folder
(owner_set_cb): Call our new convenience functions to load Outbox
and Sentbox
2000-09-01 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (cleanup_scan_subfolders): Update for the extra arg
needed by `evolution_storage_new_folder()'.
* mail-vfolder.c (vfolder_refresh): Likewise.
2000-08-31 Peter Williams <peterw@helixcode.com>
* folder-browser.c (folder_browser_new): Don't ref the shell:
causes a race upon exit.
(folder_browser_destroy): Don't unref it.
* mail-config-gui.c (service_page_item_new): Add a checkbutton
"use default port" to make life simple.
(service_page_get_url): Honor use_default_port.
(service_page_set_url): Set use_default_port based on the input
URL.
(toggle_port): New function, sets the sensitivity of the
port entry based on "use default port"
(config_do_query_authtypes): Make this asynchronous, as it
may involve connecting to a server.
(service_page_detect): Call the async auth querier.
(service_page_item_new): Put the authentication stuff in if
the url_flags have URL_ALLOW_AUTH. Call the async auth querier
to get the info.
2000-08-30 Ettore Perazzoli <ettore@helixcode.com>
* mail-view.c (mail_view_create): Make the HTML widget grab the
focus.
2000-08-30 Peter Williams <peterw@helixcode.com>
* mail-config-gui.c (do_test_service): Explicitly connect to
the service again.
* component-factory.c (mail_load_storages): Now that
camel_service_get_provider exists, use it to make this function
much simpler.
2000-08-29 Peter Williams <peterw@helixcode.com>
* folder-browser.c (folder_browser_new): Ref the Evolution_Shell.
Is this correct, or is it a circular reference?
2000-08-29 Dan Winship <danw@helixcode.com>
* mail-ops.c (mail_do_send_mail): Update this and related
functions to no longer take a From address. (The composer deals
with it itself now.)
(do_send_mail): Add the Evolution version back to the X-Mailer
header (this change got lost in the thread migration).
* mail-callbacks.c (composer_send_cb): Don't re-fetch the From
address. It's set by the composer now. Don't free the
post_send_data from here.
(mail_reply): Attach to the composer's destroy signal to free the
psd. (The current code would free it more than once if an error
occurred while trying to send the first time.)
2000-08-28 Peter Williams <peterw@helixcode.com>
* mail-config-gui.c (mail_config_apply_clicked): Add new news sources,
not only stores.
2000-08-28 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_send_cb): Free the from address when
we're done with it. Also, e_msg_composer_hdrs_get_from returns
alloc'd memory so don't strdup it.
2000-08-28 Peter Williams <peterw@helixcode.com>
* mail-ops.c (do_transfer_messages): Add status messages.
(do_flag_messages): Same.
(do_scan_subfolders): Same.
(do_forward_messages): Same.
(do_view_messages): Same.
2000-08-28 Ettore Perazzoli <ettore@helixcode.com>
* mail-view.c (mail_view_create): Use `gnome_app_set_toolbar()'
the easy way instead of doing things manually with `GnomeDock' and
`gnome_app_add_toolbar()'.
(MINIMUM_WIDTH): New #define.
(MINIMUM_HEIGHT): New #define.
(view_size_allocate_cb): New, callback for the "size_allocate"
signal of the mail view. It saves the last allocation in a static
`last_allocation' variable.
(mail_view_create): Connect it.
(set_default_size): New function. Set the default width/height to
the last allocation width/height; if the width/height is less than
the `MINIUM_WIDTH' or `MINIMUM_HEIGHT', use that value instead.
* mail-tools.c (mail_tool_move_folder_contents): Show `i + 1', not
`i', so that we correctlly start counting from one instead of zero.
2000-08-28 Peter Williams <peterw@helixcode.com>
* *.c: s,mail_dialog_run,gnome_dialog_run,g.
* main.c (main): Since only the main thread is dealing with GTK+,
free the GDK threads mutex and never worry about locking again.
2000-08-28 Jeffrey Stedfast <fejj@helixcode.com>
* mail-crypto.c (mail_crypto_openpgp_encrypt): Fix to prevent
possible buffer overflows and a logic fix.
2000-08-27 Jeffrey Stedfast <fejj@helixcode.com>
* mail-crypto.c (mail_crypto_openpgp_clearsign): New crypto
function to clearsign plaintext
2000-08-27 Ariel Rios <ariel@arcavia.com>
* folder-browser-factory.c (control_activate): Added bonobo menu
handler for mark_all_deleted function.
* mail.h: (mark_all_deleted): Added prototype.
* mail-callbacks.c (mark_all_deleted): Added callback for marking
all displayed messages in a folder as deleted.
2000-08-26 Ettore Perazzoli <ettore@helixcode.com>
* mail-view.c (mail_view_create): Use
`gtk_window_set_default_size' on the toplevel instead of
`gtk_widget_set_usize()', and make the default size smaller.
2000-08-25 Christopher James Lahey <clahey@helixcode.com>
* mail-crypto.c: Fixed an uninitialized variable.
2000-08-26 JP Rosevear <jpr@helixcode.com>
* evolution-mail.gnorba: Kill
* Makefile.am: Remove gnorba related stuff
2000-08-25 Peter Williams <peterw@helixcode.com>
* mail-config-gui.c (service_page_item_new): If the service wants
a host, also let the user specify a port.
(MailDialogServicePageItem): Add members for the port GtkEntry and
the default port.
(service_page_get_url): Translate the port in the entry back into
the CamelURL.
(service_page_set_url): Read in the port from the URL or use
the default.
2000-08-25 Jeffrey Stedfast <fejj@helixcode.com>
* mail-crypto.c (mail_crypto_openpgp_encrypt): Implemented PGP 2.x
encryption. We only need to get the passphrase if we plan to sign
the text, otherwise we don't need to worry about getting the
passphrase.
2000-08-24 Lauris Kaplinski <lauris@helixcode.com>
* folder-browser.c: Use e_utf8 wrappers
* mail-config-gui.c: Use e_utf8 wrappers
2000-08-24 Peter Williams <peterw@helixcode.com>
* folder-browser-factory.c (control_activate): Add all the
functions from message-list.c's popup menu to the main
menu as well
* message-list.c (vfolder_subject): These functions become
public.
* mail-callbacks.c (mark_all_seen): Don't call camel_folder_get_uids
here. IMAP, for example, will try to communicate with the IMAP
server during that call.
* mail-ops.c (cleanup_fetch_mail): Tell the user
which URL has no new mail, as they may be checking
more than one source.
(mail_do_flag_all_messages): New function. Flags all of
the messages in a folder. Something of a hack. This merely
extends the flag_messages operation; it doesn't implement
a new one.
(do_flag_messages et al): Fetch the uids if we need to;
use camel_folder_free_uids if necessary, etc.
* mail-tools.c (mail_tool_move_folder_contents): Add
messages to tell the user what's going on.
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* folder-browser-factory.c: Fixed some warnings in the uihandler
code.
2000-08-24 Peter Williams <peterw@helixcode.com>
* component-factory.c (mail_load_storages): New function.
Loads a list of URI's as mail storages, and inserts them
into the shell's folder tree if appropriate (really, only
puts them into the folder tree.)
(mail_add_new_storage): Insert a storage into the folder
tree. Not always appropriate (eg, /var/spool/mail/user is
a storage that shouldn't be in the folder tree.)
(create_view): Generate the Evolution_Shell and pass it
to folder_browser_factor_new_control so that its member
'shell' can be set.
(owner_set_cb): Instead of create_news_storage and
creating the imap storages, load the news storages and
mail storages via mail_load_storages().
* folder-browser-factory.c (control_activate): Change to
use providers_config again instead of mail_config. Pass
the folderbrowser so that the config code knows where
to insert the new storages if any are created. Pass
forget_passwords the folderbriwser, too, for good luck.
(folder_browser_factory_new_control): Take a new parameter,
the Evolution_Shell that we belong to. The field in
FolderBrowser has been there but was never getting set by
anything, and we need this to be able to insert new storages
into the shell's folder list.
* folder-browser.c (folder_browser_new): Accept the
new Evolution_Shell parameter. Set it. (Should we
ref it or something?)
* mail-config-gui.c (struct MailDruidDialog): Store an
Evolution_Shell. With this we can insert the stores into
the shell's folder list.
(struct MailDialog): Same.
(service_page_item_changed): Close a leak.
(identity_dialog): Unswitch the Add/Edit identity titles.
(news_dialog): Analogous to above.
(mail_druid_finish): Add the new mail source to the shell
view.
(mail_config_druid): Take a new Evolution_Shell parameter
for later use.
(mail_config_apply_clicked): Add all the mail sources to
the shell view.
(mail_config): Take a new Evolution_Shell parameter.
* mail-callbacks.c (check_configured): Accept a FolderBrowser
so that we know where to put the new storages if any are
created. Almost all the callbacks are passed a FB * anyway
so this isn't a big deal.
(check_send_configuration): Make sure that we're configured
enough to be able to send mail. composer_send_cb() used to
do this, but it would need a FolderBrowser *, and there are
too many entry points to composer_send_cb to make this
feasible.
(fetch_mail): Pass the extra parm to check_configured().
(free_psd): Move so that composer_send_cb can call this
directly.
(composer_send_cb): Don't check for proper configuration
here -- it is the caller's responsiblity to call
check_send_configuration(). Call free_psd() directly.
(compose_msg): Call check_send_configuration().
(send_to_url): Same. This is called from mail-display.c,
though, and cannot reasonably be passed a FB. So: we can't
start up the config dialog directly; the user must do it
manually. Oh well.
(mail_reply): Same as above.
(forward_msg): Same as compose_msg().
(edit_msg): Same as above.
(providers_config): Reenable so that we can pass mail_config
its FolderBrowser.
* mail-display.c (write_data_to_file): Use the much more
straightforward run_and_close to retrieve the user's answer,
instead of the reply callback stuff.
* mail-threads.c (mail_dialog_run): New wrapper for
gnome_dialog_run that will take care of the GDK lock correctly.
Far far more complicated than it should be.
(mail_dialog_run_and_close): Analogous to above.
(read_msg): Set inside_read_msg and unset it for the benefit
of the two above functions. Don't bracket ourselves in
GDK_THREADS_ENTER/_LEAVE anymore.
(mail_operation_queue): Use mail_dialog_run_and_close.
(show_error): As above.
(get_password): As above.
* mail-display.c (write_data_to_file): This has the only
exception to the rule that "use mail_dialog_run(_and_close)
instead of the gnome equivalent always." Not quite sure why
it doesn't work here (the file selection window?).
* mail-config-gui.c (identity_dialog): Change to
mail_dialog_run_and_close.
(source_dialog): Same as above.
(news_dialog): Same as above.
(cleanup_test_service): Same as above.
(mail_config): Change to mail_dialog_run().
* session.c (mail_request_dialog): Change to
mail_dialog_run_and_close.
* mail-tools.c (mail_tool_uri_to_folder_noex): As above.
* mail-ops.c (cleanup_fetch_mail): As above.
* mail-local.c (local_reconfigure_folder): As above.
* mail-callbacks.c (check_send_configuration): As above.
(ask_confirm_for_empty_subject): As above.
(edit_msg): As above.
(filter_edit): As above.
2000-08-23 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (control_activate): Reformat a bit,
make "Folder" appear before "Message", fill in the Message menu
more.
2000-08-23 Peter Williams <peterw@helixcode.com>
* mail-ops.c (describe_fetch_mail): Don't use the camel calls
to describe the operation.
2000-08-22 Peter Williams <peterw@helixcode.com>
* mail-tools.c (mail_tool_get_folder_from_urlname): Don't connect
to the service explicitly.
(mail_tool_send_via_transport): Don't connect to the transport
explicitly.
(mail_tool_get_root_of_store): Same.
* mail-config-gui.c (do_test_service): Just try camel_session_get_service,
which will now connect for us.
* message-thread.h: Add a note about *next being the first member
of struct _container... if it isn't, everything goes Very Wrong.
* message-thread.c (free_container): Extra debug print.
(remove_node): Handle the case of empty containers holding the child
that we're interested in.
(thread_messages_free): Extra debug print.
2000-08-20 Jeremy Wise <jwise@pathwaynet.com>
* folder-browser.c: (fb_resize_cb) Added function to monitor resize
of the e_paned in the main view.
2000-08-18 Peter Williams <peterw@helixcode.com>
* mail-tools.c (mail_tool_filter_contents_into): Fix a race. filter_driver_run is an
async operation so it won't even be started by the time we sync the folders and check
for the movemailbox to be emtpy. Thus the empty check for the movemail would fail
99% of the time.
* mail-callbacks.c (run_filter_ondemand): Pass he new argument to the ever-mushrooming
filter_driver_run.
2000-08-17 Peter Williams <peterw@helixcode.com>
* folder-browser-factory.c (control_activate): Fix menu item names.
(register_ondemand): Put the ondemand hooks into the new folder menu.
2000-08-17 Ettore Perazzoli <ettore@helixcode.com>
* mail-vfolder.c (vfolder_gui_add_rule): Use stock OK/Cancel
buttons and add i18n support.
* folder-browser-factory.c (control_activate): Changed menu item
label from "Mark all messages seen" to "Mark All Messages as
Read". Changed capitalization of some other menu items.
(control_activate): Put the message- and folder- related menu
items in new "Message" and "Folder" subtrees which are created in
the `<Component Placeholder>' item created by the shell.
(control_deactivate): Updated accordingly.
(control_activate): Put the filter and vfolder editors, the mail
configuration and the "forget password" command into the
"settings" menu.
(control_deactivate): Updated accordingly.
* mail-config-gui.c (transport_page_new): Add translation mark.
(service_page_new): Show the menu items before appending them.
(service_page_item_new): Use `GTK_FILL' for the "Detect supported
types..." button.
* local-config.glade: Change the apply button into an ok button.
2000-08-17 Peter Williams <peterw@helixcode.com>
Implement filtering on demand.
* folder-browser-factory.c (register_ondemand): New function. Callback
to put the filter-on-demand filters into the bonobo UIH;
(create_ondemand_hooks): New function. Read in our on-demand filters
and hook them into the UI.
(remove_ondemand_hooks): New function. Remove the hooks when done with
them.
(control_activate): Call create_ondemand_hooks()
(control_deactivate): Call remove_ondemand_hooks();
* mail-callbacks.c (run_filter_ondemand): New function. Callback
for running a filter on demand.
(filter_edit): Pass NULLs as the new arguments to rule_context_load.
* mail.h: Prototype run_filter_ondemand();
* folder-browser.c (oc_destroy): New function. Iterator to destroy
an fb_ondemand_closure.
(folder_browser_destroy): Free the data associated with the ondemand
menu items.
(my_folder_browser_init): Clear the filter_ variables.
* folder-browser.h: Two new members of FolderBrowser: filter_menu_paths,
a list of fb_ondemand_closures so that the menu items can be freed and
removed; and filter_context, a permanently loaded FilterContext for
running the ondemand filters. Prototype the new fb_ondemand_closure
structure.
* mail-autofilter.c (filter_gui_add_from_message): Pass NULLs as the
new parameters to rule_context_load (we don't need to hook up ondemand
menu items...)
* mail-tools.c (mail_tool_filter_get_folder_func): Rename from
get_folder_func() and make public so mail-callbacks.c:run_filter_ondemand()
can use it too.
(mail_tool_filter_contents_into): Use the new name of get_folder_func.
Pass NULLs as the extra arguments to rule_context_load. Pass the
extra source type to filter_driver_run (only use INCOMING).
* mail-tools.h: Publicly prototype mail_tool_filter_get_folder_func()
* mail-vfolder.c (vfolder_create_storage): Pass NULLs as the extra
arguments to rule_context_load.
* message-list.c (message_list_init): Free our strdup'd uids when
the table model gets destroyed.
(nuke_uids): New function. Walk the tree nodes to free the uids.
(nuke_uids_cb): New callback for nuke_uids();
2000-08-16 Richard Hult <rhult@hem.passagen.se>
* mail-ops.c (cleanup_display_message): Use a configurable timeout.
* mail-config.c (mail_config_set_mark_as_seen_timeout): New function
for the settable mark-as-seen timeout.
(mail_config_mark_as_seen_timeout): Likewise.
(mail_config_write): Write the timeout setting.
(config_read): Read timeout setting.
* mail-config-gui.c (mail_config): Add option for the settable
mark-as-seen timeout.
(mail_config_apply_clicked): Likewise.
(timeout_changed): New function for the timeout setting.
2000-08-16 Peter Williams <peterw@helixcode.com>
* message-thread.c (walk_containers): More (default disabled)
mem debugging here. Fix the big leaks.
* mail-format.c (get_url_for_icon): Copy the url_path so that
it can't get freed under us.
* mail-threads.c (mail_operation_queue): Fix a leak.
* mail-ops.c (mail_do_display_message): Fix another leak.
* message-list.c (message_list_destroy): Remove the seen_id timeout
if necessary.
* mail-local.c (mail_tool_local_uri_to_folder): Fix a leak.
* session.c (auth_callback): Fix a leak. Almost seems as if
I've been using Purify...
2000-08-15 Peter Williams <peterw@helixcode.com>
* message-thread.c (alloc_container): Add support for debugging
container allocations -- currently disabled. Make sure that
the g_strfreev works.
* message-list.c (main_message_changed): Address bug #496 --
possible race when forwading a message_changed event.
* mail-threads.c (dispatch): Close the dispatch thread's half of
pipes when about to exit.
(mail_operations_terminate): Close the main thread's half of the
pipes when about to exit.
(all): Add i18n support.
* mail-tools.c (all): Add i18n support.
* mail-ops.c (transfer_messages): Generalize move_messages into
transfer_messages so that we can copy too.
(all): Add i18n supprt where appropriate.
* mail-ops.h: Prototype the new mail_do_transfer_messages.
* folder-browser-factory.c: Add a UI hook for copy_msg.
* mail-callbacks.c (transfer_msg): Generalize move so that it supports
copy as well, and add a callback 'copy_msg'.
* message-list.c (on_right_click): Add a right-click hook for Copy Message.
* session.c (mail_request_dialog): Don't deadlock when in main thread.
2000-08-14 Peter Williams <peterw@helixcode.com>
* mail-threads.c (show_error): Fix the error dialogs.
(read_msg): Re-enable them.
* mail-ops.c (do_scan_subfolders): Silence a compile warning.
2000-08-13 Jeffrey Stedfast <fejj@helixcode.com>
* mail-crypto.c (mail_crypto_openpgp_encrypt): Added support for
encrypting via PGP 5.0
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (cleanup_create_folder): Release the listener object
with `CORBA_Object_release()', not `CORBA_free()'.
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* main.c (main): Set the signal handlers for `SIGSEGV' and
`SIGBUS' to the default ones.
2000-08-13 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (mail_config_write): Set config->configured to
TRUE
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* mail-config-gui.c (mail_config_druid): Don't
`GDK_THREADS_ENTER()'/`GDK_THREADS_LEAVE()'.
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* mail-threads.c (update_active_views): Just iterate through all
the controls, not just the active ones.
* folder-browser-factory.c: Don't keep track of active controls.
Rather, keep track of all of them.
(folder_browser_factory_get_active_control_list): Removed.
(folder_browser_factory_get_control_list): New.
2000-08-13 Dan Winship <danw@helixcode.com>
* Makefile.am (evolution_mail_SOURCES): add mail-local.h
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* mail-threads.c (read_msg): For now, don't do anything about
errors.
2000-08-13 Dan Winship <danw@helixcode.com>
* mail-format.c (add_url): Fix some freed-memory references
* mail-threads.c (get_password): Don't free the prompt. It
doesn't belong to you.
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (mail_do_create_folder): Duplicate the listener
object.
(cleanup_create_folder): Free the listener.
2000-08-13 Jeffrey Stedfast <fejj@helixcode.com>
* mail-threads.c (get_password): Don't wrap the gnome_dialog_run
in GDK_THREADS_ENTER/LEAVE
2000-08-13 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c (control_destroy_cb): Remove the
control from the active control list, if it's there.
* mail.h (folder_browser_factory_new_control): Removed prototype.
(folder_browser_factory_init): Removed prototype.
* folder-browser-factory.h: New.
* folder-browser-factory.c: New static variable `active_controls',
list of the currently active controls.
(control_activate): Add the control to it.
(control_deactivate): Remove the control from it.
(folder_browser_factory_get_active_control_list): New.
* mail-threads.c (mail_operations_get_status): New function.
* folder-browser.c (folder_browser_gui_init): Add i18n support for
the labels.
[The following is actually from a patch by Peter Williams
<peterw@helixcode.com>.]
* Removed types `PERCENTAGE', `HIDE_PBAR', `SHOW_PBAR'. New
struct `block_info_s'. Removed all the code to create and destroy
the progress window.
2000-08-13 Jeffrey Stedfast <fejj@helixcode.com>
* component-factory.c (create_news_storage): Updated to reflect
changes to mail_do_scan_subfolders
(create_imap_storage): Same.
* mail-ops.c (mail_do_scan_subfolders): No longer takes an
add_INBOX argument
2000-08-13 Dan Winship <danw@helixcode.com>
* mail-ops.c (do_scan_subfolders): Lose a reference to the store
on purpose. To be fixed later.
2000-08-12 Dan Winship <danw@helixcode.com>
* component-factory.c (create_imap_storage): Take the source as a
command-line argument rather than fetching it from mail-config.
(owner_set_cb): Call create_imap_storage on each configured IMAP
store.
* mail-format.c (decode_pgp): Redo this so that the lock icon
remains active after a failed decryption so you can click on it
and try again.
(try_inline_pgp, handle_multipart_encrypted): Put a border around
the decrypted data.
* message-list.c (cleanup_regenerate_messagelist): Don't clear the
tree here. If two "folder_changed"s arrive in close succession,
then one possible ordering of events is
cleanup_regenerate_messagelist, cleanup_regenerate_messagelist,
cleanup_thread_messages, cleanup_thread_messages. Which would
result in the message list being filled in twice without being
cleared in between. So don't clear it until the rebuilding
function itself is called.
(clear_tree): New function to empty out the ETreeModel in the
message list.
(build_tree): Change to simpler interface. Call clear_tree.
(build_subtree): Does most of the work of the old build_tree
(build_flat): Remove unused arg. Call clear_tree.
* message-thread.c (cleanup_thread_messages): Update for
build_tree interface change.
* mail-ops.c (do_send_mail): Don't leak the transport.
* mail-tools.c (mail_tool_get_folder_from_urlname): Don't ref the
store returned from camel_session_get_store. It's already reffed.
(mail_tool_get_root_of_store): Ditto.
(mail_tool_send_via_transport): Remove some commented-out code and
fix it to not leave the transport connected if sending fails.
* mail-callbacks.c (delete_msg): Toggling a flag is an
"instantaneous" operation, so if we're only doing one, just do it
and return, rather than queueing it for the other thread. This
makes the "Delete" key work correctly (move to the next message)
again.
* mail-identify.c: Remove workaround for gnome-vfs 0.2 bug.
* mail-format.c (lookup_handler): Remove workaround for function
introduced between gnome-vfs 0.2 and 0.3, since we depend on 0.3
now.
2000-08-12 Michael Meeks <michael@helixcode.com>
* main.c (main): kill using_oaf assertion.
2000-08-11 Peter Williams <peterw@helixcode.com>
* Makefile.am: Make it so that test-mail links
2000-08-11 JP Rosevear <jpr@helixcode.com>
* folder-browser-factory.c (control_activate): Move menu items
that affect a single message together, ditto with ones that
affect multiple messages, put a separator in.
2000-08-11 Christopher James Lahey <clahey@helixcode.com>
* mail-format.c, mail-tools.h, message-list.c: Fixed a warning.
2000-08-11 Dan Winship <danw@helixcode.com>
* mail-display.c, mail-format.c: Redo this again. Get rid of
struct mail_format_data and move most of that info into
MailDisplay itself, and pass the MailDisplay around. Add a GData**
to MailDisplay, and put the urls hash table into that. Also add
the ability to redisplay the currently-displayed message (with the
same GData**), and add a "show_pgp" datum to it that controls
whether or not to decrypt PGP messages, and redo the PGP stuff
(again) to take that into account. Now you don't get the annoying
PGP password dialog box without any warning.
2000-08-11 Peter Williams <peterw@helixcode.com>
* mail-config-gui.c (service_acceptable): Make verify-service
an asynchronous operation.
* Makefile.am (noinst_PROGRAMS): Don't build test-thread
while mail-threads.c is in flux.
* mail-threads.c (mail_operation_queue): Make the error
and query dialogs modal.
* mail-local.c (update_progress): Don't use the
temporarily-disabled mail_op_set_percentage().
2000-08-11 Chris Toshok <toshok@helixcode.com>
* mail-config.c (mail_config_get_default_news): use config->news
instead of config->sources.
2000-08-11 Dan Winship <danw@helixcode.com>
* mail-format.c (destroy_part): Update this for CamelObject
(try_inline_pgp): Deal with decrypting here rather than trying to
pawn the data off to handle_multipart_encrypted, since it most
likely won't be correct (won't have the proper MIME headers inside
the encrypted part).
(handle_multipart_encrypted): Add code from Nathan Thompson-Amato
to re-MIME-parse the decrypted data after decrypting.
* mail-crypto.c (mail_crypto_openpgp_{de,en}crypt): Get the
password here rather than having it passed in. Remove some dead
code.
* session.c (mail_request_dialog): Allow this to work in either a
sync or an async context.
2000-08-11 Peter Williams <peterw@helixcode.com>
* mail-tools.c (mail_tool_fetch_mail_into_searchable): Don't
do the imap check here... it's a silly place.
* mail-ops.c (do_fetch_mail): Do the imap check here.
2000-08-11 JP Rosevear <jpr@helixcode.com>
* mail-config-gui.c (service_page_new): Work around
gtk option menu bug.
(service_page_item_auth_fill): ditto
2000-08-11 Peter Williams <peterw@helixcode.com>
* mail-threads.c (read_msg): Fix the new FORWARD_EVENT handler
(didn't free msg, didn't write newline in the debug)
* mail-local.c (local_reconfigure_folder): Make the dialog
modal.
* mail-callbacks.c (select_first_unread): Fix some warnings.
* mail-threads.c (mail_op_forward_event): New function that
writes a FORWARD_EVENT signal to the compipe, to allow Camel
events to be handled in the main thread.
(read_msg): Handle a FORWARD_EVENT.
* mail-callbacks.c (select_first_unread): Forward the
event into the main thread to prevent the GTK calls in the
dispatcher thread.
(main_select_first_unread): New name of old select_first_unread.
* message-list.c (folder_changed): Same as above.
(main_folder_changed): Same as above.
(message_changed): Same as above.
(main_message_changed): Same as above.
* mail-format.c (free_byte_array): Note about using
mail_op_forward_event. (cmm_destroyed): Same.
2000-08-11 Dan Winship <danw@helixcode.com>
* message-list.c (message_list_select): If the caller passes "-1"
for the model row, translate that to view row 0.
* message-list.c (idle_select_row):
* mail-callbacks.c (select_first_unread): Use new
message_list_select kludge^H^H^H^H^H^Hfeature
2000-08-11 JP Rosevear <jpr@helixcode.com>
* mail-config-gui.c (source_dialog): Allow the window
to be growable
* mail-config.c: use void in empty declarations
2000-08-11 Peter Williams <peterw@helixcode.com>
* mail-config.c (mail_config_get_news): Change () to (void)
if a function takes no arguments.
* mail-config.h: Prototype mail_config_get_{sources,news}x
2000-08-11 JP Rosevear <jpr@helixcode.com>
* mail-config-gui.c (identity_dialog): iddialog, not sdialog
(news_edit_clicked): Kill leftover c-p crud
2000-08-11 JP Rosevear <jpr@helixcode.com>
* mail-config-gui.c (news_edit_clicked): Check nrow, not srow.
2000-08-11 JP Rosevear <jpr@helixcode.com>
* mail-config-gui.c (service_acceptable): Use camel_object_unref
instead of gtk_object_unref
(mail_druid_finish): Use new config accessors
(mail_config_druid): No need to call config functions
(news_add_clicked): Increments maxnrow, not maxsrow
(mail_config_apply_clicked): Use new config accessors
(mail_config): ditto
* component-factory.c (create_imap_storage): Use new
config accessors
(create_news_storage): ditto
* mail-config.glade: Set news clist name correctly
* mail-config.c (config_read): Rename from mail_config_read and
made private - no one should need to do a read manually.
(mail_config_set_send_html): New accessor
(mail_config_add_identity): ditto
(mail_config_get_sources): ditto
(mail_config_add_source): ditto
(mail_config_get_default_news): ditto
(mail_config_get_news): ditto
(mail_config_add_news): ditto
* mail-config.h: Prototype new accessors. Config struct is now
in mail-config.c and hidden from the world.
2000-08-11 Dan Winship <danw@helixcode.com>
* mail-ops.c (describe_fetch_mail): Use camel_service_get_name
rather than showing the URL to the user.
2000-08-11 Peter Williams <peterw@helixcode.com>
* mail-ops.c (do_refile_messages): Freeze the folders while moving.
(do_flag_messages): Same.
* mail-threads.c (get_password_clicked): Fix the case when the
user /doesn't/ use escape to cancel the dialog :-/
(show_error_clicked): Same.
2000-08-11 Dan Winship <danw@helixcode.com>
* mail-tools.c (mail_tool_get_folder_name): Add a function to
return a useful name for a folder (not just "mbox" or "mh" for
any local folder.)
* mail-ops.c: Use mail_tool_get_folder_name rather than
folder->full_name when printing folder names.
2000-08-11 Not Zed <NotZed@HelixCode.com>
* mail-tools.c (mail_tool_get_local_inbox_url): Properly handle
different local file formats. The folder isn't always mbox.
(mail_tool_do_movemail): Movemail always uses an mbox format
however.
(mail_tool_get_local_movemail_url): What is the mbox url, it is
always the same type, mbox.
(mail_tool_fetch_mail_into_searchable): Same here.
* mail-local.c (mail_local_map_uri): Map a local uri to the real uri.
2000-08-10 Christopher James Lahey <clahey@helixcode.com>
* folder-browser-factory.c, message-list.c, message-thread.c,
session.c: Fixed some warnings.
2000-08-10 Dan Winship <danw@helixcode.com>
* session.c (session_init): Don't call e_setup_base_dir. It was
wrong and it doesn't exist any more.
* component-factory.c (owner_set_cb): Update for changed
prototype, and record the evolution_homedir. Move call to
mail_config_init here from session.c so it happens after
evolution_dir is initialized.
* mail.h: define "extern char *evolution_dir;" (formerly in
e-util/e-setup.h)
* component-factory.c, mail-callbacks.c, mail-config-gui.c,
mail-config.c, mail-display.c, mail-format.c, mail-ops.c,
mail-tools.c, session.c: Remove "e-util/e-setup.h" include.
2000-08-10 Peter Williams <peterw@helixcode.com>
* test-thread.c (queue_ops): Use mail_operations_terminate() to
close the other thread nicely.
* mail-threads.c (get_password_deleted): Handle the "close" event
as a cancel.
(show_error): Same.
2000-08-10 Dan Winship <danw@helixcode.com>
* mail-tools.c (mail_tool_get_folder_from_urlname): Add a
"gboolean create" argument to pass to camel_store_get_folder.
* mail-ops.c (do_create_folder, do_setup_draftbox):
* mail-local.c (mail_tool_local_uri_to_folder):
* mail-vfolder.c (vfolder_uri_to_folder): Add create flag to
mail_tool_get_folder_from_urlname calls.
2000-08-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_send_cb): Fix compile warning by
casting the object to a CamelObject
2000-08-10 Peter Williams <peterw@helixcode.com>
* mail-tools.c (mail_tool_filter_contents_into): Delete the source
folder if told to and if it's empty
(mail_tool_get_local_movemail_path): New function.
2000-08-10 Dan Winship <danw@helixcode.com>
* mail-callbacks.c (reply_to_all): Fix a bug in the async changes.
(This was identical to reply_to_sender.)
2000-08-10 Not Zed <NotZed@HelixCode.com>
* mail-local.c (do_local_reconfigure_folder): Update for
append_message api change.
* message-list.c (message_list_regenerate): Change for search api
change.
(ml_tree_value_at): Add a colour column, based on the colour
assigned in the summary.
(message_list_init_renderers): Init colour column.
2000-08-09 Peter Williams <peterw@helixcode.com>
* mail-display.c (part_for_url): Remove a gtk_object_get_data
2000-08-09 Cody Russell <bratsche@gnome.org>
* folder-browser-factory.c, mail-view.c: Make the toolbars
honor the user's gnomecc settings for detachable toolbars.
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (composer_send_cb): Get the from address set in the
composer, if that fails ONLY THEN get the default from mail config
* mail-config.c (mail_config_get_identities): New convenience
function for getting a list of the configured identities
2000-08-09 Dan Winship <danw@helixcode.com>
* mail-display.c (on_object_requested): Support controls as well
as embeddables.
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-view.c (mail_view_create): Changed to only take a
FolderBrowser argument
* mail-ops.c (real_view_msg): Create a new FolderBrowser for each
message being opened in a new window. Also set the
message_list->cursor_uid and mail_display->current_message to the
appropriate values.
(real_view_msg): Updated to reflect changes in the mail_view_create
* message-list.c (on_right_click): Nicify a little, add in a menu
separator between VFolder and Filter stuff.
* mail-ops.c (real_view_msg): Set the UID of the message that is
being displayed
2000-08-09 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c (control_activate): Use
`GNOME_STOCK_MENU_*' things instead of `GNOME_STOCK_PIXMAP_*'
things, that are too big and look bad.
2000-08-09 Peter Williams <peterw@helixcode.com>
* mail-view.c (mail_view_create): Save the top window so that on_close
can find it [with set_data].
(on_close): Recover the top window.
* mail-threads.c (read_msg): Destroy the window instead of hiding it.
2000-08-09 Not Zed <NotZed@HelixCode.com>
* mail-autofilter.c (filter_gui_add_from_message): Helper function
to add with confirm.
(rule_match_recipients): Dont set real name if its empty for the
filter name.
(rule_match_subject): was cutting ] off mailing list names.
* message-list.c (on_right_click): Added menu to install
vfolders/filters from message.
2000-08-09 Not Zed <NotZed@HelixCode.com>
* mail-autofilter.c: New file to hold auto filter/vfolder stuff.
2000-08-09 Christopher James Lahey <clahey@helixcode.com>
* mail-display.c, mail-format.c, mail-ops.c: Fixed some warnings.
* message-list.c: Fix the call to e_popup_menu_run to match the
new signature.
2000-08-09 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c (control_activate): Create a "print
message" menu item.
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (message_list_init): Attached a double_click
signal handler
(on_double_click): Our lovely new double_click callback. Will
display the current selected message in a new window
2000-08-08 Jeremy Wise <jwise@pathwaynet.com>
* mail-config.[ch], folder-browser.c: Added configuration work to
save the size of the vpaned widget. It will be functional when the
e_paned widget emits a "resized" signal
2000-08-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.h: Added void as an argument to functions not
needing any parameters to avoid compile warnings.
2000-08-08 Jeremy Wise <jwise@pathwaynet.com>
* mail-config.[ch], main.c, folder-browser-factory.c: State of the
threaded list toggle is now saved via gnome_config
2000-08-08 Dan Winship <danw@helixcode.com>
* mail-config-gui.c (service_page_item_new): Attach a signal
handler to call the "changed" function when the user clicks the
"keep on server" checkbox.
2000-08-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (view_msg): New convenience function with params of a
normal Gtk callback function. We also now create a new
FolderBrowser object so that the message-view window isn't tied to
the display in the main window
(view_message): Now calls view_msg (this function is a bonobo
callback and can't be used with gtk widgets)
(edit_msg): Same idea as view_msg()
(edit_message): Again, same as view_message()
* message-list.c (on_right_click): Callback for creating an
e-popup-menu
(message_list_init): Added a right_click event to trigger a pop-up
menu to be displayed
2000-08-08 Dan Winship <danw@helixcode.com>
* mail-config-gui.c: Add "Don't delete messages from server"
button to remote SOURCEs that aren't STORAGEs (ie, POP).
(provider_list): Only list SOURCEs. (ie, not mh)
* mail-config.c: Save/load "keep_on_server" flag.
* mail-ops.c (fetch_remote_mail): New function, split out of
real_fetch_mail. Deals with copying mail from a remote server into
a temporary mbox, possibly using a CamelUIDCache to leave the
messages on the server.
* mail-crypto.c, mail-format.c, message-thread.c: Fix some
compiler warnings.
* mail-format.c (mail_generate_reply): Fix up format of addresses.
(write_headers): Use CamelAddress functions to simplify this.
2000-08-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-view.c: Lets get rid of the last separator in the toolbar
until we add n/p
2000-08-08 Ettore Perazzoli <ettore@helixcode.com>
* mail-threads.c (queue_window_delete_event_cb): Callback for
"delete_event", just doing nothing.
(create_queue_window): Connect it to the "delete_event" signal of
the progress dialog.
2000-08-08 Peter Williams <peterw@helixcode.com>
* mail-threads.c (remove_next_pending): Sanity check for
job queue, which seems to have some issues.
(read_msg): Make sure that the next operation isn't started
before the last one is cleaned up.
* mail-callbacks.c (fetch_mail): Fix erroneous free.
* mail-config-gui.c (mail_config_druid): Wrap the gtk_main call.
* mail-ops.c (do_flag_messages): Allow specification of whether
to set the flags unconditionally or toggle their current state.
* message-list.c (ml_tree_set_value_at): Toggle the seen status;
don't set it unconditionally.
* mail-callbacks.c (delete_msg): Toggle the deletion status;
don't set it unconditionally.
* mail-tools.c (mail_tool_do_movemail): Fix for undeclared tmpfd.
* mail-local.c (local_reconfigure_folder): Big rewrite; make into
an asynchronous operation. Use some mail tools to make life easy.
2000-08-08 Dan Winship <danw@helixcode.com>
* main.c (main): Move mail_config_init after session_init, since
it depends on evolution_dir being set.
2000-08-08 JP Rosevear <jpr@helixcode.com>
* mail-ops.c (check_configured): Use config accessors
(fetch_mail): ditto
(composer_send_cb): ditto
(create_msg_composer): ditto
* mail-config-gui.h: Update API
* mail-config.h: Update API
* mail-config.c: Add accessor functions
(mail_config_is_configured): accessor function
(mail_config_get_default_identity): ditto
(mail_config_get_default_source): ditto
(mail_config_get_transport): ditto
(mail_config_send_html): ditto
(identity_copy): Make public
(identity_destroy): ditto
(identity_destroy_each): ditto
(service_copy): ditto
(service_destroy): ditto
(service_destroy_each): ditto
(mail_config_init): Rename from init_config and make public
(mail_config_clear): Rename from clear_config and make public
(mail_config_read): Rename from read_config and make public
(mail_config_write): Reanme from write_config and make public
* main.c (main): Call mail_config_init.
* mail.h: Include mail-config-gui.h
* mail-config-gui.c: Move config gui stuff here.
(source_dialog): Kill memory leak from debug leftovers.
Make sure returned source is NULL by default
2000-08-07 Not Zed <NotZed@HelixCode.com>
* mail-local.c (local_reconfigure_folder): Redone to show a
dialogue first, and show progress of whats happening as its done.
* Makefile.am (glade_DATA): Added local-config.glade, for mailbox
reconfig dialogue.
2000-08-04 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (mail_uri_to_folder): Use local_uri_to_folder()
for local uri's (file://).
* mail-local.c (local_uri_to_folder): Handle looking up folder
storage type before opening the store/folder.
(local_reconfigure_folder): Function to reconfigure the format of
a local mailbox into another storage format.
* Makefile.am (evolution_mail_SOURCES): Added mail-local.c and
missing mail-vfolder.h.
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* Makefile.am: Added mail-view.c
* folder-browser-factory.c (control_activate): Adda menu item for
viewing the message
* mail-view.c: New file containing methods for viewing messages in
separate windows
* mail-ops.c (view_message): New callback for viewing messages in
a new window.
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* component-factory.c (real_create_generic_storage): New function
to replace real_create_imap_storage and real_create_news_storage
(create_imap_storage): Updated.
(create_news_storage): Updated.
2000-08-07 Peter Williams <peterw@helixcode.com>
* mail-ops.c (cleanup_edit_messages): New operation: edit_messages
For continuing draft messages.
(attach_messages): Fix accidental 0 datasize.
(do_setup_draftbox): New operation: setup_draftbox. Soooo hacky.
* mail-callbacks.c: Move fejj's edit message to the async home.
* component-factory.c (owner_set_cb): Use mail_do_setup_draftbox.
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-display.c:
* component-factory.c: s/strncasecmp/g_strncasecmp
* mail-format.c (write_headers): Get rid of kludge around subject
beginning with spaces.
(mail_generate_reply): Get rid of kludge around subject beginning
with spaces and also use g_strncasecmp instead of strncasecmp for
portability
* mail-ops.c (forward_msg): Get rid of kludges around subject
beginning with spaces.
2000-08-07 Dan Winship <danw@helixcode.com>
* message-list.c (message_list_select): Clarify that the input row
is a model row, and swap it to a view row when finding the
next/previous row.
(idle_select_row): Select view row 0, not model row 0.
* mail-ops.c (select_first_unread): Start from view row 0, not
model row 0.
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* mail-format.c (mail_get_message_body): Renamed from reply_body()
so other functions can use it
(mail_generate_reply): Updated to reflect function name changes
* mail-ops.c (real_edit_msg): Attach a callback to the send signal
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c (control_activate): New menu item under
Actions to allow editing of messages.
* mail-ops.c (edit_message): New function for editing messages.
* component-factory.c (owner_set_cb): Create a global reference to
the Drafts mbox folder for the Composer to use
2000-08-06 JP Rosevear <jpr@helixcode.com>
* mail-config.c (ndialog_page_undone): Desensitize ok button
(sdialog_page_undone): ditto
(iddialog_page_undone): ditto
(news_page_new): Typo - news, not mail
(transport_page_new): Typo - transport, not source
(identity_dialog): Set undone callback
(source_dialog): ditto
(news_dialog): ditto
(mail_druid_identity_undone): Desensitize next button and
mark done flag as false
(mail_druid_source_undone): ditto
(mail_druid_transport_undone): ditto
(mail_druid_identity_done): Mark done flag as true
(mail_druid_source_done): ditto
(mail_druid_transport_done): ditto
(mail_druid_prepare): Use done flag to set next button
sensitivity, fixes #467
2000-08-06 Jeffrey Stedfast <fejj@helixcode.com>
* mail-crypto.c (mail_crypto_openpgp_encrypt): Added support for
encrypting with GnuPG. Support for PGP5 and PGP2 are still in
progress.
2000-08-05 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (control_activate): Remove bonobo 0.15
vs 0.15-and-a-half ifdef, since we require post-0.16 now.
2000-08-04 Dan Winship <danw@helixcode.com>
* mail-threads.c (mail_operation_wait_for_finish): Don't use
"while (gtk_events_pending ()) gtk_main_iteration ();" inside
another tight loop, because it makes the thread spin rather than
blocking and waiting like it should.
2000-08-04 Peter Williams <peterw@helixcode.com>
* message-thread.c (do_thread_messages): Uninitialized variable
fix.
* mail-threads.c (read_msg): Small leak fix.
* component-factory.c (owner_unset_cb): Use mail_operations_
terminate() instead of wait_for_finish().
* mail-threads.c (mail_operation_queue): Centralize the clur
handling functions; fix a race condition where the dispatcher
would overwrite the closure before the main thread could
free the old one.
(mail_operations_terminate): New function, wait for ops to
finished and kill the other thread.
(dispatch): changes to die when terminate is called (abort
on NULL spec).
* mail-ops.c (cleanup_display_message): Fix improper handling
of displaying a NULL message (which means clear the message
display).
2000-08-04 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (message_list_regenerate): Free the GPtrArray
correctly instead of using `g_strfreev()'.
2000-08-04 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c (control_activate): release the ui_handler
after set_container.
2000-08-03 Michael Meeks <michael@helixcode.com>
* mail-config.c (identity_page_new): only whack the sig in if the
file exists.
* component-factory.c (factory_fn): count running instances,
attach destroy signal (factory_destroy): add.
* main.c (main): pass orb around.
2000-08-03 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (composer_send_cb): Yay, no more compiler warnings
* mail-config.c: set config = NULL
(provider_list) Eek! Initialize news to NULL! Also, use
g_slist_prepend() for "performance" gains ;-)
(init_config): Set the config member data to NULL just to be on
the safe side
(clear_config): Don't bother freeing slist data if the slist is
NULL
2000-08-03 Peter Williams <peterw@helixcode.com>
* mail-ops.c (op_forward_messages): Use the new dynamic
operation naming.
* message-thread.c (describe_thread_messages): Ditto.
* message-list.c (describe_regenerate_messagelist): Ditto.
* mail-threads.c (get_password_clicked): Dynamic generation
of descriptive text for mail operations. "Opening a folder" ->
"Opening INBOX". Supported only so far, will be implemented
quickly.
g_strdup() the old_message when changing the queue_window_label's
text.
* main.c (main): One more gconf reference to take out...
* mail-ops.c (composer_send_cb): Check for an identity before
sending.
2000-08-03 JP Rosevear <jpr@helixcode.com>
* mail-config.glade: Increase window size slightly, rename
"Transport" to "Mail Transport"
* mail-config.c (init_config): Remove gconf references
(clear_config): ditto
(read_config): ditto
(write_config): ditto
(mail_config): Null provider lists before filling them
(mail_config_druid): ditto
(identity_page_new): Increase spacing of vbox
(service_page_new): ditto
* Makefile.am: Remove gconf references.
2000-08-02 Dan Winship <danw@helixcode.com>
* mail-config.c (service_page_item_new): Make the "test settings"
button FILL rather than SHRINK so it doesn't end up oddly-placed.
* mail-config-druid.glade: Make the icon background dark blue
like the surrounding area.
2000-08-02 Peter Williams <peterw@helixcode.com>
* component-factory.c (owner_unset_cb): Wait for async operations
to finish before exiting.
2000-08-02 Christopher James Lahey <clahey@helixcode.com>
* mail-ops.c, message-list.c: Emit "model_pre_change" where
appropriate.
2000-08-02 Peter Williams <peterw@helixcode.com>
* mail-config.h: #ifdef _MAIL_CONFIG_H protect the header.
2000-08-01 Peter Williams <peterw@helixcode.com>
* mail-threads.c: Implement Solaris threads. Attempt
to join to the thread upon exit -- hopefully prevents
all those nasty zombie processes from popping up :-(
2000-08-01 Dan Winship <danw@helixcode.com>
* mail-crypto.c: New code to spawn off GPG/PGP to do stuff.
Currently only deals with decryption. From Nathan Thompson-Amato
<ndt@jps.net>, with bunches of changes from me.
* session.c (mail_request_dialog): Expose the password dialog to
the rest of the app (for use by the GPG/PGP code).
* mail-format.c (handle_text_plain): Handle special inline data
types. (Currently uuencoding, BinHex, and PGP encryption.) This is
not the best way to deal with it, but it works for now.
(try_inline_pgp): Convert an inline PGP-encrypted message into a
multipart/encrypted part.
(try_inline_binhex): Convert an inline BinHex attachment into an
application/mac-binhex40 part (which we currently don't deal
with...)
(try_uudecoding): Convert a uuencoded attachment to an
application/octet-stream part.
(handle_multipart_encrypted): Deal with RFC2015 MIME-encoded PGP
encrypted messages. (From ndt.)
* mail-display.c (mail_text_write, mail_error_write): New utility
functions.
* Makefile.am (evolution_mail_SOURCES): add mail-crypto.c
2000-07-31 Christopher James Lahey <clahey@helixcode.com>
* component-factory.c, folder-browser.c: Fixed some warnings.
* message-list.c: Made the icon column non sortable.
2000-07-31 Dan Winship <danw@helixcode.com>
* mail-config.c (service_page_set_url): Fix a NULL-pointer strcmp
noticed by peterw.
2000-07-31 Not Zed <NotZed@HelixCode.com>
* mail-vfolder.h: Header for vfolder functions.
* folder-browser.c (mail_uri_to_folder): Use new scheme to open
vfolders.
(search_save): New button/function to save a search as a vfolder.
* mail-vfolder.c (vfolder_edit): Made asynchronous.
(vfolder_uri_to_folder): New function for loading vfolders and
setting up their source folders.
(vfolder_refresh): Change shell vfolder uri's to indirect
references rather than the real vfolder uri.
(vfolder_gui_add_rule): Add a rule with user confirmation.
(vfolder_create_part): Get a new part by name, for creating rules
in code.
* message-thread.c (thread_messages): Check for uid lookup
failure, which indicates an error in the folder or calling code.
2000-07-29 Not Zed <NotZed@HelixCode.com>
* component-factory.c (create_view): Remove hack to pass the
storage around.
* folder-browser-factory.c (control_activate): Changed to call
renamed vfolder editor.
* mail-ops.c (vfolder_edit_vfolders): renamed from vfolder_edit,
call new edit function.
(vfolder_editor_clicked): Removed.
(filter_druid_clicked):
(filter_edit): Updated for api change.
(real_fetch_mail): Fixed up for api change and fucked up indent.
(filter_get_folder): callback for filter driver.
* mail-vfolder.c: New file to manage virtual folders.
2000-07-29 JP Rosevear <jpr@helixcode.com>
* mail-format.c (mail_generate_reply): Use new mail config stuff
* component-factory.c (create_imap_storage): Use new mail config
stuff
(create_news_storage): ditto
* evolution-mail.schemas: Gconf schema for evolution mail
* mail-config-druid.glade: Gladification of config druid
* mail-config.h: New header with config structs.
* mail-config.c: Rewrite of GUI configuration tools to use
new config structs. Stores multiple identities and sources now.
Still only uses the first one found.
(mail_config_fetch): Returns MailConfig struct to caller
for configuration queries.
(mail_config): Renamed function to show mail config dialog.
(mail_config_druid): Renamed function to show mail config druid.
* mail-ops.c (create_msg_composer): Use
e_msg_composer_new_with_sig_file and new config stuff
(check_configured): Use new config stuff
(fetch_mail): ditto
(composer_send_cb): ditto
2000-07-28 Cody Russell <bratsche@gnome.org>
* mail-ops.c, mail.h: Added mark_all_seen(), to mark every
message in the list with CAMEL_MESSAGE_SEEN.
* folder-browser-factory.c: Added "Actions/Mark all seen".
2000-07-27 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c: Lets fix Dan's kludge the Right Way (tm)
(set_service_url): Only strip off the leading "/" from the
url->path if url->host is NULL
(get_service_url): Only prepend a leading "/" to the path if the
host is NULL
2000-07-27 Dan Winship <danw@helixcode.com>
* mail-config.c (get_service_url): toss in a kludge to deal with
the IMAP vs mbox path problem for now.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h: Removed counting of selected
messages.
2000-07-26 Dan Winship <danw@helixcode.com>
* mail-ops.c (real_fetch_mail): Don't create the tmp_mbox before
calling movemail, because the external movemail requires it to not
exist. Contrariwise, delete it in the cleanup code if it's empty.
Update for camel_movemail interface change. Do the "No new
messages" dialog in the mbox case as well as the remote mail
issue.
2000-07-26 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c: s/struct refile_data/struct move_data
(real_move_msg): Renamed from real_refile_msg()
(move_msg): Renamed from refile_msg()
* folder-browser-factory.c: Changed Refile to Move.
2000-07-26 Dan Winship <danw@helixcode.com>
* mail-format.c (lookup_handler): Update for OAF and for external
apps as well as components.
(handle_via_external): Handler to set up for data that can be
displayed by an external application.
* mail-display.c (on_link_clicked, etc): Refactor the save_data()
code and add launch_external() as a handler for
x-evolution-external URLs.
(embeddable_destroy_cb): Remove this, since it seems like it's all
wrong.
(on_object_requested): Update for OAF, and fix some bugs.
2000-07-25 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (get_service_url): Always prepend a leading "/" to
the url->path.
(set_service_url): Added more error checking and also strip the
leading '/' from the url->path
(create_identity_page): Set the signature file to the one specified in
the identity record, else set the default path to ~/.sugnature
2000-07-25 Michael Meeks <michael@helixcode.com>
* mail-config.c (create_identity_page): set default signature to
~/.signature
2000-07-25 Peter Williams <peterw@helixcode.com>
* mail-ops.c (reply): Check for the case of fb->mail_display->
current_message = NULL, which shouldn't happen, but has happened
to me.
2000-07-25 Dan Winship <danw@helixcode.com>
* message-thread.c (group_root_set): Don't group together messages
with the same non-Re: subject and no References/In-Reply-To. More
often than not, they're unrelated. (eg, "[No subject]".)
(thread_messages): Handle messages with no Message-Id. "This
shouldn't happen", but it does sometimes, and it's not much code
to make it just work.
2000-07-25 Ettore Perazzoli <ettore@helixcode.com>
* mail-config.c (create_service_page): Call
`gtk_option_menu_set_menu()' as the last thing, as `GtkOptionMenu'
is fscking broken. Also, `gtk_widget_show()' the individual menu
items.
2000-07-24 Dan Winship <danw@helixcode.com>
* message-list.c (mark_msg_seen, ml_tree_set_value_at,
message_list_regenerate): Update for CamelFolder API changes.
(Certain functions no longer take a CamelException.)
* mail-ops.c (real_fetch_mail, real_send_mail, real_delete_msg):
ditto
* component-factory.c (real_create_imap_storage,
real_create_news_storage): ditto
2000-07-24 Dan Winship <danw@helixcode.com>
* component-factory.c, folder-browser-factory.c, test-mail.c:
Remove GOAD support.
* main.c: Remove GOAD support.
(main): More "guess the build mistake" fun, this time for the
failure to initialize Bonobo case.
2000-07-24 Peter Williams <peterw@helixcode.com>
* mail-tools.c (mail_tool_set_uid_flags): Change
function to faithfully pass parameters to
camel_folder_set_message_flags; this function is
somewhat useless now. Other files synced with
API change.
* mail-ops.c (op_display_message): Change "display
a message" into "retrieve a messsage" in the
description of mail_op_display_message.
* mail-threads.c (display_timeout): New function.
Only display the progress dialog if the operation
takes more than a second to perform.
(hide_queue_window): New function. Hide the queue
window as an idle function... I'm thinking maybe
the problem with hiding it was due to us not
being in a GTK event sequence? Perhaps it's only
the timeout, which was not being cancelled, which
is now.
* message-list.c (get_message_uid): New function,
copy of get_message_info, except gets only the
UID, as that's all that most functions want, and
we avoid a Camel call.
2000-07-23 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (create_message_composer): New.
(compose_msg): Use it.
(send_to_url): Likewise.
(forward_msg): Likewise.
* folder-browser-factory.c (control_activate): Use `_()' instead
of `N_()'.
2000-07-21 Peter Williams <peterw@helixcode.com>
* message-thread.c (setup_thread_messages): New
operation: thread_messages, simple wrapper around
thread_messages () and thread_messages_free();
* message-list.c (cleanup_regenerate_messagelist):
Use new thread_messages operation instead of just
calling ... thread_messages :-)
* folder-browser.c (folder_browser_destroy): Use new
sync_folder operation instead of calling camel_folder_sync
directly.
* component-factory.c (create_folder): Changed to use
new create_folder operation.
* mail-ops.c (mail_do_create_folder): New operation: create
folder. New operation: sync folder.
* mail-format.c (cmm_destroyed): Remove the url hashtable from
the larger hashtable when it gets destroyed.
* mail-callbacks.c (fetch_mail): Pass a hook function and data
down the chain to pick up the folder_changed and change the view.
* mail-ops.c: Rename from mail-ops-new.c now that it's a little more
solid.
(fetch_mail): Add new options to hook and unhook an event while the
filter driver runs. A hack, but all of the operations are to some
extent.
(cleanup_fetch_mail): Unref the destination folder if not NULL.
* mail-tools.c (mail_tool_filter_contents_into): Intermediate the
event hook/unhook hack here.
2000-07-20 Peter Williams <peterw@helixcode.com>
* mail-ops-new.c (setup_send_mail): Fix silly forgetting-to-ref
problem on some sends (when not replying). Note the early exit
path with a big comment.
* message-list.c (message_list_set_folder): Don't call
folder_changed, call mail_do_regenerate_messagelist, as
the GDK_THREADS_ENTER in the former can deadlock us!
* folder-browser.c (folder_browser_set_uri): Ah, screw it.
Make 'load folder' asynchronous and pretend that it always
succeeds.
* mail-ops-new.c (mail_do_load_folder): New operation, loads
a folder into a FolderBrowser.
* mail-threads.c (read_msg): Check if the exception is
a user cancel; don't complain if it is.
(mail_operation_queue): Same.
(dispatch_func): Same.
2000-07-20 Peter Williams <peterw@helixcode.com>
* mail-ops-new.c (cleanup_send_mail): Fix evil mistaken
unref.
* test-thread.c: Fit the new mail_operation_spec prototype.
* mail-callbacks.c (composer_send_cb): Hide the composer upon
start of send operation.
* folder-browser.c: #include "mail-ops-new.h"
* mail-threads.h: Change text fields of mail_operation_spec to
provide two forms of the name.
* mail-threads.c: Use appropriate new string fields.
(dispatch_func): Hide the progressbar by default.
* message-list.c (op_regenerate_messagelist): Fix the datasize from
0 -> sizeof (regenerate_messagelist_data_t). Add the new gerund and
infinitive strings.
(do_regenerate_messagelist): Include some code that fell between the
cracks.
* mail-ops-new.c (op_scan_subfolders): Same datasize fix for
scan_subfolders.
(op_forward_message): Same.
(all): Add new gerund and inifinitive strings for mail_operation_spec.
(cleanup_send_mail): Destroy the composer on success; re-show it on
error. I'm so clever!
2000-07-20 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (factory_fn): Updated for the new
`evolution_shell_component_new()' arg.
2000-07-19 Jeffrey Stedfast <fejj@helixcode.com>
* message-thread.c (thread_messages): What if message info is NULL?
2000-07-17 Peter Williams <peterw@helixcode.com>
* component-factory.c (real_create_{imap,news}_storage): Instead of
directly calling evolution_storage_new_folder, queue up a list of
folders to register so that we don't do our CORBA in The Other Thread.
(create_{imap,news}_storage): Changes ancillary to the above.
(add_new_mailbox): New function to queue up a folder
(cleanup_create_info): New function to dequeue the folders and free mem.
* test-thread.c: s,ENABLE_BROKEN_THREADS,USE_BROKEN_THREADS -- oops
* mail-format.c: (mail_lookup_url_table): New function to get the url
table associated with a CamelMimeMessage because we can no longer
gtk_object_get_data on it.
* mail-display.c: replace 'gtk_object_get_data( message, "urls" )'
with 'mail_lookup_url_table( message )'
2000-07-16 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c, component-factory.c: Initial code to support
IMAP folders that don't use "/" as a directory separator.
2000-07-15 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (set_x_mailer_header): New helper function to set the
`X-Mailer:' header to to `Evolution <version> [Developer
Preview]".
(real_send_mail): Call it.
2000-07-14 Peter Williams <peterw@curious-george.helixcode.com>
* message-list.c (message_list_set_folder): Ported to CamelObject:
GTK_OBJECT->CAMEL_OBJECT; gtk_signal_connect->camel_object_hook_event;
GDK_THREADS_ENTER/LEAVE around "changed" event hooks.
* folder-browser.c (folder_browser_destroy): likewise.
(mail_uri_to_folder): likewise.
(folder_browser_load_folder): likewise.
2000-07-14 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (evolution_mail_LDADD): Add `GCONF_LIBS'.
2000-07-14 Dan Winship <danw@helixcode.com>
* mail-format.c (write_headers): put a <p> at the end of the
header table. (I think there used to be whitespace after it, but
then some gtkhtml change got rid of it...)
(handle_text_plain): Don't do this <PRE>. Instead, CONVERT_NL and
CONVERT_SPACES and wrap it in <TT>. Now if the sender didn't
include any newlines, it will be wrapped to the width of the
window instead of extending off into infinity.
2000-07-13 Dan Winship <danw@helixcode.com>
* message-list.c (message_list_destroy): Only unref the folder if
it's been set.
* folder-browser.c (folder_browser_destroy): Only sync the folder
if it's been set.
2000-07-13 Jonathan Blandford <jrb@redhat.com>
* mail-config.c (create_transport):
s/CAMEL_SERVICE_NEED_HOST/CAMEL_SERVICE_URL_NEED_HOST.
2000-07-13 Dan Winship <danw@helixcode.com>
* mail-config.c (add_row): Add a "gboolean required" argument, and
set its value on the entry.
(create_source, create_transport): Create rows for URL elements if
the URL ALLOWs them. Mark them required if it NEEDs them.
(service_note_doneness): Only require the required fields to be
filled in.
Now the IMAP config page allows the user to enter a path, but
doesn't require it.
2000-07-13 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Back to the old way to avoid
g_warnings, yay. Also fix append to send a flags argument (0)
2000-07-12 Chris Toshok <toshok@helixcode.com>
* mail-config.c (providers_config_new): fix some cut & paste bung.
2000-07-12 Chris Toshok <toshok@helixcode.com>
* mail-format.c (setup_function_table): add "message/news" to the
mime_function_table using the same handler as message/rfc822.
2000-07-12 Chris Toshok <toshok@helixcode.com>
* mail-config.glade*: add news server tab to dialog.
* mail-config.c (on_NewsServerConfigDialogButton_clicked): new function.
(on_clistNewsServers_select_row): new function.
(on_cmdNewsServersAdd_clicked): new function.
(on_cmdNewsServersEdit_clicked): new function.
(on_cmdNewsServersDelete_clicked): new function.
(providers_config_new): mirror the source tab's code to fill in
the news server tab.
(write_config): save out the news server.
(create_news_server_config_dialog): new function.
(create_news_server_page): new function.
2000-07-12 Peter Williams <peterw@helixcode.com>
* mail-display.c (save_data): Change from evolution_dir to
g_get_home_dir() for default location of save file.
2000-07-11 Dan Winship <danw@helixcode.com>
* Update for CamelFolder API changes
2000-07-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Changed to use
camel_folder_move_message_to () rather than get_message () and then
append_message (). This also makes it so we don't have to worry about
fetching message flags to pass to the new append_message () method.
* folder-browser.c (folder_browser_load_folder): Disable
Search capability menu/entry if folder doesn't support it.
* message-list.c (message_list_regenerate): Don't perform
a search if the folder doesn't support it.
2000-07-11 Dan Winship <danw@helixcode.com>
* mail-ops.c (real_send_mail): Set the post_send_data flag rather
than toggling it. (Maybe we'll need more control over it later,
but for now, the only flag we set is "replied", and we want
that set, not toggled.)
2000-07-10 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (control_activate): Work with both
current and 0.15 bonobo
* kill more debugging messages
* mail-ops.c (real_fetch_mail): Don't multiply free dest_url.
* message-list.c (message_list_select): Update
message_list_select_next to do either next or previous.
* folder-browser.c (etable_key): Make 'n' and 'p' do next and
previous unread message.
* mail-ops.c (select_first_unread): Update.
(real_fetch_mail): clean up a bit.
2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (forward_msg): Initialize `fwd_subj' to NULL if
`from' is NULL.
2000-07-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Fixed broken POP fetching
2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c: Removed variable `browsers'.
(create_view): Don't update it.
(owner_unset_cb): Don't sync the folders here anymore, because at
this point the folder browser is dead already so we cannot get a
valid list of folders from it anymore.
* folder-browser.c (folder_browser_destroy): Sync the associated
mailbox first.
2000-07-10 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h: Switched from ETable to
ETableScrolled.
2000-07-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Fixed movemail so that it too would
deliver to Inbox.
2000-07-09 Dan Winship <danw@helixcode.com>
* message-list.c (get_message_info): Don't g_warn if the user
selects a fake tree parent.
(message_list_select_next): Ignore fake rows
(build_tree): Store the "root_subject" for fake rows
(ml_tree_value_at): Display the correct subject for fake rows.
(on_cursor_change_cmd): Update for the other changes and set
cursor_uid to NULL when the cursor is on a fake row.
* mail-ops.c (reply): Don't try to reply when no (real) message is
selected.
(forward_msg): Ditto.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Remove setting of dnd_code since that's handled
internally to ETable.
2000-07-08 Dan Winship <danw@helixcode.com>
* folder-browser.c (etable_key): Fix up the pageup/pagedown
increment a bit.
* folder-browser-factory.c (control_activate): Add a "Threaded
Message List" item to the "View" menu.
* message-list.c (message_list_toggle_threads): Handler for that.
(build_flat): New function to build a "flat" message list using
the tree model.
(message_list_regenerate): Build tree or flat message list
depending on the global setting.
* message-thread.c (get_root_subject): fix a "Re:" parsing bug
2000-07-08 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Always dump incoming messages to
Inbox (assuming not filtered to another location).
2000-07-08 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c (control_activate): Move the
"Expunge" item to the "Action" menu.
(control_deactivate): Accordingly.
2000-07-08 Dan Winship <danw@helixcode.com>
* mail-ops.c (forward_msg): Deal with having multiple selected
messages.
* mail-format.c (mail_generate_forward): Removed. (Integrated into
forward_msg)
2000-07-08 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (build_tree): Small fix to stop uid data from
being set on a message-list tree node when it didn't correspond
to an actual message.
2000-07-08 Dan Winship <danw@helixcode.com>
* message-list.c (get_message_info): Fix Jeff's FIXME: This does
get called with out-of-range data sometimes, so we do need the
check. Use e_table_model_row_count to get the actual right answer.
2000-07-07 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (get_message_info): This wasn't quite right, it
will now work but still isn't perfect. See FIXME comment.
2000-07-07 Dan Winship <danw@helixcode.com>
* message-thread.c (remove_node): Add another argument "clast"
pointing to the container before the current one in the list,
which it can update if that turns out to be the one that it
removed.
(group_root_set): Update for remove_node change, and remove both
nodes in the "subjects are common" case. Fixes a bug that would
cause the message list to be truncated if this rule was invoked.
(sort_node): sort the tree by the original order of the messages
in the folder rather than by date.
2000-07-07 Dan Winship <danw@helixcode.com>
* message-list.c: Lots of changes. Store uids as node data on the
tree nodes and use those rather than rows where possible. (The
concept of "row" is just getting too complicated.) Get rid of the
summary_table, because given a uid we can call
camel_folder_get_message_info, which makes more sense than keeping
a separate uid->row hash table ourselves.
(get_message_info): update
(get_message_row): removed
(ml_col_cound, ml_row_count, ml_value_at, ml_set_value_at,
ml_cell_is_editable, ml_duplicate_value, ml_free_value,
ml_initialize_value, ml_value_is_empty, ml_value_to_string):
Removed. We always use the tree model now.
(message_list_init): Remove the non-tree code.
(build_tree): store uids in the tree rather than row numbers,
and build the message_list->uid_rowmap to map from uids to rows
when needed.
(message_list_regenerate): Renamed from _set_search, since it's
used to redraw in non-search cases too.
(message_changed): Use the uid_rowmap to get a model row number.
* message-thread.c (thread_messages): Change the interface on this
to work with the new MessageList.
* folder-browser.c (search_set, folder_browser_clear_search):
s/message_list_set_search/message_list_regenerate/
2000-07-07 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (get_message_info): Handle a row number of -1
properly.
2000-07-06 Dan Winship <danw@helixcode.com>
* message-list.c (get_message_info): Map tree model row numbers to
summary row numbers.
(ml_tree_value_at, ml_tree_set_value_at,
ml_tree_is_cell_editable): So don't do that here.
2000-07-06 JP Rosevear <jpr@arcavia.com>
* mail-config.glade*: Glade files for the configuration dialog.
* mail-config.c (providers_config_new): Build the dialog with
glade.
2000-07-06 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c, folder-browser.c, mail-ops.c,
message-list.c: fix warnings.
* main.c (main): gtkhtmllib_init is no more. Call gconf_init
directly instead.
* message-list.c (message_list_select_next): New function to
select the first message on or after the given row that meets
certain flag criteria.
* mail-ops.c (real_fetch_mail): call message_list_select_next to
select first unread message in current folder if it changes.
(real_delete_msg): Remove the code to move the etable cursor. It
only makes sense really if you deleted the message with the
keyboard, so do it from etable_key.
* folder-browser.c (etable_key): call message_list_select_next to
select next non-deleted message after Delete.
* mail-identify.c: Add a workaround for a small gnome-vfs 0.2 bug
so we don't need to require CVS gnome-vfs.
2000-07-06 Not Zed <NotZed@HelixCode.com>
* message-thread.c (sort_thread): sort messages based on date for
the initial sort order.
(thread_messages_free): Implement.
* message-list.c (message_list_init_header): Setup the subject
renderer to a tree in tree mode.
(on_cursor_change_cmd): For a tree model, map the view row to the
data row.
(build_tree): Builds the tree data structure of all messages.
(message_list_set_search): For a tree model, build the tree here.
(ml_tree_icon_at): Icon callback, returns nothing.
(ml_tree_value_at):
(ml_tree_set_value_at):
(ml_tree_is_cell_editable): Maps tree node to data row, and calls
the equivalent table callback
(message_list_init_renderers): Setup the tree renderer if needed.
(message_list_init): set the root node invisible afterall.
(message_list_set_search): Clear the old tree before putting in a
new one.
* message-list.h: Add a tree renderer to render list, and
tree_view indicator.
* message-thread.[ch]: Code for message threading.
2000-07-05 Dan Winship <danw@helixcode.com>
* mail-identify.c (mail_identify_mime_part): Oops. My gnome-vfs
was out-of-date. Update for changed function name.
2000-07-05 Dan Winship <danw@helixcode.com>
* mail-identify.c (mail_identify_mime_part): Use the gnomevfs
sniff buffer interface to try to identify the MIME type when
everything else fails.
* mail-display.c (on_object_requested):
* mail-format.c (lookup_handler, handle_undisplayable,
handle_audio): s/gnome_mime/gnome_vfs_mime/
* Makefile.am: Add gnomevfs stuff
2000-07-03 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (create_folder): Get rid of a compiler
warning by making sure `folder' is always initialized to some
value for any code path.
2000-07-03 Dan Winship <danw@helixcode.com>
* message-list.c (select_msg): call mail_display_set_message with
NULL if the message we tried to select doesn't exist (probably
meaning we tried to selecte the first message and the folder is
empty.)
* mail-display.c (mail_display_set_message): deal with NULL as an
input (meaning "undisplay previous message and display nothing").
2000-07-02 Dan Winship <danw@helixcode.com>
* mail-ops.c (real_fetch_mail): Remove hack to redisplay the
inbox, since folder_changed signals will now be emitted
appropriately.
* component-factory.c (create_vfolder_storage): Fix
filter_driver_new invocation.
* Makefile.am (bin_PROGRAMS): test-mail and test-thread should be
noinst.
* mail-ops.c (real_fetch_mail):
(vfolder_editor_clicked):
* component-factory.c (create_vfolder_storage):
Pass mail_uri_to_folder and rules to filter_driver_new.
2000-07-02 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser.c (mail_uri_to_folder): Fix double freeing of the
local exception `ex'.
2000-07-01 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (refile_msg): Only allow type "mail" in the folder
selection dialog.
2000-07-01 Dan Winship <danw@helixcode.com>
* pixmaps.h, pixmaps/*.xpm: Removed. These aren't being used any
more. (The real pixmaps are in ../art.)
2000-07-01 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (get_message_info):
(select_msg): Updated to reflect camel-folder changes.
* mail-ops.c (real_fetch_mail): Modified to reflect camel-folder
changes.
2000-06-30 Dan Winship <danw@helixcode.com>
* mail-ops.c (print_msg): Use gnome-print to do a print preview.
* folder-browser-factory.c: Hook up "Print" button.
* message-list.c (message_list_foreach): New function, a wrapper
around e_table_selected_row_foreach, which calls the callback
function with UIDs rather than row numbers.
* folder-browser-factory.c: Remove never-used "Find" button from
the toolbar and replace it with "Refile". (We need a better icon
for this...). Hook up "Refile" to "refile_msg".
* mail-ops.c (refile_msg): Call the shell's user_select_folder
routine, and then use message_list_foreach and real_refile_msg to
do the work.
(delete_msg): Update to use message_list_foreach.
* folder-browser.c (mail_uri_to_folder): new function, extracted
from folder_browser_load_folder, to turn a URI into a folder.
(folder_browser_load_folder): Use it.
2000-06-30 Peter Williams <peterw@curious-george.helixcode.com>
* component-factory.c (create_news_storage, create_imap_storage):
Fixed to use new EvolutionShellClient proxy thingamajiggie.
2000-06-30 Dan Winship <danw@helixcode.com>
* message-list.c (on_row_selection): use the ETable row_selection
signal to track how many rows are selected. Eventually we will use
this info to disable toolbar buttons when you have too few/too
many messages selected, but the current toolbar widget doesn't
allow that.
* message-list.h, message-list.c, mail-ops.c: Change selected_row
and selected_uid fields of MessageList to cursor_row and
cursor_uid to be more correct according to the new ETable
interfaces.
2000-06-30 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c: Eeek. Fix typo: add missing star in the
declaration of `global_shell_client'.
2000-06-29 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c: Replace `global_shell_interface' with
`global_shell_client'.
2000-06-29 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (delete_msg): Clean up compile warnings
(real_fetch_mail): Fetching from IMAP should do nothing
2000-06-29 Christopher James Lahey <clahey@helixcode.com>
* mail-ops.c: Handle multiple deletes (change by Peter Williams.)
2000-06-29 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser-factory.c: Changed "Send" to "Compose" to
avoid user confusion. Compose is a little more intuitive.
Also changed the pixmap to MAIL_NEW instead of MAIL_SND
* mail-ops.c (compose_msg): Renamed to avoid confusion
2000-06-29 Dan Winship <danw@helixcode.com>
* component-factory.c (create_imap_storage, create_news_storage):
remove some code incorrectly copied and pasted from
create_vfolder_storage which caused vfolder creation to stop
working.
2000-06-29 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, mail-ops.c: Changed the name of
e_table_select_row to e_table_set_cursor_row.
2000-06-29 Peter Williams <peterw@helixcode.com>
* message-list.c (message_list_init): Set the dnd_code of the
ETableHeader to something so that Solaris sprintf doesn't die
on a NULL string.
* mail-config.c (providers_config_new): Check for a null "transport"
string (not all OS' handle NULL strings well *cough* Solaris)
2000-06-28 Dan Winship <danw@helixcode.com>
* mail-format.c (mail_generate_forward): add default subjects
* component-factory.c (create_folder): Refuse to create folders
not of type "mail", and correctly create an empty "mbox" folder
for new folders in /local.
* main.c (init_corba): Call od_assert_using_oaf() or
od_assert_using_goad() as appropriate to make sure people didn't
somehow trick the build system.
2000-06-28 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c: Added prototype for filter_date to make
it build cleanly
2000-06-27 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Made dates display grouping information
properly.
2000-06-27 Peter Williams <peterw@curious-george.helixcode.com>
* message-list.c (mark_msg_seen): Need to return a value
on error.
* main.c (main): Don't start threads or enter threads if
there's no threading! Sigh.
* test-thread.c: Don't compile if no threads.
* session.c: Work without broken threads.
* message-list.c (filter_date): Solve the ctime_r problem the
correct way, with the magic of autoconf.
2000-06-27 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Work around mismatched ctime_r functions. This
will be fixed.
2000-06-27 Peter Williams <peterw@curious-george.helixcode.com>
* mail-threads.c: Don't compile this if we don't have
threads enabled. This should maybe be on the Makefile.am
level.
2000-06-27 Michael Zucchi <zucchi@zedzone.mmc.com.au>
* component-factory.c (owner_set_cb): Put in a gross hack to
export the shell reference elsewhere.
2000-06-26 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Added a value_to_string handler.
2000-06-26 Peter Williams <peterw@helixcode.com>
* component-factory.c, mail-ops.c: #ifdef the threads stuff so
that if USE_BROKEN_THREADS is not defined we just call the functions
in the main thread.
* mail-threads.h: Don't declare funcs if USE_BROKEN_THREADS not
defined.
* mail-threads.c: Put the query and message boxes on top so that
you can see them.
2000-06-26 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (error_dialog): va_start() returns void, don't
assign it's retval to a variable.
2000-06-26 Ettore Perazzoli <ettore@helixcode.com>
* main.c (main): Call `GDK_THREADS_ENTER()' and
`GDK_THREADS_LEAVE()' around the main loop as in the examples from
the GTK+ FAQ.
* mail-threads.c (DEBUG): New macro for debugging.
(read_msg): Use it.
2000-06-25 Peter Williams <peterw@helixcode.com>
* Makefile.am: Clean up the various _LIBS and _CFLAGS
to work with simpler THREADS_LIBS and THREADS_CFLAGS scheme.
2000-06-23 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): Improved the
code to separate the imap namespace from the folder name.
2000-06-23 Peter Williams <peterw@curious-george.helixcode.com>
* component-factory.c: Include e-util/e-setup.h for the
prototype of evolution_dir; prototype create_news_storage.
(real_create_imap_storage, real_create_news_storage): New
functions moving the camel stuff into the async callback.
(create_imap_storage, create_news_storage): Chopped in
half to move camel stuff as above.
* mail-ops.c: Include "mail-threads.h" for threading protos.
(real_fetch_mail, real_send_mail, real_expunge_folder):
New functions moving the camel stuff into the async callback.
(async_mail_exception_dialog): A version of mail_exception_dialog
to be called from the async handlers (just calls mail_op_error())
(fetch_mail, expunge_folder, composer_send_cb): Cut in half to
move camel stuff as above.
(cleanup_send_mail): Clean up after the async real_send_mail
with the gtk_object_destroys et al.
* mail-threads.c: Instead of hiding the progress bar, make it
zip back and forth constantly.
(progress_timeout): New func. Timeout called to make the pbar
shimmy.
(timeout_toggle): New func. Turn on and off the shimmy effect.
(check_cond): New func. Make sure that the GCond for modal
operation is initialized before mail_op_{error,get_password}.
(show_error_clicked, read_msg, get_password_clicked): Move
over to timeout_toggle.
(mail_op_error,mail_op_get_password): Add check_cond() call.
* main.c: (main) Call g_thread_init.
* session.c: Change auth_callback stuff over to assume that it's
being called async. Note: no real good way to tell if this is
the case or not.
(request_callback): ifdef'ed out
(evolution_auth_callback): Use mail_op_get_password.
2000-06-22 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): Now should
correctly get the selected folder from the given URL.
2000-06-22 Chris Toshok <toshok@helixcode.com>
* folder-browser.c (folder_browser_load_folder): add handling for
loading "news:" folders.
* component-factory.c (create_news_storage): add a root for news
source.
(owner_set_cb): call create_news_storage.
2000-06-22 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): Updated to
prepend url-> path if it exists for that imap store.
* component-factory.c (create_imap_storage): Modified to not
prepend a hard-coded namespace.
2000-06-22 Chris Toshok <toshok@helixcode.com>
* mail-ops.c (fetch_mail_cleanup): new function, passed as arg to
mail_operation_try.
(fetch_mail): add cleanup func arg.
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Changed ml_value_at to return "" instead of NULL
in some cases.
2000-06-22 Peter Williams <peterw@curious-george.helixcode.com>
* Makefile.am: Add GNOME_EXTRA_LIBS so that we get libgthread
in our LIBS for evolution-mail.
* mail-threads.c: Make the dialog boxes for error and
question non-modal. They're modal relative to the dispatch
thread, but before they would also eg lock up the toolbar
buttons (while the menus, managed by another process, were
active -- a weird effect).
2000-06-22 Peter Williams <peterw@curious-george.helixcode.com>
* mail-threads.[ch]: Extra argument to mail_operation_try:
'cleanup', a function to be called in the main thread after
the dispatcher thread exits. gtk_object_destroy's et al may
attempt to unmap windows so we can't do them in the dispatcher
thread :-(
* test-thread.c: Updated with demo of new argument working.
2000-06-22 Peter Williams <peterw@helixcode.com>
* test-thread.c (op_5): New tests for the get_password
hook.
* mail-threads.[ch]: New hook, mail_op_get_password, for
getting a user response from an async operation. The operation
blocks while waiting for the response. A big whole mutex
condition threading blocking dealie to make sure that it
works.
Also the error hook creates a dialog again, which also needs
to block its caller while we wait for the user to press ok.
2000-06-22 Peter Williams <peterw@helixcode.com>
* mail-threads.c (various functions): Prettify the UI
so that the progress bar doesn't become all huge 'n stuff.
(mail_operation_try): Now save the operation's description,
so that we can display it later as the default message.
(read_msg): When the operation starts set the label to its
UI-friendly name.
(dispatch_func): Free the saved prettyname.
2000-06-21 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Removed an erroneous comment.
2000-06-21 Dan Winship <danw@helixcode.com>
* mail-config.c (create_transport_page): Make this not crash if
you don't have a transport configured.
* message-list.c: Update received date to work like sent date.
2000-06-21 Peter Williams <peterw@helixcode.com>
* mail-thread.{c,h}: New files -- a simple API for executing
the major mail ops (fetch_mail etc) asynchronously, allowing
the operations to send messages and update a progress bar.
* test-thread.{c,h}: Tests the mail-thread API.
* Makefile.am: add mail-thread.[ch] to evolution_mail_SOURCES
and declare the test_thread noinst_PROGRAM.
2000-06-21 Peter Williams <peterw@helixcode.com>
* mail-format.c (mail_generate_reply): Include "e-setup.h" to
get the prototype for evolution_dir.
2000-06-20 Jeffrey Stedfast <fejj@helixcode.com>
* component-factory.c (create_imap_storage): Oops. Should
have checked for a NULL sources.
2000-06-20 Dan Winship <danw@helixcode.com>
* message-list.c (mark_msg_seen): Quick hack to prevent a NULL
pointer dereference. Things need to be cleaned up a bit more here
though.
* mail-sources.c: Oops. This should have been removed a long time
ago.
2000-06-20 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): Working on getting
this to work :)
* component-factory.c (create_imap_storage): Should now correctly
construct the folder path allowing the selection of a folder.
2000-06-20 Ettore Perazzoli <ettore@helixcode.com>
* mail-format.c (mail_generate_reply): Declare `evolution_dir'.
Ugly, ugly, ugly, but I am not sure where it should go instead.
2000-06-19 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (ask_confirm_for_empty_subject): New function to ask
confirmation for an empty subject line.
(composer_send_cb): Use it if the subject is empty and only send
the message if the user confirms.
2000-06-20 Jeffrey Stedfast <fejj@helixcode.com>
* component-factory.c (create_imap_storage): Now creates the IMAP
storage (listing subfolders and such)
2000-06-19 Dan Winship <danw@helixcode.com>
* mail-format.c (find_preferred_alternative): add an option to
prefer text/plain.
(reply_body): add an option to prefer text/plain
(mail_generate_reply): Check the mail sending preferences, and
generate a text/plain reply if the user prefers to send plain text
(and we have a text/plain part to generate a reply from).
2000-06-19 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (providers_config_new): Should now correctly display
the Transport page (made it set the optionmenu correctly, before it
would only set SMTP).
(create_transport_page): Updated to set the page info to sendmail/smtp
based on the url.
(create_service_page): Had to add some code to set data on some objects
so I could grab the objects I needed to modify in the above function.
2000-06-18 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): started to add
code to load an IMAP folder.
* component-factory.c: Started to add a create_imap_storage
method so that we can eventually have our IMAP store displayed
in the tree view.
(create_vfolder_storage): Renamed from
create_test_storage().
(owner_set_cb): Updated.
2000-06-17 Dan Winship <danw@helixcode.com>
* message-list.c (message_list_set_folder): Prevent double-freeing
action on summary_table and uid_rowmap.
2000-06-16 Dan Winship <danw@helixcode.com>
* message-list.c (ml_set_value_at): Implement clicking on the
envelope icon to set read/unread. Based on a patch by clahey.
(select_msg): keep the timeout id for the "seen" flagging in the
message_list structure, so ml_set_value_at can clear it so it
doesn't re-mark a message seen after you click it unseen.
2000-06-16 Dan Winship <danw@helixcode.com>
* message-list.c (get_message_row): new function to do a uid to
row mapping.
(mark_msg_seen, select_msg, message_changed,
message_list_set_folder): Update for Camel flag changes.
(on_cursor_change_cmd): Rename "row_to_select" to "selected_row",
and keep a "selected_uid" as well.
* mail-ops.c (composer_send_cb): Update for Camel flag changes,
and fix some memory-handling bugs. (Free the post_send_data when
the composer is destroyed, not when the user clicks "send", which
could happen never, or more than once.)
(delete_msg): Update for Camel flag changes, and fix the "holding
down the delete key skips some messages" bug.
2000-06-15 Dan Winship <danw@helixcode.com>
* mail-ops.c (fetch_mail):
* component-factory.c (owner_unset_cb):
* message-list.c (message_list_set_folder): Update for CamelFolder
changes.
* folder-browser.c (folder_browser_clear_search): New function to
revert back to non-searching mode.
* mail-ops.c (fetch_mail): Use folder_browser_clear_search.
* mail-display.c (on_url_requested): if the document requests an
unknown URL, it's not an error; just ignore the URL.
* mail-ops.c (fetch_mail): If there's no new mail, tell the user.
2000-06-14 Radek Doulik <rodo@helixcode.com>
* main.c (main): call gtkhtmllib_init here
2000-06-13 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (on_SourceConfigDialogButton_clicked): Make sure source
is always pointing to something, so a blank is not written to the config file
on close.
2000-06-13 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (SHELL_OBJS): Removed.
(evolution_mail_LDADD): Use `libeshell.a'. Also use
`top_builddir' consistently.
2000-06-12 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c: Got rid of sources_max_row and identities_max_row
as they are not really needed (just use clist->rows)
(on_cmdSourcesEdit_clicked): Modified to make 'source'
point to the data being edited.
(on_cmdSourcesAdd_clicked): Adds a new clist item and selects it so the
editor knows where to stick the data when it's done.
2000-06-12 Federico Mena Quintero <federico@helixcode.com>
* message-list.c: Removed the ETableModel thaw handler.
2000-06-12 Dan Winship <danw@helixcode.com>
* folder-browser.c (folder_browser_set_uri): Return the result of
folder_browser_load_folder.
(get_prop, set_prop, folder_browser_properties_init): Remove. No
longer needed.
* folder-browser-factory.c (folder_browser_factory_new_control):
Add a "uri" argument, return NULL if setting it fails.
(folder_browser_factory_new_control): Remove property bag stuff.
(folder_browser_factory_init, folder_browser_factory): Remove
this, since we're using the component factory now.
* component-factory.c (create_view): Update for
folder_browser_factory_new_control change and return NOTFOUND as
appropriate.
* main.c (main): Don't call folder_browser_factory_init.
* mail-format.c (mail_generate_reply): Fix the subject generation
so we don't get "Re: Re:". This is working around something that
may later be declared a misfeature in Camel.
2000-06-10 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (create_folder): New stub implementation for
the folder creation function in the EvolutionShellComponent we
expose [it simply returns success all the time].
(factory_fn): Pass this function to `evolution_shell_component_new'.
2000-06-09 Dan Winship <danw@helixcode.com>
* folder-browser.c (folder_browser_new): Add a serial number to
FolderBrowser.
* folder-browser-factory.c (control_activate, control_deactivate):
Include fb serial number in the name of the Bonobo toolbar to
prevent problems with disappearing toolbars. This is a kludge and
should go away.
* mail-ops.c (expunge_folder): display error from
camel_folder_expunge if there is one.
* message-list.c (select_row): install an idle function to
select the row rather than doing it directly. Ugh. What a
kludge, but at least it works now.
* session.c (evolution_auth_callback): Update for
CamelAuthCallback changes. (Uncache passwords when asked to.)
* mail-ops.c (fetch_mail): close and expunge the source folder
after copying it to a local folder.
2000-06-09 Ettore Perazzoli <ettore@helixcode.com>
* component-factory.c (create_view): Updated to match the changes
to the definition of `EvolutionShellComponentCreateFn'. If @type
is not "mail", return an "unsupported type" error.
(factory_fn): Pass NULL for the `remove_folder' and
`create_folder' functions.
2000-06-09 Dan Winship <danw@helixcode.com>
* mail-format.c: Redo things a bit so that whitespace-only
text parts aren't displayed. (In particular, so that
whitespace-only subparts of multipart/mixed aren't displayed as
separate (empty) parts.)
2000-06-06 Dan Winship <danw@helixcode.com>
* mail-ops.c (fetch_mail):
* folder-browser.c (folder_browser_load_folder): Update for folder
creation/existence changes.
* message-list.c (message_list_set_folder): Remove the code to
create the folder if it doesn't exist, since we don't want to do
that.
2000-06-05 Dan Winship <danw@helixcode.com>
* mail-ops.c (composer_send_cb): Leave the composer window around
if the message doesn't get sent.
2000-06-05 Matt Loper <matt@helixcode.com>
* folder-browser.c (etable_key): Allow "GDK_KP_Delete", a keypad
delete key, to delete a message.
2000-06-05 Dan Winship <danw@helixcode.com>
* session.c (evolution_auth_callback): Remember passwords between
calls.
(forget_passwords): Callback for "Forget Passwords" menu item.
* folder-browser-factory.c (control_activate):
(control_deactivate): Add "Forget Passwords" menu item.
* mail.h, mail-ops.c: fix some function prototypes
* folder-browser.c (etable_key): Add "Delete" = delete message.
* mail-format.c (mail_generate_forward): Update for new composer
attachment interface.
2000-06-02 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (providers_config_new): Added a new notebook
page that allowed for mail format (text/plain or
multipart/alternative)
2000-06-02 Dan Winship <danw@helixcode.com>
* message-list.c (filter_date): If the date in the summary is 0,
output "?".
* component-factory.c (create_view): keep a GList of folder
browsers created
(owner_unset_cb): Go through the list and close each folder before
exiting so they sync their summary state, etc to disk.
* mail-ops.c (fetch_mail): Use camel_service_connect, not
connect_with_url, since we already passed the URL into
camel_session_get_store.
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Use camel_folder_free_summary instead of
g_ptr_array_free. Unref the folder when we're done with it.
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* session.c: Revert removal of e_setup_base_dir.
2000-06-02 Dan Winship <danw@helixcode.com>
* folder-browser.c (my_folder_browser_init): Connect to ETable's
key_press signal.
(etable_key): scroll mail on space/backspace.
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Made sent column as wide as from column.
2000-06-02 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c (on_cmdSourcesAdd_clicked): Changed identity_row
to source_row as this is a Sources clist we are dealing with and
not an identity clist
(on_cmdSourcesEdit_clicked): same
(on_cmdSourcesDelete_clicked): again, same
(on_cmdSourcesEdit_clicked): Source editor now fills in data from
the clist
2000-06-01 Dan Winship <danw@helixcode.com>
* message-list.c: Add a date column.
(COL_SENT_WIDTH_MIN): Make this wider.
(ml_value_at): return the sent date (as a time_t) for COL_SENT.
(Fix COL_TO too while I'm here.)
(ml_duplicate_value, ml_free_value, ml_initialize_value,
ml_value_is_empty): COL_SENT is numeric now.
(message_list_init_renderers): Create a date renderer (using
text_filter to translate the time_t into a string).
(message_list_init_header): Use render_date for COL_SENT.
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* session.c: Don't call e_setup_base_dir.
2000-06-01 Dan Winship <danw@helixcode.com>
* mail-format.c (mail_generate_forward): Fix forwarding to work
for people other than me. :) [Although apparently it doesn't
really.]
* mail-ops.c (delete_msg): Add a quick hack to move the selection
down a row when you delete a message.
* mail-format.c (handle_message_rfc822): use <blockquote> rather
than <center><table border=1 width=95%> to frame the embedded
message. If <pre> text in the subtable won't fit in the 95% width,
GtkHTML will write past the border of the table (and
<blockquote><table border=1> causes creeping updates so it's not
usable for now).
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (message_list_init): Turn off the grid in our
ETable.
2000-06-01 Dan Winship <danw@helixcode.com>
* mail-format.c (write_headers): Oops. This needs to take a
message argument because we might be writing headers for an
embedded message/rfc822 subpart rather than the root document.
2000-06-01 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c: Config dialogs are completed.
(service_acceptable): Fixed a segfault caused by duplicate
camel_exception_free()
(providers_config_new): Identity and Source clists are now filled in
when the dialog is created as well as the Transport page
* folder-browser-factory.c: Renamed Tool/ menu items
Vfolder was changed to Virtual Folder and
Configure Camel Providers was changed to Mail Configuration
2000-06-01 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (evolution_mail_LDADD): Link with
`libemiscwidgets.a'.
* mail-display.c (mail_display_new): Use an EScrollFrame instead
of a GtkScrolledWindow.
(mail_display_set_message): Likewise.
* mail-display.h: Replace the GtkScrolledWindow with an
EScrollFrame.
2000-06-01 Dan Winship <danw@helixcode.com>
* component-factory.c (owner_unset_cb): Quit when the shell exits.
This is a kludge, but a pretty necessary one until the refcounting
bugs that keep the component from exiting properly are fixed.
2000-05-31 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c: Partially implemented the source
configuration, seems to segfault due to a destroyed
gnome dialog being destroyed again in the method
on_SourceConfigDialogButton_clicked()
2000-05-31 Dan Winship <danw@helixcode.com>
* mail-format.c (free_url, handle_text_enriched,
get_url_for_icon): Fix up memory management of x-evolution-data
URLs so the URLs and/or their data don't get freed while there are
still references to them.
* message-list.c (message_list_init_header): redo the (unused)
online status column to no longer refer to pixmaps that no longer
exist.
2000-06-01 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c (control_activate): Put the toolbar
into a frame to make it look like standard GNOME toolbars. Also,
set `GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL' so that it does not do
evil things when its moved to the left or the right of the window.
2000-05-31 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config.c: Configuration dialog now allows
adding/editing/deleting of Identities (which leaves
adding/editing/deleting of sources left to implement).
The data is also saved when the dialog is exited via
the OK button.
2000-05-31 Dan Winship <danw@helixcode.com>
* mail-format.c (mail_format_mime_message): Initialize the "urls"
hash table stored on the message and store cid and other URLs
there rather than as object data on the message.
(get_cid): rewrite this a bunch
(handle_text_enriched): move the code from write_iframe_string()
into here, since it's the only place that actually needs it.
(handle_text_html): simplify this a lot. We can use a cid: URL
here rather than x-evolution-data.
(get_url_for_icon): New routine to return URLs for icons, and
cache the results, so we don't have to keep re-reading the icon
files (and so we can't be spoofed into reading non-icon files).
(handle_mystery, handle_audio): use get_url_for_icon.
* mail-display.c (save_data): move the CamelMimePart filename
extracting code from get_cid to here.
(on_link_clicked, on_object_requested): Update for cid: changes.
(on_url_requested): Kill off the kludgy, exploitable x-gnome-icon
URL schema, update cid and x-evolution-data to match
mail-format.c.
It should now be easier to implement RFC 2557 (Content-Location,
etc), but that RFC still pretty much sucks.
2000-05-30 Dan Winship <danw@helixcode.com>
* mail-format.c: Redo this back to the old way: a single GtkHTML
with various things inline in it. (Gets rid of flicker, simplifies
some scrolling, selecting, and printing issues.)
(handle_text_enriched, handle_text_html): Use <iframe>s for these,
to protect the rest of the document from their possibily invalid
HTML.
(handle_via_bonobo): Use (new-and-improved) <object> tags for
this, moving most of the work back into mail-display.c
* mail-display.c (on_object_requested): Move the Bonobo embedding
code back here again (reorganized a bit).
(on_url_requested): add x-evolution-data handler, for iframe
bodies.
(mail_html_new, mail_html_end): removed
(mail_display_set_message, mail_display_new): Update for NWO.
2000-05-30 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (search_set): Properly encode the search string.
2000-05-30 Jeffrey Stedfast <fejj@helixcode.com>
* mail.h: Added a prototype for providers_config_new() which
is the constructor for the configuration dialog window
* mail-config.c: Added set_service_url() which is basically
the reverse of get_service_url().
Implemented on_cmdCamelServicesOK_clicked() - The configuration
window will now remember the Sendmail/SMTP data that the user
had entered in the previous session.
Removed on_cmdCamelServicesApply_clicked() - No need for this.
2000-05-30 Dan Winship <danw@helixcode.com>
* message-list.c (message_changed): call
e_table_model_row_changed, not e_table_model_changed so we do less
work, and don't lose the current selection.
(select_msg): Set up a timer to mark the displayed message as
"seen" if it's selected for longer than 1.5 seconds (a number
pulled out of Matt's butt).
(ml_value_at): Use the MESSAGE_STATUS column for read/unread as
well as deleted.
* message-list.c: use the "new" tigert pixmaps rather than the
older ones. Includes a "replied to" icon (which is used now), but
no "deleted" icon (although we have the strikeout renderer for
that now).
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h: Added bold for unread messages.
2000-05-30 Jeffrey Stedfast <fejj@helixcode.com>
* mail.h: Added a prototype for providers_config()
which is the callback for a new menu item that
will construct a configuration dialog for the camel
providers and identities and display it
* mail-config.c: Added some code to construct the
new providers dialog and a bunch of callbacks (most
of which are not yet useful)
* mail-ops.c: Added the code for the providers_confi()
callback
* folder-browser-factory.c: Added the
"Tools/Camel Providers Configuration ..." menu item
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Switched to using "cursor_change" signal instead
of "row_selection" for switching messages. Select the first row
(still doesn't work because of ETable.) Adapt to some small
ETable changes. Set drawfocus to FALSE.
2000-05-29 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (folder_browser_load_folder): Hardcode the
vfolder source to just the inbox (so at least it returns
something).
* component-factory.c (create_test_storage): Create a vfolder dir
first, and put the folders in that.
(create_test_storage): Create the storage as VFolders, not
"storage_name" :)
2000-05-28 Dan Winship <danw@helixcode.com>
* mail-config.c (error_dialog): helper function since we need to
set "modal" on the dialogs returned by gnome_error_dialog to make
them work when popped up from the modal Druid.
(service_acceptable): New function to check if the info entered on
a store/transport page actually checks out.
(mail_config_druid): Connect to the "next" signal on the store and
transport pages and don't let the user continue if the data is
bad and "check this before continuing" is checked. Also, only
display sources/transports in the "mail" domain. (Ie, not
"vfolder".)
* mail-format.c (write_recipients_to_stream): Use `foo@bar' rather
than `<foo@bar>' for recipient with no name.
* mail-ops.c (fetch_mail): don't put up an error message if the
user cancels the password dialog.
2000-05-27 Not Zed <NotZed@HelixCode.com>
* Makefile.am (SHELL_OBJS): Include mail storage so we can
initialise folders.
* component-factory.c (create_test_storage): Parses vfolder
defintions and adds them to the storage. Definetly needs more
work.
* folder-browser-factory.c (control_activate): Add the VFolder
druid menu item.
(control_deactivate): And remove it.
* mail-ops.c (vfolder_editor_clicked): For editing vfolder
definitions (rather like filters, oddly enough :). Tries to
update the shell but it doesn't seem to work properly - requires a
mail component restart to take effect.
* folder-browser.c (folder_browser_load_folder): Handle vfolder:
urls' appropriately and map to camel. Still needs a way to tell
the vfolder what folders to search! (all vfolders come up empty!).
2000-05-28 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h: Added a COL_DELETED and made it
the strikeout column for both text renderers.
2000-05-27 Dan Winship <danw@helixcode.com>
* mail-format.c: Various improvements:
(call_handler_function, etc): Add a "mime_type" argument to the
handlers, so that if a part is tagged as
"application/octet-stream", and we figure out that it's really
something else, the handler we call can know what that something
else is.
(handle_text_enriched): Small fixes to make this not do
text/enriched-specific syntax in text/richtext or vice versa.
(handle_mystery): Allow for mystery data that can't even be saved
to disk. (ie, unrecognized external-body). Let the caller specify
the URL to use.
(handle_message_external_body): New function to deal with
message/external-body parts. Generates URLs for anon-ftp,
local-file, and URL access-types, and a more-useful-than-before
descriptive message for other types.
(handle_audio, handle_undisplayable): Use gnome_mime_get_value to
try to get a description of the MIME type to display to the user
rather than the raw form. (This will only work if the user has
recent gnome-vfs installed. [If they don't, it works just like
it used to.])
2000-05-26 Dan Winship <danw@helixcode.com>
* mail-format.c (handle_text_html): Fix a bug (security/stability)
in its usage of mail_html_write.
* mail-ops.c (composer_send_cb, reply): set CAMEL_MESSAGE_ANSWERED
on a message after a successful reply.
* message-list.c (folder_changed): free the summary with
camel_folder_free_summary rather than g_ptr_array_free.
* mail-format.c (handle_via_bonobo): Update for PersistStream
changes
2000-05-25 Ettore Perazzoli <ettore@helixcode.com>
* main.c (main): Initialize the component factory.
* Makefile.am (evolution_mail_LDADD): Link with
`evolution-shell-component.o' from the shell directory.
* evolution-mail.oafinfo: Updated with the
Evolution::ShellComponent OAFIID.
* evolution-mail.gnorba: Updated with the
Evolution::ShellComponent GOAD ID.
* folder-browser-factory.c (folder_browser_factory_new_control):
New function; code moved out from `folder_browser_factory'.
(folder_browser_factory): Use it.
* component-factory.c: New.
* component-factory.h: New.
2000-05-24 Dan Winship <danw@helixcode.com>
* mail-ops.c (composer_send_cb): connect to and disconnect from
the transport.
2000-05-24 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added libepaned.a.
* folder-browser.c: Switched from GtkPaned to EPaned.
2000-05-23 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am: Don't link to `evolution-service-repository.o'
anymore.
* folder-browser-factory.c: Don't use crufty service-repository
anymore.
2000-05-21 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (get_message_info): Made static.
(ml_initialize_value): Return NULL to placate compiler.
* folder-browser.c (folder_browser_gui_init): Add cast.
* mail-display.c (mail_html_new): Don't pass an empty URL to
`gtk_html_begin()' anymore.
* mail-config.c (put_html): Don't pass an empty URL to
`gtk_html_begin()' anymore.
* mail-display.h: Updated for the new GtkHTML API that uses
`GtkHTMLStream *' instead of `GtkHTMLStreamHandle'.
* mail-display.c: Likewise.
* mail-config.c: Likewise.
* mail-format.c: Likewise.
2000-05-19 NotZed <NotZed@HelixCode.com>
* mail-format.c: Fixes for stream stuff.
* mail-display.c (save_data_cb): Remove exception stuff on streams.
2000-05-19 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Added initialize_value and value_is_empty
callbacks.
2000-05-18 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (folder_browser_factory): Remove
development_warning (moved to shell)
* message-list.c (select_msg): Update for camel_folder_get_uids
(folder_changed, message_list_set_folder): Update for
camel_folder_get_summary
* mail-ops.c (fetch_mail): Update for camel_folder_get_uids
2000-05-17 Dan Winship <danw@helixcode.com>
* mail-component.c: This seems to be cruft. Nuke it.
* mail-display.c (save_data_cb, save_data, on_url_requested):
* mail-format.c (handle_text_plain_flowed, handle_text_html):
Use camel_data_wrapper_write_to_stream rather than
camel_data_wrapper_get_output_stream.
2000-05-16 NotZed <NotZed@HelixCode.com>
* mail-ops.c (filter_edit): Function to bring up the filter editor.
(filter_druid_clicked): Save/close dialogue.
(fetch_mail): Apply filters to incoming mail ... *hold breath*
If we are coming from a non-indexed/searchable/etc source, then
copy it to an mbox first. When copying mail from an mbox source,
dont remove it aftewards, open it for append, so partially
filtered mail isn't lost.
* Makefile.am (evolution_mail_LDADD): Added libfilter.
(INCLUDES): Add EVOLUTION_DATADIR, and fix matt's brokeneditor(tm)
for putting spaces instead of tabs in.
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
* mail-format.c: Removed usage of bonobo_object_destroy.
2000-05-14 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Updated to work with new ETable resizing.
2000-05-12 NotZed <NotZed@HelixCode.com>
* mail-ops.c (fetch_mail): Use 6 X's to mkstemp, as required by
the man page, just a temp fix, this should probably change to a
known filename.
2000-05-11 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (control_activate): Now that we depend
on current gnome-libs we can make the toolbar detachable again.
2000-05-11 Federico Mena Quintero <federico@helixcode.com>
* folder-browser-factory.c (development_warning): Left-justify the
message.
2000-05-10 Christopher James Lahey <clahey@helixcode.com>
* folder-browser-factory.c (development_warning): Made this dialog
have fewer buttons.
2000-05-10 Christopher James Lahey <clahey@helixcode.com>
* folder-browser-factory.c (development_warning): New development
warning text from Nat.
2000-05-10 Larry Ewing <lewing@helixcode.com>
* mail-config.c (html_new): only set the default background color
if style is not NULL.
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Removed folder-browser-factory.h since it doesn't
exist. Added mail-display.h, mail-types.h, pixmaps.h.
2000-05-09 Matt Loper <matt@helixcode.com>
* folder-browser-factory.c (control_activate): Remove "File->mail"
menuitem.
* mail-config.c (mail_config_druid): Fill in "blah blah blah".
2000-05-09 Dan Winship <danw@helixcode.com>
* folder-browser.c (folder_browser_load_folder): make this a
little less kludgy. Use gnome_error_dialog rather than printf on
errors.
* mail-ops.c (fetch_mail): Fix to work with the new shell stuff...
sorta. Will need more fixing later when the new shell framework is
more done.
* mail-config.c (finish): Call gnome_config_sync so the data
actually gets written.
2000-05-08 Dan Winship <danw@helixcode.com>
* mail-display.c (save_data_cb):
(on_url_requested): Update for CamelStream CamelException changes.
* mail-format.c: Pass NULL for a CamelException in a bunch of
places... the user will see that the data is not being displayed,
and there's not a lot we can do, and none of these things should
be failing anyway. Maybe fix this later.
2000-05-07 NotZed <NotZed@HelixCode.com>
* message-list.c (ml_value_at): Size moved to message info, rather
than content info structure.
2000-05-07 Dan Winship <danw@helixcode.com>
* message-list.c (select_msg): unref the message after displaying
it.
* mail-format.c (get_data_wrapper_text):
(handle_text_plain_flowed):
(handle_via_bonobo): Replace camel_stream_close calls.
2000-05-07 Matt Loper <matt@helixcode.com>
* folder-browser-factory.c: Changed a toolbar button from saying
"New mail" (which suggests you might be composing new mail) to
"Get mail".
2000-05-06 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (folder_browser_factory): Don't
hardcode "inbox" here.
* folder-browser.c (folder_browser_set_uri): Don't hardcode
"inbox" here either.
(folder_browser_load_folder): Create a new store according to the
folder browser's URI, and load the mbox file from that store.
Parts of this are temporary.
* session.c, mail.h: There is no longer a global store, just a
global session.
* mail-config.c, mail-ops.c: Update for default_session -> session
change. fetch_mail is currently broken.
2000-05-06 Dan Winship <danw@helixcode.com>
* mail-config.c: New code to configure identity, mail source, and
mail transport.
(mail_config_druid): A druid using the config widgets. (Only
allows configuration of a single identity, source, and transport.)
* mail-ops.c (check_configured): New function to make sure the
user has configured stuff, and call the druid if not.
(fetch_mail, send_msg, send_to_url, reply, forward_msg): Call
check_configured
(composer_send_cb): Make this pass the message to a CamelTransport
rather than just printing it to stdout.
* folder-browser-factory.c (development_warning): Add a warning
about sending mail, since you can do that now.
2000-05-06 Chris Toshok <toshok@HelixCode.com>
* .cvsignore: ignore evolution-mail.pure
* Makefile.am: add support for building evolution-mail.pure
2000-05-06 Dan Winship <danw@helixcode.com>
* mail.h: consolidate mail-format.h, mail-identify.h, mail-ops.h,
main.h and session.h into this new file. There's no reason to have
a .h for every .c.
2000-05-05 Anders Carlsson <andersca@gnu.org>
* test-mail.c (create_container): Use the OAFIID when using an
OAF-enabled build of bonobo.
2000-05-04 NotZed <NotZed@HelixCode.com>
* message-list.c (message_list_set_folder): Get the whole message
summary right away.
(folder_changed): And if we change too.
(ml_row_count): Use the match count or summary table length as the
row count.
(get_message_info): Use array references to lookup message summary
info. For the search result list, use the summary_search_cache to
cache the info lookup.
(message_list_init): Allocate the summary search cache.
(message_list_destroy): Free the summary search cache and the
summary table, if there is one to free.
(message_list_set_search): Save the match count, and clear the
summary search cache for reuse.
(folder_changed): Re-retrieve the summary list if the folder has
changed.
(message_list_set_folder): Retrieve the summary list when opening
the folder.
2000-05-03 Jason Leach <leach@wam.umd.edu>
* Makefile.am (evolution_mail_LDADD): s/-lunicode/$(UNICODE_LIBS)/
in the LDADD section.
2000-05-03 Dan Winship <danw@helixcode.com>
* mail-format.c (write_recipients_to_stream, write_headers): Make
the "Cc:" field optional again. (Before, we could check if
camel_mime_message_get_recipients returned NULL, but now we need
to actually look into the returned CamelInternetAddress object.)
2000-05-03 Larry Ewing <lewing@helixcode.com>
* folder-browser.c (folder_browser_gui_init): comment out the
changed signal for now.
2000-05-02 Matt Loper <matt@helixcode.com>
* Makefile.am: set G_LOG_DOMAIN.
2000-05-02 Larry Ewing <lewing@helixcode.com>
* message-list.c (message_list_set_search): only free search if it
is not NULL.
2000-05-02 NotZed <NotZed@HelixCode.com>
* folder-browser.c (folder_browser_gui_init): Connect the changed
signal to search, so it searched immediately?
2000-05-01 NotZed <NotZed@HelixCode.com>
* pixmaps.h: Added envelope-deleted state.
* folder-browser-factory.c: Setup callback for actual delete op.
(control_activate): Setup a tool menu item to expnge deleted
messages.
* mail-ops.c (delete_msg): Toggle the delete flag on a message.
(expunge_folder): New function to expunge deleted messages from
the current folder.
* folder-browser.c (folder_browser_gui_init): A hackish little
quick-search entry.
(search_activate): Perform a quick-search on the folder subject
only.
(folder_browser_gui_init): Add an option meny to the search line.
(create_option_menu): Build the option menu from a table.
(search_set): Build a search from another string whent he option
menu or text item is changed. 5 search options are defined so
far.
* message-list.c (get_message_info): If there is an active search,
then get the data from that ... use this instead of
_get_message_info().
(ml_row_count): If we have an active search, get the info from its
result.
(select_msg): Changed to use get_message_info, so searches work.
(ml_value_at): And same here.
(message_list_init_renderers): Added a 3rd state to message_status
= deleted.
(ml_value_at): Show the message state as deleted, if it is marked
for deletion.
(folder_changed): When the folder changes, update the display.
(message_list_set_folder): Connect to the folder_changed event
here.
(message_changed): Callback to update the display when the message
changes.
(select_msg): And connect to the message_changed signal so we know
when it cahgnes.
(message_list_set_search): Save the search string.
(folder_changed): If the folder changes, re-run the search,
otherwise we may end up with invalid entries in the display.
* mail-display.c: Include missing errno.h.
2000-04-30 Dan Winship <danw@helixcode.com>
* session.c (session_providers_init): This is no longer necessary.
* mail-ops.c (fetch_mail): Remove kludge to load remote provider,
as camel can do it by itself now.
2000-04-29 Dan Winship <danw@helixcode.com>
* mail-display.c (on_link_clicked): Handle clicks on "cid" URLs by
popping up a "Save Attachment" dialog.
* mail-format.c (get_cid): if the part has a Content-Disposition
with a filename specified, record (a sanitized version of) that on
the wrapper when creating the cid reference, so the "save
attachment" code can use it later.
(handle_mystery): fix a bug in the cid generation here.
2000-04-29 Dan Winship <danw@helixcode.com>
* mail-format.c (lookup_handler, etc): Improve the builtin vs
bonobo selection code.
(handle_mystery): Include name and Content-Description in the
"mystery data" info, when available
(handle_unknown_type): Call mail_identify_mime_part before
giving up.
(handle_undisplayable): Split out of handle_unknown_type now
that handle_unknown_type can try alternate viewers.
(handle_via_bonobo): Fall back to handle_undisplayable if the
bonobo control fails.
* mail-identify.c (mail_identify_mime_part): New function to
attempt to identify a MIME part that we can't identify based on
Content-Type alone.
* mail-display.c (on_url_requested): redo the mystery data icon
display stuff less kludgily.
2000-04-28 Dan Winship <danw@helixcode.com>
* mail-format.c (write_recipients_to_stream, write_headers,
mail_generate_reply): Update (minimally) for Camel recipient
changes.
2000-04-28 Ettore Perazzoli <ettore@helixcode.com>
* main.c (init_bonobo): Don't call `init_corba()' and don't get
any args.
(init_corba) [!USING_OAF]: Fix args.
2000-04-27 Ettore Perazzoli <ettore@helixcode.com>
* folder-browser-factory.c: New macro `CONTROL_FACTORY_ID', which
is #defined to a different value according to whether we are
`USING_OAF' or not.
(folder_browser_factory_init): Use `CONTROL_FACTORY_ID'.
* test-mail.c
(init_corba): New helper function, implemented differently
according to `USING_OAF'.
(main): Use `init_corba()'.
* main.c
(init_corba): New helper function, implemented differently
according to `USING_OAF'.
(init_bonobo): Use `init_corba()'.
* Makefile.am: Install OAF stuff if `USING_OAF'. Add
`-I$(datadir)/idl' to the `orbit-idl' command-line so that we can
use Bonobo IDL files installed under our prefix as well. Also,
use `$(ORBIT_IDL)' instead of hardcoded `orbit-idl'.
* evolution-mail.oafinfo: New file.
2000-04-27 Dan Winship <danw@helixcode.com>
* mail-format.c: Move text_to_html to e-util.
* mail-ops.c (send_to_url): New routine. Thin wrapper for
e_msg_composer_new_from_url.
* mail-display.c (on_link_clicked): print a warning for news or
nntp URLs (which we'll deal with some day), and call send_to_url
for mailto URLs.
* mail-format.c (text_to_html): Improve URL conversion code.
Recognize https, recognize "www\..*" without a prefixed "http://".
Properly escape &, <, >, etc in URL strings. Don't be fooled by
"mailto:", "http://", etc with no following data.
2000-04-26 Dan Winship <danw@helixcode.com>
* mail-format.c (text_to_html): Reorganize a bit and add a new
flag, TEXT_TO_HTML_CONVERT_URLS to recognize and wrap URLs
in text.
* mail-display.c (mail_html_new): Add link_clicked signal handler.
(on_link_clicked): Use gnome_url_show to launch a browser.
* mail-format.c: update for CamelStream changes. Update for
CamelMimeBodyPart -> CamelMimePart
2000-04-25 Dan Winship <danw@helixcode.com>
* mail-display.c, mail-format.c: Redo large chunks of this. The
mail display now consists of a vbox in a scrolled window, in which
we put multiple GtkHTML objects. This means broken HTML in one
part can't corrupt other parts. The headers now scroll with the
body. Unrecognized attachments look prettier, but still don't do
anything, and will probably be changed later. We can also now
display nested message/rfc822 parts and multipart/alternatives
with multipart subparts. Oh, and text/{richtext,enriched}, since
we had all these ancient sample messages that use it and the lack
of support annoyed me. :)
Bonobo embeddables are broken right now, but I don't think that's
my fault.
* mail-format.c (reply_body): Fix some bugs that crept into reply
generation. This needs a lot more work to deal correctly with
complicated bodies.
(setup_function_table): pass unknown text subtypes to
handle_text_plain.
(handle_multipart_appledouble): new handler. Just ignores the
first (application/applefile) part and tries to display the
second part. Since the second part is usually
application/octet-stream, this doesn't work very well still
usually.
(reply_body): Make this deal better with multiparts.
* mail-format.c, mail-display.c: Now that we're not limited to
a single GtkHTML for the display, there's no reason to embed
Bonobo objects for unrecognized content-types in GtkHTML rather
than embedded them into the vbox directly. So do that.
Meanwhile, fix up the handler-selection code so that we can
declare which built-in handlers are more desirable than external
handlers and which are less. (Of course, eventually we'll want
this to be customizable.) Add some cleverness to
handle_multipart_alternative as well so it doesn't accept an
alternative which we can display generically over one we can
display specifically.
* mail-format.c (text_to_html): add a convert_space_hack flag,
which turns N spaces into N-1 s and a space.
(handle_text_plain): Check for "format=flowed" in the
Content-Type.
(handle_text_plain_flowed): Spinoff of handle_text_plain to deal
with RFC 2646 flowed text. (All the examples I can find of it
are generated by Eudora, but it's a pretty cool idea that ought
to be used more widely.)
2000-04-23 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c: rename "send" to "send_msg", to avoid
name clash with the tcp function. Connect the "forward" button.
* mail-ops.c: rename "send" to "send_msg", to avoid name clash
with the tcp function. Add forward_msg function.
* mail-format.c (mail_generate_forward): support function for
forward_msg. Pretty much a big kludge right now, pending the
attachment/attachment-bar changes.
2000-04-22 Dan Winship <danw@helixcode.com>
* mail-display.c (on_url_requested): Change cid expectations to
match current camel reality.
* main.c (main): call glade_gnome_init, for composer.
* folder-browser-factory.c: move msg_composer_cb and
msg_composer_send_cb to mail-ops. Attach send, reply, and "reply
to all" buttons.
* mail-ops.c (composer_send_cb, send): moved from
folder-browser-factory.c.
(reply_to_sender, reply_to_all): new functions to do replies.
* mail-format.c (text_to_html): Add an "add_pre" flag, to make
it wrap the output in <pre></pre>.
(mail_generate_reply): New function to create a composer and build
a reply in it.
2000-04-21 Dan Winship <danw@helixcode.com>
* mail-display.c (on_url_requested): deal with cid: URLs.
(find_cid): helper routine for above. (This could be much better.)
(mail_display_init): connect url_requested signal
* mail-format.c (handle_multipart_related): Make this work.
* mail-display.c (mail_display_set_message): ref the message we
display, since we're going to unref it when we remove it. Fixes a
bug that showed up with the new camel code, but it's not obvious
if it's due to a bug or a feature in the new code.
2000-04-20 NotZed <NotZed@HelixCode.com>
* Makefile.am (evolution_mail_LDADD): Add libibex.la to link.
* message-list.h: Removed folder summary.
* message-list.c: Dont include folder-summary anymore.
(select_msg): Changed to use folder, not summary in
summary_get_message_info(). God this code is grotty.
(ml_value_at): Ditto.
(ml_value_at): Changed to use new interface. Hmm, this returns a
static variable, that seems wrong.
(message_list_set_folder): Remove folder summary.
(ml_row_count): Oops, remove some debug i put there.
2000-04-20 Dan Winship <danw@helixcode.com>
* mail-display.c: update for bonobo change, and remove a
now-unused variable.
2000-04-17 Chris Toshok <toshok@helixcode.com>
* message-list.c (on_row_selection_idle): new function, actually
calls select_msg.
(on_row_selection_cmd): register an idle instead of calling
select_msg directly. this fixes the lag before the row is
selected - selection is instantaneous now, with message loading
happening afterward.
* message-list.h: add row_to_select and an idle_id to the message
list to make the select_msg call happen in an idle func.
* message-list.c (message_list_init_renderers): no more
e_cell_set_editable. this info always comes from the model.
2000-04-14 Dan Winship <danw@helixcode.com>
* mail-format.[ch]: Moved from camel/camel-formatter, and changed
slightly. (More to come.)
* html-stream.[ch]: No longer necessary. mail-format uses
GtkHTMLStreamHandles directly.
* mail-display.[ch]: update for new message formatting code.
2000-04-14 Chris Toshok <toshok@helixcode.com>
* folder-browser-factory.c (control_activate): use
gnome_app_fill_toolbar_with_data, so we get the beautiful gnome
toolbar.
2000-04-14 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (development_warning): Fix up the
warning message a bit.
(folder_browser_factory): Make the warning bypassable.
2000-04-12 Miguel de Icaza <miguel@gnu.org>
* main.c (main): Call e_cursors_init.
2000-04-10 Dan Winship <danw@helixcode.com>
* mail-ops.c (fetch_mail): use camel_movemail when fetching mail
from an mbox store. This leaves behind temp files for now,
because CamelMboxFolder::delete is too confused to use, and NotZed
is rewriting CamelMboxFolder, so I'm not going to bother to try to
fix it.
* mail-ops.c: Add some #includes for the non-HAVE_MKSTEMP case
2000-04-09 Matt Loper <matt@helixcode.com>
* folder-browser.c (folder_browser_new): set folder_browser->uri
to NULL, so that we know when to free it.
2000-04-07 Miguel de Icaza <miguel@gnu.org>
* message-list.c (states_pixmaps): Add more beautiful art from
Miggue, the Diego Rivera of the next millenium.
(message_list_init_header): Use the beautiful art.
* pixmaps: Miguel rediscovers the "transparent" concept.
2000-04-07 Matt Loper <matt@helixcode.com>
* folder-browser.c (folder_browser_destroy): Unref the shell
interface that we have a handle to.
* folder-browser-factory.c (control_destroy_cb): New function;
destroys a folder-browser when its control is destroyed.
(folder_browser_factory): Hook up to the above.
2000-04-07 Dan Winship <danw@helixcode.com>
* mail-ops.c: new file, for toolbar/menu callbacks
(fetch_mail): fetch mail. Doesn't do mbox locking. Many kludges.
* folder-browser-factory.c (control_activate): use new fetch_mail
function as the callback for the "New mail" icon. Rename check_cb
to random_cb.
* Makefile.am: don't build test-sources since the version in
CVS doesn't do much and once I've fixed it it won't be a separate
program. Add mail-ops.[ch].
2000-04-06 Miguel de Icaza <miguel@gnu.org>
* message-list.c: Stick pixmaps here.
* mail-display.c (embeddable_destroy_cb): Replaced C++ comments
with C comments.
* message-list.c (load_internal_images): New function, loads images.
(message_list_init_renderers): Load images, fix previous attempt
at loading images.
* Makefile.am (dist-hook): Added distribution of pixmaps.
* pixmaps: New directory, used to hold the XPMs we ship with.
* pixmaps/envelope-closed.xpm, pixmaps/envelope-open.xpm: Tigert's
envelopes incorporated.
2000-03-31 Miguel de Icaza <miguel@gnu.org>
* message-list.c (ml_value_at): Fix miss-used variable.
2000-04-01 Michael Meeks <michael@helixcode.com>
* folder-browser.c (folder_browser_properties_init): update to
new property (folder_browser_property_changed): kill.
(get_prop, set_prop): do the donkey work + make properly RW.
2000-03-31 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (folder_browser_set_shell):
* folder-browser.c (folder_browser_new):
* message-list.c (on_row_selection_cmd, select_msg,
message_list_init, message_list_set_folder):
remove debugging printf()s that no longer seem useful
2000-03-29 Dan Winship <danw@helixcode.com>
* folder-browser-factory.c (control_activate): build a toolbar.
(control_deactivate): and hide it.
2000-03-27 Chris Toshok <toshok@helixcode.com>
* mail-display.c: quiet warnings when building in ../po
2000-03-26 Miguel de Icaza <miguel@gnu.org>
* folder-browser-factory.c (folder_browser_set_shell): Memory leak
fix.
2000-03-25 Dan Winship <danw@helixcode.com>
* message-list.c (select_msg, ml_value_at): update for summary
changes. Hey, neat, it really does make it more efficient.
2000-03-22 Christopher James Lahey <clahey@helixcode.com>
* .cvsignore: Updated .cvsignore.
2000-03-21 Matt Loper <matt@helixcode.com>
* mail-display.c: Minor cleanup & commenting.
* folder-browser-factory.c: Minor cleanup & warning elimination.
2000-03-21 bertrand <bertrand@helixcode.com>
* message-list.c (ml_value_at): display message size
2000-03-20 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Properly ref & sink the table and header models.
2000-03-14 Dan Winship <danw@helixcode.com>
* mail-sources.c: First cut at a mail source selection wizard.
Basically a rigged demo at this point. Doesn't use camel to get
its information, and is not yet complete or integrated with the
mail component. Did I mention that the code is ugly?
2000-03-13 bertrand <bertrand@helixcode.com>
* folder-browser-factory.c (folder_browser_set_shell):
for testing and demonstration purpose, immediately
register a fake service.
2000-03-12 bertrand <bertrand@helixcode.com>
* folder-browser-factory.c (folder_browser_factory_init):
name change.
(control_activate_cb): when the control is activated,
it merges its own UI with the remote UIHandler.
(control_add_menu): sample menu merging.
(folder_browser_factory): connect the control "activate" signal.
* evolution-mail.gnorba:
name changes
* folder-browser.h: added a reference to an
Evolution::Shell object.
* folder-browser-factory.c (folder_browser_set_shell):
(folder_browser_control_add_service_repository_interface):
(folder_browser_factory): the folder-browser control now
implements the Evolution/ServiceRepository interface.
2000-03-07 bertrand <bertrand@helixcode.com>
* folder-browser-factory.c (development_warning):
added a warning so that the user knows that this
version may crash his mails.
2000-03-05 bertrand <bertrand@helixcode.com>
* message-list.h: include a referrence to the parent
folder browser.
* message-list.c (ml_value_at): use the message summary
from the
* html-stream.c (html_stream_close): when the stream
is closed, set the html stream to NULL
(html_stream_write): don't write anything if the
html handle does not exist.
(html_stream_reset): implemented. close the current
html handle and begins a new html parser.
* session.c (session_store_new): use static exception
here.
2000-03-05 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Added a prototype message listing.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Set up the column headers properly.
* folder-browser.c: Show the folder_browser widget.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Define ml_duplicate_value and ml_free_value
correctly.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Use g_int_compare and g_str_compare as we should
be instead of g_int_equal and g_str_equal.
2000-03-04 bertrand <bertrand@helixcode.com>
* test-mail.c (main): replace the bonobo-active/gtk-main
by bonobo-main.
Include Gnorba headers.
(main): don't call the container creation routine
before we entered the main loop. Use idle for that.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Change this to use the ETable widget itself
instead of building it from all the parts.
2000-03-03 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Ref the table columns since we unref them at the
end.
2000-03-01 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (INCLUDES): Add `$(top_srcdir)'. Also, the
`top_srcdir' includes must come first everything else to avoid
including installed headers instead of our fresh ones.
2000-02-28 NotZed <NotZed@HelixCode.com>
* Makefile.am (evolution_mail_LDADD): Fixed references to eutil.
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Changed to match new e_table_simple interface.
2000-02-24 Dan Winship <danw@helixcode.com>
* message-list.c (message_list_set_folder): update for CamelFolder
changes
2000-02-24 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Changed this to not use the "x" and "y"
arguments to e-table-item.
2000-02-23 Matt Loper <matt@helixcode.com>
* message-list.c (message_list_set_folder): Check 'desc'riptions
of exceptions.
2000-02-22 bertrand <Bertrand.Guiheneuf@aful.org>
* message-list.c (message_list_set_folder):
fix to show a sample correct implementation.
2000-02-21 Matt Loper <matt@helixcode.com>
* Makefile.am: added -lunicode to evolution_mail_LDADD.
2000-02-21 Dan Winship <danw@helixcode.com>
* session.c (session_store_new): Pass a CamelAuthCallback
(evolution_auth_callback) to camel_session_new.
2000-02-21 Dan Winship <danw@helixcode.com>
* session.c (session_store_new): Update session_store_new to
deal with the fact that camel_session_get_store takes a
CamelException now. Doesn't actually do anything with the
exception yet, because nothing else does yet either.
2000-02-19 Matt Loper <matt@helixcode.com>
* .cvsignore: added test-mail.
2000-02-14 Miguel de Icaza <miguel@gnu.org>
* folder-browser.c (folder_browser_load_folder): New routine,
loads a camel folder.
(folder_browser_set_uri): redo.
* session.c: new file. Implements SessionStores to keep track of
a Session/Store tuple.
2000-02-13 Matt Loper <matt@helixcode.com>
* html-stream.c (html_stream_new): Second param of gtk_html_begin
should be "", not NULL.
(html_stream_new): gtk_html_parse() is deprecated, so the call was
removed.
* html-stream.h: HTMLStreamClass's parent changed to
CamelStreamClass, not CamelStream.
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Add the e-text directory to the includes list.
* message-list.c: Change the call to e_cell_text_new, since
there's an added argument.
2000-02-09 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added libetext as libetable depends on it.
2000-02-08 Iain Holmes <ih@csd.abdn.ac.uk>
* Makefile.am: Changed the order of the compilation so the CORBA stuff
was made before it was needed.
2000-01-19 Miguel de Icaza <miguel@gnu.org>
* Started work on the mail display engine.
* html-stream.c, html-stream.h: New files, they are CamelStreams
used to write to the GtkHTML widget.
|