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
|
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on January, 15 2002 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
-->
<HEAD>
<TITLE>Insidious Big Brother Database User Manual: 1. BBDB</TITLE>
<META NAME="description" CONTENT="Insidious Big Brother Database User Manual: 1. BBDB">
<META NAME="keywords" CONTENT="Insidious Big Brother Database User Manual: 1. BBDB">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.64">
<link rel="stylesheet" href="bbdb.css">
</HEAD>
<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
<A NAME="SEC1"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1> 1. BBDB </H1>
<!--docid::SEC1::-->
<P>
<B>BBDB</B> is a rolodex-like database program for GNU Emacs. <B>BBDB</B> stands
for <B><I>Insidious Big Brother Database</I></B>, and is not, repeat, <EM>not</EM> an
obscure reference to the Buck Rogers TV series.
</P><P>
It provides the following features:
</P><P>
<UL>
<LI>
Integration with mail and news readers, with little or no
interaction by the user: <P>
<UL>
<LI>
easy (or automatic) display of the record corresponding to the sender of
the current message; <P>
<LI>
automatic creation of records based on the contents of the current
message; <P>
<LI>
automatic addition of data to arbitrary fields of the record
corresponding to the sender of the current message. </UL>
<P>
<LI>
Listing all records which match a regular expression;
<P>
<LI>
Listing all records which match a regular expression in a particular
field (<SAMP>`company'</SAMP> or <SAMP>`notes,'</SAMP> for example); </UL>
<P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC2">1.1 Installation</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC29">1.2 The <B>BBDB</B></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Overview</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC34">1.3 BBDB Mode</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC37">1.4 Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Interfaces to various readers</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC41">1.5 Reader-specific Features</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Features only available to specific readers</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC53">1.6 Using the <B>BBDB</B> with other packages</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Using the BBDB with other packages</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC58">1.7 Options</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC62">1.8 Utilities</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC67">1.9 Internals</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">BBDB Internals</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC75">1.10 Mailing Lists</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">The BBDB mailing lists</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC76">1.11 Changes in this Version</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">New in this version</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC81">1.12 The Latest Version</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Where to Get It</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC82">1.13 The Future</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Known Bugs, the TODO list and EOL statements</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC89">1.14 Thanks</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">to the Ministry of Bugs</TD></TR>
</TABLE>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_3.html#SEC94">Concept Index</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_4.html#SEC95">Variable Index</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
-- The Detailed Node Listing ---
<br>
<br>
Installation
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC3">1.1.1 General Prerequisites</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">General <B>BBDB</B> requirements</TD></TR>
</TABLE>
<br>
File Installation
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC4">1.1.2 Normal User Installation</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">"Normal" Installations</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC11">1.1.3 XEmacs Package Installation</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Installing as an XEmacs package</TD></TR>
</TABLE>
<br>
Initial Configuration
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC14">1.1.4 Initial Configuration</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How to initially set up the <B>BBDB</B></TD></TR>
</TABLE>
<br>
Manual initialization
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC20">1.1.4.1 Initializing <B>BBDB</B> support for Gnus</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC21">1.1.4.2 Initializing <B>BBDB</B> support for MH-E</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC22">1.1.4.3 Initializing <B>BBDB</B> support for RMAIL</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC23">1.1.4.4 Initializing <B>BBDB</B> support for Sendmail</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC24">1.1.4.5 Initializing <B>BBDB</B> support for VM</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
Other packages:
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC25">1.1.4.6 Initializing <B>BBDB</B> support for Message mode</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC26">1.1.4.7 Initializing <B>BBDB</B> support for Reportmail</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC27">1.1.4.8 Initializing <B>BBDB</B> support for Supercite</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC28">1.1.4.9 Initializing <B>BBDB</B> support for Web Browsers</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
The <B>BBDB</B>
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC30">1.2.1 Database Fields</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Description of database fields</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC31">1.2.2 Basic searching commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Basic database searching commands</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC32">1.2.3 Advanced searching commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Advanced database searching commands</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC33">1.2.4 Manual record addition</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Adding records by hand</TD></TR>
</TABLE>
<br>
Interfaces
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC38">1.4.1 Mail Reading Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC39">1.4.2 News Reading Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC40">1.4.3 Mail Sending Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
Reader-specific Features
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC42">1.5.1 Gnus-specific Features</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC48">1.5.2 VM-specific features</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">VM-specific Features</TD></TR>
</TABLE>
<br>
Gnus-specific Features
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC43">1.5.1.1 Scoring</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Store score adjustments in the <B>BBDB</B></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC44">1.5.1.2 Gnus Summary Buffer Enhancements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"><B>BBDB</B> information in the Summary buffer</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC47">1.5.1.3 GNUS Summary Buffer Enhancements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"><B>BBDB</B> information in the Subject List</TD></TR>
</TABLE>
<br>
VM-specific features
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC49">1.5.2.1 VM Message Summary Enhancements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"><B>BBDB</B> information in message summary</TD></TR>
</TABLE>
<br>
Using the <B>BBDB</B> with other packages
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC54">1.6.1 Using the <B>BBDB</B> with Message Mode</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC55">1.6.2 Using the <B>BBDB</B> with Reportmail</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC56">1.6.3 Using the <B>BBDB</B> with Supercite</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC57">1.6.4 Using the <B>BBDB</B> with Web Browsers</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
Options
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC59">1.7.1 Customization Parameters</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC60">1.7.2 Customization Hooks</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC61">1.7.3 Predefined Hooks</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
Utilities
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC63">1.8.1 <CODE>bbdb-ftp</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Storing FTP sites in the <B>BBDB</B></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC64">1.8.2 <CODE>bbdb-print</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Print the <B>BBDB</B></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC65">1.8.3 <CODE>bbdb-snarf</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Record generation from raw text</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC66">1.8.4 <CODE>bbdb-srv</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">External control of the <B>BBDB</B></TD></TR>
</TABLE>
<br>
Changes in this Version
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC77">1.11.1 Major Changes</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Major changes in this version</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC79">1.11.2 Other Changes</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Not-so-major changes</TD></TR>
</TABLE>
<br>
The Future
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC83">1.13.1 Known Bugs</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Known Bugs, and how to submit new ones</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC84">1.13.2 TODO List</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">The TODO List</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC88">1.13.3 End of Life (EOL) Statements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">EOL (End Of Life) Statements</TD></TR>
</TABLE>
<br>
_
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
</TABLE>
<br>
</BLOCKQUOTE>
<P>
<A NAME="Installation"></A>
<HR SIZE="6">
<A NAME="SEC2"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC1"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC3"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.1 Installation </H2>
<!--docid::SEC2::-->
<P>
This program consists of several groups of files, organized by
directory:
</P><P>
<TABLE><tr><td> </td><td class=example><pre> lisp - the main program code for the <B>BBDB</B>
tex - TeX support files for See section <A HREF="bbdb_1.html#SEC64">1.8.2 <CODE>bbdb-print</CODE></A>, the <B>BBDB</B>
printing utility
texinfo - the documentation files for the <B>BBDB</B>
utils - miscellaneous external utility programs
misc - things that don't fall into the above categories
</pre></td></tr></table></P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC3">1.1.1 General Prerequisites</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">General <B>BBDB</B> requirements</TD></TR>
</TABLE>
<br>
File Installation
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC4">1.1.2 Normal User Installation</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">"Normal" Installations</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC11">1.1.3 XEmacs Package Installation</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Installing as an XEmacs package</TD></TR>
</TABLE>
<br>
Initial Configuration
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC14">1.1.4 Initial Configuration</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How to initially set up the <B>BBDB</B></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="General Prerequisites"></A>
<HR SIZE="6">
<A NAME="SEC3"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC4"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.1.1 General Prerequisites </H3>
<!--docid::SEC3::-->
<P>
Various parts of the <B>BBDB</B> require extra packages to be available
that are not part of the <B>BBDB</B> distribution. Please note that with
one exception no extra packages (beyond those which ship with both GNU
Emacs and XEmacs) are required for the use of <B>BBDB</B> core
functionality.<A NAME="DOCF1" HREF="bbdb_fot.html#FOOT1">(1)</A> This one exception
applies to XEmacs 20.5 users - the <CODE>xemacs-base</CODE> package must be
installed for the correct operation of the core <B>BBDB</B> functionality.
The table below lists the requirements of the various portions of the
<B>BBDB</B>. Please note that the absence of any of the below optional
packages will not affect core <B>BBDB</B> functionality.
</P><P>
<TABLE>
<TR><TD><BR> BBDB file</TD>
</TD><TD> <BR> Package needed
</TD><TD> <BR> GNU 19.34
</TD><TD> <BR> GNU 20.2
</TD><TD> XEmacs<BR> @center >=20.4
</TD><TD> XEmacs<BR> @center 20.5
</TR>
<TR><TD><CODE>bbdb-ftp</CODE></TD>
</TD><TD> EFS or <BR> Ange-FTP
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center P
</TR>
<TR><TD><CODE>bbdb-gnus</CODE></TD>
</TD><TD> Gnus[1]
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center P
</TR>
<TR><TD><CODE>bbdb-mhe</CODE></TD>
</TD><TD> MH-E
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center P
</TR>
<TR><TD><CODE>bbdb-reportmail</CODE></TD>
</TD><TD> Reportmail
</TD><TD>
</TD><TD>
</TD><TD> @center B
</TD><TD> @center P[2]
</TR>
<TR><TD><CODE>bbdb-sc</CODE></TD>
</TD><TD> Supercite
</TD><TD> @center B
</TD><TD>
</TD><TD> @center B
</TD><TD> @center P
</TR>
<TR><TD><CODE>bbdb-srv</CODE></TD>
</TD><TD> <CODE>gnuserv</CODE> and <BR> <CODE>itimer</CODE>
</TD><TD>
</TD><TD>
</TD><TD> @center B
</TD><TD> @center B
</TR>
<TR><TD><CODE>bbdb-vm</CODE></TD>
</TD><TD> VM
</TD><TD>
</TD><TD>
</TD><TD> @center B
</TD><TD> @center P
</TR>
<TR><TD><CODE>bbdb-w3</CODE></TD>
</TD><TD> <CODE>browse-url</CODE>
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center B
</TD><TD> @center P[3]
</TR></TABLE>
<P>
<BR>
<B>NOTES:</B>
<OL>
<LI>
The three year old GNUS mail/newsreader should still
work. Please keep in mind that you have a relatively recent Emacs (GNU
19.34 or later, XEmacs 19.15 or later), you are probably using Gnus.
<LI>
As of this writing, Reportmail is available as
part of the <CODE>edit-utils</CODE> package.
<LI>
As of this writing, <CODE>browse-url</CODE> is
available as part of the <CODE>mail-lib</CODE> package.
</OL>
<P>
Please also note that the XEmacs package locations are as of this
writing. As the XEmacs 20.5 package system is still in development, the
locations may change without warning.
</P><P>
<A NAME="Normal User"></A>
<HR SIZE="6">
<A NAME="SEC4"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC3"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.1.2 Normal User Installation </H3>
<!--docid::SEC4::-->
<P>
<A NAME="SEC5"></A>
<H3> Configuring the compilation process </H3>
<!--docid::SEC5::-->
<P>
First of all, you should run the <CODE>configure</CODE> script at the toplevel
of the distribution. This script will perform a number of checks on
your system and generate the <TT>`Makefile'</TT>'s accordingly.
</P><P>
The <CODE>configure</CODE> script also comes with a number of options that
lets you customize the compilation process. These options are described
below where appropriate.
</P><P>
<A NAME="SEC6"></A>
<H3> Byte Compiling the Lisp files </H3>
<!--docid::SEC6::-->
<P>
First, you need to byte-compile the appropriate <B>BBDB</B> Lisp files.
While this is in theory an optional step, it is virtually required in
practice due to speed reasons.
</P><P>
In order to byte-compile the lisp files, an Emacs of some sort must be
used. By default (at <CODE>configure</CODE> time), <CODE>emacs</CODE> and
<CODE>xemacs</CODE> will be tried in that order. If you want to use a special
Emacs flavor (or if you want to use <CODE>xemacs</CODE> at the first place),
you should pass the <CODE>--with-emacs=PROG</CODE> option to <CODE>configure</CODE>.
</P><P>
In order to successfully compile the <B>BBDB</B>, the build process also
needs to know the location of the various optional packages. If the
directories containing these optional packages are in the default Emacs
search path (the <CODE>load-path</CODE> variable), no other changes need be
made for the build process to complete successfully.
</P><P>
If the optional packages are not in the default search path, the build
process will not find them unless explicitly told of their location(s).
To tell the build process where to find Gnus, MH-E, and/or VM, use the
<CODE>configure</CODE> options <CODE>--with-gnus-dir=DIR</CODE>,
<CODE>--with-mhe-dir=DIR</CODE>, and/or <CODE>--with-vm-dir=DIR</CODE> variables
respectively. To tell the build process where to find any other
package(s), pass the directories containing the lisp files for the
package(s) to the <CODE>configure</CODE> option <CODE>--with-other-dirs=DIRS</CODE>.
If multiple directories are to be added, they should be separated by
spaces or colons, and should <B>not</B> be quoted. For example, to
add the <TT>`/p/local/elisp/footnote'</TT> and <TT>`/p/local/elisp/sc'</TT>
directories, call the <CODE>configure</CODE> script as follows:
</P><P>
<TABLE><tr><td> </td><td class=example><pre> <CODE>configure --with-other-dirs=/p/local/elisp/footnote:/p/local/elisp/sc</CODE>
</pre></td></tr></table></P><P>
After configuring, run one of the following commands:
</P><P>
<TABLE><tr><td> </td><td class=example><pre> <CODE>make bbdb</CODE> - Build the core, mailer independent, components
<CODE>make gnus</CODE> - Core components plus <CODE>Gnus</CODE> support
<CODE>make mhe</CODE> - Core components plus <CODE>MH-E</CODE> support
<CODE>make rmail</CODE> - Core components plus <CODE>RMAIL</CODE> support
<CODE>make vm</CODE> - Build the core components with <CODE>VM</CODE> support
<CODE>make all</CODE> - Core components plus support for all mailers
listed above
</pre></td></tr></table></P><P>
You can also combine the above <CODE>make</CODE> commands. For example, to
build the <B>BBDB</B> with support for <CODE>Gnus</CODE> and <CODE>VM</CODE>, you can
do so by typing:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>make gnus vm
</pre></td></tr></table></P><P>
<A NAME="SEC7"></A>
<H3> Moving the files to their final destination </H3>
<!--docid::SEC7::-->
<P>
<A NAME="SEC8"></A>
<H4> Lisp files </H4>
<!--docid::SEC8::-->
<P>
As stated above, the <TT>`lisp'</TT> subdirectory contains the Emacs Lisp source
files for the <B>BBDB</B>. Therefore, these files must be in the Emacs
<CODE>load-path</CODE>. There are several ways of doing this, three of which are
described below:
</P><P>
<UL>
<LI>
Add the <TT>`lisp'</TT> directory from the source distribution to the
<CODE>load-path</CODE>. This will allow you to run the <B>BBDB</B> in-place. This
method is recommended for normal users or <B>BBDB</B> developers, especially if
disk usage is an issue. It is <B>not</B> recommended for site-wide
installations. <P>
<LI>
Link the <TT>`lisp'</TT> directory into your <TT>`site-lisp'</TT> directory. This is
for a site-wide installation, but it is subject to the following caveat. If you
link the <TT>`lisp'</TT> directory into <TT>`site-lisp'</TT>, you will make life more
difficult for yourself down the road, as you will not be able to make changes to
the source directory (new versions, patches, etc) without having an effect on
other users who now depend on it. This directory will automatically be added to
the <CODE>load-path</CODE> when Emacs starts. <P>
<LI>
Make a directory whose sole purpose in life is containing the production copies
of the <B>BBDB</B> source and byte-compiled source files. Either put this
directory under <TT>`site-lisp'</TT> (or put it somewhere else and link it into
<TT>`site-lisp'</TT>). This directory will automatically be added to the
<CODE>load-path</CODE> when Emacs starts. This is the best of the three listed here,
as it allows for a degree of separation between the (possibly changing) source
tree and the production code.
</UL>
<P>
<A NAME="SEC9"></A>
<H4> TeX files </H4>
<!--docid::SEC9::-->
<P>
The <TT>`tex'</TT> subdirectory contains the TeX support files for
bbdb-print, the <B>BBDB</B> printing utility (See section <A HREF="bbdb_1.html#SEC64">1.8.2 <CODE>bbdb-print</CODE></A>.). The
three support files, <TT>`bbdb-cols.tex'</TT>, <TT>`bbdb-print.tex'</TT>, and
<TT>`bbdb-print-brief.tex'</TT>, must be placed in a directory that is
either on the default TeX search path or is listed in the
<CODE>TEXINPUTS</CODE> environment variable. If neither of these two options
is taken, TeX will not be able to process the file output by
<CODE>bbdb-print</CODE>.
</P><P>
<A NAME="SEC10"></A>
<H4> texinfo files </H4>
<!--docid::SEC10::-->
<P>
The <TT>`bbdb.info'</TT> file in this directory contains the documentation
for the <B>BBDB</B>. This file should either be linked or copied to a
directory on the default path for the <CODE>info</CODE> program or listed in
the <CODE>INFOPATH</CODE> environment variable.
</P><P>
<A NAME="XEmacs Package"></A>
<HR SIZE="6">
<A NAME="SEC11"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC4"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.1.3 XEmacs Package Installation </H3>
<!--docid::SEC11::-->
<P>
<B>NOTE:</B> XEmacs packages are currently supported only under XEmacs
versions after and including 20.5. If you are not running such a version
of XEmacs, you should install the <B>BBDB</B> according to the instructions
in <A HREF="bbdb_1.html#SEC4">1.1.2 Normal User Installation</A>.
</P><P>
<A NAME="SEC12"></A>
<H3> Configuring / Byte Compiling </H3>
<!--docid::SEC12::-->
<P>
The configuration and byte-compilation procedures are the same as in the
Normal User installation. See <A HREF="bbdb_1.html#SEC4">1.1.2 Normal User Installation</A>.
</P><P>
<A NAME="SEC13"></A>
<H3> Moving the files to their final destination </H3>
<!--docid::SEC13::-->
<P>
Support is provided for the automatic installation of the <B>BBDB</B> in an
XEmacs package directory. The following <CODE>configure</CODE> options are
available for you:
</P><P>
<DL COMPACT>
<DT><B><CODE>--with-package-dir=DIR</CODE></B>
<DD>This option sets the root of the XEmacs package directory. By default,
<TT>`/usr/local/lib/xemacs/site-packages'</TT> is used.
<DT><B><CODE>--with-symlinks</CODE></B>
<DD>If this option is used, the installation will be done by making symbolic
links to the sources instead of copying the files.
<DT><B><CODE>--with-linkpath=PATH</CODE></B>
<DD>Without this option, the installation process uses the output of
<CODE>pwd</CODE> to determine the current directory. If something else should
be used, you should provide an alternate name for the BBDB toplevel
directory by using <CODE>--with-linkpath</CODE>. If, for example, <CODE>pwd</CODE>
returns <TT>`/p/local/elisp/bbdb'</TT>, but you prefer to use
<TT>`/usr/local/elisp/bbdb/...'</TT> for the links, usr this:
<CODE>configure --with-linkpath=/usr/local/elisp/bbdb</CODE>. This option is
ignored if <CODE>--with-symlinks</CODE> is not used.
</DL>
<P>
To perform the (un)installation, use the command <CODE>make (un)install-pkg</CODE>.
This will compile the <TT>`lisp/auto-autoloads.el'</TT> file and will
install the appropriate files to the appropriate places. The final
installation tree will take the following form:
</P><P>
<DL COMPACT>
<DT><CODE>$(PACKAGEDIR)/</CODE>
<DD><DL COMPACT>
<DT><CODE>lisp/</CODE>
<DD><DL COMPACT>
<DT><CODE>bbdb/</CODE>
<DD> <I><B>BBDB</B> lisp source files. This directory contains a copy of all
<CODE>.el</CODE> and <CODE>.elc</CODE> files from the <TT>`lisp'</TT> source directory,
or is a symbolic link to it.</I>
</DL>
<DT><CODE>info/</CODE>
<DD><DL COMPACT>
<DT><CODE>bbdb.info*</CODE>
<DD> <I><B>BBDB</B> documentation files. These are either copies of the info
files from the <TT>`texinfo'</TT> source directory, or are symbolic links to
them.</I>
</DL>
<DT><CODE>etc/</CODE>
<DD><DL COMPACT>
<DT><CODE>bbdb/</CODE>
<DD><DL COMPACT>
<DT><CODE>tex/</CODE>
<DD> <I><B>BBDB</B> support files for bbdb-print. This directory contains a
copy of the appropriate files from the <TT>`tex'</TT> source directory, or
is a symbolic link to it.</I>
<DT><CODE>utils/</CODE>
<DD> <I><B>BBDB</B> miscellaneous utilities. This directory contains a copy
of the appropriate files from the <TT>`utils'</TT> source directory, or is a
symbolic link to it.</I>
</DL>
</DL>
</DL>
</DL>
<P>
<A NAME="Initial Configuration"></A>
<HR SIZE="6">
<A NAME="SEC14"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC20"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.1.4 Initial Configuration </H3>
<!--docid::SEC14::-->
<P>
The simplest way to configure the <B>BBDB</B> is to include the following
forms in your Emacs configuration file:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(require 'bbdb)</CODE>
<CODE>(bbdb-initialize)</CODE>
</pre></td></tr></table></P><P>
<B>Note:</B> The forms above replace the autoloads needed for previous
versions of the <B>BBDB</B>.
</P><P>
This will set up the <B>BBDB</B> for basic querying and record manipulation
(the Core Functionality referred to in the Prerequisites section). It
will not enable any of the mailreader-, newsreader- or other
package-specific <B>BBDB</B> features. To enable some or all of these
features, the <CODE>(bbdb-initialize)</CODE> form can be enable as shown
below. Alternatively, the features can be enabled manually as described
in the following sections.
</P><P>
<A NAME="SEC15"></A>
<H3> Modifying <CODE>(bbdb-initialize)</CODE> </H3>
<!--docid::SEC15::-->
<P>
The <CODE>bbdb-initialize</CODE> function can be used to enable the various
package-specific <B>BBDB</B> functions. This feature activation is
accomplished through the passing of symbols which tell the function
which features to activate. These symbols are outlined below and in the
Emacs documentation for the <CODE>bbdb-initialize</CODE><A NAME="DOCF2" HREF="bbdb_fot.html#FOOT2">(2)</A>
</P><P>
<A NAME="SEC16"></A>
<H4> Initialization symbols for mail and news readers </H4>
<!--docid::SEC16::-->
<P>
<DL COMPACT>
<DT><CODE>gnus</CODE>
<DD> Initialize support for Gnus<A NAME="DOCF3" HREF="bbdb_fot.html#FOOT3">(3)</A>. If you pass the <CODE>gnus</CODE> symbol, you should
probably also pass the <CODE>message</CODE> symbol.
<DT><CODE>mh-e</CODE>
<DD> Initialize support for the MH-E mail reader.
<DT><CODE>rmail</CODE>
<DD> Initialize support for the RMAIL mail reader.
<DT><CODE>sendmail</CODE>
<DD> Initialize support for sendmail (<KBD>M-x mail</KBD>)
<DT><CODE>vm</CODE>
<DD> Initialize support for the VM mail reader.<A NAME="DOCF4" HREF="bbdb_fot.html#FOOT4">(4)</A>
</DL>
<P>
<A NAME="SEC17"></A>
<H4> Initialization symbols for other packages </H4>
<!--docid::SEC17::-->
<P>
<DL COMPACT>
<DT><CODE>message</CODE>
<DD> Initialize support for Message mode (the mail composition program
included with Gnus).
<DT><CODE>reportmail</CODE>
<DD> Initialize support for the Reportmail mail notification package.
<DT><CODE>sc</CODE>
<DD> Initialize support for the Supercite message citation package.
Additional initialization is required for Supercite to work with the
<B>BBDB</B>. See section <A HREF="bbdb_1.html#SEC27">1.1.4.8 Initializing <B>BBDB</B> support for Supercite</A>.
<DT><CODE>w3</CODE>
<DD> Initialize support for Web browsers.
</DL>
<P>
<A NAME="SEC18"></A>
<H4> Initialization example </H4>
<!--docid::SEC18::-->
<P>
To initialize support for Gnus 5.5, Message mode, Supercite, and Web
browsers, the following forms would be used:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(require 'bbdb)
(bbdb-initialize 'gnus 'message 'sc 'w3)
</pre></td></tr></table></P><P>
<A NAME="SEC19"></A>
<H4> Manual initialization </H4>
<!--docid::SEC19::-->
<P>
If your initialization needs exceed those provided by
<CODE>bbdb-initialize</CODE>, refer to the following sections for a
description of the procedures necessary for enabling <B>BBDB</B> support
for the packages listed above. The procedures described are the same as
those carried out by the <CODE>bbdb-initialize</CODE> function when passed the
appropriate symbols. That is, the procedure listed in the RMAIL Prep
section below is the same as than executed by <CODE>bbdb-initialize</CODE>
when the <CODE>rmail</CODE> symbol is passed.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
</TABLE>
Mail and News readers:
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC20">1.1.4.1 Initializing <B>BBDB</B> support for Gnus</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC21">1.1.4.2 Initializing <B>BBDB</B> support for MH-E</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC22">1.1.4.3 Initializing <B>BBDB</B> support for RMAIL</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC23">1.1.4.4 Initializing <B>BBDB</B> support for Sendmail</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC24">1.1.4.5 Initializing <B>BBDB</B> support for VM</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE>
<br>
Other packages:
<br>
<br>
<TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC25">1.1.4.6 Initializing <B>BBDB</B> support for Message mode</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC26">1.1.4.7 Initializing <B>BBDB</B> support for Reportmail</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC27">1.1.4.8 Initializing <B>BBDB</B> support for Supercite</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC28">1.1.4.9 Initializing <B>BBDB</B> support for Web Browsers</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Gnus Prep"></A>
<HR SIZE="6">
<A NAME="SEC20"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC21"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.1 Initializing <B>BBDB</B> support for Gnus </H4>
<!--docid::SEC20::-->
<P>
To take advantage of the <B>Gnus</B> features of the <B>BBDB</B>, add one of
the following forms to your Emacs configuration file: </P><P>
For Gnus 3.14 or older:
</P><P>
<CODE>(add-hook 'gnus-Startup-hook 'bbdb-insinuate-gnus)</CODE>
</P><P>
For Gnus 3.15 or newer:
</P><P>
<CODE>(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)</CODE>
</P><P>
<CODE>bbdb-insinuate-gnus</CODE> adds bindings for the default keys to
<B>Gnus</B> and configures <B>Gnus</B> to notify the <B>BBDB</B> when new
messages are loaded. This notification is required if the <B>BBDB</B> is
to be able to display <B>BBDB</B> entries for messages displayed in
<B>Gnus</B>.
</P><P>
<A NAME="MH-E Prep"></A>
<HR SIZE="6">
<A NAME="SEC21"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC20"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC22"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.2 Initializing <B>BBDB</B> support for MH-E </H4>
<!--docid::SEC21::-->
<P>
To take advantage of the <B>MH-E</B> features of the <B>BBDB</B>, add the
following form to your Emacs configuration file: </P><P>
<TABLE><tr><td> </td><td class=example><pre>(add-hook 'mh-folder-mode-hook 'bbdb-insinuate-mh)
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-mh</CODE> adds bindings for the default keys to
<B>MH-E</B> and configures <B>MH-E</B> to notify the <B>BBDB</B> when new
messages are loaded. This notification is required if the <B>BBDB</B> is
to be able to display <B>BBDB</B> entries for messages displayed in
<B>MH-E</B>.
</P><P>
<A NAME="RMAIL Prep"></A>
<HR SIZE="6">
<A NAME="SEC22"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC21"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC23"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.3 Initializing <B>BBDB</B> support for RMAIL </H4>
<!--docid::SEC22::-->
<P>
To take advantage of the <B>RMAIL</B> features of the <B>BBDB</B>, add the
following form to your Emacs configuration file: </P><P>
<TABLE><tr><td> </td><td class=example><pre>(add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail)
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-rmail</CODE> adds bindings for the default keys to
<B>RMAIL</B> and configures <B>RMAIL</B> to notify the <B>BBDB</B> when new
messages are loaded. This notification is required if the <B>BBDB</B> is
to be able to display <B>BBDB</B> entries for messages displayed in
<B>RMAIL</B>.
</P><P>
<A NAME="Sendmail Prep"></A>
<HR SIZE="6">
<A NAME="SEC23"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC22"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC24"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.4 Initializing <B>BBDB</B> support for Sendmail </H4>
<!--docid::SEC23::-->
<P>
To take advantage of send-mail-mode (the one invoked with <CODE>M-x
mail</CODE>) features of the <B>BBDB</B>, add the following form to your Emacs
configuration file: </P><P>
<TABLE><tr><td> </td><td class=example><pre>(add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail)
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-sendmail</CODE> enables auto-completion in
send-mail-mode.
</P><P>
<A NAME="VM Prep"></A>
<HR SIZE="6">
<A NAME="SEC24"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC23"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC25"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.5 Initializing <B>BBDB</B> support for VM </H4>
<!--docid::SEC24::-->
<P>
To take advantage of the <B>VM</B> features of the <B>BBDB</B>, add the
following form to your <TT>`~/.vm'</TT> file:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(bbdb-insinuate-vm)</CODE>
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-vm</CODE> adds bindings for the default keys to <B>VM</B>
and configures <B>VM</B> to notify the <B>BBDB</B> when new messages are
loaded. This notification is required if the <B>BBDB</B> is to be able to
display <B>BBDB</B> entries for messages displayed in <B>VM</B>.
</P><P>
<A NAME="Message Prep"></A>
<HR SIZE="6">
<A NAME="SEC25"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC24"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC26"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.6 Initializing <B>BBDB</B> support for Message mode </H4>
<!--docid::SEC25::-->
<P>
To allow the <B>BBDB</B> to be used in Message mode, add the following form
to your Emacs initialization file:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(bbdb-insinuate-message)</CODE>
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-message</CODE> adds a binding for <KBD>M-TAB</KBD> to Message
mode. This will enable completion of addressees based on <B>BBDB</B>
records. See <A HREF="bbdb_1.html#SEC54">1.6.1 Using the <B>BBDB</B> with Message Mode</A> for more details on the operation
of Message mode <B>BBDB</B> record completion.
</P><P>
<A NAME="Reportmail Prep"></A>
<HR SIZE="6">
<A NAME="SEC26"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC25"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC27"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.7 Initializing <B>BBDB</B> support for Reportmail </H4>
<!--docid::SEC26::-->
<P>
To allow the Reportmail package to report information from <B>BBDB</B>
records for new mail, add the following form to your Emacs
initialization file:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(bbdb-insinuate-reportmail)</CODE>
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-reportmail</CODE> adds to the
<CODE>display-time-get-field</CODE> function to allow access to <B>BBDB</B>
records during new mail information display. See <A HREF="bbdb_1.html#SEC55">1.6.2 Using the <B>BBDB</B> with Reportmail</A>
for more details on the operation of Reportmail with the <B>BBDB</B>.
</P><P>
<A NAME="Supercite Prep"></A>
<HR SIZE="6">
<A NAME="SEC27"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC26"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC28"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.8 Initializing <B>BBDB</B> support for Supercite </H4>
<!--docid::SEC27::-->
<P>
To allow the <B>BBDB</B> to assist in the storage of Supercite citations,
add the following form to your Emacs initialization file:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(bbdb-insinuate-sc)</CODE>
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-sc</CODE> adds <B>BBDB</B> functions to two Supercite hooks
- <CODE>sc-post-hook</CODE> and <CODE>sc-attribs-postselect-hook</CODE>. See
<A HREF="bbdb_1.html#SEC56">1.6.3 Using the <B>BBDB</B> with Supercite</A> for more details on the operation of Supercite
citation management using the <B>BBDB</B>.
</P><P>
Three other Supercite variables must be set/modified to allow the
<B>BBDB</B> to work with it. These variables are not automatically set as
it would be impossible to reliably set them without interfering with
other user customizations. The modifications are:
</P><P>
<DL COMPACT>
<DT><CODE>sc-preferred-attribution-list</CODE>
<DD><CODE>"sc-consult"</CODE> should be added to the list. An example
configuration is:
<P>
<TABLE><tr><td> </td><td class=example><pre>(setq sc-preferred-attribution-list
'("sc-lastchoice" "x-attribution" "sc-consult"
"initials" "firstname" "lastname"))
</pre></td></tr></table></P><P>
<DT><CODE>sc-attrib-selection-list</CODE>
<DD>The following form should be added to <CODE>sc-attrib-selection-list</CODE>:
<P>
<TABLE><tr><td> </td><td class=example><pre> '(("sc-from-address"
((".*" . (bbdb/sc-consult-attr
(sc-mail-field "sc-from-address"))))))
</pre></td></tr></table></P><P>
<DT><CODE>sc-mail-glom-frame</CODE>
<DD>The following form should be added to <CODE>sc-mail-glom-frame</CODE>, to
allow the retrieval of the name of a person who is a) in the <B>BBDB</B>
and b) has only included their net address in the message in question.
<P>
<TABLE><tr><td> </td><td class=example><pre> ("^$" (progn (bbdb/sc-default)
(list 'abort '(step . 0))))
</pre></td></tr></table></P><P>
An example configuration is as follows:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(setq sc-mail-glom-frame</CODE>
<CODE> '((begin (setq sc-mail-headers-start (point)))</CODE>
<CODE> ("^x-attribution:[ \t]+.*$" (sc-mail-fetch-field t) nil t)</CODE>
<CODE> ("^\\S +:.*$" (sc-mail-fetch-field) nil t)</CODE>
<CODE> ("^$" (progn (bbdb/sc-default)</CODE>
<CODE> (list 'abort '(step . 0))))</CODE>
<CODE> ("^[ \t]+" (sc-mail-append-field))</CODE>
<CODE> (sc-mail-warn-if-non-rfc822-p (sc-mail-error-in-mail-field))</CODE>
<CODE> (end (setq sc-mail-headers-end (point)))))</CODE>
</pre></td></tr></table></DL>
<P>
The above is also documented in <TT>`bbdb-sc.el'</TT>. The
<CODE>bbdb/sc-setup-variables</CODE> function has been provided as an example for
Supercite variable initialization. Please note that while
<CODE>bbdb/sc-setup-variables</CODE> makes every attempt to safely configure
the Supercite variables, it will not always work. Specifically, the
variables <CODE>sc-attrib-selection-list</CODE> and <CODE>sc-mail-glom-frame</CODE>
will not be overridden if they have already been defined.
</P><P>
<A NAME="Web Browser Prep"></A>
<HR SIZE="6">
<A NAME="SEC28"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC27"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC11"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC14"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.1.4.9 Initializing <B>BBDB</B> support for Web Browsers </H4>
<!--docid::SEC28::-->
<P>
To allow URLs to be added to <B>BBDB</B> records, add the following form to
your Emacs initialization file:
</P><P>
<TABLE><tr><td> </td><td class=example><pre><CODE>(bbdb-insinuate-w3)</CODE>
</pre></td></tr></table></P><P>
<CODE>bbdb-insinuate-w3</CODE> adds the definition of <KBD>:</KBD> to the W3
keymap.
</P><P>
The other <CODE>bbdb-w3</CODE> functions, specifically the passing of URLs
from <B>BBDB</B> records to Web browsers, do not require initialization
within the <B>BBDB</B>. They do, however, require the configuration of the
<CODE>browse-url</CODE> package so it knows to which Web browser URLs are to
be passed. For more details on the operation of <CODE>bbdb-w3</CODE>, see
<A HREF="bbdb_1.html#SEC57">1.6.4 Using the <B>BBDB</B> with Web Browsers</A>.
</P><P>
<A NAME="The BBDB"></A>
<HR SIZE="6">
<A NAME="SEC29"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC28"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC30"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC2"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.2 The <B>BBDB</B> </H2>
<!--docid::SEC29::-->
<P>
This section discusses the basics of the <B>BBDB</B> - an overview of the
database's layout, and a discussion of the basic <B>BBDB</B> manipulation
commands.
</P><P>
The database itself lives in a file which is named by the variable
<CODE>bbdb-file</CODE>. If this variable is not set, the database is assumed
to be in <TT>`~/.bbdb'</TT>.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC30">1.2.1 Database Fields</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Description of database fields</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC31">1.2.2 Basic searching commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Basic database searching commands</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC32">1.2.3 Advanced searching commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Advanced database searching commands</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC33">1.2.4 Manual record addition</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Adding records by hand</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Database Fields"></A>
<HR SIZE="6">
<A NAME="SEC30"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC31"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.2.1 Database Fields </H3>
<!--docid::SEC30::-->
<P>
The database is organized as a set of records, where each record
corresponds to one person or organization. Each record has several
fields, and each field is of one of several types. Below, the built-in
types are listed, followed by a description of how and why some types
can be used more than once in a single record: <A NAME="IDX1"></A>
</P><P>
<TABLE>
<TR><TD>Type</TD>
</TD><TD> Description
</TD><TD> Notes
</TR>
<TR><TD><CODE>name</CODE></TD>
</TD><TD> The name of this person, or none if the record corresponds to an
organization.
</TD><TD> Single value, single instance.
</TR>
<TR><TD><CODE>company</CODE></TD>
</TD><TD> The name of this person's organization, or none.
</TD><TD> Single value, single instance.
</TR>
<TR><TD><CODE>AKA</CODE></TD>
</TD><TD> A list of other names for this person.
</TD><TD> Multiple values through commas.
</TR>
<TR><TD><CODE>net</CODE></TD>
</TD><TD> A list of this person's network addresses.
</TD><TD> Multiple values through commas.
</TR>
<TR><TD><CODE>address</CODE></TD>
</TD><TD> A list of postal (physical) addresses for this person.
</TD><TD> Multiple values through multiple occurences.
</TR>
<TR><TD><CODE>phone</CODE></TD>
</TD><TD> A list of telephone numbers for this person.
</TD><TD> Multiple values through multiple occurences.
</TR>
<TR><TD><CODE>notes</CODE></TD>
</TD><TD> Random commentary.
</TD><TD> Multiple values through multiple occurences.
</TR></TABLE>
<P>
The field types listed above can be classified into four categories, as
indicated by the comments in the `Notes' column.
</P><P>
Field types marked as "Single value, single occurrence" may only occur
once per record. Each occurrence can only have a single value. For
example, there will be only one field of type <CODE>name</CODE> in a record.
It will be named <CODE>name</CODE>, and will contain a single value (the
person's name).
</P><P>
The types marked as "Multiple values through commas" are essentially the
same as the single value, single occurrence field types, but with one
crucial difference: they can contain multiple values in the form of a
comma-separated list. So, for example, while a <CODE>name</CODE> field with a
value of "foo, bar" would be treated as if it contained the single value
"foo, bar", a <CODE>net</CODE> field with the same data would be thought of as
having two separate values - "foo" and "bar". As in the single
occurrence, single value field types, there will be only one occurrence
of each "Multiple values through commas" field type, and the occurrence
will have the same name as the type.
</P><P>
The "Multiple values through multiple occurrences" field type is the
most flexible of the four listed here. There can be multiple
occurrences of each type. This type necessarily does not have the name
restriction imposed by the previous two types. For example, there can
be multiple fields of the <CODE>address</CODE> type, none of which have to be
named <CODE>address</CODE>. One could be named <CODE>home</CODE>, and the other
could be named <CODE>work</CODE>.
</P><P>
Special properties of the <CODE>notes</CODE> field type: All user-defined
fields that don't fit into the other predefined field types
(<CODE>name</CODE>, <CODE>company</CODE>, <CODE>AKA</CODE>, <CODE>net</CODE>, <CODE>address</CODE>,
and <CODE>phone</CODE>) will be created as a <CODE>notes</CODE>-type field. In
addition, several of the user-defined field names are "special". That
is, the <B>BBDB</B> treats the values of these "special" fields differently
than it does other user-defined fields. The "special" fields are:
</P><P>
<A NAME="IDX2"></A>
<DL COMPACT>
<DT><CODE>attribution</CODE>
<DD><A NAME="IDX3"></A>
<I>(Available only when the Supercite-specific <B>BBDB</B> functions have been
enabled)</I> Used for the storage of Supercite attributions. For initialization
details, see <A HREF="bbdb_1.html#SEC27">1.1.4.8 Initializing <B>BBDB</B> support for Supercite</A>. For usage details, see <A HREF="bbdb_1.html#SEC56">1.6.3 Using the <B>BBDB</B> with Supercite</A>. The field used can be changed by changing the value of
<CODE>bbdb/sc-attribution-field</CODE>.
<DT><CODE>aka</CODE>
<DD>Used to store non-primary names associated with a given record.
<DT><CODE>face</CODE>
<DD><I>(XEmacs only)</I> Used for the storage of image data. This data is to be
in the format output by <CODE>compface</CODE>, and commonly found in
<CODE>X-Face:</CODE> headers in messages. If face support has been compiled
into XEmacs, the image contained in the <CODE>face</CODE> header will be
displayed when the record is viewed.
<DT><CODE>finger-host</CODE>
<DD><A NAME="IDX4"></A>
Address used in place of the listed net address for fingering the entity
indicated by the record. See section <A HREF="bbdb_1.html#SEC34">1.3 BBDB Mode</A>. The field used can be changed by
changing the value of <CODE>bbdb-finger-host-field</CODE>.
<DT><CODE>gnus-score</CODE>
<DD><A NAME="IDX5"></A>
<B>Gnus</B> scoring adjustment for this person. For initialization details, see
<A HREF="bbdb_1.html#SEC20">1.1.4.1 Initializing <B>BBDB</B> support for Gnus</A>. For usage details, see <A HREF="bbdb_1.html#SEC42">1.5.1 Gnus-specific Features</A>. The field used
can be changed by changing the value of <CODE>bbdb/gnus-score-field</CODE>.
<DT><CODE>mail-alias</CODE>
<DD>Value used instead of <CODE>name</CODE> for completion. See section <A HREF="bbdb_1.html#SEC40">1.4.3 Mail Sending Interfaces</A>.
<DT><CODE>mail-name</CODE>
<DD><I>(Available only when the Reportmail-specific <B>BBDB</B> functions have been
enabled)</I> Used for the storage of non-default names to be used in the
reporting of new mail by Reportmail. For initialization details,
see <A HREF="bbdb_1.html#SEC26">1.1.4.7 Initializing <B>BBDB</B> support for Reportmail</A>. For usage details, see <A HREF="bbdb_1.html#SEC55">1.6.2 Using the <B>BBDB</B> with Reportmail</A>.
<DT><CODE>mark-char</CODE>
<DD>The field containing the character to be used for marking a given poster
in the Gnus Summary Buffer. For usage details, see <A HREF="bbdb_1.html#SEC44">1.5.1.2 Gnus Summary Buffer Enhancements</A>.
<DT><CODE>tex-name</CODE>
<DD><A NAME="IDX6"></A>
<A NAME="IDX7"></A>
The value of this field is used in place of the <CODE>name</CODE> field when
printing the database using <CODE>bbdb-print</CODE>. See section <A HREF="bbdb_1.html#SEC64">1.8.2 <CODE>bbdb-print</CODE></A>.
<DT><CODE>www</CODE>
<DD>This field contains the URL associated with the <B>BBDB</B> record. Common uses
are with <CODE>bbdb-snarf</CODE> (see section <A HREF="bbdb_1.html#SEC65">1.8.3 <CODE>bbdb-snarf</CODE></A>) and the <B>BBDB</B>/Web Browser
functionality (for initialization details, see <A HREF="bbdb_1.html#SEC28">1.1.4.9 Initializing <B>BBDB</B> support for Web Browsers</A>. For
usage details, see <A HREF="bbdb_1.html#SEC57">1.6.4 Using the <B>BBDB</B> with Web Browsers</A>).
</DL>
<P>
<A NAME="Basic Searching"></A>
<HR SIZE="6">
<A NAME="SEC31"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC30"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC32"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.2.2 Basic searching commands </H3>
<!--docid::SEC31::-->
<P>
You can list the contents of the database with the command
<KBD>M-x bbdb</KBD>. You will be prompted for a regular expression, and all
records which match that regexp in the name, company, network address,
or any notes fields will be displayed.<A NAME="IDX8"></A>
<A NAME="IDX9"></A>
<A NAME="IDX10"></A>
<A NAME="IDX11"></A>
<A NAME="IDX12"></A>
<A NAME="IDX13"></A>
</P><P>
A narrower search may be made by using the commands <KBD>bbdb-name</KBD>,
<KBD>bbdb-company,</KBD> <KBD>bbdb-net,</KBD> or <KBD>bbdb-notes</KBD>. These commands
limit their searches to the name, company, email address, and notes
fields, respectively. If these commands are given a prefix argument,
the listing displayed will be one line per entry; otherwise, the full
database entry will be shown on multiple lines.
</P><P>
The functions described above are predefined to certain keys in the
<CODE>*BBDB*</CODE> buffer. See section <A HREF="bbdb_1.html#SEC34">1.3 BBDB Mode</A>. for more details.
</P><P>
<A NAME="IDX14"></A>
The <CODE>bbdb-notes</CODE> command will prompt for the notes field to search
(<KBD>RET</KBD> for all). In this way you can limit your searches to the
contents of one particular user-defined notes field. (You can add
user-defined fields with the <CODE>bbdb-insert-new-field</CODE> command;
See section <A HREF="bbdb_1.html#SEC34">1.3 BBDB Mode</A>.)</P><P>
<A NAME="IDX15"></A>
<A NAME="IDX16"></A>
</P><P>
<A NAME="Advanced Searching"></A>
<HR SIZE="6">
<A NAME="SEC32"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC31"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC33"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.2.3 Advanced searching commands </H3>
<!--docid::SEC32::-->
<P>
The following functions can be used to search for records based on
creation and/or modification dates. These functions will match records
that have <CODE>timestamp</CODE> and/or <CODE>creation-date</CODE> fields (as
appropriate. See section <A HREF="bbdb_1.html#SEC61">1.7.3 Predefined Hooks</A>. for more information on these
fields, which are created by default.
</P><P>
<DL COMPACT>
<A NAME="IDX17"></A>
<DT><CODE>bbdb-timestamp-older</CODE>
<DD>Display all records modified before a given date. If this function is
called interactively, it will prompt for a date. If it is being called
non-interactively, the date should be provided as a string in
<SAMP>`yyyy-mm-dd'</SAMP> format.
<P>
<A NAME="IDX18"></A>
<DT><CODE>bbdb-timestamp-newer</CODE>
<DD>Display all records modified after a given date. If this function is
called interactively, it will prompt for a date. If it is being called
non-interactively, the date should be provided as a string in
<SAMP>`yyyy-mm-dd'</SAMP> format.
<P>
<A NAME="IDX19"></A>
<DT><CODE>bbdb-creation-older</CODE>
<DD>Display all records created before a given date. If this function is
called interactively, it will prompt for a date. If it is being called
non-interactively, the date should be provided as a string in
<SAMP>`yyyy-mm-dd'</SAMP> format.
<P>
<A NAME="IDX20"></A>
<DT><CODE>bbdb-creation-newer</CODE>
<DD>Display all records created after a given date. If this function is
called interactively, it will prompt for a date. If it is being called
non-interactively, the date should be provided as a string in
<SAMP>`yyyy-mm-dd'</SAMP> format.
<P>
<A NAME="IDX21"></A>
<DT><CODE>bbdb-creation-no-change</CODE>
<DD>Display all records that have not been changed since creation.
</DL>
<P>
<A NAME="Manual Record Addition"></A>
<HR SIZE="6">
<A NAME="SEC33"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC32"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.2.4 Manual record addition </H3>
<!--docid::SEC33::-->
<P>
There are several ways to add new entries to the Insidious Big Brother
Database; the most straightforward is to use <KBD>M-x bbdb-create</KBD>,
which will prompt you for all relevant information. However, the
easiest way is to allow them to be added automatically by one of the
mail or news-reading interfaces (See section <A HREF="bbdb_1.html#SEC37">1.4 Interfaces</A>.). </P><P>
<A NAME="IDX22"></A>
<A NAME="IDX23"></A>
</P><P>
<A NAME="BBDB Mode"></A>
<HR SIZE="6">
<A NAME="SEC34"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC33"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC35"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC29"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.3 BBDB Mode </H2>
<!--docid::SEC34::-->
<P>
<HR SIZE="6">
<A NAME="SEC35"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC36"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.3.1 Functions bound to keys in <B>BBDB</B> Mode </H3>
<!--docid::SEC35::-->
<P>
When the <SAMP>`*BBDB*'</SAMP> buffer is active (either summoned by one of the
commands in the previous section [See section <A HREF="bbdb_1.html#SEC29">1.2 The <B>BBDB</B></A>.] or by your mail
or news program), a variety of commands become available for database
manipulation. Some of the commands listed below take numeric arguments.
These arguments can be generated by entering the number before pressing
the key(s) corresponding to the desired command. The output (if any) of
the listed commands will be displayed in the <SAMP>`*BBDB*'</SAMP> buffer, and
can be navigated through using the usual cursor motion commands.
<A NAME="IDX24"></A>
<A NAME="IDX25"></A>
</P><P>
<DL COMPACT>
<DT><KBD>e</KBD>
<DD><A NAME="IDX26"></A>
<A NAME="IDX27"></A>
<A NAME="IDX28"></A>
(<CODE>bbdb-edit-current-field</CODE>) Edit the field on the current line. If
the cursor is in the middle of a multi-line field, such as an address or
comments section, then the entire field is edited, not just the current
line. <P>
<DT><KBD>;</KBD>
<DD><A NAME="IDX29"></A>
(<CODE>bbdb-edit-notes</CODE>) A shortcut for editing the <VAR>notes</VAR> field. <P>
<DT><KBD>d, C-k</KBD>
<DD><A NAME="IDX30"></A>
<A NAME="IDX31"></A>
<A NAME="IDX32"></A>
(<CODE>bbdb-delete-current-field-or-record</CODE>) Delete the field on the
current line. If the current line is the first line of a record, the
<B>BBDB</B> will, after prompting the user, delete the entire record from
the database. This may also be applied to multiple records at once by
<KBD>*</KBD>.
<P>
<DT><KBD>C-o</KBD>
<DD><A NAME="IDX33"></A>
<A NAME="IDX34"></A>
<A NAME="IDX35"></A>
<A NAME="IDX36"></A>
(<CODE>bbdb-insert-new-field</CODE>) Inserts a new field into the current
record. You are prompted (with completion) for the type of field to
insert (<B>phone</B>, <B>address</B>, <B>notes</B>, etc); if the string you type
is not a known field type, you will be asked whether to add a new field
with the entered name of type <CODE>notes</CODE>.
<P>
<A NAME="IDX37"></A>
<A NAME="IDX38"></A>
<A NAME="IDX39"></A>
If you are inserting a new phone-number field, you can control whether
it is a North American or European phone number by providing a prefix
argument. A prefix arg of <KBD>^U</KBD> means it's to be a euronumber, and
any other prefix arg means it's to be a a structured North American
number. If no prefix argument is supplied, the style used is controlled
by the variable <CODE>bbdb-north-american-phone-numbers-p</CODE>. </P><P>
<DT><KBD>C-x C-t</KBD>
<DD><A NAME="IDX40"></A>
<A NAME="IDX41"></A>
<A NAME="IDX42"></A>
(<CODE>bbdb-transpose-fields</CODE>) This is like the <CODE>transpose-lines</CODE>
command, but it is for <B>BBDB</B> fields. If the cursor is on a field of
a <B>BBDB</B> record, that field and the previous field will be
transposed.<P>
With non-zero numeric argument <VAR>ARG</VAR>, the previous field is moved
past <VAR>ARG</VAR> fields. With argument 0, the field indicated by
<I>point</I> is interchanged with the one indicated by <I>mark</I>.
</P><P>
Both fields must be in the same record, and must be of the same basic type
(that is, you can use this command to change the order in which phone-number
fields are listed, but you can't use it to make an address appear before a
phone number; the order of field types is fixed.)</P><P>
<DT><KBD>n, p</KBD>
<DD><A NAME="IDX43"></A>
<A NAME="IDX44"></A>
(<CODE>bbdb-next-record</CODE>, <CODE>bbdb-prev-record</CODE>) Move to the next and
previous displayed record, respectively. <P>
<DT><KBD>t</KBD>
<DD><A NAME="IDX45"></A>
(<CODE>bbdb-elide-record</CODE>) Toggles whether the current record is displayed
in a one-line listing, or a full multi-line listing. With a numeric argument
of 0, the current record will unconditionally be made elided; with any
other argument, the current record will unconditionally be shown
expanded. <P>
If <KBD>*t</KBD> is used instead of simply <KBD>t</KBD>, then the state of all
records will be changed instead of just the one at point. In this case,
a numeric argument of 0 means that all records will unconditionally be
made elided; any other numeric argument means that all of the records
will unconditionally be shown expanded; and no numeric argument means
that the records are made to be in the opposite state of the record
under point. </P><P>
<DT><KBD>o</KBD>
<DD><A NAME="IDX46"></A>
(<CODE>bbdb-omit-record</CODE>) Removes the current record from the display,
but does not delete it from the database; it merely makes it seem as if
the most recent search had not matched this record. With a numeric
argument, omit the next N records. With a negative argument, go
backwards. <P>
<DT><KBD>m</KBD>
<DD><A NAME="IDX47"></A>
<A NAME="IDX48"></A>
<A NAME="IDX49"></A>
(<CODE>bbdb-send-mail</CODE>) Begin composing mail to the person represented
by the current record. The first email address is used. Normally, the
mail-sending package which is used is determined by which mail-reading
package is loaded; that is, if <B>MH-E</B> is loaded, then <CODE>mh-send</CODE>
will be used; if <B>VM</B> is loaded, then <CODE>vm-mail</CODE> is used; if
<B>message</B> is loaded, then it is used; otherwise, <CODE>mail</CODE> is used.
You can override this by setting the variable
<CODE>bbdb-send-mail-style</CODE> to one of the symbols <CODE>vm</CODE>, <CODE>mh</CODE>,
<CODE>message</CODE>, or <CODE>mail</CODE>. <P>
If <KBD>*m</KBD> is used instead of simply <KBD>m</KBD>, then mail will be sent to
all of the folks listed in the <SAMP>`*BBDB*'</SAMP> buffer instead of just the
person under point. </P><P>
This function does not at present use the facility provided by
<CODE>compose-mail</CODE> and <CODE>mail-user-agent</CODE>. In a future version of
the <B>BBDB</B>, it will.
</P><P>
<DT><KBD>s, C-x C-s</KBD>
<DD><A NAME="IDX50"></A>
<A NAME="IDX51"></A>
(<CODE>bbdb-save-db</CODE>) Saves the <B>BBDB</B> file to disk.
<P>
<DT><KBD>r</KBD>
<DD><A NAME="IDX52"></A>
<A NAME="IDX53"></A>
<A NAME="IDX54"></A>
(<CODE>bbdb-refile-record</CODE>) Merge the current record into some other record;
that is, delete the record under point after copying all of the data
within it into some other record. this is useful if you realize that
somehow a redundant record has gotten into the database, and you want to
merge it with another. <P>
If both records have names and/or companies, you are asked which to use.
Phone numbers, addresses, and network addresses are simply concatenated.
The first record is the record under the point; the second is prompted
for. Completion behavior is as dictated by the variable
<CODE>bbdb-completion-type</CODE>. </P><P>
<DT><KBD>M-d</KBD>
<DD><A NAME="IDX55"></A>
<A NAME="IDX56"></A>
<A NAME="IDX57"></A>
(<CODE>bbdb-dial</CODE>) If you are on a machine with the ability to play
sounds, this command will play the appropriate tones on the builtin
speaker to dial the phone number corresponding to the current line. If
the point is at the beginning of a record, dial the first phone number.
This does not dial the extension. This also does not dial the area code
if it is the same as <CODE>bbdb-default-area-code</CODE>, unless a prefix
argument is given. <P>
The <B>BBDB</B> comes configured to play sounds on machines running
Solaris. If you are on another type of machine, you must set
<CODE>bbdb-sound-player</CODE> to a string containing the name of the audio
file player on your machine. You must also set <CODE>bbdb-sound-files</CODE>
to a vector of arguments to be passed to the program indicated by
<CODE>bbdb-sound-player</CODE>. <CODE>bbdb-sound-player</CODE> will be called with
the first element of <CODE>bbdb-sound-files</CODE> for the digit <SAMP>`0'</SAMP>, the
second for <SAMP>`1'</SAMP>, the third for <SAMP>`2'</SAMP>, and so on.
</P><P>
<DL COMPACT>
<DT><CODE>bbdb-dial-local-prefix</CODE>
<DD><A NAME="IDX58"></A>
Set this to a string of digits if your phone system requires you to dial
some code to access an outside line.<P>
<DT><CODE>bbdb-dial-long-distance-prefix</CODE>
<DD><A NAME="IDX59"></A>
Set this to a string of digits if your phone system requires you to dial
some code before dialing a long-distance number (one not in your local
area code.)</DL>
<P>
<DT><KBD>f</KBD>
<DD><A NAME="IDX60"></A>
<A NAME="IDX61"></A>
(<CODE>bbdb-finger</CODE>) This command fingers the network address of a
<B>BBDB</B> record. If this command is executed from the <SAMP>`*BBDB*'</SAMP> buffer,
it fingers the network address of the record which is at point; otherwise,
it prompts in the minibuffer (with completion) for a user to finger. With a
numeric prefix argument, it fingers the <I>N</I>th network address of the
current record; with a prefix argument of <KBD>^U</KBD>, it fingers all of them.
The <SAMP>`*finger*'</SAMP> buffer is filled asynchronously, meaning that you don't
have to wait around for it to finish; but fingering another user before
the first finger has finished could have unpredictable results.<P>
If this command is executed from the <SAMP>`*BBDB*'</SAMP> buffer, it may be prefixed
with <KBD>*</KBD> (as in <KBD>*f</KBD> instead of simply <KBD>f</KBD>), meaning to
finger all of the users currently listed instead of just the one under
point. The numeric prefix argument has the same interpretation. </P><P>
<A NAME="IDX62"></A>
You can define a special network address to "finger" by defining a field
<CODE>finger-host</CODE>. The name of the field to be fingered can be changed
by setting <CODE>bbdb-finger-host-field</CODE>.
</P><P>
<DT><KBD>q</KBD>
<DD><A NAME="IDX63"></A>
(<CODE>bbdb-bury-buffer</CODE>) Hides the <SAMP>`*BBDB*'</SAMP> buffer. <B>Note:</B>
This command does <B>not</B> kill the <SAMP>`*BBDB*'</SAMP> buffer.
<P>
<DT><KBD>?</KBD>
<DD><A NAME="IDX64"></A>
(<CODE>bbdb-help</CODE>) This displays a one-line help message in the
minibuffer, showing some of the most common bbdb-mode commands.
<P>
<DT><KBD>i</KBD>
<DD><A NAME="IDX65"></A>
(<CODE>bbdb-info</CODE>) This documentation is displayed. Please note that
either <TT>`bbdb'</TT> or <TT>`bbdb.info'</TT> must be installed in one of the
info directories known to Emacs for this command to work.
<P>
<DL COMPACT>
<DT><CODE>bbdb-info-file</CODE>
<DD><A NAME="IDX66"></A>
If this documentation is not installed in the standard Info directory,
then you should set this variable to the name of the texinfo-formatted
version of this file; the <CODE>bbdb-info</CODE> command will use this file
instead.</DL>
<P>
<DT><KBD>W</KBD>
<DD><A NAME="IDX67"></A>
<A NAME="IDX68"></A>
(<CODE>bbdb-www</CODE>) Displays the Web page listed in the <CODE>www</CODE> field
of the current record. See section <A HREF="bbdb_1.html#SEC57">1.6.4 Using the <B>BBDB</B> with Web Browsers</A>.
<P>
<DT><KBD>P</KBD>
<DD><A NAME="IDX69"></A>
<A NAME="IDX70"></A>
(<CODE>bbdb-print</CODE>) Creates a TeX file that contains a pretty-printed version
of <B>BBDB</B> records. If prefixed by <KBD>*</KBD>, only the records currently
displayed will print. See section <A HREF="bbdb_1.html#SEC64">1.8.2 <CODE>bbdb-print</CODE></A>.
<P>
<DT><KBD>h</KBD>
<DD><A NAME="IDX71"></A>
Moves point to another window via the <CODE>other-window</CODE> function.
<P>
<DT><KBD>c</KBD>
<DD><A NAME="IDX72"></A>
<A NAME="IDX73"></A>
(<CODE>bbdb-create</CODE>) Create a new database record from information
supplied by the user.
<P>
<DT><KBD>C</KBD>
<DD><A NAME="IDX74"></A>
<A NAME="IDX75"></A>
(<CODE>bbdb-changed</CODE>) Display all records that have been changed since
the last time the database was saved.
<P>
<DT><KBD>b</KBD>
<DD><A NAME="IDX76"></A>
<A NAME="IDX77"></A>
(<CODE>bbdb</CODE>) Begin a new database search. The results of the new
search will be displayed in place of the results of the old search.
<P>
<DT><KBD>S a, S c, S o, S n</KBD>
<DD><A NAME="IDX78"></A>
<A NAME="IDX79"></A>
<A NAME="IDX80"></A>
<A NAME="IDX81"></A>
<A NAME="IDX82"></A>
(<CODE>bbdb-net</CODE>, <CODE>bbdb-company</CODE>, <CODE>bbdb-notes</CODE>,
<CODE>bbdb-name</CODE>)<BR>
Begin a new database search. This search will be
limited to the net address, company, notes, or name fields,
respectively, of database records. See section <A HREF="bbdb_1.html#SEC31">1.2.2 Basic searching commands</A>. for more
details.
<P>
</DL>
<P>
<HR SIZE="6">
<A NAME="SEC36"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC35"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.3.2 Other database manipulation functions </H3>
<!--docid::SEC36::-->
<P>
<DL COMPACT>
<A NAME="IDX83"></A>
<DT><CODE>bbdb-kill-older</CODE>
<DD>If called interactively (or with a single argument - a date in
<SAMP>`yyyy-mm-dd'</SAMP> format), it will kill all records that were last
modified before the given date as determined by the <CODE>timestamp</CODE>
field. See section <A HREF="bbdb_1.html#SEC61">1.7.3 Predefined Hooks</A>. If called non-interactively with a
date (in <SAMP>`yyyy-mm-dd'</SAMP> format), a comparison function and an action
function, the comparison function is applied to the <CODE>timestamp</CODE>
field of all records, and the action function applied to those for whom
the comparison function returns true. If <SAMP>`nil'</SAMP> is supplied as the
comparison function, <CODE>string-lessp</CODE> is used.
<P>
</DL>
<P>
<A NAME="Interfaces"></A>
<HR SIZE="6">
<A NAME="SEC37"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC36"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC38"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC34"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.4 Interfaces </H2>
<!--docid::SEC37::-->
<P>
The <B>BBDB</B> interfaces itself with several message-handling packages, but
certain parameters control its behavior depending on whether it is
being used from within a mail reader or a news reader. </P><P>
In all of these packages, two new keybindings will be added:
</P><P>
<DL COMPACT>
<DT><KBD>:</KBD>
<DD><A NAME="IDX84"></A>
<A NAME="IDX85"></A>
<A NAME="IDX86"></A>
<A NAME="IDX87"></A>
<A NAME="IDX88"></A>
(<CODE>bbdb/<I>package</I>-show-sender</CODE>) Displays the <B>BBDB</B> entry corresponding
to the author of the current message. If there is none, you will be
asked whether to create one. The function called is
<CODE>bbdb/<I>package</I>-show-sender</CODE>, where <CODE><I>package</I></CODE> is either
<CODE>gnus</CODE>, <CODE>mh</CODE>, <CODE>rmail</CODE>, or <CODE>vm</CODE>, depending on the
mail or news program being used when the command is invoked.
<P>
<DT><KBD>;</KBD>
<DD><A NAME="IDX89"></A>
<A NAME="IDX90"></A>
<A NAME="IDX91"></A>
<A NAME="IDX92"></A>
<A NAME="IDX93"></A>
(<CODE>bbdb/<I>package</I>-annotate-sender</CODE>) Lets you edit the <SAMP>`notes'</SAMP>
field of the <B>BBDB</B> record corresponding to the sender of the current
message. If there is no record for the current author, you will be
asked whether to create one. The function called is
<CODE>bbdb/<I>package</I>-annotate-sender</CODE>, where <CODE><I>package</I></CODE> is
either <CODE>gnus</CODE>, <CODE>mh</CODE>, <CODE>rmail</CODE>, or <CODE>vm</CODE>, depending on
the mail or news program being used when the command is invoked.
</DL>
<P>
These keybindings (and several other features) will not be
available unless you call the appropriate "insinuation"
function; See section <A HREF="bbdb_1.html#SEC2">1.1 Installation</A>.</P><P>
It is possible to configure <B>BBDB</B> so that it automatically creates a
record when it sees a message from a person who is not in the database.
It is also possible to have text automatically added to the notes field
of the corresponding record depending on the contents of the message
headers. See section <A HREF="bbdb_1.html#SEC60">1.7.2 Customization Hooks</A>.</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC38">1.4.1 Mail Reading Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC39">1.4.2 News Reading Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC40">1.4.3 Mail Sending Interfaces</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Mail Reading Interfaces"></A>
<HR SIZE="6">
<A NAME="SEC38"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC39"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.4.1 Mail Reading Interfaces </H3>
<!--docid::SEC38::-->
<P>
There are BBDB interfaces for the following mail readers:
</P><P>
<UL>
<LI>
<B>Gnus</B>, a news- and email- reader written by Lars Magne Ingebrigtsen
(based on <B>GNUS</B> by Mansanobu Umeda).
<LI>
<B>MH-E</B>, the Emacs interface to <B>Mail Handler</B> (<B>MH</B>), from the
standard emacs library, but packaged separately from XEmacs since
version 20.4.<LI>
<B>RMAIL</B>, from the standard emacs library (packaged separately for
XEmacs users as of 20.4);
<LI>
<B>View Mail</B>, by Kyle Jones, version 5.31 or newer;
</UL>
<P>
<A NAME="News Reading Interfaces"></A>
<HR SIZE="6">
<A NAME="SEC39"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC38"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC40"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.4.2 News Reading Interfaces </H3>
<!--docid::SEC39::-->
<P>
There are BBDB interfaces for the following news readers:
</P><P>
<UL>
<LI>
<B>GNUS</B>, a newsreader written by Masanobu Umeda. <LI>
<B>Gnus</B>, the modern news- and email-reading incarnation of <B>GNUS</B>.
<B>Gnus</B> is written by Lars Magne Ingebrigtsen.</UL>
<P>
<A NAME="Mail Sending Interfaces"></A>
<HR SIZE="6">
<A NAME="SEC40"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC39"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.4.3 Mail Sending Interfaces </H3>
<!--docid::SEC40::-->
<P>
<A NAME="IDX94"></A>
<A NAME="IDX95"></A>
<A NAME="IDX96"></A>
<A NAME="IDX97"></A>
<A NAME="IDX98"></A>
<A NAME="IDX99"></A>
When sending mail, the keystroke <KBD>M-TAB</KBD> is bound to the
function <CODE>bbdb-complete-name</CODE>. This will take the string that
you have typed (from point back to the preceding colon, comma, or
the beginning of the line) and will complete that against the
contents of the database. What you have typed may be an initial
subsequence of a person's full name or network address; if it
completes ambiguously, then what you have typed will be replaced
with the common portion of the matches. Typing <KBD>M-TAB</KBD> again will
show a list of possible completions. If it completes unambiguously,
then an address will be inserted. The variable
<CODE>bbdb-completion-type</CODE> controls whether completion is done on real
names, or network addresses, or both. The address inserted is normally
of the form <CODE>User Name <email-address></CODE>; however, if
<CODE>User Name</CODE> has an address of the form
<CODE><user.name@somedomain></CODE>, only the <CODE><email-address></CODE> portion
is inserted. This can be overridden by setting
<CODE>bbdb-dwim-net-address-allow-redundancy</CODE> to <CODE>t</CODE>. </P><P>
This binding is automatically set by the various insinuation functions
documented earlier in this manual. (See section <A HREF="bbdb_1.html#SEC14">1.1.4 Initial Configuration</A>.)
Briefly, the forms for these functions are:
</P><P>
<DL COMPACT>
<DT><B>Gnus</B>
<DD><CODE>(add-hook 'gnus-Startup-hook 'bbdb-insinuate-gnus)</CODE> <I>for Gnus 3.14 or older</I><BR>
<CODE>(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)</CODE> <I>for Gnus 3.15 or newer</I>
<DT><B>MH-E</B>
<DD><CODE>(add-hook 'mh-folder-mode-hook 'bbdb-insinuate-mh)</CODE>
<DT><B>RMAIL</B>
<DD><CODE>(add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail)</CODE>
<DT><B>sendmail</B>
<DD><CODE>(add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail)</CODE>
<DT><B>VM</B>
<DD><CODE>(bbdb-insinuate-vm)</CODE> <I>Add to <TT>`~/.vm'</TT> file</I>
</DL>
<P>
The above forms should be added to your Emacs initialization file,
except where otherwise noted.
</P><P>
You can control what "real name" is inserted with the
<CODE>mail-alias</CODE> field: if a record has a <CODE>mail-alias</CODE>
field, then that is used instead of their <CODE>name</CODE> field.
</P><P>
<A NAME="IDX100"></A>
If the variable <CODE>bbdb-completion-display-record</CODE> is true (the
default) then when you successfully complete an address with
<KBD>M-TAB</KBD>, the corresponding record will be appended to
the <SAMP>`*BBDB*'</SAMP> buffer. The buffer will not be displayed if it
is not already visible, but the record will be displayed there.
</P><P>
<A NAME="IDX101"></A>
<A NAME="IDX102"></A>
When sending mail, you can use the command <CODE>bbdb-yank-addresses</CODE>
to CC the current message to the people currently displayed in
the <SAMP>`*BBDB*'</SAMP> buffer. This is useful if you are in the midst of
sending or replying to a message, and you decide to add some recipients.
You can use one of the <KBD>M-x bbdb</KBD> commands to display the set of
people that you want to CC the message to, and then execute this command
to add them to the list.
</P><P>
<A NAME="IDX103"></A>
<A NAME="IDX104"></A>
<A NAME="IDX105"></A>
<A NAME="IDX106"></A>
<A NAME="IDX107"></A>
</P><P>
If you are using Jamie Zawinski's <TT>`mail-abbrevs.el'</TT> package, which
uses the word-abbrev mechanism for mail aliases, then you can store your
mail aliases in the BBDB instead of duplicating the information
elsewhere.</P><P>
If you want a mail alias to be defined for a person, simply add a
<CODE>mail-alias</CODE> field to their record. You may have multiple aliases
for the same person; simply separate them with commas.</P><P>
For convenience there is the function <CODE>bbdb-add-or-remove-mail-alias</CODE>
bound to <KBD>a</KBD> which adds an alias to one or multiple records when prefixed
by a <KBD>*</KBD>. Called with a prefix argument <KBD>C-u</KBD> it will remove
the given alias.</P><P>
If more than one person has the same mail-alias, then that alias expands
to the addresses of all of those people; in this way you can maintain
mailing lists within the BBDB.</P><P>
When you want to group aliases as in <CODE>.mailrc</CODE> you may just
retained the group aliases in your <CODE>.mailrc</CODE>.
</P><P>
To actually define the aliases which are stored in the BBDB, call the
function <CODE>bbdb-define-all-aliases</CODE> from your
<CODE>mail-setup-hook</CODE> (or <CODE>message-setup-hook</CODE> if you use
Message mode coming with Gnus). This will search the database, and
call <CODE>define-mail-alias</CODE> to define each of the resulting
aliases.</P><P>
<A NAME="Reader-specific Features"></A>
<HR SIZE="6">
<A NAME="SEC41"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC40"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC37"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.5 Reader-specific Features </H2>
<!--docid::SEC41::-->
<P>
There are features of the <B>BBDB</B> that are available only for specific
mail- and news-readers. These features are described below.
</P><P>
The headers which are parsed for email addresses and what records are
displayed can be controlled by the following variables:
<A NAME="IDX108"></A>
<A NAME="IDX109"></A>
<A NAME="IDX110"></A>
<A NAME="IDX111"></A>
<CODE>bbdb-get-addresses-from-headers</CODE> controls which headers are parsed
for sender addresses when calling the show-sender function of your MUA.
<CODE>bbdb-get-addresses-to-headers</CODE> controls which headers are parsed
for recipients addresses when calling the show-all-recipients function
of your MUA. When using the pop up feature it will search for the
addresses in <CODE>bbdb-get-addresses-headers</CODE> and display them. By
default it will list only the first address, but by setting
<CODE>bbdb-get-only-first-address-p</CODE> to <CODE>nil</CODE> one will will get
records for all addresses.
</P><P>
If there is no MUA specific variable for ignoring certain addresses then
those addresses matching <CODE>bbdb-user-mail-names</CODE> will be ignored.
</P><P>
<B>BBDB</B> adds the bindings <KBD>:</KBD> for showing all senders and <KBD>;</KBD>
for editing the notes of the sender.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC42">1.5.1 Gnus-specific Features</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC48">1.5.2 VM-specific features</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">VM-specific Features</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Gnus Features"></A>
<HR SIZE="6">
<A NAME="SEC42"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC43"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.5.1 Gnus-specific Features </H3>
<!--docid::SEC42::-->
<P>
The <B>BBDB</B> can be used to provide score information, or to integrate
database information into the <B>Gnus</B> Summary buffer or the <B>GNUS</B>
Subject List.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC43">1.5.1.1 Scoring</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Store score adjustments in the <B>BBDB</B></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC44">1.5.1.2 Gnus Summary Buffer Enhancements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"><B>BBDB</B> information in the Summary buffer</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC47">1.5.1.3 GNUS Summary Buffer Enhancements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"><B>BBDB</B> information in the Subject List</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Gnus Scoring"></A>
<HR SIZE="6">
<A NAME="SEC43"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC44"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.1.1 Scoring </H4>
<!--docid::SEC43::-->
<P>
The <B>BBDB</B> can provide scoring information to <B>Gnus</B> in one of two
ways.
</P><P>
<OL>
<LI>
Articles whose authors appear in the <B>BBDB</B> and who have
<CODE>gnus-score</CODE> fields will have their scores adjusted by the value
contained in that field.
<LI>
Articles whose authors appear in the <B>BBDB</B> but who do not have
<CODE>gnus-score</CODE> fields will have their scores adjusted by
<CODE>bbdb/gnus-score-default</CODE>. If <CODE>bbdb/gnus-score-default</CODE> is
<CODE>nil</CODE>, no score adjustment will be made.
</OL>
<P>
The <B>BBDB</B> by default searches the field contained in
<CODE>bbdb/gnus-score-field</CODE> for score values. To have the <B>BBDB</B> use
a different field, change the value of this variable.
</P><P>
To enable <B>BBDB</B>-assisted scoring, add the <CODE>bbdb/gnus-score</CODE>
function to <CODE>gnus-score-find-score-files-function</CODE>. Assuming that
you want to preserve the default value of this variable, use a form
similar to the following:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(setq gnus-score-find-score-files-function
'(gnus-score-find-bnews bbdb/gnus-score))
</pre></td></tr></table></P><P>
<B>Note:</B> The default value in <B>Gnus</B> 5.5 is <CODE>gnus-score-find-bnews</CODE>.
Check your configuration before using the above code, as your values may
be different.
</P><P>
<A NAME="Gnus Summary Buffer"></A>
<HR SIZE="6">
<A NAME="SEC44"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC43"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC47"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.1.2 Gnus Summary Buffer Enhancements </H4>
<!--docid::SEC44::-->
<P>
<B>Gnus</B> can use the <B>BBDB</B> to do one of two things:
</P><P>
<UL>
<LI>
Mark authors in the Summary Buffer who have records in the <B>BBDB</B> with
a user-defined mark character. See Marking Posters, below.
<LI>
For authors in the Summary Buffer who also have records in the <B>BBDB</B>,
replace their name as listed in the Summary Buffer with their name as
stored in the <B>BBDB</B>. See Using Names from the <B>BBDB</B>, below.
</UL>
<P>
<A NAME="SEC45"></A>
<H4> Marking Posters </H4>
<!--docid::SEC45::-->
<P>
Authors with records in the <B>BBDB</B> can be marked either with a
user-defined mark character, or with a default one. The marking is
enabled by the use of a Gnus user format code, as determined by
<CODE>bbdb/gnus-summary-in-bbdb-format-letter</CODE>. This variable, which
defaults to <SAMP>`b'</SAMP>, is used to create a format code which is intended
for use in <CODE>gnus-summary-line-format</CODE>. The format code is created
by concatenating <SAMP>`%u'</SAMP> with the value of
<CODE>bbdb/gnus-summary-in-bbdb-format-letter</CODE>. In the default case
this results in the creation of the format code <SAMP>`%ub'</SAMP>.
</P><P>
Posts are marked as follows: If the record for the poster has the field
indicated in <CODE>bbdb-message-marker-field</CODE> (the default is
<CODE>mark-char</CODE>), the value of that field is used as the mark
character.<A NAME="DOCF5" HREF="bbdb_fot.html#FOOT5">(5)</A> If no such field is present, the value of
<CODE>bbdb/gnus-summary-known-poster-mark</CODE> will be used instead. If the
author is not in the <B>BBDB</B>, a space will be used as the mark character.
</P><P>
<A NAME="SEC46"></A>
<H4> Using Names from the <B>BBDB</B> </H4>
<!--docid::SEC46::-->
<P>
The names reported for authors of posts in the Summary buffer can be
altered to conform to the values present in their respective <B>BBDB</B>
records (if any). This rewriting is enabled by the use of a Gnus user
format code, as determined by
<CODE>bbdb/gnus-summary-user-format-letter</CODE>. This variable, which
defaults to <SAMP>`B'</SAMP>, is used to create a format code which is intended
for use in <CODE>gnus-summary-line-format</CODE>. The format code is created
by concatenating <SAMP>`%u'</SAMP> with the value of
<CODE>bbdb/gnus-summary-user-format-letter</CODE>. In the default case this
results in the creation of the format code <SAMP>`%uB'</SAMP>. This format code
is intended to <B>replace</B> the format code previously used in the Summary
buffer format line to indicate the author and/or net address (usually
<SAMP>`%a'</SAMP>, <SAMP>`%n'</SAMP>, and/or <SAMP>`$N'</SAMP>).
</P><P>
The effects of this format code are in two independent parts - the
marking of known posters, and the rewriting of posters names. The
first, the marking of posters, occurs only when
<CODE>bbdb/gnus-summary-mark-known-posters</CODE> is <CODE>t</CODE> (the default)
and the posters have entries in the <B>BBDB</B>. When this variable is
true, the marking occurs as described in the previous section, Marking
Posters, above.
</P><P>
The poster name rewriting is done for all posters - not just for those
with records in the <B>BBDB</B>. That said, rewriting rules for posters in
the <B>BBDB</B> are more flexible than for those not listed. The rewriting is
governed by two variables, as described below.
</P><P>
<CODE>bbdb/gnus-summary-prefer-real-names</CODE> can have one of three values -
<SAMP>`t'</SAMP>, <SAMP>`bbdb'</SAMP>, or <CODE>nil</CODE>. In general, this variable governs
the preference between net addresses and names. If it is <SAMP>`t'</SAMP>, the
name (if any) will be used. If <SAMP>`nil'</SAMP>, the net address will be
used. The third value, <SAMP>`bbdb'</SAMP>, can be used as a method for
distinguishing between authors with records in the <B>BBDB</B> and those
without. If the variable is set to <SAMP>`bbdb'</SAMP>, the name from the
<B>BBDB</B> record will be used if the author has a record in the
<B>BBDB</B>. If the author is not in the <B>BBDB</B>, the net address from
the message will be printed. This variable makes little sense if
<CODE>bbdb/gnus-summary-prefer-bbdb-data</CODE> is <SAMP>`nil'</SAMP>, as no names
will be printed in the Summary buffer in this case - only net addresses.
</P><P>
<CODE>bbdb/gnus-summary-prefer-bbdb-data</CODE> is used to (dis)allow use of
the <B>BBDB</B> for author data retrieval. If it is <SAMP>`t'</SAMP>, data from
the <B>BBDB</B> will be used if available. If it is <SAMP>`nil'</SAMP>, data from
the <B>BBDB</B> will not be used.
</P><P>
In the following examples, assume the following:
</P><P>
<OL>
<LI>
Message: <CODE>From: Jamie <jwz@netscape.com></CODE><BR>
<B>BBDB</B>: No record
<LI>
Message: <CODE>From: Matt <simmonmt@acm.org></CODE><BR>
<B>BBDB</B>: Name: <SAMP>`Matthew'</SAMP>, Net: <SAMP>`simmonmt@purdue.edu'</SAMP>
</OL>
<P>
<TABLE>
<TR><TD><CODE>bbdb/gnus-summary-prefer-bbdb-data</CODE></TD>
</TD><TD> @center <CODE>t</CODE>
</TD><TD> @center <CODE>t</CODE>
</TD><TD> @center <CODE>nil</CODE>
</TR>
<TR><TD><CODE>bbdb/gnus-summary-prefer-real-names</CODE></TD>
</TD><TD> @center <CODE>t</CODE>
</TD><TD> @center <CODE>bbdb</CODE>
</TD><TD> @center <CODE>t</CODE>
</TR>
<TR><TD>Printed in Summary buffer for</TD>
</TD><TD>
</TD><TD>
</TD><TD>
</TR>
<TR><TD>@center Case 1</TD>
</TD><TD> @center Jamie
</TD><TD> @center jwz@netscape.com
</TD><TD> @center Jamie
</TR>
<TR><TD>@center Case 2</TD>
</TD><TD> @center Matthew
</TD><TD> @center Matthew
</TD><TD> @center Matt
</TR></TABLE>
<P>
<A NAME="GNUS Subject List"></A>
<HR SIZE="6">
<A NAME="SEC47"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC44"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.1.3 GNUS Summary Buffer Enhancements </H4>
<!--docid::SEC47::-->
<P>
<I>This section is remarkably terse, as I don't have a copy of <B>GNUS</B>.
If anybody can provide more descriptive information, please let me
know.</I>
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(autoload 'bbdb/gnus-lines-and-from "bbdb-gnus")
(setq gnus-optional-headers 'bbdb/gnus-lines-and-from)
</pre></td></tr></table></P><P>
<DL COMPACT>
<DT><CODE>bbdb/gnus-mark-known-posters</CODE>
<DD><A NAME="IDX112"></A>
<A NAME="IDX113"></A>
If <CODE>t</CODE> (the default), then the <B>GNUS</B> subject list will contain an
indication of those messages posted by people who have entries in
the Insidious Big Brother Database (they will be marked with an
asterisk.) <P>
<A NAME="IDX114"></A>
You can change the character used to mark records on a record-by-record
basis by adding a <CODE>mark-char</CODE> property to the record, whose value
is be the string to display (preferably one character.) </P><P>
<DT><CODE>bbdb/gnus-header-prefer-real-names</CODE>
<DD><A NAME="IDX115"></A>
Default: <CODE>nil</CODE>. if <CODE>t</CODE>, then the <B>GNUS</B> subject list will
display real names instead of network addresses. <P>
<DT><CODE>bbdb/gnus-header-show-bbdb-names</CODE>
<DD><A NAME="IDX116"></A>
Default: <CODE>t</CODE>. If both this variable and
the <CODE>bbdb/gnus-header-prefer-real-names</CODE> variable are true, then
for news messages from people who are in your database, the name displayed
will be the primary name from the database, rather than the one from
the <SAMP>`From:'</SAMP> line of the message. This doesn't affect the names of
people who aren't in the database, of course.<P>
<DT><CODE>bbdb/gnus-lines-and-from-length</CODE>
<DD><A NAME="IDX117"></A>
Default: 18. The number of characters used to display <SAMP>`From:'</SAMP> info in
<B>GNUS</B>, if you have set <CODE>gnus-optional-headers</CODE> to
<CODE>bbdb/gnus-lines-and-from</CODE>. </DL>
<P>
<A NAME="VM Features"></A>
<HR SIZE="6">
<A NAME="SEC48"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC47"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC49"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.5.2 VM-specific features </H3>
<!--docid::SEC48::-->
<P>
The <B>BBDB</B> can be used to integrate database information into the
message summary.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC49">1.5.2.1 VM Message Summary Enhancements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"><B>BBDB</B> information in message summary</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC50">1.5.2.2 VM configuration of what records the <B>BBDB</B> buffer shows</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC51">1.5.2.3 VM automatic setup of <CODE>vm-set-auto-folder-alist</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC52">1.5.2.4 VM automatic adding of labels</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="VM Message Summary"></A>
<HR SIZE="6">
<A NAME="SEC49"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC50"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.2.1 VM Message Summary Enhancements </H4>
<!--docid::SEC49::-->
<P>
<A NAME="IDX118"></A>
<A NAME="IDX119"></A>
<A NAME="IDX120"></A>
<A NAME="IDX121"></A>
VM users can cause their summary buffer to display the name of the
message sender according to <B>BBDB</B> data, instead of according to the
contents of the current message's headers. In VM 5.40 or later, use
the summary format control <CODE>%UB"</CODE> instead of <CODE>"%F"</CODE>, and the
current record name will be shown there if available. If no entry is
found it behaves like <CODE>"%F"</CODE>. See the documentation for
<CODE>vm-summary-format</CODE> for more details. Warning, this may
significantly slow down summary generation for large folders.
</P><P>
<A NAME="VM what records are displayed"></A>
<HR SIZE="6">
<A NAME="SEC50"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC49"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC51"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.2.2 VM configuration of what records the <B>BBDB</B> buffer shows </H4>
<!--docid::SEC50::-->
<P>
<A NAME="IDX122"></A>
</P><P>
Email addresses which match <CODE>vm-summary-uninteresting-senders</CODE> are
ignored.
</P><P>
The records in the <B>BBDB</B> buffer are listed in the same order as found.
</P><P>
<A NAME="VM automatic setup of vm-set-auto-folder-alist"></A>
<HR SIZE="6">
<A NAME="SEC51"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC50"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC52"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.2.3 VM automatic setup of <CODE>vm-set-auto-folder-alist</CODE> </H4>
<!--docid::SEC51::-->
<P>
<A NAME="IDX123"></A>
VM users can setup the <CODE>vm-set-auto-folder-alist</CODE> automatically by
calling <CODE>bbdb/vm-set-auto-folder-alist</CODE>. This adds for each <B>BBDB</B>
record containing a <CODE>bbdb/vm-set-auto-folder-alist-field</CODE> an entry
to <CODE>vm-set-auto-folder-alist</CODE>.
</P><P>
The record field can contain a string which is used as folder name or
if it starts with a <CODE>'</CODE> it is treated as lisp expression returning
a folder name.
</P><P>
<A NAME="VM automatic adding of labels"></A>
<HR SIZE="6">
<A NAME="SEC52"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC51"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC42"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC48"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.5.2.4 VM automatic adding of labels </H4>
<!--docid::SEC52::-->
<P>
<A NAME="IDX124"></A>
<A NAME="IDX125"></A>
<A NAME="IDX126"></A>
</P><P>
<CODE>bbdb/vm-auto-add-label-list</CODE> is a
List used by <CODE>bbdb/vm-auto-add-label</CODE> to automatically label messages.
Each element in the list is either a string or a list of two strings.
If a single string then it is used as both the field value to check for
and the label to apply to the message. If a list of two strings, the first
is the field value to search for and the second is the label to apply.
</P><P>
<CODE>bbdb/vm-auto-add-label-field bbdb-define-all-aliases-field</CODE> is the
field used by <CODE>bbdb/vm-auto-add-label</CODE> to automatically label messages.
Value is either a single symbol or a list of symbols of bbdb fields that
<CODE>bbdb/vm-auto-add-label</CODE> uses to check for labels to apply to messages.
Defaults to <CODE>bbdb-define-all-aliases-field</CODE> which is typically
<CODE>mail-alias</CODE>.
</P><P>
<CODE>bbdb/vm-auto-add-label</CODE> automatically adds labels to messages
based on the <CODE>bbdb/vm-auto-add-label-field
bbdb-define-all-aliases-field</CODE> field. Add this to
<CODE>bbdb-notice-hook</CODE> and if using VM each message that bbdb notices
will be checked. If the sender has a value in the
<CODE>bbdb/vm-auto-add-label-field</CODE> in their BBDB record that matches a
value in <CODE>bbdb/vm-auto-add-label-list</CODE> then a VM label will be
added to the message.
</P><P>
This works great when `bbdb-user-mail-names' is set. As a result mail
that you send to people (and copy yourself on) is labeled as well.
</P><P>
<A NAME="Other Packages"></A>
<HR SIZE="6">
<A NAME="SEC53"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC52"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC54"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC41"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.6 Using the <B>BBDB</B> with other packages </H2>
<!--docid::SEC53::-->
<P>
The <B>BBDB</B> adds functionality to several packages. The following sections
detail these augmentations.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC54">1.6.1 Using the <B>BBDB</B> with Message Mode</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC55">1.6.2 Using the <B>BBDB</B> with Reportmail</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC56">1.6.3 Using the <B>BBDB</B> with Supercite</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC57">1.6.4 Using the <B>BBDB</B> with Web Browsers</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Using Message Mode"></A>
<HR SIZE="6">
<A NAME="SEC54"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC55"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.6.1 Using the <B>BBDB</B> with Message Mode </H3>
<!--docid::SEC54::-->
<P>
At this time, the only feature the <B>BBDB</B> adds to Message mode is the binding
to <KBD>M-TAB</KBD> which allows for <B>BBDB</B> record completion.
</P><P>
<A NAME="Using Reportmail"></A>
<HR SIZE="6">
<A NAME="SEC55"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC54"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC56"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.6.2 Using the <B>BBDB</B> with Reportmail </H3>
<!--docid::SEC55::-->
<P>
The <B>BBDB</B> can modify the <TT>`reportmail.el'</TT> package to use information
from <B>BBDB</B> records when identifying the senders or recipients of e-mail
messages.
</P><P>
In normal operation, Reportmail displays the name and net address sender and
recipient of incoming messages. The <B>BBDB</B> can be configured to intercept
and rewrite this information before it appears in the Emacs mode-line. It
first attempts to rewrite the sender and/or recipient information by
substituting those addresses with information from the <B>BBDB</B>. Replacement
information is first sought from the <CODE>mail-name</CODE> field in the respective
<B>BBDB</B> records. If no such field is found, the <CODE>name</CODE> field is
returned. If no <B>BBDB</B> record is found, no rewriting is performed.
</P><P>
The <B>BBDB</B>-Reportmail augmentation is accomplished through the advising of
the Reportmail <CODE>display-time-get-field</CODE> function in order to do
a-posteriori modification of the returned value. The augmentation uses the
<CODE>bbdb/reportmail-alternate-full-name</CODE> function to retrieve data from the
<B>BBDB</B> for use in rewriting.
</P><P>
<A NAME="Using Supercite"></A>
<HR SIZE="6">
<A NAME="SEC56"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC55"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC57"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.6.3 Using the <B>BBDB</B> with Supercite </H3>
<!--docid::SEC56::-->
<P>
The <B>BBDB</B> can be used with Supercite to store attributions with <B>BBDB</B>
records. Normally, when a non-default attribution is entered for a given
message, the entered attribution is used for that message, and is then
discarded. When the <B>BBDB</B>-Supercite augmentation is enabled, the
non-default attribution will be added to the record (if any) for the entity
being cited. This poor explanation sounds complicated, but it's not. If a
message from <SAMP>`Jamie Zawinski <jwz@netscape.com>'</SAMP> is being replied to,
Supercite will, by default, suggest the citation <SAMP>`Jamie'</SAMP>. If the
non-default citation <SAMP>`jwz'</SAMP> is entered, Supercite can save it with the
<B>BBDB</B> record for <SAMP>`Jamie Zawinski'</SAMP> in the <CODE>attribution</CODE> field.
</P><P>
The field used can be changed by changing the value of
<CODE>bbdb/sc-attribution-field</CODE>.
</P><P>
<A NAME="Using Web Browsers"></A>
<HR SIZE="6">
<A NAME="SEC57"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC56"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.6.4 Using the <B>BBDB</B> with Web Browsers </H3>
<!--docid::SEC57::-->
<P>
The <B>BBDB</B>/Web Browser integration is in two parts, one which is
automatically enabled, and one which must be manually enabled (see section <A HREF="bbdb_1.html#SEC28">1.1.4.9 Initializing <B>BBDB</B> support for Web Browsers</A>). The first feature added is the ability to display the URL
associated with a given record in a Web Browser. The second is the ability to
add URLs to <B>BBDB</B> records from within W3, the Emacs Web Browser.
</P><P>
Pressing <KBD>W</KBD> in the <CODE>*BBDB*</CODE> buffer while the cursor is positioned
over a record with a <CODE>www</CODE> field will cause the first URL in the field to
be loaded in a Web Browser. This functionality uses <CODE>browse-url</CODE> to
display URLs - see the documentation for <CODE>browse-url</CODE> for information on
selecting the browser to be used.
</P><P>
If W3 is used, and if the <B>BBDB</B>/W3 functionality has been enabled as
described in <A HREF="bbdb_1.html#SEC28">1.1.4.9 Initializing <B>BBDB</B> support for Web Browsers</A>, pressing the <KBD>:</KBD> key will add the URL
currently being displayed in W3 to a user-specified <B>BBDB</B> record.
</P><P>
<A NAME="Options"></A>
<HR SIZE="6">
<A NAME="SEC58"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC57"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC59"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC53"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.7 Options </H2>
<!--docid::SEC58::-->
<P>
There are many variables which control the behavior of the Insidious Big
Brother Database, and there are many hook-variables which can be used to
modify its behavior in more complex ways. Several pieces of functionality
are included which use the hooks in this way. </P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC59">1.7.1 Customization Parameters</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC60">1.7.2 Customization Hooks</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC61">1.7.3 Predefined Hooks</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Customization Parameters"></A>
<HR SIZE="6">
<A NAME="SEC59"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC60"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.7.1 Customization Parameters </H3>
<!--docid::SEC59::-->
<P>
<DL COMPACT>
<DT><CODE>bbdb-file</CODE>
<DD><A NAME="IDX127"></A>
The name of the file which contains your personal database. Default:
<TT>`~/.bbdb'</TT>.
<P>
<DT><CODE>bbdb-default-area-code</CODE>
<DD><A NAME="IDX128"></A>
<A NAME="IDX129"></A>
The default area code to use when prompting for a new phone number.
Default: 415. This must be a number, not a string.<P>
<DT><CODE>bbdb-north-american-phone-numbers-p</CODE>
<DD><A NAME="IDX130"></A>
<A NAME="IDX131"></A>
<A NAME="IDX132"></A>
Whether syntax-checking of phone numbers should be enforced. Default:
<CODE>t</CODE>. This only works for Bell-system phone numbers. If this is true,
then you can't enter invalid phone numbers, and all phone numbers are
pretty-printed in the same way. European phone numbers don't have as
strict a syntax, however, so this is a harder problem for them (on which
I am punting). <P>
You can have both styles of phone number in your database by providing a
prefix argument to the <CODE>bbdb-insert-new-field</CODE> command. </P><P>
<DT><CODE>bbdb-check-zip-codes-p</CODE>
<DD><A NAME="IDX133"></A>
<A NAME="IDX134"></A>
<A NAME="IDX135"></A>
<A NAME="IDX136"></A>
<A NAME="IDX137"></A>
<A NAME="IDX138"></A>
<A NAME="IDX139"></A>
<A NAME="IDX140"></A>
Whether syntax-checking of zip codes should be enforced. Default:
<CODE>t</CODE>. If this is true, you can't enter invalid zip codes. A zip
code is valid if it matches one of the regular expressions in the
variable <CODE>bbdb-legal-zip-codes</CODE>. <P>
<DT><CODE>bbdb-address-formatting-alist</CODE>
<DD><A NAME="IDX141"></A>
<A NAME="IDX142"></A>
<A NAME="IDX143"></A>
<A NAME="IDX144"></A>
Controls the display of addresses in the buffer. Each entry in this
list consists of an identifying function and a formatting function.
The identifying function must accept an address and return <CODE>t</CODE> if
the associated formatting function is to be used. The formatting
function must insert the formatted address in the current buffer.
Identifying functions usually base their decision on the zip code
format or on the country name. The default entries will format an
address using continental style if the zip code matches
<CODE>bbdb-continental-zip-regexp</CODE>. If the zip code does not match,
addresses are formatted in US style.
<P>
<DT><CODE>bbdb-continental-zip-regexp</CODE>
<DD><A NAME="IDX145"></A>
<A NAME="IDX146"></A>
<A NAME="IDX147"></A>
Decides whether an address should be formatted using US or European
style. If the zip code of an address matches the regular expression,
the European style is used. This works only if the expression
<CODE>(bbdb-address-is-continental . bbdb-format-address-continental)</CODE>
is part of <CODE>bbdb-address-formatting-alist</CODE>.
<P>
<DT><CODE>bbdb-electric-p</CODE>
<DD><A NAME="IDX148"></A>
<A NAME="IDX149"></A>
Whether bbdb mode should be <I>"electric"</I> like <CODE>electric-buffer-list</CODE>.
Default: <CODE>t</CODE>. Basically this means that when you type space after
<KBD>M-x bbdb</KBD>, your window configuration will be restored to what it was
before you invoked the db list. (The <CODE>bbdb-mode</CODE> commands still work as
well.) <P>
There are some problems with electric modes; for example, keyboard
macros and incremental search don't work. (This is not a bug in BBDB,
but in <TT>`electric.el'</TT>.)</P><P>
<DT><CODE>bbdb-case-fold-search</CODE>
<DD><A NAME="IDX150"></A>
Default: the same as <CODE>case-fold-search</CODE>. <CODE>case-fold-search</CODE> is
bound to this by <KBD>M-x bbdb</KBD> and related commands. This variable lets
the case-sensitivity of <KBD>^S</KBD> and of the bbdb searching commands be
different.
<P>
<DT><CODE>bbdb/mail-auto-create-p</CODE>
<DD><A NAME="IDX151"></A>
If this is <CODE>t</CODE> (the default), then <B>VM</B>, <B>MH</B>, and <B>RMAIL</B>
will automatically create new bbdb records for people you receive mail
from. If this variable is a function name or lambda expression, then it
is called with no arguments to decide whether an entry should be
automatically created. You can use this to, for example, not create
records for messages which have reached you through a particular mailing
list, or to only create records automatically if the mail has a
particular subject. See the variables
<CODE>bbdb-ignore-most-messages-alist</CODE> and
<CODE>bbdb-ignore-some-messages-alist</CODE> (See section <A HREF="bbdb_1.html#SEC61">1.7.3 Predefined Hooks</A>.) <P>
<DT><CODE>bbdb/news-auto-create-p</CODE>
<DD><A NAME="IDX152"></A>
<A NAME="IDX153"></A>
If this is <CODE>t</CODE> (default: <CODE>nil</CODE>), then <B>GNUS</B> will
automatically create new <B>BBDB</B> records for people you read messages
by. If this is a function name or lambda expression, then it is called
with no arguments to decide whether an entry should be automatically
created. You can use this to, for example, create or not create
messages which have a particular subject. See the variable
<CODE>bbdb-auto-notes-alist</CODE> (See section <A HREF="bbdb_1.html#SEC61">1.7.3 Predefined Hooks</A>.). <P>
If you want to autocreate messages based on the current newsgroup, it's
probably a better idea to set this variable to <CODE>t</CODE> or <CODE>nil</CODE> from your
<CODE>gnus-select-group-hook</CODE> instead. </P><P>
To automatically remember users in certain groups, you can do something
like <TABLE><tr><td> </td><td class=example><pre>(setq gnus-select-group-hook
'(lambda ()
(setq bbdb/news-auto-create-p
(or (string= "some.news.group" gnus-newsgroup-name)
(string= "other.news.group" gnus-newsgroup-name)))))
</pre></td></tr></table></P><P>
<DT><CODE>bbdb-quiet-about-name-mismatches</CODE>
<DD><A NAME="IDX154"></A>
If this is false (the default), then <B>BBDB</B> will prompt you when it notices a
name change, that is, when the "real name" in a message doesn't correspond
to a record already in the database with the same network address. As in,
<I>"John Smith <jqs@frob.com>"</I> versus
<I>"John Q. Smith <jqs@frob.com>".</I> If this is true, then you will
not be asked if you want to change it (and it will not be changed.)
If a number then it is the number of seconds to sit-for while
displaying the name mismatch.
<P>
<DT><CODE>bbdb-use-alternate-names</CODE>
<DD><A NAME="IDX155"></A>
<A NAME="IDX156"></A>
<A NAME="IDX157"></A>
If this is false, then the <B>BBDB</B> will not use the <B>AKA</B> field.
Otherwise (the default) then the mail and news interfaces will ask you
if you want to add an alternate name when a name-change is noticed, and
will ask you whether the new name should be made the primary one.
Note that if <CODE>bbdb-quiet-about-name-mismatches</CODE> is true, you will
not be asked any questions about alternate names.
<P>
<DT><CODE>bbdb-readonly-p</CODE>
<DD><A NAME="IDX158"></A>
If this is true (default: <CODE>nil</CODE>), then nothing will attempt to change the
database implicitly, and you will be prevented from doing it
explicitly. If you have more than one emacs running at the same time,
you might want to arrange for this to be set to <CODE>t</CODE> in all but one of
them. <P>
<DT><CODE>bbdb-auto-revert-p</CODE>
<DD><A NAME="IDX159"></A>
If this variable is true (default: <CODE>nil</CODE>) and the <B>BBDB</B> file is noticed to
have changed on disk, it will be automatically reverted without
prompting you first. Otherwise you will be asked. (But if the file has
changed and you have made changes in memory as well, you will always be
asked.) <P>
<DT><CODE>bbdb-notice-auto-save-file</CODE>
<DD><A NAME="IDX160"></A>
<A NAME="IDX161"></A>
If this is true (default: <CODE>nil</CODE>), then the <B>BBDB</B> will notice when its
auto-save file is newer than the file is was read from, and will offer
to revert. <P>
<DT><CODE>bbdb-use-pop-up</CODE>
<DD><A NAME="IDX162"></A>
<A NAME="IDX163"></A>
If true (the default), display a continuously-updating <B>BBDB</B>
window while in <B>VM</B>, <B>MH</B>, <B>RMAIL</B>, or <B>GNUS</B>.
Each time a new message is selected, the record corresponding to
that message's sender will be displayed in another window. The
buffer in this other window will be in bbdb-mode, and all
corresponding commands will be available. <P>
This buffer will be positioned on the screen by finding the tallest
of the windows present, and splitting it such that the bottom
<CODE>bbdb-pop-up-target-lines</CODE> lines of the window display the
<SAMP>`*BBDB*'</SAMP> buffer. With the default configurations of <B>VM</B>,
<B>MH</B>, <B>RMAIL</B>, and <B>GNUS</B>, this means that the bbdb-list
buffer will be just below the message-body buffer. </P><P>
If this is the symbol <CODE>horiz</CODE>, then the <B>BBDB</B> window will be
stacked horizontally instead of vertically, if there is room to do that
tastefully. </P><P>
<DT><CODE>bbdb-pop-up-target-lines</CODE>
<DD><A NAME="IDX164"></A>
Desired number of lines in a <B>VM/MH/RMAIL/GNUS</B> pop-up <B>BBDB</B> window,
default 5. <P>
<DT><CODE>bbdb-elided-display-fields</CODE>
<DD><A NAME="IDX165"></A>
A the list of fields which should be displayed in elided display.
E.g. set this to <CODE>'(phones net addresses)</CODE> in order to get the list of
phone numbers, net addresses and addresses listed.
<P>
You may use any valid BBDB field and write your own functions for formating
them. The formating functions should be named according to the following
pattern <CODE>bbdb-format-popup-<field></CODE>. They should take one argument which
is the raw field content and return a string.
</P><P>
<DT><CODE>bbdb-elided-display-name-end</CODE>
<DD><A NAME="IDX166"></A>
Set this to the column where name and company should end in elided
display.
<P>
<DT><CODE>bbdb-completion-type</CODE>
<DD><A NAME="IDX167"></A>
<A NAME="IDX168"></A>
<A NAME="IDX169"></A>
<A NAME="IDX170"></A>
<A NAME="IDX171"></A>
Controls the behavior of the <CODE>bbdb-complete-name</CODE> command. If <CODE>nil</CODE>
(the default), completion is done across the set of all full-names and
user-ids in the database; if the symbol <CODE>name</CODE>, completion is
done on real-names only; if the symbol <CODE>net</CODE>, completion is done
on network addresses only; if it is <CODE>primary</CODE>, then completion is
done only across the set of primary network addresses (the first address
in the list of addresses for a given user). If it is
<CODE>primary-or-name</CODE>, completion is done across primaries and real
names. <P>
<DT><CODE>bbdb-expand-mail-aliases</CODE>
<DD><A NAME="IDX172"></A>
<A NAME="IDX173"></A>
<A NAME="IDX174"></A>
<A NAME="IDX175"></A>
<A NAME="IDX176"></A>
If non-nil, expand mail aliases in `bbdb-complete-name'.
<P>
<DT><CODE>bbdb-complete-name-allow-cycling</CODE>
<DD><A NAME="IDX177"></A>
<A NAME="IDX178"></A>
<A NAME="IDX179"></A>
<A NAME="IDX180"></A>
<A NAME="IDX181"></A>
Wheater to allow cycling of email addresses when calling
`bbdb-complete-name' on a completed address in a composition buffer."
THIS CURRENTLY DOES NOT WORK FOR GNU EMACS!
<P>
<DT><CODE>bbdb-complete-name-full-completion</CODE>
<DD><A NAME="IDX182"></A>
<A NAME="IDX183"></A>
<A NAME="IDX184"></A>
<A NAME="IDX185"></A>
<A NAME="IDX186"></A>
Show full expanded completion rather than partial matches.
If t then do it always, if a number then just is the number of
completions for a specific match is below that number.
<P>
<DT><CODE>bbdb-user-mail-names</CODE>
<DD><A NAME="IDX187"></A>
A regular expression identifying the addresses that belong to you. If a
message from an address matching this is seen, the <B>BBDB</B> record for the
<SAMP>`To:'</SAMP> line will be shown instead of the one for the <SAMP>`From:'</SAMP>
line. If this is <CODE>nil</CODE>, it will default to the value of
<CODE>(user-login-name)</CODE>. <P>
<DT><CODE>bbdb-always-add-addresses</CODE>
<DD><A NAME="IDX188"></A>
If this is <CODE>t</CODE>, then whenever the Insidious Big Brother Database
notices a new email address corresponding to a person who is in the
database, it will add it to the database. If this is <CODE>nil</CODE> (the
default), then whenever a new network address is noticed for a person in
the database, you will be asked whether to add the address. If this is
the symbol <CODE>never</CODE> (really if it is not <CODE>t</CODE> and not <CODE>nil</CODE>)
then new network addresses will never be automatically added. <P>
<DT><CODE>bbdb-new-nets-always-primary</CODE>
<DD><A NAME="IDX189"></A>
If this is <CODE>t</CODE>, then when the Insidious Big Brother Database adds a new
address to a record, it will always add it to the front of the list of
addresses, making it the primary address. If this is <CODE>nil</CODE> (the default),
then you will be asked. If this is the symbol <CODE>never</CODE> (really if
it is not <CODE>t</CODE> and not <CODE>nil</CODE>) then new network addresses will
always be added to the end of the list. <P>
<DT><CODE>bbdb-canonicalize-redundant-nets-p</CODE>
<DD><A NAME="IDX190"></A>
If this is non-<CODE>nil</CODE>, redundant network addresses will be ignored.
If a record has an address of the form <CODE>foo@baz.com</CODE>, setting this
to <CODE>t</CODE> will cause subsequently-noticed addresses
like <CODE>foo@bar.baz.com</CODE> to be ignored (since we already have a more
general form of that address.) This is similar in function to one of
the possible uses of the variable <CODE>bbdb-canonicalize-net-hook</CODE>
but is somewhat more automatic. (This can't quite be implemented in
terms of the canonicalize-net-hook because it needs access to the
database to determine whether an address is redundant, and the
canonicalize-net-hook is purely a textual manipulation which is
performed before any database access.)
<P>
<DT><CODE>bbdb-message-caching-enabled</CODE>
<DD><A NAME="IDX191"></A>
Whether caching of the message->bbdb-record association should be
used for the interfaces which support it (<B>VM</B>, <B>MH</B>, and
<B>RMAIL</B>). This can speed things up a lot. One implication of
this variable being true (the default) is that the
<CODE>bbdb-notice-hook</CODE> will not be called each time a message is
selected, but only the first time. Likewise, if selecting a message
would generate a question (whether to add an address, change the
name, etc) you will only be asked that question the very first time
the message is selected. <P>
<DT><CODE>bbdb-elided-display</CODE>
<DD><A NAME="IDX192"></A>
Default: <CODE>nil</CODE>. Set this to <CODE>t</CODE> to make the bbdb-display commands
default to displaying one line per record instead of a full listing.
Set this to a list of some of the symbols <CODE>'(address phone net
notes)</CODE> to select those fields to be left out of the listing (you can't
leave out the name field). <P>
This is the default state for <KBD>M-x bbdb</KBD> and friends. You can have a
different default for when the <B>BBDB</B> buffer is automatically updated by the
mail and news interfaces by setting the variable
<CODE>bbdb-pop-up-elided-display</CODE>. If that variable is unbound, this
variable will be consulted instead.</P><P>
<DT><CODE>bbdb-pop-up-elided-display</CODE>
<DD><A NAME="IDX193"></A>
Default: unbound. Set this to <CODE>t</CODE> if to make the pop-up <B>BBDB</B> buffer
default to displaying one line per record instead of a full listing.
Set this to a list of some of the symbols <CODE>'(address phone net
notes)</CODE> to select those fields to be left out of the listing (you can't
leave out the name field). <P>
The default state for <KBD>M-x bbdb</KBD> and friends is controlled by the
variable <CODE>bbdb-elided-display</CODE>; this variable is the default for
when the <B>BBDB</B> buffer is automatically updated by the mail and news
interfaces. If bbdb-pop-up-elided-display is unbound, then
bbdb-elided-display the former will be consulted instead by mail and
news.</P><P>
<DT><CODE>bbdb-offer-save</CODE>
<DD><A NAME="IDX194"></A>
If <CODE>t</CODE> (the default), then certain actions will cause the <B>BBDB</B> to
ask you whether you wish to save the database. If <CODE>nil</CODE>, then the
offer to save will never be made. If not <CODE>t</CODE> and not <CODE>nil</CODE>, then
any time it would ask you, it will just save it without asking. <P>
</DL>
<P>
<A NAME="Customization Hooks"></A>
<HR SIZE="6">
<A NAME="SEC60"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC59"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC61"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.7.2 Customization Hooks </H3>
<!--docid::SEC60::-->
<P>
All of the hooks variables described below may be set to a symbol or
lambda expression, which will be funcalled; or may be set to a list of
symbols or lambda expressions, each of which will be funcalled in turn.
Almost all hooks in Emacs work this way. But notice that some of the
hooks described below are called with arguments.
</P><P>
<DL COMPACT>
<DT><CODE>bbdb-list-hook</CODE>
<DD><A NAME="IDX195"></A>
Hook or hooks invoked after the bbdb-list-buffer is filled in. Invoked
with no arguments. <P>
<DT><CODE>bbdb-create-hook</CODE>
<DD><A NAME="IDX196"></A>
Hook or hooks invoked each time a new bbdb-record is created. Invoked
with one argument, the new record. This is called <EM>before</EM> the record is
added to the database. Note that <CODE>bbdb-change-hook</CODE> will be called as
well. <P>
<DT><CODE>bbdb-change-hook</CODE>
<DD><A NAME="IDX197"></A>
Hook or hooks invoked each time a bbdb-record is altered. Invoked with
one argument, the record. This is called <EM>before</EM> the database buffer
is modified. Note that if a new bbdb record is created, both this hook and
<CODE>bbdb-create-hook</CODE> will be called. <P>
<DT><CODE>bbdb-mode-hook</CODE>
<DD><A NAME="IDX198"></A>
Hook or hooks invoked when the <SAMP>`*BBDB*'</SAMP> buffer is created.
<P>
<DT><CODE>bbdb-notice-hook</CODE>
<DD><A NAME="IDX199"></A>
Hook or hooks invoked each time a bbdb-record is "noticed," that
is, each time it is displayed by the news or mail interfaces.
Invoked with one argument, the new record. The record need not have
been modified for this to be called - use <CODE>bbdb-change-hook</CODE> for that.
You can use this to, for example, add something to the notes field
based on the subject of the current message. It is up to your hook
to determine whether it is running in <B>GNUS</B>, <B>VM</B>,
<B>MH</B>, or <B>RMAIL</B>, and to act appropriately. <P>
Also note that <CODE>bbdb-change-hook</CODE> will <EM>not</EM> be called as a
result of any modifications you may make to the record inside this
hook. </P><P>
Beware that if the variable <CODE>bbdb-message-caching-enabled</CODE> is
true (a good idea) then when you are using <B>VM</B>, <B>MH</B>, or
<B>RMAIL</B>, this hook will be called only the first time that
message is selected. (The <B>GNUS</B> interface does not use caching.)
When debugging the value of this hook, it is a good idea to set
caching-enabled to <CODE>nil</CODE>. </P><P>
<DT><CODE>bbdb-after-read-db-hook</CODE>
<DD><A NAME="IDX200"></A>
Hook or hooks invoked (with no arguments) just after the Insidious Big
Brother Database is read in. Note that this can be called more than once if
the <B>BBDB</B> is reverted. One possible use for this is to rename the
<TT>`.bbdb'</TT> buffer; for example <P>
<CODE>(setq bbdb-after-read-db-hook '(lambda () (rename-buffer " bbdb")))</CODE>
</P><P>
will cause the buffer visiting the <CODE>bbdb-file</CODE> to be
called <CODE>" bbdb"</CODE>. The leading space in its name will prevent
it from showing up in the buffer list.
</P><P>
<DT><CODE>bbdb-load-hook</CODE>
<DD><A NAME="IDX201"></A>
Hook or hooks invoked (with no arguments) when the Insidious Big Brother
Database code is first loaded. WARNING: Slow functions should not be
put on this hook, as the <B>BBDB</B> code will, if not loaded before, be
loaded during the first use of <B>BBDB</B>-related Customization
functions. Slow functions should be put on <CODE>bbdb-initialize-hook</CODE>.
<P>
<DT><CODE>bbdb-initialize-hook</CODE>
<DD><A NAME="IDX202"></A>
<A NAME="IDX203"></A>
Hook or hooks invoked (with no arguments) when the
<CODE>bbdb-initialize</CODE> function is called.
<P>
<DT><CODE>bbdb-canonicalize-net-hook</CODE>
<DD><A NAME="IDX204"></A>
If this is non-<CODE>nil</CODE>, it should be a function of one argument: a
network address string. (Note that, unlike the other hook-variables
described above, this may not be a list of functions.) Whenever the
Insidious Big Brother Database "notices" a message, the corresponding
network address will be passed to this function first, as a kind of
"filter" to do whatever transformations upon it you like before it is
compared against or added to the database. For example: it is the case
that <CODE>CS.CMU.EDU</CODE> is a valid return address for all mail
originating at a machine in the <CODE>.CS.CMU.EDU</CODE> domain. So, if you
wanted all such addresses to be canonically hashed as
<CODE>user@CS.CMU.EDU</CODE>, instead of as <CODE>user@somehost.CS.CMU.EDU</CODE>,
you might set this variable to a function like this: <P>
<TABLE><tr><td> </td><td class=example><pre>(setq bbdb-canonicalize-net-hook
'(lambda (addr)
(cond ((string-match
"\\`\\([^@]+@\\).*\\.\\(CS\\.CMU\\.EDU\\)\\'"
addr)
(concat (substring addr
(match-beginning 1) (match-end 1))
(substring addr
(match-beginning 2) (match-end 2))))
(t addr))))
</pre></td></tr></table></P><P>
You could also use this function to rewrite UUCP-style addresses into
domain-style addresses, or any number of other things.</P><P>
This function will be called repeatedly until it returns a value EQ to the
value passed in. So multiple rewrite rules might apply to a single
address.</P><P>
There is an example of the use of this variable in the
file <TT>`bbdb-hooks.el'</TT>: the function
<CODE>sample-bbdb-canonicalize-net-hook</CODE>.</DL>
<P>
<A NAME="IDX205"></A>
<A NAME="IDX206"></A>
The <CODE>bbdb-canonicalize-net-hook</CODE> is powerful in that it allows
arbitrary rewriting of addresses, however, in many cases that is
overkill. The function <CODE>bbdb-delete-redundant-nets</CODE> can be
used as a value of <CODE>bbdb-change-hook</CODE> to cause network addresses
which appear to be "redundant" to be deleted each time a modification
is made to a record. </P><P>
This works as follows: suppose one gets mail from <CODE>user@foo.bar.com</CODE>,
and then later gets mail from <CODE>user@bar.com</CODE>. At this point, one
can generally delete the <CODE>user@foo.bar.com</CODE> address, since the
<CODE>user@bar.com</CODE> address is more general. (See also the
variable `bbdb-canonicalize-redundant-nets-p', which has the effect of
ignoring subsequent addresses from <CODE>user@quux.bar.com</CODE> if the
address <CODE>user@bar.com</CODE> is already known.)</P><P>
<A NAME="Predefined Hooks"></A>
<HR SIZE="6">
<A NAME="SEC61"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC60"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.7.3 Predefined Hooks </H3>
<!--docid::SEC61::-->
<P>
<A NAME="IDX207"></A>
<A NAME="IDX208"></A>
If the variable <CODE>bbdb-change-hook</CODE> is set to the symbol
<CODE>bbdb-timestamp-hook</CODE> (the default), then every record in the
database will have a field named <SAMP>`timestamp'</SAMP>, which will always
contain the date and time at which this record was created or last
modified.
</P><P>
<A NAME="IDX209"></A>
If the variable <CODE>bbdb-create-hook</CODE> is set to the symbol
<CODE>bbdb-creation-date-hook</CODE> (the default), then every record in the
database will have a field named <SAMP>`creation-date'</SAMP>, which will
contain the date and time at which this record was added to the
database.
</P><P>
<A NAME="IDX210"></A>
<A NAME="IDX211"></A>
<A NAME="IDX212"></A>
If the variable <CODE>bbdb/mail-auto-create-p</CODE> is set to the symbol
<CODE>bbdb-ignore-most-messages-hook</CODE>, then the variable
<CODE>bbdb-ignore-most-messages-alist</CODE> will determine which messages
should have records automatically created for them. The format of this
alist is <TABLE><tr><td> </td><td class=example><pre>(( <VAR>HEADER-NAME</VAR> . <VAR>REGEXP</VAR> ) <small>...</small> )
</pre></td></tr></table>for example,
<TABLE><tr><td> </td><td class=example><pre>(("From" . "@.*\\.maximegalon\\.edu")
("Subject" . "time travel"))
</pre></td></tr></table></P><P>
will cause <B>BBDB</B> entries to be made only for messages sent by
people at Maximegalon U., or (that's <EM>or</EM>) people posting
about time travel. </P><P>
There may be only one entry per header in this alist: that is, </P><P>
<TABLE><tr><td> </td><td class=example><pre>(("From" . "addr1\\|addr2") <small>...</small> )
</pre></td></tr></table></P><P>
is legal, but
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(("From" . "addr1") ("From" . "addr2") <small>...</small> )
</pre></td></tr></table></P><P>
is not.
</P><P>
<A NAME="IDX213"></A>
<A NAME="IDX214"></A>
<A NAME="IDX215"></A>
<A NAME="IDX216"></A>
If the variable <CODE>bbdb/mail-auto-create-p</CODE> is set to the symbol
<CODE>bbdb-ignore-some-messages-hook</CODE>, then the variable
<CODE>bbdb-ignore-some-messages-alist</CODE> will determine which messages
should have records automatically created for them. This is the exact
inverse of the semantics of the <CODE>bbdb-ignore-most-messages-alist</CODE>:
the alist specifies which messages should <EM>not</EM> have records
automatically created for them, instead of which should. For
example, </P><P>
<TABLE><tr><td> </td><td class=example><pre>(("From" . "mailer.daemon")
("To" . "mailing-list-1\\|mailing-list-2")
("CC" . "mailing-list-1\\|mailing-list-2"))
</pre></td></tr></table></P><P>
will cause <B>BBDB</B> entries to not be made for messages from any mailer daemon,
or messages sent to or <B>CC</B>ed to either of two mailing lists. </P><P>
The variable <CODE>bbdb/news-auto-create-p</CODE> may be set to either of the
above-mentioned functions as well, to get this behavior for netnews
messages instead of mail messages.</P><P>
<A NAME="IDX217"></A>
<A NAME="IDX218"></A>
<A NAME="IDX219"></A>
If the variable <CODE>bbdb-notice-hook</CODE> is set to the symbol
<CODE>bbdb-auto-notes-hook</CODE>, then the variable <CODE>bbdb-auto-notes-alist</CODE>
may be used to automatically add text to the notes fields of the records
corresponding to certain messages. The format of this alist is </P><P>
<TABLE><tr><td> </td><td class=example><pre>(( <VAR>HEADER-NAME</VAR>
(<VAR>REGEXP</VAR> . <VAR>STRING</VAR>) <small>...</small> )
<small>...</small> )
</pre></td></tr></table></P><P>
for example,
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(("To" ("-vm@" . "VM mailing list"))
("Subject" ("sprocket" . "mail about sprockets")
("you bonehead" . "called me a bonehead")))
</pre></td></tr></table></P><P>
will cause the text <CODE>"VM mailing list"</CODE> to be added to the notes field of
the record corresponding to anyone you get mail from via one of the <B>VM</B>
mailing lists. If, that is, <CODE>bbdb/mail-auto-create-p</CODE> is set such
that the record would have been created, or if the record already
existed.</P><P>
The format of elements of this list may also be
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(<VAR>REGEXP</VAR> <VAR>FIELD-NAME</VAR> <VAR>STRING</VAR>)
</pre></td></tr></table>or
<TABLE><tr><td> </td><td class=example><pre>(<VAR>REGEXP</VAR> <VAR>FIELD-NAME</VAR> <VAR>STRING</VAR> <VAR>REPLACE-P</VAR>)
</pre></td></tr></table></P><P>
meaning add the given string to the named field. The field-name may not
be <SAMP>`name'</SAMP>, <SAMP>`aka'</SAMP>, <SAMP>`address'</SAMP>, <SAMP>`phone'</SAMP>, or <SAMP>`net'</SAMP>
(builtin fields) but must be either <SAMP>`notes'</SAMP>, <SAMP>`company'</SAMP>, or the
name of a user-defined note-field. </P><P>
<TABLE><tr><td> </td><td class=example><pre>("pattern" . "string to add")
</pre></td></tr></table></P><P>
is equivalent to
</P><P>
<TABLE><tr><td> </td><td class=example><pre>("pattern" notes "string to add")
</pre></td></tr></table></P><P>
<VAR>STRING</VAR> can contain <CODE>\&</CODE> or <CODE>\N</CODE> escapes like in the function
<CODE>replace-match</CODE>. For example, to automatically add the contents of the
<B>organization</B> field of a message to the <CODE>company</CODE> field of a <B>BBDB</B>
record, you can use this: </P><P>
<TABLE><tr><td> </td><td class=example><pre>("Organization" (".*" company "\\&"))
</pre></td></tr></table></P><P>
(Note you need two \ to get a single \ into a lisp string literal.)
</P><P>
If STRING is an integer <I>N</I>, the <I>N</I>th matching subexpression is
used, so the above example could be written more efficiently as </P><P>
<TABLE><tr><td> </td><td class=example><pre>("Organization" (".*" company 0))
</pre></td></tr></table></P><P>
If STRING is neither a string or an integer, it should be a function
which is called with the contents of the field, and the result of the
function call is used.
</P><P>
If the <VAR>REPLACE-P</VAR> flag is true, then the string replaces the old
contents instead of being appended to it.
</P><P>
If multiple clauses match the message, all of the corresponding strings
will be added. </P><P>
If the string is being appended (<VAR>REPLACE-P</VAR> is false or not
provided) then the new string is appended to the end of the existing
field value, with an intervening newline. So each piece of text
automatically added to this field will go on its own line. </P><P>
You can control what the separator is by putting a <CODE>field-separator</CODE>
property on the symbol naming the field. For example, to make text
automatically added to a field named <CODE>newsgroups</CODE> be separated by
commas, you could do </P><P>
<TABLE><tr><td> </td><td class=example><pre>(put 'newsgroups 'field-separator "; ")
</pre></td></tr></table></P><P>
This variable works for news as well. You might want to arrange for
this to have a different value when in mail as when in news. </P><P>
There may be only one entry per header in this alist: that is,</P><P>
<TABLE><tr><td> </td><td class=example><pre> (("Subject" ("\\bfoo\\b" . "Foo!!")
("bar" . "Bar!")))
</pre></td></tr></table></P><P>
will work, but
</P><P>
<TABLE><tr><td> </td><td class=example><pre> (("Subject" ("\\bfoo\\b" . "Foo!!"))
("Subject" ("bar" . "Bar!")))
</pre></td></tr></table></P><P>
will not.
</P><P>
Here's a more complicated example: some people include bitmaps of
themselves in their mail messages in an <B>X-Face:</B> header field.
You can capture this field into the <SAMP>`*BBDB*'</SAMP> with the
following:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>(setq bbdb-auto-notes-alist
(append bbdb-auto-notes-alist
(list "x-face"
(list (concat "[ \t\n]*\\([^ \t\n]*\\)"
"\\([ \t\n]+\\([^ \t\n]+\\)\\)?"
"\\([ \t\n]+\\([^ \t\n]+\\)\\)?"
"\\([ \t\n]+\\([^ \t\n]+\\)\\)?"
)
'face
"\\1\\3\\5\\7"))))
</pre></td></tr></table></P><P>
(The calls to <CODE>list</CODE> and <CODE>concat</CODE> are just for readability, it
could easily be a constant.) The tricky bit here is that it strips out
the newlines and whitespace used for header continuation, which are not
actually a part of the face data. So though the mail message may have
the face data on multiple lines, the entry in the <SAMP>`*BBDB*'</SAMP> will
be just one line.
</P><P>
<A NAME="IDX220"></A>
<CODE>bbdb-auto-notes-ignore</CODE> is an alist of headers and regexps to
ignore in <CODE>bbdb-auto-notes-hook</CODE>. Each element looks like </P><P>
<TABLE><tr><td> </td><td class=example><pre>(<VAR>HEADER</VAR> . <VAR>REGEXP</VAR>)
</pre></td></tr></table></P><P>
for example,
</P><P>
<TABLE><tr><td> </td><td class=example><pre>("Organization" . "^Gatewayed from\\|^Source only")
</pre></td></tr></table></P><P>
would exclude the phony <CODE>Organization:</CODE> headers in GNU mailing-lists
gatewayed to the <CODE>gnu.*</CODE> newsgroups. Note that this exclusion
applies only to a single field, not to the entire message. For that,
use the variable <CODE>bbdb-auto-notes-ignore-all</CODE>.
</P><P>
<A NAME="IDX221"></A>
<CODE>bbdb-auto-notes-ignore-all</CODE> is an alist of headers and regexps
which cause the entire message to be ignored in <CODE>bbdb-auto-notes-hook</CODE>.
Each element looks like </P><P>
<TABLE><tr><td> </td><td class=example><pre>(<VAR>HEADER</VAR> . <VAR>REGEXP</VAR>)
</pre></td></tr></table></P><P>
for example,
</P><P>
<TABLE><tr><td> </td><td class=example><pre>("From" . "BLAT\\.COM")
</pre></td></tr></table></P><P>
would exclude any notes recording for message coming from <CODE>BLAT.COM</CODE>.
Note that this is different from <CODE>bbdb-auto-notes-ignore</CODE>, which
applies only to a particular header field, rather than the entire message.
</P><P>
<A NAME="Utilities"></A>
<HR SIZE="6">
<A NAME="SEC62"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC61"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC63"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC58"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.8 Utilities </H2>
<!--docid::SEC62::-->
<P>
This section describes <B>BBDB</B> functionality that does not fit neatly into
other sections.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC63">1.8.1 <CODE>bbdb-ftp</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Storing FTP sites in the <B>BBDB</B></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC64">1.8.2 <CODE>bbdb-print</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Print the <B>BBDB</B></TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC65">1.8.3 <CODE>bbdb-snarf</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Record generation from raw text</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC66">1.8.4 <CODE>bbdb-srv</CODE></A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">External control of the <B>BBDB</B></TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="bbdb-ftp"></A>
<HR SIZE="6">
<A NAME="SEC63"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC64"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.8.1 <CODE>bbdb-ftp</CODE> </H3>
<!--docid::SEC63::-->
<P>
The <CODE>bbdb-ftp</CODE> utility enables the storage of FTP sites as <B>BBDB</B>
records. The <CODE>bbdb-create-ftp-site</CODE> function is used to create a
<B>BBDB</B> record for an FTP site. The command will prompt for information
needed to create the record. The FTP site for a given record can be accessed
with the <CODE>bbdb-ftp</CODE> command.
</P><P>
<A NAME="bbdb-print"></A>
<HR SIZE="6">
<A NAME="SEC64"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC63"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC65"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.8.2 <CODE>bbdb-print</CODE> </H3>
<!--docid::SEC64::-->
<P>
<CODE>bbdb-print</CODE> is a utility for pretty-printing entries from the <B>BBDB</B>
using TeX. It is invoked by pressing <KBD>P</KBD> in the <CODE>*BBDB*</CODE> buffer -
this will cause all records in the <B>BBDB</B> to be printed as governed by the
variables described below. If <KBD>P</KBD> is prefixed by a <KBD>*</KBD>, only the
currently-displayed records will be printed. Once invoked, <CODE>bbdb-print</CODE>
will generate the TeX output in a buffer named <TT>`~/bbdb.tex'</TT> (controlled
by <CODE>bbdb-print-file-name</CODE>). The generated output will be shown, and must
be <B>manually</B> saved.
</P><P>
For each record printed, <CODE>bbdb-print</CODE> will look for the presence of the
<CODE>tex-name</CODE> field. If this field is found, its value will be printed
instead of the <CODE>name</CODE> field for the record in question. This field is
intended to allow the storage of names with accents or other characters that
would be illegal in the address portion of a message. While other fields have
special characters quoted by <CODE>bbdb-print</CODE> as described below, the
contents of the <CODE>tex-name</CODE> field (if present) are used verbatim.
</P><P>
The following variables govern the printing of records (and of the printing of
the fields therein):
</P><P>
<DL COMPACT>
<DT><CODE>bbdb-print-elide</CODE>
<DD><A NAME="IDX222"></A>
This variable should be set to a list of the fields that are not to be printed
by <CODE>bbdb-print</CODE>. It defaults to:<BR>
<center>
<CODE>(tex-name aka mail-alias)</CODE>
</center>
<P>
<DT><CODE>bbdb-print-file-name</CODE>
<DD><A NAME="IDX223"></A>
The name of the file where generated TeX output is to be stored. The default
is <TT>`~/bbdb.tex'</TT>.
<P>
<DT><CODE>bbdb-print-require</CODE>
<DD><A NAME="IDX224"></A>
The fields required for printing a record. This allows, for example, only
records with phone numbers to be printed. The value of the value of the
variable will be evaluated once for each record, and the record will be
printed only if the evaluation returns a non-nil value. The symbols
<CODE>name</CODE>, <CODE>company</CODE>, <CODE>net</CODE>, <CODE>phone</CODE>, <CODE>address</CODE>, and
<CODE>notes</CODE> will be set to the appropriate values during evaluation; they
will be nil if the field does not exist or is elided.
<P>
The value of this variable can be any lisp expression, but typically
it will be used for a boolean combination of the field variables, as
in the following simple examples:
</P><P>
<UL>
<LI>Print only people whose phone numbers are known:<BR>
<center>
<CODE>(setq bbdb-print-require 'phone)</CODE>
</center>
<LI>Print people whose names AND companies are known:<BR>
<center>
<CODE>(setq bbdb-print-require '(and name company))</CODE>
</center>
<LI>Print people whose names, and either addresses OR phone numbers are
known:<BR>
<center>
<CODE>(setq bbdb-print-require '(and name (or address phone))).</CODE>
</center>
<P>
The default value is:<BR>
<center>
<CODE>(or address phone)</CODE>
</center>
</UL>
<P>
<DT><CODE>bbdb-print-alist</CODE>
<DD><A NAME="IDX225"></A>
Formatting options for all formats of <CODE>bbdb-print</CODE>. The value is an
alist of the form<BR>
<center>
<CODE>((<VAR>OPTION</VAR> . <VAR>VALUE</VAR>) (<VAR>OPTION</VAR> . <VAR>VALUE</VAR>) ...)</CODE>
</center>
<P>
Separate settings can be configured using <CODE>bbdb-print-brief-alist</CODE> and
<CODE>bbdb-print-full-alist</CODE>. Settings in these variables will override the
ones in <CODE>bbdb-print-alist</CODE>.
</P><P>
The possible options and legal settings are:
<DL COMPACT>
<DT><CODE>columns</CODE>
<DD><CODE>1</CODE>, <CODE>2</CODE>, <CODE>3</CODE>, <CODE>4</CODE>, <CODE>quad</CODE> (4 little
2-column pages per sheet) or <CODE>grid</CODE> (12 credit-card-sized pages per
sheet).
<P>
<DT><CODE>separator</CODE>
<DD><CODE>0</CODE>-<CODE>7</CODE>, the style of heading for each letter. <CODE>0</CODE>=none,
<CODE>1</CODE>=line, <CODE>2</CODE>=boxed letters, <CODE>3</CODE>=large boxed letters,
<CODE>4</CODE>=large letters, <CODE>5</CODE>=letters with lines, <CODE>6</CODE>=letters with
suits, <CODE>7</CODE>=boxed letters with suits.
<P>
<DT><CODE>omit-area-code</CODE>
<DD>A regular expression matching area codes to omit.
<P>
<DT><CODE>phone-on-first-line</CODE>
<DD>If <CODE>t</CODE>, the first phone number will be put on the same line as the name.
If <CODE>nil</CODE>, the name will be the only text on the line. If set to a
string, the field of type <CODE>phone</CODE> whose name matches the string will be
used. The string should be a valid regular expression.
<P>
<DT><CODE>n-phones</CODE>
<DD>Maximum number of phone numbers to include.
<P>
<DT><CODE>n-addresses</CODE>
<DD>Maximum number of addresses to include.
<P>
<DT><CODE>include-files</CODE>
<DD>List of TeX files to <CODE>\input</CODE>. If the filenames are not absolute, the
files must be located somewhere in the TeX input path.
<P>
<DT><CODE>ps-fonts</CODE>
<DD>Postscript fonts (TimesNewRoman and Courier) will be used if the value
is non-<CODE>nil</CODE>. Standard TeX fonts (ec-fonts) will be used
otherwise.
<P>
<DT><CODE>font-size</CODE>
<DD>The integer point size of the font to be used.
<P>
<DT><CODE>hsize</CODE>
<DD>The horizontal dimension of the pages. The value must be a string, and must
be a valid TeX dimension. Alternatively, the TeX default will be used if the
value is <CODE>nil</CODE>.
<P>
<DT><CODE>vsize</CODE>
<DD>The vertical dimension of the pages. The value must be a string, and must
be a valid TeX dimension. Alternatively, the TeX default will be used if the
value is <CODE>nil</CODE>.
<P>
<DT><CODE>hoffset</CODE>
<DD>The TeX output will be offset to the right by the value of this option. The
value must be either a string containing a valid TeX dimension or <CODE>nil</CODE>
or <CODE>0</CODE> to use the default TeX horizontal offset.
<P>
<DT><CODE>voffset</CODE>
<DD>The TeX output will be offset downward by the value of this option. The
value must be either a string containing a valid TeX dimension or <CODE>nil</CODE>
or <CODE>0</CODE> to use the default TeX vertical offset.
<P>
<DT><CODE>quad-hsize</CODE>
<DD>Horizontal size to be used for the individual pages in the quad format. The
value must be a string containing a valid TeX dimension.
<P>
<DT><CODE>quad-vsize</CODE>
<DD>Vertical size to be used for the individual pages in the quad format. The
value must be a string containing a valid TeX dimension.
</DL>
<P>
The default value is
<TABLE><tr><td> </td><td class=example><pre>((omit-area-code . "(<VAR>AREA-CODE</VAR>)")
(phone-on-first-line . "^[ \t]*$")
(ps-fonts . nil)
(font-size . 6)
(quad-hsize . "3.15in")
(quad-vsize . "4.5in"))
</pre></td></tr></table></P><P>
Where <VAR>AREA-CODE</VAR> is the value of <CODE>bbdb-default-area-code</CODE> or
<SAMP>`000'</SAMP> if there is no default area code.
</P><P>
<DT><CODE>bbdb-print-brief-alist</CODE>
<DD><A NAME="IDX226"></A>
Extra options for the <CODE>bbdb-print</CODE> brief format. The value(s) of
this variable can either supplement or override the values in
<CODE>bbdb-print-alist</CODE>. The format and possible values of this variable are
as in <CODE>bbdb-print-alist</CODE>, described above.
<P>
The default value is
<TABLE><tr><td> </td><td class=example><pre>((columns . 1)
(separator . 1)
(n-phones . 2)
(n-addresses . 1)
(include-files "bbdb-print-brief" "bbdb-cols"))
</pre></td></tr></table></P><P>
<DT><CODE>bbdb-print-full-alist</CODE>
<DD><A NAME="IDX227"></A>
Extra options for the <CODE>bbdb-print</CODE> non-brief format. The value(s) of
this variable can either supplement or override the values in
<CODE>bbdb-print-alist</CODE>. The format and possible values of this variable are
as in <CODE>bbdb-print-alist</CODE>, described above.
<P>
The default value is
<TABLE><tr><td> </td><td class=example><pre>((columns . 3)
(separator . 2)
(include-files "bbdb-print" "bbdb-cols"))
</pre></td></tr></table></P><P>
<DT><CODE>bbdb-print-prolog</CODE>
<DD><A NAME="IDX228"></A>
TeX statements to include at the beginning of the <CODE>bbdb-print</CODE> output
file.
<P>
<DT><CODE>bbdb-print-epilog</CODE>
<DD><A NAME="IDX229"></A>
TeX statements to include at the end of the <CODE>bbdb-print</CODE> output file.
<P>
</DL>
<P>
<A NAME="bbdb-snarf"></A>
<HR SIZE="6">
<A NAME="SEC65"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC64"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC66"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.8.3 <CODE>bbdb-snarf</CODE> </H3>
<!--docid::SEC65::-->
<P>
<CODE>bbdb-snarf</CODE> provides the ability to generate <B>BBDB</B> records from raw
text. If invoked as <CODE>bbdb-snarf</CODE>, it attempts to generate the record
from the information around point (the cursor). If invoked as
<CODE>bbdb-snarf-region</CODE><A NAME="DOCF6" HREF="bbdb_fot.html#FOOT6">(6)</A>, the active region is used to generate the record.
</P><P>
<B>Restrictions:</B>
</P><P>
<OL>
<LI>
<CODE>bbdb-snarf</CODE> currently recognizes only US-style phone numbers.
<LI>
<CODE>bbdb-snarf</CODE> works best with things that look like mailing addresses.
</OL>
<P>
Example of an address that <CODE>bbdb-snarf</CODE> will recognize:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>another test person
1234 Gridley St.
Los Angeles, CA 91342
555-1212
test@person.net
http://www.foo.bar/
other stuff about this person
</pre></td></tr></table></P><P>
<A NAME="bbdb-srv"></A>
<HR SIZE="6">
<A NAME="SEC66"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC65"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.8.4 <CODE>bbdb-srv</CODE> </H3>
<!--docid::SEC66::-->
<P>
<CODE>bbdb-srv</CODE> provides the ability to initiate the display of <B>BBDB</B>
records from outside of Emacs. This allows external programs to cause
the <B>BBDB</B> record for a given person to appear in the running Emacs
when, for example, mail is recieved from that person. One specific
application, described below, is the integration of Netscape and the
<B>BBDB</B>, allowing the display of <B>BBDB</B> records corresponding to Mail
and/or News messages displayed in Netscape.
</P><P>
<CODE>bbdb-srv</CODE> is composed of two parts - an external Perl script
(<TT>`utils/bbdb-srv.pl'</TT>), and an Emacs Lisp file
(<TT>`lisp/bbdb-srv.el'</TT>). The external portion is used to send
commands to the internal portion.
</P><P>
<B>NOTE:</B> <CODE>bbdb-srv</CODE> requires <CODE>gnuserv</CODE> and <CODE>itimer</CODE>,
both included with XEmacs. <CODE>gnuserv</CODE> must be started with the
<CODE>gnuserv-start</CODE> command before <CODE>bbdb-srv</CODE> can be used.
</P><P>
In it's most basic form, mail or news headers are passed to the Perl
script. The Perl script then causes the <B>BBDB</B> record (if any)
corresponding to the passed headers to be displayed in the running
Emacs. While <CODE>bbdb-srv</CODE> will operate with just a <SAMP>`From:'</SAMP>
field, it works better when passed both <SAMP>`From:'</SAMP> and <SAMP>`To:'</SAMP>
headers. When <CODE>bbdb-srv</CODE> notices that the logged-in user is named
in the <SAMP>`From:'</SAMP> header, it will attempt to display the record (if
any) for the person named in the <SAMP>`To:'</SAMP> header. If no <SAMP>`To:'</SAMP>
header is passed, it falls back on the record (if any) for the logged-in
user (the person named in the <SAMP>`From:'</SAMP> header).
</P><P>
An example manual invocation of <CODE>bbdb-srv</CODE> is as follows:
</P><P>
<TABLE><tr><td> </td><td class=example><pre>% cat |bbdb-srv.pl
From: Jamie Zawinski <jwz@netscape.com>
To: Matt Simmons <simmonmt@acm.org>
<KBD>CTRL-D</KBD>
</pre></td></tr></table></P><P>
If the invoking user is Jamie Zawinski, the record for Matt Simmons (if
any) will be displayed. If the invoking user is not Jamie Zawinski, the
record for Jamie Zawinski (if any) will be displayed.
</P><P>
As mentioned above <CODE>bbdb-srv</CODE> can be used with Netscape Mail and
Netscape News. Please note that it can only be used with the UNIX
versions 3.0b2 and greater of these applications. To allow Netscape to
use <CODE>bbdb-srv</CODE>, set the <SAMP>`NS_MSG_DISPLAY_HOOK'</SAMP> variable to
<CODE>bbdb-srv.pl</CODE><A NAME="DOCF7" HREF="bbdb_fot.html#FOOT7">(7)</A> as follows:
</P><P>
Bourne Shell (<TT>`/bin/sh'</TT>) and variants:
<TABLE><tr><td> </td><td class=example><pre># NS_MSG_DISPLAY_HOOK bbdb-srv.pl
# export NS_MSG_DISPLAY_HOOK
</pre></td></tr></table></P><P>
C-Shell (<TT>`/bin/csh'</TT>) and variants:
<TABLE><tr><td> </td><td class=example><pre>% setenv NS_MSG_DISPLAY_HOOK bbdb-srv.pl
</pre></td></tr></table></P><P>
The following variables can be used to customize the behavior of
<CODE>bbdb-srv</CODE>:
</P><P>
<DL COMPACT>
<A NAME="IDX230"></A>
<DT><CODE>bbdb/srv-auto-create-p</CODE>
<DD>This variable is similar to <CODE>bbdb/news-auto-create-p</CODE> and
<CODE>bbdb/mail-auto-create-p</CODE>. That is, when headers are passed in to
<CODE>bbdb-srv</CODE>, a new <B>BBDB</B> record can be created if none exists,
depending on the value of this variable. Possible values are:
<DL COMPACT>
<DT><CODE>t</CODE>
<DD>Automatically create new <B>BBDB</B> records if the headers passed in do
not correspond to an already-existing record.
<DT><CODE>nil</CODE>
<DD>Do not automatically create new <B>BBDB</B> records.
<DT><VAR>FUNCTION</VAR>
<DD><VAR>FUNCTION</VAR> is called. If it returns <CODE>t</CODE>, a record will be
created for the person named in the <SAMP>`From:'</SAMP> header. If it returns
<CODE>nil</CODE>, no record will be created.
<P>
A suggested function for use is
<CODE>bbdb/srv-auto-create-mail-news-dispatcher</CODE>. This function will
attempt to determine the source of the passed headers - whether they
were part of a mail message or of a news article. The action (if any)
dictated by the value of either <CODE>bbdb/mail-auto-create-p</CODE> or
<CODE>bbdb/news-auto-create-p</CODE>, based on the determined source of the
passed headers.
</P><P>
</DL>
<P>
<A NAME="IDX231"></A>
<DT><CODE>bbdb/srv/display-delay</CODE>
<DD><CODE>bbdb-srv</CODE> pauses between displaying the records corresponding to
each passed set of headers. This variable controls the length of time
(in seconds) of the delay between the display of different records.
Note when setting this variable that only one set of headers can be
queued at a time. If three sets of headers are passed to
<CODE>bbdb-srv</CODE> in less than the delay time, only the first and last
will be displayed.
</DL>
<P>
<A NAME="Internals"></A>
<HR SIZE="6">
<A NAME="SEC67"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC66"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC68"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC62"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC75"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.9 Internals </H2>
<!--docid::SEC67::-->
<P>
<B>This section is currently a dumping ground for things that should
eventually go here, but were found elsewhere in the file.</B>
</P><P>
<B>INFORMATION IN THIS SECTION IS FOR INFORMATIONAL PURPOSES ONLY. IT
SHOULD NOT BE TAKEN AS DOCUMENTATION OF AN EXTERNAL API. EVERYTHING
LISTED BELOW IS SUBJECT TO CHANGE WITHOUT NOTICE</B>
</P><P>
The first time you use
one of the <B>BBDB</B> commands, this file is read into an emacs buffer, and
remains there. As you make changes to the database, this buffer is
changed as well, ensuring that if it is auto-saved, it will be saved in
its most current state. </P><P>
<HR SIZE="6">
<A NAME="SEC68"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC69"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.9.1 BBDB data file format </H3>
<!--docid::SEC68::-->
<P>
The data file is arranged in a hierarchical fashion. At the top level
are vectors, with one vector per database record. It is <B>very</B>
important that each vector be on its own line, as the BBDB builds and
stores markers based on this layout. The markers are then used to
increase the speed of database modifications (more on this later). The
record vectors contain the individual fields of the record. These
fields can be of any type, but are currently integers, strings, lists of
strings, alists, vectors, or lists of vectors. In the case of fields
that contain one or more vectors, they can be further broken down in
terms of the fields of their component vectors.
</P><P>
In an effort to provide a more concrete example to illustrate the above,
and to provide a reference for database accessor and modifier functions,
we describe the database format below. This description starts with the
fields of the individual record vectors, and drills down through the
vectors used by some of the fields.
</P><P>
<HR SIZE="6">
<A NAME="SEC69"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC68"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC70"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.9.1.1 Record Vectors </H4>
<!--docid::SEC69::-->
<P>
<TABLE>
<TR><TD><B>Name</B></TD>
</TD><TD> <B>Type</B>
</TD><TD> <B>Accessor and Modifier</B>
</TD><TD> <B>Description</B>
</TR>
<TR><TD>First name</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-record-firstname</CODE><BR>
<CODE>bbdb-record-set-firstname</CODE>
</TD><TD> Entity's first name
</TR>
<TR><TD>Last name</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-record-lastname</CODE><BR>
<CODE>bbdb-record-set-lastname</CODE>
</TD><TD> Entity's last name
</TR>
<TR><TD>AKAs</TD>
</TD><TD> List of Strings
</TD><TD> <CODE>bbdb-record-aka</CODE><BR>
<CODE>bbdb-record-set-aka</CODE>
</TD><TD> Alternate names for entity
</TR>
<TR><TD>Company</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-record-company</CODE><BR>
<CODE>bbdb-record-set-company</CODE>
</TD><TD> Company with which entity is associated
</TR>
<TR><TD>Phones</TD>
</TD><TD> List of Vectors
</TD><TD> <CODE>bbdb-record-phones</CODE><BR>
<CODE>bbdb-record-set-phones</CODE>
</TD><TD> List of phone number vectors
</TR>
<TR><TD>Addresses</TD>
</TD><TD> List of Vectors
</TD><TD> <CODE>bbdb-record-addresses</CODE><BR>
<CODE>bbdb-record-set-addresses</CODE>
</TD><TD> List of address vectors
</TR>
<TR><TD>Net address</TD>
</TD><TD> List of Strings
</TD><TD> <CODE>bbdb-record-net</CODE><BR>
<CODE>bbdb-record-set-net</CODE>
</TD><TD> List of network addresses
</TR>
<TR><TD>Notes</TD>
</TD><TD> String or Alist
</TD><TD> <CODE>bbdb-record-raw-notes</CODE><BR>
<CODE>bbdb-record-set-raw-notes</CODE>
</TD><TD> String or Association list of note fields (strings)
</TR>
<TR><TD>Cache</TD>
</TD><TD> Vector
</TD><TD> <CODE>bbdb-record-cache</CODE><BR>
<CODE>bbdb-record-set-cache</CODE>
</TD><TD> Record cache.<BR>
<I>Internal version only.</I>
</TR></TABLE>
<P>
The phone, address and cache vector fields are described below. Please
note that, as indicated in the table above, the cache is present only in
the internal version of the database - it is not written out as part of
the <TT>`.bbdb'</TT> file.
</P><P>
In addition, the accessor and modifier functions for the notes alist
are described.
</P><P>
<HR SIZE="6">
<A NAME="SEC70"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC69"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC71"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.9.1.2 Phone Vectors </H4>
<!--docid::SEC70::-->
<P>
To access the fields in the below table, you must first get the list of
phone vectors using the <CODE>bbdb-record-phones</CODE> function. Note that
if you alter the phones field with the <CODE>bbdb-record-set-phones</CODE>
function, you are altering the entire phones list for the given record.
Use the modifier functions below for modifications to individual phone
vectors.
</P><P>
<TABLE>
<TR><TD><B>Name</B></TD>
</TD><TD> <B>Type</B>
</TD><TD> <B>Accessor and Modifier</B>
</TD><TD> <B>Description</B>
</TR>
<TR><TD>Location</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-phone-location</CODE><BR>
<CODE>bbdb-phone-set-location</CODE>
</TD><TD> Phone number identifier
</TR>
<TR><TD>Area</TD>
</TD><TD> Integer
</TD><TD> <CODE>bbdb-phone-area</CODE><BR>
<CODE>bbdb-phone-set-area</CODE>
</TD><TD> Area code for phone number
</TR>
<TR><TD>Exchange</TD>
</TD><TD> Integer
</TD><TD> <CODE>bbdb-phone-exchange</CODE><BR>
<CODE>bbdb-phone-set-exchange</CODE>
</TD><TD> Exchange (aka prefix) for phone number
</TR>
<TR><TD>Suffix</TD>
</TD><TD> Integer
</TD><TD> <CODE>bbdb-phone-suffix</CODE><BR>
<CODE>bbdb-phone-set-suffix</CODE>
</TD><TD> Suffix for phone number
</TR>
<TR><TD>Extension</TD>
</TD><TD> Integer
</TD><TD> <CODE>bbdb-phone-extension</CODE><BR>
<CODE>bbdb-phone-set-extension</CODE>
</TD><TD> Phone number extension (<SAMP>`0'</SAMP> if none)
</TR></TABLE>
<P>
<HR SIZE="6">
<A NAME="SEC71"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC70"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC72"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.9.1.3 Address Vectors </H4>
<!--docid::SEC71::-->
<P>
To access the fields in the below table, you must first get the list of
address vectors using the <CODE>bbdb-record-addresses</CODE> function. Note
that if you alter the addresses field with the
<CODE>bbdb-record-set-addresses</CODE> function, you are altering the entire
addresses list for the given record. Use the modifier functions below
for modifications to individual address vectors.
</P><P>
<TABLE>
<TR><TD><B>Name</B></TD>
</TD><TD> <B>Type</B>
</TD><TD> <B>Accessor and Modifier</B>
</TD><TD> <B>Description</B>
</TR>
<TR><TD>Location</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-address-location</CODE><BR>
<CODE>bbdb-address-set-location</CODE>
</TD><TD> Address identifier
</TR>
<TR><TD>Streets</TD>
</TD><TD> List
</TD><TD> <CODE>bbdb-address-streets</CODE><BR>
<CODE>bbdb-address-set-streets</CODE>
</TD><TD> List of street address lines. <CODE>nil</CODE> if none.
</TR>
<TR><TD>Street3</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-address-street3</CODE><BR>
<CODE>bbdb-address-set-street3</CODE>
</TD><TD> Third line of street address. "" if none.
</TR>
<TR><TD>City</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-address-city</CODE><BR>
<CODE>bbdb-address-set-city</CODE>
</TD><TD> City name
</TR>
<TR><TD>State</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-address-state</CODE><BR>
<CODE>bbdb-address-set-state</CODE>
</TD><TD> State abbreviation
</TR>
<TR><TD>Zip</TD>
</TD><TD> Integer (american)
List (non-american)
</TD><TD> <CODE>bbdb-address-zip</CODE><BR>
<CODE>bbdb-address-set-zip</CODE>
</TD><TD> Zip code
</TR>
<TR><TD>Country</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-address-country</CODE><BR>
<CODE>bbdb-address-set-country</CODE>
</TD><TD> Country
</TR></TABLE>
<P>
<HR SIZE="6">
<A NAME="SEC72"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC71"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC73"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.9.1.4 Cache Vector </H4>
<!--docid::SEC72::-->
<P>
This vector is present only in the internal database representation. It
is not written out to the database file because it contains information
aggregated from the rest of the record that is reconstructed when the
database is read. To write the cache information to the database file
would increase the risk of database inconsistency, and would violate the
principles of normalization.
</P><P>
To access the cache fields using the functions listed below that begin
with <CODE>bbdb-cache-</CODE>, you must first get the cache vector using the
<CODE>bbdb-record-cache</CODE> function. The functions that begin with
<CODE>bbdb-record-</CODE> get the cache vector internally. Note that if you
alter the cache field in the high-level record with the
<CODE>bbdb-record-set-cache</CODE> function, you are altering the entire cache
vector for the given record. Use the modifier functions below for
modifications to individual cache fields.
</P><P>
<TABLE>
<TR><TD><B>Name</B></TD>
</TD><TD> <B>Type</B>
</TD><TD> <B>Accessor and Modifier</B>
</TD><TD> <B>Description</B>
</TR>
<TR><TD>Name Cache</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-cache-namecache</CODE><BR>
<CODE>bbdb-cache-set-namecache</CODE>
</TD><TD> Preconcatenated name of entity
</TR>
<TR><TD>Sort Key</TD>
</TD><TD> String
</TD><TD> <CODE>bbdb-cache-sortkey</CODE><BR>
<CODE>bbdb-cache-set-sortkey</CODE>
</TD><TD> Preconcatenated sort key for record
</TR>
<TR><TD>Marker</TD>
</TD><TD> Marker
</TD><TD> <CODE>bbdb-cache-marker</CODE><BR>
<CODE>bbdb-record-marker</CODE><BR>
<CODE>bbdb-cache-set-marker</CODE><BR>
<CODE>bbdb-record-set-marker</CODE><BR>
</TD><TD> Marker in <TT>`.bbdb'</TT> for start of record
</TR>
<TR><TD>Deleted</TD>
</TD><TD> Boolean
</TD><TD> <CODE>bbdb-cache-deleted-p</CODE><BR>
<CODE>bbdb-record-deleted-p</CODE><BR>
<CODE>bbdb-cache-set-deleted-p</CODE><BR>
<CODE>bbdb-record-set-deleted-p</CODE>
</TD><TD> Set to <CODE>t</CODE> if record has been deleted, <CODE>nil</CODE> if not
</TR></TABLE>
<P>
The functions listed above will return <CODE>nil</CODE> if their respective
cache fields are not set. The functions listed below will return the
value of their cache fields if set, but will also build (and set) the
correct field values if the fields are unset:
</P><P>
<DL COMPACT>
<DT><CODE>bbdb-record-name</CODE>
<DD>Return the name in the Name Cache field of the cache (if set). If
the name has not been built yet (if the field is <CODE>nil</CODE>), the name is
built, stored in the Name Cache field, and returned.
<P>
<DT><CODE>bbdb-record-sortkey</CODE>
<DD>Return the name it the Sort Key field of the cache (if set). If the
Sort Key field has not yet been set (if the field is <CODE>nil</CODE>), the
Sort Key is built, stored in the Sort Key field, and returned.
<P>
</DL>
<P>
<HR SIZE="6">
<A NAME="SEC73"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC72"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC74"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.9.1.5 Notes String or Alist </H4>
<!--docid::SEC73::-->
<P>
If there is only a single note for a given record, the notes field for
that record will be a string. If there is more than one note, the notes
field will be an association list (alist) with elements of the form
</P><P>
<center>
( <VAR>NAME</VAR> . <VAR>VALUE</VAR> )
</center>
</P><P>
where <VAR>NAME</VAR> is the symbol for the name of the note, and
<VAR>VALUE</VAR> is the value of the note.
</P><P>
<HR SIZE="6">
<A NAME="SEC74"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC73"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC75"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H4> 1.9.1.6 Example BBDB record </H4>
<!--docid::SEC74::-->
<P>
<A NAME="Mailing Lists"></A>
<HR SIZE="6">
<A NAME="SEC75"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC74"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC67"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.10 Mailing Lists </H2>
<!--docid::SEC75::-->
<P>
(If you are looking for a way to create mailing lists with <B>BBDB</B>, you
should be looking at the section on See section <A HREF="bbdb_1.html#SEC40">1.4.3 Mail Sending Interfaces</A>.)
</P><P>
There are three mailing lists for the <B>BBDB</B>.
<CODE>bbdb-info@lists.sourceforge.net</CODE> gets moderate traffic, and is
intended for the discussion and distribution of development versions of
the <B>BBDB</B>. Users of development versions of the <B>BBDB</B> should be
subscribed to this list. It is also to this list that bugs should be
reported. See section <A HREF="bbdb_1.html#SEC83">1.13.1 Known Bugs</A>. for instructions on submitting bug reports.
</P><P>
The second mailing list <CODE>bbdb-announce@lists.sourceforge.net</CODE> has
very low volume. Any user of the <B>BBDB</B> should consider subscribing to
this list, as new releases and security issues will be posted here.
</P><P>
A third mailing list, <CODE>bbdb-cvs@lists.sourceforge.net</CODE>, is
intended for developers to follow the changes made to the <B>BBDB</B>
development version. Developers of the <B>BBDB</B> should consider to
subscribe to this list.
</P><P>
<A NAME="Changes"></A>
<HR SIZE="6">
<A NAME="SEC76"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC75"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC77"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC75"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC81"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.11 Changes in this Version </H2>
<!--docid::SEC76::-->
<P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC77">1.11.1 Major Changes</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Major changes in this version</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC79">1.11.2 Other Changes</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Not-so-major changes</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Major Changes"></A>
<HR SIZE="6">
<A NAME="SEC77"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC79"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC81"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.11.1 Major Changes </H3>
<!--docid::SEC77::-->
<P>
<A NAME="SEC78"></A>
<H4> Database File Version Change </H4>
<!--docid::SEC78::-->
<P>
(the following version-migration text will move in a future version. It is in
this section currently because new users will likely not experience it)
</P><P>
There has been a version change in the <B>BBDB</B> database file. The new
version supports non-US zip codes, and an additional "Country" field
in addresses.
</P><P>
An automatic version-migration mechanism has been implemented that allows
older version <TT>`.bbdb'</TT> files to either be migrated to the new version, or
used as-is without migrating. When the <B>BBDB</B> detects a database file with
an old version, it will display the features that have been introduced <B>in
the database file</B> from the time of the older version's implementation. It
will offer the choice of migration or use of the <B>BBDB</B> with the
older-version file.
</P><P>
If migration is chosen, the database file will be automatically changed to the
new format. If migration is declined, the file will kept in the older format
in the <CODE>.bbdb</CODE> buffer, but will be stored internally in the new format.
When changes need to be made to the <CODE>.bbdb</CODE> buffer, changed records will
be reverse-migrated from their internal version to that of the disk file.
</P><P>
<A NAME="Other Changes"></A>
<HR SIZE="6">
<A NAME="SEC79"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC77"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC81"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC81"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.11.2 Other Changes </H3>
<!--docid::SEC79::-->
<P>
<A NAME="SEC80"></A>
<H4> TeX Output </H4>
<!--docid::SEC80::-->
<P>
By default, ec fonts are used for TeX output instead of cm fonts. With
the <CODE>ps-fonts</CODE> option set in <CODE>bbdb-print-alist</CODE>, TimesNewRoman
and Courier fonts are used.
</P><P>
<UL>
</UL>
<P>
<A NAME="The Latest Version"></A>
<HR SIZE="6">
<A NAME="SEC81"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC79"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC76"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.12 The Latest Version </H2>
<!--docid::SEC81::-->
<P>
Released versions of the <B>BBDB</B> can be found at the
following site:
</P><P>
<UL>
<LI>
WWW: <CODE>http://bbdb.sourceforge.net</CODE>
<LI>
FTP: <CODE>ftp://ftp.sourceforge.net/pub/bbdb</CODE>
</UL>
<P>
Development versions of the <B>BBDB</B> can be obtained in the
following ways:
</P><P>
<UL>
<LI>
WWW: <CODE>http://bbdb.sourceforge.net</CODE>
<LI>
Anonymous CVS: See <CODE>http://bbdb.sourceforge.net</CODE> for instructions.
</UL>
<P>
Users of development versions of the <B>BBDB</B> should subscribe to the
<CODE>bbdb-info</CODE> mailing list. See section <A HREF="bbdb_1.html#SEC75">1.10 Mailing Lists</A>.
</P><P>
<A NAME="The Future"></A>
<HR SIZE="6">
<A NAME="SEC82"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC81"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC83"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC81"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.13 The Future </H2>
<!--docid::SEC82::-->
<P>
The future consists of Bugs and Features.
</P><P>
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC83">1.13.1 Known Bugs</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Known Bugs, and how to submit new ones</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC84">1.13.2 TODO List</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">The TODO List</TD></TR>
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="bbdb_1.html#SEC88">1.13.3 End of Life (EOL) Statements</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">EOL (End Of Life) Statements</TD></TR>
</TABLE></BLOCKQUOTE>
<P>
<A NAME="Known Bugs"></A>
<HR SIZE="6">
<A NAME="SEC83"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC84"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.13.1 Known Bugs </H3>
<!--docid::SEC83::-->
<P>
<OL>
<LI>
<B><KBD>M-TAB</KBD> conflicts with ispell.</B> Workaround: The binding
installed by the <B>BBDB</B> for address completion/expansion conflicts with
that used by ispell. The suggested workarounds are to rebind the ispell
key (the <B>BBDB</B> binding is not configurable at this time), to manually
invoke ispell via <KBD>M-x</KBD>, or to not use ispell completion functionality
in <B>BBDB</B>-enabled message composition buffers. The following is an
example of such a rebinding, supplied by Kai Grojohan:
<P>
<TABLE><tr><td> </td><td class=example><pre>(defun my-message-mode-keys ()
(define-key message-mode-map (kbd "M-TAB") 'bbdb-complete-name))
(add-hook 'message-mode-hook 'my-message-mode-keys)
</pre></td></tr></table></P><P>
<LI>
<B><B>BBDB</B> and abbrev expansion is inconsistent.</B> Workaround:
Currently, <KBD>M-TAB</KBD> must be used to expand/complete against <B>BBDB</B>
names and net addresses, and <KBD>TAB</KBD> must be used to expand abbrevs (the
values in the <CODE>mail-alias</CODE> field). Unification is planned for a
future version.
<P>
<LI>
<B>The <CODE>*BBDB*</CODE> buffer does not always come up when the first
article in a Gnus Summary Buffer is selected.</B> Workaround: Pressing
<KBD>g</KBD> to reload the article. This will cause the <CODE>*BBDB*</CODE> buffer
to be displayed.
<P>
<LI>
<B>Expansion will fail when the name to be expanded is a subset of
the name for another record.</B> For example, if you have entries for
<SAMP>`John'</SAMP> and <SAMP>`Johnathan'</SAMP>, you will not be able to expand the
name for <SAMP>`John'</SAMP>. Workaround: Use the net address for the subset
name (<SAMP>`John'</SAMP> in this example).
<P>
</OL>
<P>
It is commonly known that there are no bugs in the <B>BBDB</B>. Bugs found
in defiance of this rule should be submitted to the <CODE>bbdb-info</CODE>
mailing list (see section <A HREF="bbdb_1.html#SEC75">1.10 Mailing Lists</A>). To assist the developers, please
include the version numbers of the various programs used when the bug
occurred. An example report follows.
</P><P>
<TABLE><tr><td> </td><td class=example><pre>BBDB Version:
Emacs/XEmacs Version:
Mail/News reader (Gnus, VM, etc) used:
Bug Description:
</pre></td></tr></table></P><P>
<A NAME="TODO List"></A>
<HR SIZE="6">
<A NAME="SEC84"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC83"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC88"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.13.2 TODO List </H3>
<!--docid::SEC84::-->
<P>
<A NAME="SEC85"></A>
<H4> The Near Future </H4>
<!--docid::SEC85::-->
<P>
<UL>
<LI>
Add bbdb/<I>MUA</I>-delete-sender-record
<P>
<LI>
Configurable completion. Should allow user to specify "complete on
names first, then nets", etc.
<P>
<LI>
More variables for upgrading. Specifically a variable that lets users
specify extra fields for upgrading (an alist <SAMP>`(a . b)'</SAMP> that says
field <SAMP>`a'</SAMP> should be upgraded the same way as field <SAMP>`b'</SAMP>.
<P>
<LI>
Change all functions that switch on MUAs to use compose-mail (ex:
<CODE>bbdb-send-mail-internal</CODE>).
<P>
<LI>
Soren Dayton's method for generically extending the <B>BBDB</B> with
special-purpose fields
<P>
<LI>
Sorting records on alternate keys. <CODE>bbdb-sort-by</CODE> from Boris
Goldowsky.
<P>
<LI>
Sorting individual types of fields - Sam Steingold's method.
<P>
<LI>
Button 3 menus (Mark Moll and Soren Dayton)
<P>
<LI>
Conditionalized erasure of properties when text is pasted into the <B>BBDB</B>.
<P>
<LI>
Should notice when there are <SAMP>`Reply-To:'</SAMP> addresses.<P>
<LI>
Should have a command for merging together two divergent copies of
a <TT>`.bbdb'</TT> file (in case you read mail on one machine and news on
another, for instance.)<P>
<LI>
The <SAMP>`*BBDB*'</SAMP> buffer should be resized to exactly fit what it's
displaying, even when not in "electric" mode.<P>
<LI>
It should be possible to do completion on last names as well as first
names.<P>
<LI>
The BBDB buffer is left at the top of the stack when GNUS is exited
because GNUS runs its exit-hooks too early. This should be fixed.<P>
<LI>
String area codes (German area codes can begin with zeroes) patch from
<CODE>Michael Sperber <sperber@informatik.uni-tuebingen.de></CODE>
<P>
<LI>
Default country variable, similar to <CODE>bbdb-default-area-code</CODE>.
<P>
<LI>
Make format self-describing in comment
<P>
<LI>
ISO-8859-x characters in records for printing.
<P>
<LI>
Prefix for <KBD>W</KBD> (<CODE>bbdb-www</CODE>) command to allow selection of
different addresses.
<P>
<LI>
Generalized buttons (via extents) for fields. Example: <SAMP>`(a . b)'</SAMP>
means create button that calls <SAMP>`b'</SAMP> for each entry in the <SAMP>`a'</SAMP>
field.
<P>
<LI>
Remove support for GNUS. Start with lisp Makefile (remove nntp and gnus
loads).
<P>
<LI>
More flexible auto-addition. Conditionalizing of addition (conditions
or supplied function). Prompt if multiple records that meet criteria exist.
<P>
<LI>
Different output formats. See Toby Speight's <CODE><s8iurdodvm.fsf@plato.ansa.co.uk></CODE>
and Bin Mu's <CODE><199801221605.KAA23663@DerivaTech.Com></CODE>.
<P>
<LI>
Generalized area-code-split program that could split, for example, based
on input copied (or straight fetch of page) from the Bellcore NANP page.
<P>
<LI>
Print multivalue (comma-separated) fields with one value per line
<P>
<LI>
Easier BBDB extension. See <CODE><xcdyb30f3hb.fsf@ra.cs.uchicago.edu></CODE>
from Soren Dayton.
<P>
<LI>
Take birthdays from the <B>BBDB</B>, add them to calendar. From Boris
Goldowsky.
<P>
<LI>
Make mail aliases file for other mailers. From Boris Goldowsky.
<P>
<LI>
Various patches from Boris Goldowsky in <TT>`bbdb-ext'</TT>.
<P>
<LI>
Various other patches:
<UL>
<LI>
<CODE>bbdb-filters-0.2</CODE>
<LI>
<CODE>bbdb-frame.el</CODE>
<LI>
<CODE>bbdb-letter-1.0</CODE>
<LI>
<CODE>bbdb-plz</CODE>
<LI>
<CODE>bbdb-query</CODE>
<LI>
<CODE>country</CODE>
<LI>
<CODE>country-info</CODE>
</UL>
Note that these files have not been investigated. They may or
may not be incorporated.
<P>
<LI>
Ability to remove all properties from copied strings.
<P>
</UL>
<P>
<A NAME="SEC86"></A>
<H4> Not-So-Near Future </H4>
<!--docid::SEC86::-->
<P>
<UL>
<LI>
Fix Gnus scoring so it rebuilds when gnus-score disappears
<P>
<LI>
Multiline note fields
<P>
<LI>
Change key to be some kind of unique number
<P>
<LI>
There should be better support for non-American addresses and phone
numbers. This might be Near Future if somebody volunteers to send me patches.
<P>
<LI>
Should reimplement "electric" mode to not be so broken.<P>
<LI>
The <KBD>*C-o</KBD> keystroke should add a field to all displayed records.
Perhaps <KBD>*;</KBD> should append some text to an arbitrary field of all
displayed records. <P>
<LI>
Multiple <TT>`.bbdb'</TT> files with precedence relationships. See Wes
Hardaker's <BR><CODE><sdu3awz75a.fsf@oakdale.ucdavis.edu></CODE>
<P>
<LI>
Automatically grab information about a person from their sig. See
Graham Clark's <CODE>info-bbdb</CODE> post
<CODE><6282.199706161624@havra.dcs.ed.ac.uk></CODE> and Adrian Aichner's
<CODE>info-bbdb</CODE> post
<CODE><rxsiuzebpgp.fsf@midnight.ecf.teradyne.com></CODE>. Would like to have
<CODE>bbdb-snarf</CODE> attack the sig then compare the snarfed data with the
header data.
<P>
</UL>
<P>
<A NAME="SEC87"></A>
<H4> Thoughts </H4>
<!--docid::SEC87::-->
<P>
<UL>
<LI>
Are there enough hooks?
<P>
<LI>
The interfaces should share more code. <P>
<LI>
The <CODE>bbdb-create-internal</CODE> function should be more forgiving.<P>
<LI>
More <KBD>*</KBD> commands in general, including <KBD>*d</KBD>.
</UL>
<P>
<A NAME="EOL Statements"></A>
<HR SIZE="6">
<A NAME="SEC88"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC84"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC89"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC82"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H3> 1.13.3 End of Life (EOL) Statements </H3>
<!--docid::SEC88::-->
<P>
The items in the following list describe items for which support will be
removed in coming versions of the <B>BBDB</B>. The items listed are
guaranteed to be supported and present only until the EOL date. They
may be removed without warning at any time thereafter.
</P><P>
<OL>
<LI>
<CODE>advertized-bbdb-delete-current-field-or-record</CODE><BR>
Support for this function will be removed for version 2.2. It is
recommended that all code depending on this variable be switched to use
<CODE>bbdb-delete-current-field-or-record</CODE>. The two functions have the
same calling conventions and effects. This EOL statement was added for
version 2.1.
<P>
<LI>
Support for the GNUS (not Gnus) newsreader<BR>
The GNUS-specific parts of the <B>BBDB</B> will be actively removed for the
2.2 release. No further maintenance and/or bugfixes are planned for
GNUS code at this time. This EOL statement was added for version 2.1.
</OL>
<P>
<A NAME="Thanks"></A>
<HR SIZE="6">
<A NAME="SEC89"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_1.html#SEC88"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_2.html#SEC93"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H2> 1.14 Thanks </H2>
<!--docid::SEC89::-->
<P>
Thanks to everyone on the info-bbdb mailing list for many useful
suggestions. This hack would be far less insidious without their input!
</P><P>
<A NAME="SEC90"></A>
<H3> Thanks list for versions after 2.00.06. </H3>
<!--docid::SEC90::-->
<P>
Thanks to Alex Schroeder, Ronan Waide, Thomas DeWeese, Robert Fenk,
Didier Verna, Bill Carpenter.
</P><P>
<A NAME="SEC91"></A>
<H3> Thanks list for versions after 1.51 prior to and including 2.00.06. </H3>
<!--docid::SEC91::-->
<P>
Thanks to Adrian Aichner, Kees de Bruin, David Carlton, Soren Dayton,
Brian Edmonds, Boris Goldowsky, Seth Golub, John Heidemann, Christopher
Kline, Carsten Leonhardt, Hrvoje Niksic, Jens-Ulrik Hoger Petersen,
Colin Rafferty, Matt Simmons, Sam Steingold, Marco Walther, Christoph
Wedler.
</P><P>
<A NAME="SEC92"></A>
<H3> Thanks list for versions prior to and including 1.51. </H3>
<!--docid::SEC92::-->
<P>
And special thanks to Sebastian Kremer, Joe Wells, Todd Kaufmann, Andy
Norman, Ivan Vazquez, Stewart Clamen, Roland McGrath, Dave Brennan,
Kimball Collins, Dirk Grunwald, Philippe Queinnec, Boris Putanec, Dave
Disser, Francois Felix Ingrand, Sean Owens, Guido Bosch, Lance Brown,
Tom Emerson, George Hartzell, Luis Miguel Silveira, Kimmo Suominen,
Derek Upham, David Zuhn, Rod Whitby, Richard Mlynarik.
</P><P>
Last, but not least, thanks to Jamie Zawinski for writing <B>BBDB</B> in the
first place.
</P><P>
<A NAME="_"></A>
<HR SIZE="6">
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[ << ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[ >> ]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_3.html#SEC94">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bbdb_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<BR>
<FONT SIZE="-1">
This document was generated
by <I>Ronan Waide</I> on <I>January, 15 2002</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
</BODY>
</HTML>
|