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
|
<pre>Network Working Group D. Cridland, Ed.
Request for Comments: 5550 A. Melnikov, Ed.
Obsoletes: <a href="./rfc4550">4550</a> Isode Limited
Updates: <a href="./rfc4469">4469</a>, <a href="./rfc4467">4467</a> S. Maes, Ed.
Category: Standards Track Oracle
August 2009
<span class="h1">The Internet Email to</span>
<span class="h1">Support Diverse Service Environments (Lemonade) Profile</span>
Abstract
This document describes a profile (a set of required extensions,
restrictions, and usage modes), dubbed Lemonade, of the IMAP, mail
submission, and Sieve protocols. This profile allows clients
(especially those that are constrained in memory, bandwidth,
processing power, or other areas) to efficiently use IMAP and
Submission to access and submit mail. This includes the ability to
forward received mail without needing to download and upload the
mail, to optimize submission, and to efficiently resynchronize in
case of loss of connectivity with the server.
The Lemonade Profile relies upon several extensions to IMAP, Sieve,
and Mail Submission protocols. The document also defines a new IMAP
extension and registers several new IMAP keywords.
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (c) 2009 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents in effect on the date of
publication of this document (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>).
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document.
<span class="grey">Cridland, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Conventions Used in This Document ...............................<a href="#page-4">4</a>
<a href="#section-3">3</a>. Summary of the Required Support .................................<a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. Lemonade Submission Servers ................................<a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. Lemonade Message Stores ....................................<a href="#page-5">5</a>
<a href="#section-3.3">3.3</a>. Lemonade Message Delivery Agents ...........................<a href="#page-7">7</a>
<a href="#section-4">4</a>. Lemonade Submission Servers .....................................<a href="#page-7">7</a>
<a href="#section-4.1">4.1</a>. Forward without Download ...................................<a href="#page-7">7</a>
<a href="#section-4.2">4.2</a>. Pipelining .................................................<a href="#page-8">8</a>
<a href="#section-4.3">4.3</a>. DSN Support ................................................<a href="#page-8">8</a>
<a href="#section-4.4">4.4</a>. Message Size Declaration ...................................<a href="#page-8">8</a>
<a href="#section-4.5">4.5</a>. Enhanced Status Code Support ...............................<a href="#page-8">8</a>
<a href="#section-4.6">4.6</a>. Encryption and Compression .................................<a href="#page-8">8</a>
<a href="#section-5">5</a>. Lemonade Message Stores .........................................<a href="#page-9">9</a>
<a href="#section-5.1">5.1</a>. Quick Resynchronization ....................................<a href="#page-9">9</a>
<a href="#section-5.2">5.2</a>. Message Part Handling ......................................<a href="#page-9">9</a>
<a href="#section-5.3">5.3</a>. Compression ...............................................<a href="#page-10">10</a>
<a href="#section-5.4">5.4</a>. Notifications .............................................<a href="#page-10">10</a>
<a href="#section-5.5">5.5</a>. Searching and View Filters ................................<a href="#page-12">12</a>
<a href="#section-5.6">5.6</a>. Mailbox Handling ..........................................<a href="#page-12">12</a>
<a href="#section-5.7">5.7</a>. Forward without Download ..................................<a href="#page-12">12</a>
<a href="#section-5.8">5.8</a>. Additional IMAP Extensions ................................<a href="#page-13">13</a>
<a href="#section-5.9">5.9</a>. Registration of $Forwarded IMAP Keyword ...................<a href="#page-13">13</a>
5.10. Registration of $SubmitPending and $Submitted
IMAP Keywords ............................................<a href="#page-13">13</a>
<a href="#section-5.11">5.11</a>. Related IMAP Extensions ..................................<a href="#page-14">14</a>
<a href="#section-6">6</a>. Lemonade Message Delivery Agents ...............................<a href="#page-14">14</a>
<a href="#section-7">7</a>. Lemonade Message User Agents ...................................<a href="#page-15">15</a>
<a href="#section-8">8</a>. Forward without Download .......................................<a href="#page-16">16</a>
<a href="#section-8.1">8.1</a>. Motivations ...............................................<a href="#page-16">16</a>
<a href="#section-8.2">8.2</a>. Message Sending Overview ..................................<a href="#page-16">16</a>
<a href="#section-8.3">8.3</a>. Traditional Strategy ......................................<a href="#page-17">17</a>
<a href="#section-8.4">8.4</a>. A New Strategy ............................................<a href="#page-18">18</a>
<a href="#section-8.5">8.5</a>. Security Considerations for Pawn-Tickets ..................<a href="#page-27">27</a>
<span class="grey">Cridland, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<a href="#section-8.6">8.6</a>. Copies of Sent Messages: The fcc Problem ..................<a href="#page-27">27</a>
<a href="#section-9">9</a>. Deployment Considerations ......................................<a href="#page-28">28</a>
<a href="#section-10">10</a>. Security Considerations .......................................<a href="#page-28">28</a>
<a href="#section-10.1">10.1</a>. Confidentiality Protection of Submitted Messages .........<a href="#page-28">28</a>
<a href="#section-10.2">10.2</a>. TLS ......................................................<a href="#page-29">29</a>
<a href="#section-10.3">10.3</a>. Additional Extensions and Deployment Models ..............<a href="#page-29">29</a>
<a href="#section-11">11</a>. IANA Considerations ...........................................<a href="#page-30">30</a>
<a href="#section-12">12</a>. Changes since <a href="./rfc4550">RFC 4550</a> ........................................<a href="#page-30">30</a>
<a href="#section-13">13</a>. Acknowledgements ..............................................<a href="#page-31">31</a>
<a href="#section-14">14</a>. References ....................................................<a href="#page-31">31</a>
<a href="#section-14.1">14.1</a>. Normative References .....................................<a href="#page-31">31</a>
<a href="#section-14.2">14.2</a>. Informative References ...................................<a href="#page-35">35</a>
<a href="#appendix-A">Appendix A</a>. Errata ..............................................<a href="#page-37">37</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Lemonade Profile, or simply Lemonade, provides enhancements to
Internet email to support diverse service environments. Lemonade
mail servers provide both a Lemonade Submission Server and a Lemonade
Message Store, which are based on the existing [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] and [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]
protocols, respectively. They MAY also include a Lemonade Message
Delivery Agent, which provides delivery-time filtering services based
on [<a href="#ref-SIEVE" title=""Sieve: An Email Filtering Language"">SIEVE</a>].
This document describes the Lemonade Profile that includes:
o General common enhancements to Internet Mail, described in 5 and
4.
o "Forward without download" that describes exchanges between
Lemonade clients and servers to allow submitting new email
messages incorporating content that resides on locations external
to the client, described in <a href="#section-8">Section 8</a>.
o Quick mailbox resynchronization, described in <a href="#section-5.1">Section 5.1</a>.
o Extensions to support more precise, and broader, notifications
from the store in support of notifications and view filters,
described in 5.4.1 and 5.5.
o Delivery-time filtering in support of typical mail management use
cases, as described in <a href="#section-3.3">Section 3.3</a>.
The LEMONADE WG used the architecture shown in [<a href="#ref-LEMONADE-ARCH">LEMONADE-ARCH</a>] to
develop the Lemonade Profile.
<span class="grey">Cridland, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
It is intended that the Lemonade Profile support realizations of the
OMA's mobile email enabler (MEM) (see [<a href="#ref-OMA-MEM-REQ">OMA-MEM-REQ</a>] and
[<a href="#ref-OMA-MEM-ARCH">OMA-MEM-ARCH</a>]) using Internet Mail protocols defined by the IETF.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions Used in This Document</span>
In examples, "M:", "I:", and "S:" indicate lines sent by the client
Message User Agent, IMAP email server, and SMTP submit server,
respectively.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="#ref-KEYWORDS">KEYWORDS</a>].
Other capitalized words are typically names of extensions or commands
-- these are uppercased for clarity only, and are case-insensitive.
This document uses terminology defined in [<a href="./rfc5598" title=""Internet Mail Architecture"">RFC5598</a>]. See [<a href="./rfc5598" title=""Internet Mail Architecture"">RFC5598</a>]
for further details on Email Architecture.
All examples in this document are optimized for Lemonade use and
might not represent examples of proper protocol usage for a general
use Submit/IMAP client. In particular, examples assume that Submit
and IMAP servers support all Lemonade extensions described in this
document, so they do not demonstrate fallbacks in the absence of an
extension.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Summary of the Required Support</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Lemonade Submission Servers</span>
Lemonade Submission Servers MUST provide a service as described in
[<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>], and MUST support the following. Note that the Lemonade
Profile imposes further requirements for some cases, detailed in the
sections cited.
<span class="grey">Cridland, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
+---------------------+--------------------+--------------+
| SMTP extension | Reference | Requirements |
+---------------------+--------------------+--------------+
| 8BITMIME | [<a href="#ref-SMTP-8BITMIME">SMTP-8BITMIME</a>] | [<a href="#ref-SMTP-BURL">SMTP-BURL</a>] |
| AUTH | [<a href="#ref-SMTP-AUTH">SMTP-AUTH</a>] | [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] |
| BINARYMIME | [<a href="#ref-SMTP-BINARYMIME">SMTP-BINARYMIME</a>] | <a href="#section-4.1">Section 4.1</a> |
| BURL imap | [<a href="#ref-SMTP-BURL">SMTP-BURL</a>] | <a href="#section-8">Section 8</a> |
| CHUNKING | [<a href="#ref-SMTP-BINARYMIME">SMTP-BINARYMIME</a>] | <a href="#section-4.1">Section 4.1</a> |
| DSN | [<a href="#ref-SMTP-DSN">SMTP-DSN</a>] | <a href="#section-4.3">Section 4.3</a> |
| ENHANCEDSTATUSCODES | [<a href="#ref-SMTP-STATUSCODES">SMTP-STATUSCODES</a>] | <a href="#section-4.5">Section 4.5</a> |
| PIPELINING | [<a href="#ref-SMTP-PIPELINING">SMTP-PIPELINING</a>] | <a href="#section-4.2">Section 4.2</a> |
| SIZE | [<a href="#ref-SMTP-SIZE">SMTP-SIZE</a>] | <a href="#section-4.4">Section 4.4</a> |
| STARTTLS | [<a href="#ref-SMTP-TLS">SMTP-TLS</a>] | <a href="#section-4.6">Section 4.6</a> |
+---------------------+--------------------+--------------+
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Lemonade Message Stores</span>
Lemonade Message Stores MUST provide a service as described in
[<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>], and MUST support the following. Note that the Lemonade
Profile imposes further requirements for some cases, detailed in the
sections cited.
<span class="grey">Cridland, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
+------------------------+------------------+---------------+
| IMAP extension | Reference | Requirements |
+------------------------+------------------+---------------+
| BINARY | [<a href="#ref-IMAP-BINARY">IMAP-BINARY</a>] | <a href="#section-5.2">Section 5.2</a> |
| CATENATE | [<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>] | <a href="#section-5.7">Section 5.7</a> |
| COMPRESS=DEFLATE | [<a href="#ref-IMAP-COMPRESS">IMAP-COMPRESS</a>] | <a href="#section-5.3">Section 5.3</a> |
| CONDSTORE | [<a href="#ref-IMAP-CONDSTORE">IMAP-CONDSTORE</a>] | <a href="#section-5.1">Section 5.1</a> |
| CONTEXT=SEARCH | [<a href="#ref-IMAP-CONTEXT">IMAP-CONTEXT</a>] | <a href="#section-5.5">Section 5.5</a> |
| CONTEXT=SORT | [<a href="#ref-IMAP-CONTEXT">IMAP-CONTEXT</a>] | <a href="#section-5.5">Section 5.5</a> |
| CONVERT | [<a href="#ref-IMAP-CONVERT">IMAP-CONVERT</a>] | <a href="#section-5.2">Section 5.2</a> |
| ENABLE | [<a href="#ref-IMAP-ENABLE">IMAP-ENABLE</a>] | <a href="#section-5.1">Section 5.1</a> |
| ESEARCH | [<a href="#ref-IMAP-ESEARCH">IMAP-ESEARCH</a>] | <a href="#section-5.5">Section 5.5</a> |
| ESORT | [<a href="#ref-IMAP-CONTEXT">IMAP-CONTEXT</a>] | <a href="#section-5.5">Section 5.5</a> |
| I18NLEVEL=1 | [<a href="#ref-IMAP-I18N">IMAP-I18N</a>] | <a href="#section-5.8">Section 5.8</a> |
| IDLE | [<a href="#ref-IMAP-IDLE">IMAP-IDLE</a>] | <a href="#section-5.4.1">Section 5.4.1</a> |
| LITERAL+ | [IMAP-LITERAL+] | <a href="#section-5.8">Section 5.8</a> |
| NAMESPACE | [<a href="#ref-IMAP-NAMESPACE">IMAP-NAMESPACE</a>] | <a href="#section-5.6">Section 5.6</a> |
| NOTIFY | [<a href="#ref-IMAP-NOTIFY">IMAP-NOTIFY</a>] | <a href="#section-5.4.1">Section 5.4.1</a> |
| QRESYNC | [<a href="#ref-IMAP-QRESYNC">IMAP-QRESYNC</a>] | <a href="#section-5.1">Section 5.1</a> |
| SASL-IR | [<a href="#ref-IMAP-SASL-IR">IMAP-SASL-IR</a>] | <a href="#section-5.8">Section 5.8</a> |
| SORT | [<a href="#ref-IMAP-SORT">IMAP-SORT</a>] | <a href="#section-5.5">Section 5.5</a> |
| STARTTLS | [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] | - |
| UIDPLUS | [<a href="#ref-IMAP-UIDPLUS">IMAP-UIDPLUS</a>] | <a href="#section-5.7">Section 5.7</a> |
| URLAUTH | [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] | <a href="#section-5.7">Section 5.7</a> |
| URL-PARTIAL | <a href="#section-5.7.1">Section 5.7.1</a> | <a href="#section-5.7">Section 5.7</a> |
| $Forwarded keyword | - | <a href="#section-5.9">Section 5.9</a> |
| $SubmitPending keyword | - | <a href="#section-5.10">Section 5.10</a> |
| $Submitted keyword | - | <a href="#section-5.10">Section 5.10</a> |
+------------------------+------------------+---------------+
In addition to this list, any Lemonade Message Stores MUST send the
CAPABILITY response code (see Section 7.1 of [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]) in the initial
server greeting and after the LOGIN/AUTHENTICATE commands.
<span class="grey">Cridland, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Lemonade Message Delivery Agents</span>
Lemonade Message Delivery Agents MUST support Sieve mail filtering
language as described in [<a href="#ref-SIEVE" title=""Sieve: An Email Filtering Language"">SIEVE</a>], and MUST support the following
Sieve extensions. Note that the Lemonade Profile imposes further
requirements for some cases, detailed in the sections cited.
+------------------------------+--------------------+--------------+
| Sieve extension | Reference | Requirements |
+------------------------------+--------------------+--------------+
| ENOTIFY | [<a href="#ref-SIEVE-NOTIFY">SIEVE-NOTIFY</a>] | <a href="#section-6">Section 6</a> |
| IMAP4FLAGS | [<a href="#ref-SIEVE-IMAP4FLAGS">SIEVE-IMAP4FLAGS</a>] | <a href="#section-6">Section 6</a> |
| RELATIONAL | [<a href="#ref-SIEVE-RELATIONAL">SIEVE-RELATIONAL</a>] | <a href="#section-6">Section 6</a> |
| VACATION | [<a href="#ref-SIEVE-VACATION">SIEVE-VACATION</a>] | <a href="#section-6">Section 6</a> |
| VARIABLES | [<a href="#ref-SIEVE-VARIABLES">SIEVE-VARIABLES</a>] | <a href="#section-6">Section 6</a> |
| comparator-i;unicode-casemap | [<a href="#ref-UNICODE-CASEMAP">UNICODE-CASEMAP</a>] | <a href="#section-6">Section 6</a> |
+------------------------------+--------------------+--------------+
Lemonade Message Delivery Agents should also consider supporting a
Sieve script management protocol, such as [<a href="#ref-MANAGESIEVE">MANAGESIEVE</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Lemonade Submission Servers</span>
All Lemonade Submission Servers implement the Mail Submission
protocol described in [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>], which is in turn a specific profile
of [<a href="#ref-ESMTP" title=""Simple Mail Transfer Protocol"">ESMTP</a>]. Therefore, any MUA designed to submit email via [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>]
or [<a href="#ref-ESMTP" title=""Simple Mail Transfer Protocol"">ESMTP</a>] will interoperate with Lemonade Submission Servers.
In addition, Lemonade Submission Servers implement the following set
of SMTP and Submission extensions to increase message submission
efficiency.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Forward without Download</span>
In order to optimize network usage for the typical case where message
content is copied to, or sourced from, the IMAP store, Lemonade
provides support for a suite of extensions collectively known as
"forward without download", discussed in detail in <a href="#section-8">Section 8</a>.
Lemonade Submission Servers MUST support BURL [<a href="#ref-SMTP-BURL">SMTP-BURL</a>], 8BITMIME
[<a href="#ref-SMTP-8BITMIME">SMTP-8BITMIME</a>], BINARYMIME [<a href="#ref-SMTP-BINARYMIME">SMTP-BINARYMIME</a>], and CHUNKING
[<a href="#ref-SMTP-BINARYMIME">SMTP-BINARYMIME</a>] SMTP extensions.
BURL MUST support URLAUTH type URLs [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>], and thus MUST
advertise the "imap" option following the BURL EHLO keyword (see
[<a href="#ref-SMTP-BURL">SMTP-BURL</a>] for more details).
<span class="grey">Cridland, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Pipelining</span>
Some clients regularly use networks with a relatively high latency,
such as mobile or satellite-based networks. Avoidance of round trips
within a transaction has a great advantage for the reduction in both
bandwidth and total transaction time. For this reason, Lemonade-
compliant mail Submission Servers MUST support the SMTP service
extensions for command pipelining [<a href="#ref-SMTP-PIPELINING">SMTP-PIPELINING</a>].
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. DSN Support</span>
Lemonade-compliant mail Submission Servers MUST support SMTP service
extensions for delivery status notifications [<a href="#ref-SMTP-DSN">SMTP-DSN</a>].
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Message Size Declaration</span>
There is a distinct advantage in detecting failure cases as early as
possible in many cases, such as where the user is charged per octet,
or where bandwidth is low. This is especially true of large message
sizes.
Lemonade Submission Servers MUST support the SMTP service extension
for message size declaration [<a href="#ref-SMTP-SIZE">SMTP-SIZE</a>].
Lemonade Submission Servers MUST expand all BURL parts before
evaluating if the supplied message size is acceptable.
A Lemonade-capable client SHOULD use message size declaration. In
particular, the client MUST NOT send a message to a mail Submission
Server if it knows that the message exceeds the maximal message size
advertised by the Submission Server. When including a message size
in the MAIL FROM command, the client MUST use a value that is at
least as large as the size of the assembled message data after
resolution of all BURL parts.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Enhanced Status Code Support</span>
Lemonade-compliant mail Submission Servers MUST support the SMTP
service extension for returning enhanced error codes
[<a href="#ref-SMTP-STATUSCODES">SMTP-STATUSCODES</a>]. These allow a client to determine the precise
cause of failure.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. Encryption and Compression</span>
Lemonade-compliant mail Submission Servers MUST support the SMTP
service extension for secure SMTP over Transport Layer Security (TLS)
[<a href="#ref-SMTP-TLS">SMTP-TLS</a>].
<span class="grey">Cridland, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Support for the DEFLATE compression method, as described in
[<a href="#ref-TLS-COMP">TLS-COMP</a>], is RECOMMENDED.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Lemonade Message Stores</span>
All Lemonade Message Stores implement the Internet Message Access
Protocol, as defined in [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]. Therefore, any MUA written to access
messages using the facilities described in [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] will interoperate
with a Lemonade Message Store.
In addition, Lemonade Message Stores provide a set of extensions to
address the limitations of some clients and networks.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Quick Resynchronization</span>
Resynchronization is a costly part of an IMAP session, and mobile
networks are generally more prone to unintended disconnection, which
in turn makes this problem more acute. Therefore, Lemonade Message
Stores provide a suite of extensions to reduce the synchronization
cost.
Lemonade-compliant IMAP servers MUST support the CONDSTORE
[<a href="#ref-IMAP-CONDSTORE">IMAP-CONDSTORE</a>], the QRESYNC [<a href="#ref-IMAP-QRESYNC">IMAP-QRESYNC</a>], and the ENABLE
[<a href="#ref-IMAP-ENABLE">IMAP-ENABLE</a>] extensions. These allow a client to quickly
resynchronize any mailbox by asking the server to return all flag
changes and expunges that have occurred since a previously recorded
state. This can also speed up client reconnect in case the transport
layer is cut, whether accidentally or as part of a change in network.
When implementing QRESYNC [<a href="#ref-IMAP-QRESYNC">IMAP-QRESYNC</a>], client and servers need to
also comply with errata submitted for this document (see <a href="#appendix-A">Appendix A</a>).
[<a id="ref-IMAP-SYNC-HOWTO">IMAP-SYNC-HOWTO</a>] details how clients perform efficient mailbox
resynchronization.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Message Part Handling</span>
The handling of message parts, especially attachments, represents a
set of challenges to limited devices, both in terms of the bandwidth
used and the capability of the device.
Lemonade-compliant IMAP servers MUST support the BINARY [<a href="#ref-IMAP-BINARY">IMAP-BINARY</a>]
extension. This moves MIME body part decoding operations from the
client to the server. The decoded data is equal to or less in size
than the encoded representation, so this reduces bandwidth
effectively.
<span class="grey">Cridland, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
[<a id="ref-IMAP-BINARY">IMAP-BINARY</a>] allows for servers to refuse to accept uploaded
messages containing binary data, by not accepting the Binary content-
transfer-encoding; however, Lemonade-compliant IMAP servers SHALL
always accept binary encoded MIME messages in APPEND commands for any
folder.
[<a id="ref-IMAP-CONVERT">IMAP-CONVERT</a>] MUST also be supported by servers, which allows
clients to request conversions between media types, and allows for
scaling images, etc. This provides the ability to view attachments
(and sometimes body parts) without the facility to cope with a wide
range of media types, or to efficiently view attachments.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Compression</span>
Lemonade Message Stores SHOULD support the Deflate compression
algorithm for TLS, as defined in [<a href="#ref-TLS-COMP">TLS-COMP</a>], in order to facilitate
compression at as low a level as possible.
However, the working group acknowledges that for many endpoints, this
is a rarely deployed technology, and as such, Lemonade Message Stores
MUST provide [<a href="#ref-IMAP-COMPRESS">IMAP-COMPRESS</a>] support for fallback application-level
stream compression, where TLS is not actively providing compression.
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. Notifications</span>
The addition of server-to-client notifications transforms the
Lemonade Profile into an event-based synchronization protocol.
Whenever an event occurs that interests the MUA, a notification can
be generated. The Lemonade WG used the notifications architecture
shown in [<a href="#ref-LEMONADE-NOTIFICATIONS">LEMONADE-NOTIFICATIONS</a>] to develop the Lemonade Profile.
If the MUA is connected to the IMAP server, inband notifications are
generated using the facilities outlined in <a href="#section-5.4.1">Section 5.4.1</a>.
When the MUA is not connected, the notification filter generates an
outband notification. The notification filter may be considered as
acting on a push email repository.
If the MUA is not connected, and outband notification is disabled,
the client must perform a quick-sync on reconnect to determine
mailbox changes, using the mechanisms outlined in <a href="#section-5.1">Section 5.1</a>.
<span class="grey">Cridland, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h4"><a class="selflink" id="section-5.4.1" href="#section-5.4.1">5.4.1</a>. IMAP Notifications</span>
Lemonade Message Stores MUST support the IDLE [<a href="#ref-IMAP-IDLE">IMAP-IDLE</a>] extension.
The extension allows clients to receive unsolicited notifications
about changes in the selected mailbox, without needing to poll for
changes. The responses forming these notifications MUST be sent in a
timely manner when such changes happen.
Lemonade Message Stores also provide the NOTIFY extension described
in [<a href="#ref-IMAP-NOTIFY">IMAP-NOTIFY</a>], which allows clients to request specific event
types to be sent immediately to the client, both for the currently
selected folder and others. Such event types include message
delivery and mailbox renames.
<span class="h4"><a class="selflink" id="section-5.4.2" href="#section-5.4.2">5.4.2</a>. External Notifications</span>
Lemonade and TCP provide for long-lived idle connections between the
client and mail store, allowing the server to push notifications
within IMAP. Some mobile networks support dormancy, which shuts down
the radio traffic channel during idle periods to conserve handset and
network resources, while maintaining IP and TCP state. (See the
[<a href="#ref-LEMONADE-DEPLOYMENTS">LEMONADE-DEPLOYMENTS</a>] document for more information.)
However, there are environments where the email client cannot remain
active indefinitely, or where it is not advisable (or even always
possible) for TCP connections to the server to remain up while idle
for extended periods. In these situations, a good user experience
requires that when "interesting" events occur in the mail store, the
client be informed so that it can connect and resynchronize. At an
absolute minimum, this requires that at least the arrival of new mail
generate some sort of wake-up to the email client. A number of
vendors have implemented various solutions to this. As examples of
what has been done, for many years (long pre-dating cellular
handsets) the technique described in [<a href="#ref-FINGER-HACK">FINGER-HACK</a>] has been
supported. Today, a number of email vendors include facilities to
send SMS or other simple non-stream messages to clients on handsets
when new mail arrives. The Open Mobile Alliance (OMA) has published
a mechanism that uses WAP PUSH to send a basic message containing a
URL [<a href="#ref-OMA-EMN" title=""Open Mobile Alliance Email Notification Version 1.0"">OMA-EMN</a>]. The IETF is investigating ways to standardize
enhanced functionality in this area.
A "push email" user experience can be achieved using any number of
techniques, ranging from always-on TCP connectivity to the server and
the NOTIFY extension described above, to OMA EMN, or even a non-
standard trigger message over SMS. In any technique, the client
learns of the existence of new mail, and decides to fetch information
about it, some part of it, or all of it, and then presents this to
the user.
<span class="grey">Cridland, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>. Searching and View Filters</span>
Lemonade Message Stores MUST support the ESEARCH [<a href="#ref-IMAP-ESEARCH">IMAP-ESEARCH</a>]
extension. The extension allows clients to efficiently find the
first or last messages, find a count of matching messages, and obtain
a list of matching messages in a considerably more compact
representation.
Lemonade Message Stores also provide a mechanism for clients to avoid
handling an entire mailbox, instead accessing a view of the mailbox.
This technique, common in many desktop clients as a client-side
capability, is useful for constrained clients to minimize the
quantity of messages and notification data.
Lemonade Message Stores therefore MUST implement the CONTEXT=SEARCH,
ESORT, and CONTEXT=SORT extensions defined in [<a href="#ref-IMAP-CONTEXT">IMAP-CONTEXT</a>], as well
as the SORT extension defined in [<a href="#ref-IMAP-SORT">IMAP-SORT</a>].
<span class="h3"><a class="selflink" id="section-5.6" href="#section-5.6">5.6</a>. Mailbox Handling</span>
Lemonade Message Stores MUST support the NAMESPACE [<a href="#ref-IMAP-NAMESPACE">IMAP-NAMESPACE</a>]
extension. The extension allows clients to discover shared mailboxes
and mailboxes belonging to other users, and provide a normalized
hierarchy view of the mailboxes available.
Lemonade Message Stores MUST support the I18NLEVEL=<n> [<a href="#ref-IMAP-I18N">IMAP-I18N</a>]
extension, with <n> having the value 1 or 2. It adds support for
non-English (internationalized) search and sort functions. (Note
that I18NLEVEL=2 implies support for I18NLEVEL=1, so a Lemonade-
compliant client that makes use of this extension MUST recognize
either one.)
<span class="h3"><a class="selflink" id="section-5.7" href="#section-5.7">5.7</a>. Forward without Download</span>
In order to optimize network usage for the typical case where message
content is copied to, or sourced from, the IMAP store, Lemonade
provides support for a suite of extensions collectively known as
"forward without download", discussed in detail in <a href="#section-8">Section 8</a>.
Lemonade Message Stores MUST support CATENATE [<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>],
UIDPLUS [<a href="#ref-IMAP-UIDPLUS">IMAP-UIDPLUS</a>], and URLAUTH [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>]. Lemonade Message
Stores MUST also support URL-PARTIAL as described in <a href="#section-5.7.1">Section 5.7.1</a>.
<span class="h4"><a class="selflink" id="section-5.7.1" href="#section-5.7.1">5.7.1</a>. Support for PARTIAL in CATENATE and URLAUTH</span>
[<a id="ref-IMAP-URL">IMAP-URL</a>] introduced a new syntactic element for referencing a byte
range of a message/body part. This is done using the ;PARTIAL=
field. If an IMAP server supports PARTIAL in IMAP URL used in
<span class="grey">Cridland, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
CATENATE and URLAUTH extensions, then it MUST advertise the URL-
PARTIAL capability in both the CAPABILITY response and the equivalent
response-code.
<span class="h3"><a class="selflink" id="section-5.8" href="#section-5.8">5.8</a>. Additional IMAP Extensions</span>
Lemonade Message Stores MUST support the LITERAL+ [IMAP-LITERAL+]
extension. The extension allows clients to save a round trip each
time a non-synchronizing literal is sent.
Lemonade Message Stores MUST also implement the SASL-IR
[<a href="#ref-IMAP-SASL-IR">IMAP-SASL-IR</a>] extension, which allows clients to save a round trip
during authentication, potentially pipelining the entire
authentication sequence.
Lemonade-compliant IMAP servers MUST support IMAP over TLS [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] as
required by [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]. As noted above in <a href="#section-5.3">Section 5.3</a>, servers SHOULD
support the deflate compression algorithm for TLS, as specified in
[<a href="#ref-TLS-COMP">TLS-COMP</a>].
<span class="h3"><a class="selflink" id="section-5.9" href="#section-5.9">5.9</a>. Registration of $Forwarded IMAP Keyword</span>
The $Forwarded IMAP keyword is used by several IMAP clients to
specify that the marked message was forwarded to another email
address, embedded within or attached to a new message. A mail client
sets this keyword when it successfully forwards the message to
another email address. Typical usage of this keyword is to show a
different (or additional) icon for a message that has been forwarded.
Once set, the flag SHOULD NOT be cleared.
Lemonade Message Stores MUST be able to store the $Forwarded keyword.
They MUST preserve it on the COPY operation. The servers MUST
support the SEARCH KEYWORD $Forwarded.
<span class="h3"><a class="selflink" id="section-5.10" href="#section-5.10">5.10</a>. Registration of $SubmitPending and $Submitted IMAP Keywords</span>
The $SubmitPending IMAP keyword designates the message as awaiting to
be submitted. This keyword allows storing messages waiting to be
submitted in the same mailbox where messages that were already
submitted and/or are being edited are stored. A mail client sets
this keyword when it decides that the message needs to be sent out.
When a client (it might be a different client from the one that
decided that the message is pending submission) starts sending the
message, it atomically (using "STORE (UNCHANGEDSINCE)") adds the
$Submitted keyword. Once submission is successful, the
$SubmitPending keyword is atomically cleared. The two keywords allow
messages being actively submitted (messages that have both $Submitted
and $SubmitPending keywords set) to be distinguished from messages
<span class="grey">Cridland, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
awaiting to be submitted, or from messages already submitted. They
also allow all messages that were supposed to be submitted to be
found, if the client submitting them crashes or quits before
submitting them.
Lemonade Message Stores MUST be able to store the $SubmitPending and
the $Submitted keyword. Lemonade Message Stores MUST preserve them
on the COPY operation. The servers MUST support the SEARCH KEYWORD
$SubmitPending and SEARCH KEYWORD $Submitted.
<span class="h3"><a class="selflink" id="section-5.11" href="#section-5.11">5.11</a>. Related IMAP Extensions</span>
<a href="#section-5.11">Section 5.11</a> is non-normative.
Server implementations targeting to fulfill OMA MEM requirements
[<a href="#ref-OMA-MEM-REQ">OMA-MEM-REQ</a>] should consider implementing the [<a href="#ref-IMAP-FILTERS">IMAP-FILTERS</a>], which
provides a way to persist definition of virtual mailboxes on the
server. They should also consider implementing the METADATA-SERVER
[<a href="#ref-METADATA">METADATA</a>] extension, which provides a way of storing user-defined
data associated with a user account.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Lemonade Message Delivery Agents</span>
Lemonade Message Delivery Agents MUST support the [<a href="#ref-SIEVE" title=""Sieve: An Email Filtering Language"">SIEVE</a>] filtering
language at the point of delivery, allowing the user to control which
messages are accepted, and where they are filed.
Lemonade Message Delivery Agents MUST support the Sieve Vacation
extension [<a href="#ref-SIEVE-VACATION">SIEVE-VACATION</a>], which allows the client to set up an
auto-responder, typically to report being on vacation (thus the name
of the Sieve extension).
Lemonade Message Delivery Agents MUST support the Sieve Enotify
extension [<a href="#ref-SIEVE-NOTIFY">SIEVE-NOTIFY</a>], which allows a Sieve script to generate
notifications (such as XMPP, SIP, or email) about received messages.
Lemonade Message Delivery Agents MUST support the Sieve Variables
extension [<a href="#ref-SIEVE-VARIABLES">SIEVE-VARIABLES</a>], which adds support for variables to the
Sieve scripting language. This extension is typically used with
Sieve Enotify or Vacation to customize responses/notifications.
Lemonade Message Delivery Agents MUST support the Sieve Relational
extension [<a href="#ref-SIEVE-RELATIONAL">SIEVE-RELATIONAL</a>], which adds support for relational
comparisons to the Sieve scripting language. This extension is
typically used together with Sieve Enotify.
<span class="grey">Cridland, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Lemonade Message Delivery Agents MUST support the Sieve Imap4Flags
extension [<a href="#ref-SIEVE-IMAP4FLAGS">SIEVE-IMAP4FLAGS</a>], which allows a Sieve script to set IMAP
flags/keywords when delivering a message to a mailbox. For example,
this can be used to automatically mark certain messages as
interesting, urgent, etc.
Lemonade Message Delivery Agents MUST support the i;unicode-casemap
comparator in Sieve [<a href="#ref-UNICODE-CASEMAP">UNICODE-CASEMAP</a>], which is declared as
"comparator-i;unicode-casemap" in the Sieve "require" statement. The
comparator allows for case-insensitive matching of Unicode
characters.
Lemonade Message Delivery Agents should consider supporting Sieve
script management using the [<a href="#ref-MANAGESIEVE">MANAGESIEVE</a>] protocol. If they do, they
MUST also advertise in [<a href="#ref-MANAGESIEVE">MANAGESIEVE</a>] all Sieve extensions listed in
this section.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Lemonade Message User Agents</span>
Although all existing IMAP MUAs are Lemonade compliant in as much as
all Lemonade services are based on the existing [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] and [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>]
protocols, client implementors are encouraged to take full advantage
of the facilities provided by Lemonade Submission Servers and
Lemonade Message Stores, as described in 4 and 5, respectively.
When opening a connection to the Submission Server, clients MUST do
so using port 587 unless explicitly configured to use an alternate
port [<a href="./rfc5068" title=""Email Submission Operations: Access and Accountability Requirements"">RFC5068</a>]. (Note that this requirement is somewhat stronger
than the one specified in [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>], as [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] didn't prescribe the
exact procedure to be used by submission clients.) If the TCP
connection to the submission server fails to open using port 587, the
client MAY then immediately retry using a different port, such as 25.
See [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] for information on why using port 25 is likely to fail
depending on the current location of the client, and may result in a
failure code during the SMTP transaction.
In addition, some specifications are useful to support interoperable
messaging with an enhanced user experience.
Lemonade-capable clients SHOULD support the Format and DelSp
parameters to the text/plain media type described in [<a href="#ref-FLOWED" title=""The Text/Plain Format and DelSp Parameters"">FLOWED</a>], and
generate this format for messages.
Lemonade-capable clients SHOULD support, and use, the $Forwarded
keyword described in <a href="#section-5.9">Section 5.9</a>.
<span class="grey">Cridland, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Forward without Download</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Motivations</span>
The advent of client/server email using the [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] and [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>]
protocols changed what formerly were local disk operations to become
repetitive network data transmissions.
Lemonade "forward without download" makes use of the [<a href="#ref-SMTP-BURL">SMTP-BURL</a>]
extension to enable access to external sources during the submission
of a message. In combination with the [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] extension,
inclusion of message parts or even entire messages from the IMAP mail
store is possible with a minimal trust relationship between the IMAP
and SMTP SUBMIT servers.
Lemonade "forward without download" has the advantage of maintaining
one submission protocol, and thus avoids the risk of having multiple
parallel and possibly divergent mechanisms for submission. The
client can use [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] extensions without these being added to IMAP.
Furthermore, by keeping the details of message submission in the SMTP
SUBMIT server, Lemonade "forward without download" can work with
other message retrieval protocols such as POP, NNTP, or whatever else
may be designed in the future.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Message Sending Overview</span>
The act of sending an email message can be thought of as involving
multiple steps: initiation of a new draft, draft editing, message
assembly, and message submission.
Initiation of a new draft and draft editing takes place in the MUA.
Frequently, users choose to save more complex messages on an [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]
server (via the APPEND command with the \Draft flag) for later recall
by the MUA and resumption of the editing process.
Message assembly is the process of producing a complete message from
the final revision of the draft and external sources. At assembly
time, external data is retrieved and inserted in the message.
Message submission is the process of inserting the assembled message
into the [<a href="#ref-ESMTP" title=""Simple Mail Transfer Protocol"">ESMTP</a>] infrastructure, typically using the [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>]
protocol.
<span class="grey">Cridland, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a>. Traditional Strategy</span>
Traditionally, messages are initiated, edited, and assembled entirely
within an MUA, although drafts may be saved to an [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] server and
later retrieved from the server. The completed text is then
transmitted to a Message Submission Agent (MSA) for delivery.
There is often no clear boundary between the editing and assembly
processes. If a message is forwarded, its content is often retrieved
immediately and inserted into the message text. Similarly, when
external content is inserted or attached, the content is usually
retrieved immediately and made part of the draft.
As a consequence, each save of a draft and subsequent retrieval of
the draft transmits that entire (possibly large) content, as does
message submission.
In the past, this was not much of a problem, because drafts, external
data, and the message submission mechanism were typically located on
the same system as the MUA. The most common problem was running out
of disk quota.
<span class="grey">Cridland, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h3"><a class="selflink" id="section-8.4" href="#section-8.4">8.4</a>. A New Strategy</span>
The model distinguishes between a Message User Agent (MUA), an
IMAPv4Rev1 Server ([<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]), and an SMTP submit server ([<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>]), as
illustrated in Figure 1.
+--------------------+ +--------------+
| | <------------ | |
| MUA (M) | | IMAPv4Rev1 |
| | | Server |
| | ------------> | (Server I) |
+--------------------+ +--------------+
^ | ^ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | v
| | +--------------+
| |----------------------> | SMTP |
| | Submit |
|-----------------------------| Server |
| (Server S) |
+--------------+
Figure 1: Lemonade "forward without download"
Lemonade "forward without download" allows a Message User Agent to
compose and forward an email combining fragments that are located in
an IMAP server, without having to download these fragments to the
client.
This section informatively describes two ways to perform "forward
without download" based on where the message assembly takes place.
The first uses the extended APPEND command [<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>] to edit a
draft message in the message store and cause the message assembly on
the IMAP server. This is most often used when a copy of the message
is to be retained on the IMAP server, as discussed in <a href="#section-8.6">Section 8.6</a>.
The second uses a succession of BURL and BDAT commands to submit and
assemble through concatenation, message data from the client and
external data fetched from the provided URL. The two subsequent
sections provide step-by-step instructions on how "forward without
download" is achieved.
<span class="grey">Cridland, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h4"><a class="selflink" id="section-8.4.1" href="#section-8.4.1">8.4.1</a>. Message Assembly Using IMAP CATENATE Extension</span>
In the [<a href="#ref-SMTP-BURL">SMTP-BURL</a>]/[<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>] variant of the Lemonade "forward
without download" strategy, messages are initially composed and
edited within an MUA. The [<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>] extension to [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>] is
then used to create the messages on the IMAP server by transmitting
new text and assembling them. The UIDPLUS [<a href="#ref-IMAP-UIDPLUS">IMAP-UIDPLUS</a>] IMAP
extension is used by the client in order to learn the UID of the
created messages. Finally, an [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] format URL is given to
a [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] server for submission using the BURL [<a href="#ref-SMTP-BURL">SMTP-BURL</a>]
extension.
The flow involved to support such a use case consists of:
M: {to I -- Optional} The client connects to the IMAP server,
optionally starts TLS (if data confidentiality is required),
authenticates, opens a mailbox ("INBOX" in the example below), and
fetches body structures (see [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]).
Example:
M: A0051 UID FETCH 25627 (UID BODYSTRUCTURE)
I: * 161 FETCH (UID 25627 BODYSTRUCTURE (("TEXT" "PLAIN"
("CHARSET" "US-ASCII") NIL NIL "7BIT" 1152 23)(
"TEXT" "PLAIN" ("CHARSET" "US-ASCII" "NAME"
"trip.txt")
"<960723163407.20117h@washington.example.com>"
"Your trip details" "BASE64" 4554 73) "MIXED"))
I: A0051 OK completed
M: {to I} The client invokes CATENATE (see [<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>] for
details of the semantics and steps) -- this allows the MUA to create
messages on the IMAP server using new data combined with one or more
message parts already present on the IMAP server.
Note that the example for this step doesn't use the LITERAL+
[IMAP-LITERAL+] extension. Without LITERAL+ the new message is
constructed using three round trips. If LITERAL+ is used, the new
message can be constructed using one round trip.
<span class="grey">Cridland, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
M: A0052 APPEND Sent FLAGS (\Draft \Seen $MDNSent)
CATENATE (TEXT {475}
I: + Ready for literal data
M: Message-ID: <419399E1.6000505@caernarfon.example.org>
M: Date: Thu, 12 Nov 2004 16:57:05 +0000
M: From: Bob Ar <bar@example.org>
M: MIME-Version: 1.0
M: To: foo@example.net
M: Subject: About our holiday trip
M: Content-Type: multipart/mixed;
M: boundary="------------030308070208000400050907"
M:
M: --------------030308070208000400050907
M: Content-Type: text/plain; format=flowed
M:
M: Our travel agent has sent the updated schedule.
M:
M: Cheers,
M: Bob
M: --------------030308070208000400050907
M: URL "/INBOX;UIDVALIDITY=385759045/;
UID=25627/;Section=2.MIME" URL "/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2" TEXT {44}
I: + Ready for literal data
M:
M: --------------030308070208000400050907--
M: )
I: A0052 OK [APPENDUID 387899045 45] CATENATE Completed
M: {to I} The client uses the GENURLAUTH command to request a URLAUTH
URL (see [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>]).
I: {to M} The IMAP server returns a URLAUTH URL suitable for later
retrieval with URLFETCH (see [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] for details of the
semantics and steps).
M: A0053 GENURLAUTH "imap://bob.ar@example.org/Sent;
UIDVALIDITY=387899045/;uid=45;expire=2005-10-
28T23:59:59Z;urlauth=submit+bob.ar" INTERNAL
I: * GENURLAUTH "imap://bob.ar@example.org/Sent;
UIDVALIDITY=387899045/;uid=45;expire=
2005-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:91354a473744909de610943775f92038"
I: A0053 OK GENURLAUTH completed
M: {to S} The client connects to the mail Submission Server and
starts a new mail transaction. It uses BURL to let the SMTP submit
server fetch the content of the message from the IMAP server (see
[<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] for details of the semantics and steps -- this allows
<span class="grey">Cridland, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
the MUA to authorize the SMTP submit server to access the message
composed as a result of the CATENATE step). Note that the second
EHLO command is required after a successful STARTTLS command. Also
note that there might be a third required EHLO command if the second
EHLO response doesn't list any BURL options. <a href="#section-8.4.2">Section 8.4.2</a>
demonstrates this.
S: 220 owlry.example.org ESMTP
M: EHLO potter.example.org
S: 250-owlry.example.com
S: 250-8BITMIME
S: 250-BINARYMIME
S: 250-PIPELINING
S: 250-BURL imap
S: 250-CHUNKING
S: 250-AUTH PLAIN
S: 250-DSN
S: 250-SIZE 10240000
S: 250-STARTTLS
S: 250 ENHANCEDSTATUSCODES
M: STARTTLS
S: 220 Ready to start TLS
...TLS negotiation, subsequent data is encrypted...
M: EHLO potter.example.org
S: 250-owlry.example.com
S: 250-8BITMIME
S: 250-BINARYMIME
S: 250-PIPELINING
S: 250-BURL imap
S: 250-CHUNKING
S: 250-AUTH PLAIN
S: 250-DSN
S: 250-SIZE 10240000
S: 250 ENHANCEDSTATUSCODES
M: AUTH PLAIN aGFycnkAaGFycnkAYWNjaW8=
M: MAIL FROM:<bob.ar@example.org>
M: RCPT TO:<foo@example.net>
S: 235 2.7.0 PLAIN authentication successful.
S: 250 2.5.0 Address Ok.
S: 250 2.1.5 foo@example.net OK.
M: BURL imap://bob.ar@example.org/Sent;UIDVALIDITY=387899045/;
uid=45/;urlauth=submit+bar:internal:
91354a473744909de610943775f92038 LAST
S: {to I} The mail Submission Server uses URLFETCH to fetch the
message to be sent. (See [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] for details of the semantics
and steps. The so-called "pawn-ticket" authorization mechanism uses
a URI that contains its own authorization credentials.)
<span class="grey">Cridland, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
I: {to S} Provides the message composed as a result of the CATENATE
step).
The mail Submission Server opens an IMAP connection to the IMAP
server:
I: * OK [CAPABILITY IMAP4REV1 STARTTLS NAMESPACE LITERAL+
CATENATE URLAUTH UIDPLUS CONDSTORE IDLE] imap.example.com
IMAP server ready
S: a000 STARTTLS
I: a000 Start TLS negotiation now
...TLS negotiation, if successful - subsequent data
is encrypted...
S: a001 LOGIN submitserver secret
I: a001 OK submitserver logged in
S: a002 URLFETCH "imap://bob.ar@example.org/Sent;
UIDVALIDITY=387899045/;uid=45/;urlauth=submit+bob.ar:
internal:91354a473744909de610943775f92038"
I: * URLFETCH "imap://bob.ar@example.org/Sent;
UIDVALIDITY=387899045/;uid=45/;urlauth=submit+bob.ar:
internal:91354a473744909de610943775f92038" {15065}
...message body follows...
I: a002 OK URLFETCH completed
S: a003 LOGOUT
I: * BYE See you later
I: a003 OK Logout successful
Note that if data confidentiality is not required, the mail
Submission Server may omit the STARTTLS command before issuing the
LOGIN command.
S: {to M} Submission server assembles the complete message; if the
assembly succeeds, it returns OK to the MUA:
S: 250 2.5.0 Ok.
M: {to I} The client marks the message containing the forwarded
attachment on the IMAP server.
M: A0054 UID STORE 25627 +FLAGS.SILENT ($Forwarded)
I: * 215 FETCH (UID 25627 MODSEQ (12121231000))
I: A0054 OK STORE completed
Note: the UID STORE command shown above will only work if the marked
message is in the currently selected mailbox; otherwise, it requires
a SELECT. This command can be omitted, as it simply changes non-
operational metadata not essential to client operations or
<span class="grey">Cridland, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
interoperability. The untagged FETCH response is due to
[<a href="#ref-IMAP-CONDSTORE">IMAP-CONDSTORE</a>]. The $Forwarded IMAP keyword is described in
<a href="#section-5.9">Section 5.9</a>.
<span class="h4"><a class="selflink" id="section-8.4.2" href="#section-8.4.2">8.4.2</a>. Message Assembly Using SMTP CHUNKING and BURL Extensions</span>
In the [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>]/[<a href="#ref-SMTP-BURL">SMTP-BURL</a>] variant of the Lemonade "forward
without download" strategy, messages are initially composed and
edited within an MUA. During submission [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>], BURL [<a href="#ref-SMTP-BURL">SMTP-BURL</a>]
and BDAT [<a href="#ref-SMTP-BINARYMIME">SMTP-BINARYMIME</a>] commands are used to create the messages
from multiple parts. New body parts are supplied using BDAT
commands, while existing body parts are referenced using
[<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] format URLs in BURL commands.
The flow involved to support such a use case consists of:
M: {to I -- Optional} The client connects to the IMAP server,
optionally starts TLS (if data confidentiality is required),
authenticates, opens a mailbox ("INBOX" in the example below), and
fetches body structures (see [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>]).
Example:
M: B0051 UID FETCH 25627 (UID BODYSTRUCTURE)
I: * 161 FETCH (UID 25627 BODYSTRUCTURE (("TEXT" "PLAIN"
("CHARSET" "US-ASCII") NIL NIL "7BIT" 1152 23)(
"TEXT" "PLAIN" ("CHARSET" "US-ASCII" "NAME"
"trip.txt")
"<960723163407.20117h@washington.example.com>"
"Your trip details" "BASE64" 4554 73) "MIXED"))
I: B0051 OK completed
M: {to I} The client uses the GENURLAUTH command to request URLAUTH
URLs (see [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>]) referencing pieces of the message to be
assembled.
I: {to M} The IMAP server returns URLAUTH URLs suitable for later
retrieval with URLFETCH (see [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] for details of the
semantics and steps).
<span class="grey">Cridland, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
M: B0052 GENURLAUTH "imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2.MIME;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar"
INTERNAL "imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar" INTERNAL
I: * GENURLAUTH "imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2.MIME;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:A0DEAD473744909de610943775f9BEEF"
"imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:BEEFA0DEAD473744909de610943775f9"
I: B0052 OK GENURLAUTH completed
M: {to S} The client connects to the mail Submission Server and
starts a new mail transaction. It uses BURL to instruct the SMTP
submit server to fetch from the IMAP server pieces of the message to
be sent (see [<a href="#ref-SMTP-BURL">SMTP-BURL</a>] for details of the semantics and steps).
Note that the second EHLO command is required after a successful
STARTTLS command. The third EHLO command is required if and only if
the second EHLO response doesn't list any BURL options. See
<a href="#section-8.4.1">Section 8.4.1</a> for an example of submission where the third EHLO
command/response is not present.
S: 220 owlry.example.org ESMTP
M: EHLO potter.example.org
S: 250-owlry.example.com
S: 250-8BITMIME
S: 250-BINARYMIME
S: 250-PIPELINING
S: 250-BURL
S: 250-CHUNKING
S: 250-AUTH DIGEST-MD5
S: 250-DSN
S: 250-SIZE 10240000
S: 250-STARTTLS
S: 250 ENHANCEDSTATUSCODES
M: STARTTLS
S: 220 Ready to start TLS
...TLS negotiation, subsequent data is encrypted...
M: EHLO potter.example.org
S: 250-owlry.example.com
S: 250-8BITMIME
S: 250-BINARYMIME
S: 250-PIPELINING
<span class="grey">Cridland, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
S: 250-BURL
S: 250-CHUNKING
S: 250-AUTH DIGEST-MD5 CRAM-MD5 PLAIN EXTERNAL
S: 250-DSN
S: 250-SIZE 10240000
S: 250 ENHANCEDSTATUSCODES
M: AUTH PLAIN aGFycnkAaGFycnkAYWNjaW8=
S: 235 2.7.0 PLAIN authentication successful.
M: EHLO potter.example.org
S: 250-owlry.example.com
S: 250-8BITMIME
S: 250-BINARYMIME
S: 250-PIPELINING
S: 250-BURL imap imap://imap.example.org
S: 250-CHUNKING
S: 250-AUTH DIGEST-MD5 CRAM-MD5 PLAIN EXTERNAL
S: 250-DSN
S: 250-SIZE 10240000
S: 250 ENHANCEDSTATUSCODES
M: MAIL FROM:<bob.ar@example.org> BODY=BINARY
S: 250 2.5.0 Address Ok.
M: RCPT TO:<foo@example.net>
S: 250 2.1.5 foo@example.net OK.
M: BDAT 475
M: Message-ID: <419399E1.6000505@caernarfon.example.org>
M: Date: Thu, 12 Nov 2004 16:57:05 +0000
M: From: Bob Ar <bar@example.org>
M: MIME-Version: 1.0
M: To: foo@example.net
M: Subject: About our holiday trip
M: Content-Type: multipart/mixed;
M: boundary="------------030308070208000400050907"
M:
M: --------------030308070208000400050907
M: Content-Type: text/plain; format=flowed
M:
M: Our travel agent has sent the updated schedule.
M:
M: Cheers,
M: Bob
M: --------------030308070208000400050907
S: 250 2.5.0 OK
M: BURL imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2.MIME;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:A0DEAD473744909de610943775f9BEEF
S: 250 2.5.0 OK
M: BURL imap://bob.ar@example.org/INBOX;
<span class="grey">Cridland, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
UIDVALIDITY=385759045/;UID=25627/;Section=2;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:BEEFA0DEAD473744909de610943775f9
S: 250 2.5.0 OK
M: BDAT 44 LAST
M:
M: --------------030308070208000400050907--
S: {to I} The mail Submission Server uses URLFETCH to fetch the
pieces of the message to be sent. (See [<a href="#ref-SMTP-BURL">SMTP-BURL</a>] for details of
the semantics and steps. The so-called "pawn-ticket" authorization
mechanism uses a URI which contains its own authorization
credentials.).
I: {to S} Returns the requested body parts.
The mail Submission Server opens an IMAP connection to the IMAP
server:
I: * OK [CAPABILITY IMAP4REV1 STARTTLS NAMESPACE LITERAL+
CATENATE URLAUTH UIDPLUS CONDSTORE IDLE] imap.example.com
IMAP server ready
S: b000 STARTTLS
I: b000 Start TLS negotiation now
...TLS negotiation, if successful - subsequent data
is encrypted...
S: b001 LOGIN submitserver secret
I: b001 OK submitserver logged in
S: b002 URLFETCH "imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2.MIME;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:A0DEAD473744909de610943775f9BEEF" "imap://
bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:BEEFA0DEAD473744909de610943775f9"
I: * URLFETCH "imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2.MIME;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:A0DEAD473744909de610943775f9BEEF" {84}
...message section follows...
"imap://bob.ar@example.org/INBOX;
UIDVALIDITY=385759045/;UID=25627/;Section=2;
expire=2006-10-28T23:59:59Z;urlauth=submit+bob.ar:
internal:BEEFA0DEAD473744909de610943775f9" {15065}
...message section follows...
I: b002 OK URLFETCH completed
S: b003 LOGOUT
I: * BYE See you later
<span class="grey">Cridland, et al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
I: b003 OK Logout successful
Note that if data confidentiality is not required, the mail
Submission Server may omit the STARTTLS command before issuing the
LOGIN command.
S: {to M} Submission Server assembles the complete message; if the
assembly succeeds, it acknowledges acceptance of the message by
sending 250 response to the last BDAT command:
S: 250 2.5.0 Ok, message accepted.
M: {to I} The client marks the message containing the forwarded
attachment on the IMAP server.
M: B0053 UID STORE 25627 +FLAGS.SILENT ($Forwarded)
I: * 215 FETCH (UID 25627 MODSEQ (12121231000))
I: B0053 OK STORE completed
Note: the UID STORE command shown above will only work if the marked
message is in the currently selected mailbox; otherwise, it requires
a SELECT. As in the previous example, this command is not critical,
and can be omitted. The untagged FETCH response is due to
[<a href="#ref-IMAP-CONDSTORE">IMAP-CONDSTORE</a>]. The $Forwarded IMAP keyword is described in
<a href="#section-5.9">Section 5.9</a>.
<span class="h3"><a class="selflink" id="section-8.5" href="#section-8.5">8.5</a>. Security Considerations for Pawn-Tickets</span>
The so-called "pawn-ticket" authorization mechanism uses a URI, which
contains its own authorization credentials using [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>]. The
advantage of this mechanism is that the SMTP submit [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] server
cannot access any data on the [<a href="#ref-IMAP-URLAUTH">IMAP-URLAUTH</a>] server without a "pawn-
ticket" created by the client.
The "pawn-ticket" grants access only to the specific data that the
SMTP submit [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>] server is authorized to access, can be revoked
by the client, and can have a time-limited validity.
<span class="h3"><a class="selflink" id="section-8.6" href="#section-8.6">8.6</a>. Copies of Sent Messages: The fcc Problem</span>
The "fcc problem" refers to delivering a copy of a message to a
mailbox, or "file carbon copy". By far, the most common case of fcc
is a client leaving a copy of outgoing mail in a "Sent Mail" or
"Outbox" mailbox.
In the traditional strategy, the MUA duplicates the effort spent in
transmitting to the MSA by writing the message to the fcc destination
in a separate step. This may be a write to a local disk file or an
<span class="grey">Cridland, et al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
APPEND to a mailbox on an IMAP server. The latter is one of the
"repetitive network data transmissions" that represents the "problem"
aspect of the "fcc problem".
The BURL [<a href="#ref-SMTP-BURL">SMTP-BURL</a>] extension can be used to eliminate the
additional transmission. The final message is uploaded to the
mailbox designed for outgoing mail by the APPEND command of [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>].
Note that when doing so, the client ought to use the $SubmitPending
and $Submitted IMAP keywords described in <a href="#section-5.10">Section 5.10</a>. Also note
that APPEND, including when enhanced by [<a href="#ref-IMAP-CATENATE">IMAP-CATENATE</a>], can only
create a single copy of the message and this is only of use on the
server that stages the outgoing message for submission. Additional
copies of the message on the same server can be created by using one
or more COPY commands.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Deployment Considerations</span>
Deployment considerations are discussed extensively in
[<a href="#ref-LEMONADE-DEPLOYMENTS">LEMONADE-DEPLOYMENTS</a>].
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Security Considerations</span>
Implementors are advised to examine the security considerations of
all the referenced documents. This section merely highlights these,
and advises implementors on specific issues relating to the
combination of extensions.
Security considerations on Lemonade "forward without download" are
discussed throughout <a href="#section-8">Section 8</a>. Additional security considerations
can be found in [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>], [<a href="#ref-SUBMIT" title=""Message Submission for Mail"">SUBMIT</a>], [<a href="#ref-SIEVE" title=""Sieve: An Email Filtering Language"">SIEVE</a>], and other documents
describing other SMTP, IMAP, and Sieve extension comprising the
Lemonade Profile.
Note that the mandatory-to-implement authentication mechanism for
SMTP submission is described in [<a href="#ref-SMTP-AUTH">SMTP-AUTH</a>]. The mandatory-to-
implement authentication mechanism for IMAP is described in [<a href="#ref-IMAP" title=""INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"">IMAP</a>].
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>. Confidentiality Protection of Submitted Messages</span>
When clients submit new messages, link protection such as [<a href="#ref-TLS" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">TLS</a>]
guards against an eavesdropper seeing the contents of the submitted
message. It is worth noting, however, that even if TLS is not used,
the security risks are no worse if BURL is used to reference the text
than if the text is submitted directly. If BURL is not used, an
eavesdropper gains access to the full text of the message. If BURL
is used, the eavesdropper may or may not be able to gain such access,
<span class="grey">Cridland, et al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
depending on the form of BURL used. For example, some forms restrict
use of the URL to an entity authorized as a Submission Server or a
specific user.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. TLS</span>
When Lemonade clients use the BURL extension for mail submission, an
extension that requires sending a URLAUTH token to the mail
Submission Server, such a token should be protected from interception
to avoid a replay attack that may disclose the contents of the
message to an attacker. [<a href="#ref-TLS" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">TLS</a>]-based encryption of both the IMAP
session that issues GENURLAUTH and the mail submission path will
provide protection against this attack.
Lemonade-compliant mail Submission Servers SHOULD use TLS-protected
IMAP connections when fetching message content using the URLAUTH
token provided by the Lemonade client.
When a client uses SMTP STARTTLS to send a BURL command that
references non-public information, there is a user expectation that
the entire message content will be treated confidentially. To meet
this expectation, the message Submission Server SHOULD use STARTTLS
or a mechanism providing equivalent data confidentiality when
fetching the content referenced by that URL.
<span class="h3"><a class="selflink" id="section-10.3" href="#section-10.3">10.3</a>. Additional Extensions and Deployment Models</span>
This specification provides no additional security measures beyond
those in the referenced Internet Mail and Lemonade documents.
We note, however, the security risks associated with:
o Outband notifications
o Server configuration by client
o Client configuration by server
o Presence of proxy servers
o Presence of servers as intermediaries
o In general, the deployment models considered by OMA MEM that are
not conventional IETF deployment models
o Measures to address a perceived need to traverse firewalls and
mobile network intermediaries
<span class="grey">Cridland, et al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Deployments that provide these additional services or operate in
these environments need to consult the security considerations for
the relevant standards and organizational security practices.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. IANA Considerations</span>
IMAP4 capabilities are registered by IETF Review, as defined in
[<a href="./rfc5226" title="">RFC5226</a>]. This document defines the URL-PARTIAL IMAP capability
(<a href="#section-5.7.1">Section 5.7.1</a>). IANA added this extension to the IANA IMAP
Capability registry.
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Changes since <a href="./rfc4550">RFC 4550</a></span>
When compared to <a href="./rfc4550">RFC 4550</a>, this document adds the following
additional requirements on a Lemonade compliant IMAP server:
IMAP extensions: BINARY, COMPRESS=DEFLATE, CONTEXT=SEARCH,
CONTEXT=SORT, CONVERT, ENABLE, ESEARCH, ESORT, I18NLEVEL=1,
NOTIFY, QRESYNC, SASL-IR, SORT, URL-PARTIAL;
IMAP keywords: $SubmitPending, $Submitted.
Other requirements: Require any Lemonade compliant IMAP server to
support the CAPABILITY response code.
When compared to <a href="./rfc4550">RFC 4550</a>, this document adds the following new
requirements on a Lemonade compliant Message Delivery Agents:
Support for the Sieve filtering language, together with the following
Sieve extensions:
ENOTIFY, IMAP4FLAGS, RELATIONAL, VACATION, VARIABLES, comparator-
i;unicode-casemap.
When compared to <a href="./rfc4550">RFC 4550</a>, this document recommends use of the
DEFLATE compression method for TLS. All other requirements remain
the same.
Additionally, the following changes/improvments were done to <a href="./rfc4550">RFC 4550</a>
(the list might be incomplete):
A new section with some additional requirements on Lemonade Mail
User Agents was added, in particular they are required to support
Format=flowed parameter to the text/plain media type.
Usage of the $Forwarded IMAP keyword was clarified.
Forward-without-download examples were corrected and extended.
<span class="grey">Cridland, et al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Added a new section describing in-band and out-of-band
notifications from a Lemonade compliant mailstore.
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. Acknowledgements</span>
The editors acknowledge and appreciate the work and comments of the
IETF Lemonade working group and the OMA MEM working group.
In particular, the editors would like to thank Eric Burger, Glenn
Parsons, Randall Gellens, Filip Navara, Zoltan Ordogh, Greg
Vaudreuil, and Fan Xiaohui for their comments and reviews.
<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>. References</span>
<span class="h3"><a class="selflink" id="section-14.1" href="#section-14.1">14.1</a>. Normative References</span>
[<a id="ref-FLOWED">FLOWED</a>] Gellens, R., "The Text/Plain Format and DelSp Parameters",
<a href="./rfc3676">RFC 3676</a>, February 2004.
[<a id="ref-IMAP">IMAP</a>] Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION
4rev1", <a href="./rfc3501">RFC 3501</a>, March 2003.
[<a id="ref-IMAP-BINARY">IMAP-BINARY</a>]
Nerenberg, L., "IMAP4 Binary Content Extension", <a href="./rfc3516">RFC 3516</a>,
April 2003.
[<a id="ref-IMAP-CATENATE">IMAP-CATENATE</a>]
Resnick, P., "Internet Message Access Protocol (IMAP)
CATENATE Extension", <a href="./rfc4469">RFC 4469</a>, April 2006.
[<a id="ref-IMAP-COMPRESS">IMAP-COMPRESS</a>]
Gulbrandsen, A., "The IMAP COMPRESS Extension", <a href="./rfc4978">RFC 4978</a>,
August 2007.
[<a id="ref-IMAP-CONDSTORE">IMAP-CONDSTORE</a>]
Melnikov, A. and S. Hole, "IMAP Extension for Conditional
STORE Operation or Quick Flag Changes Resynchronization",
<a href="./rfc4551">RFC 4551</a>, June 2006.
[<a id="ref-IMAP-CONTEXT">IMAP-CONTEXT</a>]
Cridland, D. and C. King, "Contexts for IMAP4", <a href="./rfc5267">RFC 5267</a>,
July 2008.
[<a id="ref-IMAP-CONVERT">IMAP-CONVERT</a>]
Melnikov, A. and P. Coates, "Internet Message Access
Protocol - CONVERT Extension", <a href="./rfc5259">RFC 5259</a>, July 2008.
<span class="grey">Cridland, et al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
[<a id="ref-IMAP-ENABLE">IMAP-ENABLE</a>]
Gulbrandsen, A. and A. Melnikov, "The IMAP ENABLE
Extension", <a href="./rfc5161">RFC 5161</a>, March 2008.
[<a id="ref-IMAP-ESEARCH">IMAP-ESEARCH</a>]
Melnikov, A. and D. Cridland, "IMAP4 Extension to SEARCH
Command for Controlling What Kind of Information Is
Returned", <a href="./rfc4731">RFC 4731</a>, November 2006.
[<a id="ref-IMAP-I18N">IMAP-I18N</a>]
Newman, C., Gulbrandsen, A., and A. Melnikov, "Internet
Message Access Protocol Internationalization", <a href="./rfc5255">RFC 5255</a>,
June 2008.
[<a id="ref-IMAP-IDLE">IMAP-IDLE</a>]
Leiba, B., "IMAP4 IDLE command", <a href="./rfc2177">RFC 2177</a>, June 1997.
[IMAP-LITERAL+]
Myers, J., "IMAP4 non-synchronizing literals", <a href="./rfc2088">RFC 2088</a>,
January 1997.
[<a id="ref-IMAP-NAMESPACE">IMAP-NAMESPACE</a>]
Gahrns, M. and C. Newman, "IMAP4 Namespace", <a href="./rfc2342">RFC 2342</a>,
May 1998.
[<a id="ref-IMAP-NOTIFY">IMAP-NOTIFY</a>]
Gulbrandsen, A., King, C., and A. Melnikov, "The IMAP
NOTIFY Extension", <a href="./rfc5465">RFC 5465</a>, February 2009.
[<a id="ref-IMAP-QRESYNC">IMAP-QRESYNC</a>]
Melnikov, A., Cridland, D., and C. Wilson, "IMAP4
Extensions for Quick Mailbox Resynchronization", <a href="./rfc5162">RFC 5162</a>,
March 2008.
[<a id="ref-IMAP-SASL-IR">IMAP-SASL-IR</a>]
Siemborski, R. and A. Gulbrandsen, "IMAP Extension for
Simple Authentication and Security Layer (SASL) Initial
Client Response", <a href="./rfc4959">RFC 4959</a>, September 2007.
[<a id="ref-IMAP-SORT">IMAP-SORT</a>]
Crispin, M. and K. Murchison, "Internet Message Access
Protocol - SORT and THREAD Extensions", <a href="./rfc5256">RFC 5256</a>,
June 2008.
[<a id="ref-IMAP-UIDPLUS">IMAP-UIDPLUS</a>]
Crispin, M., "Internet Message Access Protocol (IMAP) -
UIDPLUS extension", <a href="./rfc4315">RFC 4315</a>, December 2005.
<span class="grey">Cridland, et al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
[<a id="ref-IMAP-URL">IMAP-URL</a>]
Melnikov, A. and C. Newman, "IMAP URL Scheme", <a href="./rfc5092">RFC 5092</a>,
November 2007.
[<a id="ref-IMAP-URLAUTH">IMAP-URLAUTH</a>]
Crispin, M., "Internet Message Access Protocol (IMAP) -
URLAUTH Extension", <a href="./rfc4467">RFC 4467</a>, May 2006.
[<a id="ref-KEYWORDS">KEYWORDS</a>]
Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-SIEVE">SIEVE</a>] Guenther, P. and T. Showalter, "Sieve: An Email Filtering
Language", <a href="./rfc5228">RFC 5228</a>, January 2008.
[<a id="ref-SIEVE-IMAP4FLAGS">SIEVE-IMAP4FLAGS</a>]
Melnikov, A., "Sieve Email Filtering: Imap4flags
Extension", <a href="./rfc5232">RFC 5232</a>, January 2008.
[<a id="ref-SIEVE-NOTIFY">SIEVE-NOTIFY</a>]
Melnikov, A., Leiba, B., Segmuller, W., and T. Martin,
"Sieve Email Filtering: Extension for Notifications",
<a href="./rfc5435">RFC 5435</a>, January 2009.
[<a id="ref-SIEVE-RELATIONAL">SIEVE-RELATIONAL</a>]
Segmuller, W. and B. Leiba, "Sieve Email Filtering:
Relational Extension", <a href="./rfc5231">RFC 5231</a>, January 2008.
[<a id="ref-SIEVE-VACATION">SIEVE-VACATION</a>]
Showalter, T. and N. Freed, "Sieve Email Filtering:
Vacation Extension", <a href="./rfc5230">RFC 5230</a>, January 2008.
[<a id="ref-SIEVE-VARIABLES">SIEVE-VARIABLES</a>]
Homme, K., "Sieve Email Filtering: Variables Extension",
<a href="./rfc5229">RFC 5229</a>, January 2008.
[<a id="ref-SMTP-8BITMIME">SMTP-8BITMIME</a>]
Klensin, J., Freed, N., Rose, M., Stefferud, E., and D.
Crocker, "SMTP Service Extension for 8bit-MIMEtransport",
<a href="./rfc1652">RFC 1652</a>, July 1994.
[<a id="ref-SMTP-AUTH">SMTP-AUTH</a>]
Siemborski, R. and A. Melnikov, "SMTP Service Extension
for Authentication", <a href="./rfc4954">RFC 4954</a>, July 2007.
<span class="grey">Cridland, et al. Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
[<a id="ref-SMTP-BINARYMIME">SMTP-BINARYMIME</a>]
Vaudreuil, G., "SMTP Service Extensions for Transmission
of Large and Binary MIME Messages", <a href="./rfc3030">RFC 3030</a>,
December 2000.
[<a id="ref-SMTP-BURL">SMTP-BURL</a>]
Newman, C., "Message Submission BURL Extension", <a href="./rfc4468">RFC 4468</a>,
May 2006.
[<a id="ref-SMTP-DSN">SMTP-DSN</a>]
Moore, K., "Simple Mail Transfer Protocol (SMTP) Service
Extension for Delivery Status Notifications (DSNs)",
<a href="./rfc3461">RFC 3461</a>, January 2003.
[<a id="ref-SMTP-PIPELINING">SMTP-PIPELINING</a>]
Freed, N., "SMTP Service Extension for Command
Pipelining", STD 60, <a href="./rfc2920">RFC 2920</a>, September 2000.
[<a id="ref-SMTP-SIZE">SMTP-SIZE</a>]
Klensin, J., Freed, N., and K. Moore, "SMTP Service
Extension for Message Size Declaration", STD 10, <a href="./rfc1870">RFC 1870</a>,
November 1995.
[<a id="ref-SMTP-STATUSCODES">SMTP-STATUSCODES</a>]
Freed, N., "SMTP Service Extension for Returning Enhanced
Error Codes", <a href="./rfc2034">RFC 2034</a>, October 1996.
[<a id="ref-SMTP-TLS">SMTP-TLS</a>]
Hoffman, P., "SMTP Service Extension for Secure SMTP over
the Transport Layer Security", <a href="./rfc3207">RFC 3207</a>, February 2002.
[<a id="ref-SUBMIT">SUBMIT</a>] Gellens, R. and J. Klensin, "Message Submission for Mail",
<a href="./rfc4409">RFC 4409</a>, April 2006.
[<a id="ref-TLS">TLS</a>] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", <a href="./rfc5246">RFC 5246</a>, August 2008.
[<a id="ref-TLS-COMP">TLS-COMP</a>]
Hollenbeck, S., "Transport Layer Security Protocol
Compression Methods", <a href="./rfc3749">RFC 3749</a>, May 2004.
[<a id="ref-UNICODE-CASEMAP">UNICODE-CASEMAP</a>]
Crispin, M., "i;unicode-casemap - Simple Unicode Collation
Algorithm", <a href="./rfc5051">RFC 5051</a>, October 2007.
<span class="grey">Cridland, et al. Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h3"><a class="selflink" id="section-14.2" href="#section-14.2">14.2</a>. Informative References</span>
[<a id="ref-ESMTP">ESMTP</a>] Klensin, J., "Simple Mail Transfer Protocol", <a href="./rfc5321">RFC 5321</a>,
October 2008.
[<a id="ref-Err1807">Err1807</a>] RFC Errata, Errata ID 1807, <a href="./rfc5162">RFC 5162</a>,
<<a href="http://www.rfc-editor.org">http://www.rfc-editor.org</a>>.
[<a id="ref-Err1808">Err1808</a>] RFC Errata, Errata ID 1808, <a href="./rfc5162">RFC 5162</a>,
<<a href="http://www.rfc-editor.org">http://www.rfc-editor.org</a>>.
[<a id="ref-Err1809">Err1809</a>] RFC Errata, Errata ID 1809, <a href="./rfc5162">RFC 5162</a>,
<<a href="http://www.rfc-editor.org">http://www.rfc-editor.org</a>>.
[<a id="ref-Err1810">Err1810</a>] RFC Errata, Errata ID 1810, <a href="./rfc5162">RFC 5162</a>,
<<a href="http://www.rfc-editor.org">http://www.rfc-editor.org</a>>.
[<a id="ref-FINGER-HACK">FINGER-HACK</a>]
Gellens, R., "Simple New Mail Notification", <a href="./rfc4146">RFC 4146</a>,
August 2005.
[<a id="ref-IMAP-FILTERS">IMAP-FILTERS</a>]
Melnikov, A. and C. King, "IMAP4 Extension for Named
Searches (Filters)", <a href="./rfc5466">RFC 5466</a>, February 2009.
[<a id="ref-IMAP-SYNC-HOWTO">IMAP-SYNC-HOWTO</a>]
Melnikov, A., "Synchronization Operations for Disconnected
IMAP4 Clients", <a href="./rfc4549">RFC 4549</a>, June 2006.
[<a id="ref-LEMONADE-ARCH">LEMONADE-ARCH</a>]
Burger, E. and G. Parsons, "LEMONADE Architecture -
Supporting Open Mobile Alliance (OMA) Mobile Email (MEM)
Using Internet Mail", <a href="./rfc5442">RFC 5442</a>, March 2009.
[<a id="ref-LEMONADE-DEPLOYMENTS">LEMONADE-DEPLOYMENTS</a>]
Gellens, R., "Deployment Considerations for Lemonade-
Compliant Mobile Email", <a href="https://www.rfc-editor.org/bcp/bcp143">BCP 143</a>, <a href="./rfc5383">RFC 5383</a>, October 2008.
[<a id="ref-LEMONADE-NOTIFICATIONS">LEMONADE-NOTIFICATIONS</a>]
Gellens, R., Ed., "Lemonade Notifications Architecture",
<a href="./rfc5551">RFC 5551</a>, August 2009.
[<a id="ref-MANAGESIEVE">MANAGESIEVE</a>]
Melnikov, A. and T. Martin, "A Protocol for Remotely
Managing Sieve Scripts", Work in Progress, September 2008.
<span class="grey">Cridland, et al. Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
[<a id="ref-METADATA">METADATA</a>]
Daboo, C., "The IMAP METADATA Extension", <a href="./rfc5464">RFC 5464</a>,
February 2009.
[<a id="ref-OMA-EMN">OMA-EMN</a>] Open Mobile Alliance, "Open Mobile Alliance Email
Notification Version 1.0", OMA <a href="http://www.openmobilealliance.org/Technical/release_program/">http://</a>
<a href="http://www.openmobilealliance.org/Technical/release_program/">www.openmobilealliance.org/Technical/release_program/</a>
emn_v10.aspx, October 2007.
[<a id="ref-OMA-MEM-ARCH">OMA-MEM-ARCH</a>]
Open Mobile Alliance, "Mobile Email Architecture
Document", OMA (Work in Progress),
<a href="http://www.openmobilealliance.org/">http://www.openmobilealliance.org/</a>, October 2005.
[<a id="ref-OMA-MEM-REQ">OMA-MEM-REQ</a>]
Open Mobile Alliance, "Mobile Email Requirements
Document", OMA <a href="http://www.openmobilealliance.org/release_program/docs/RD/">http://www.openmobilealliance.org/</a>
<a href="http://www.openmobilealliance.org/release_program/docs/RD/">release_program/docs/RD/</a>
OMA-RD-MobileEmail-V1_0_20051018-C.pdf, Oct 2005.
[<a id="ref-RFC5068">RFC5068</a>] Hutzler, C., Crocker, D., Resnick, P., Allman, E., and T.
Finch, "Email Submission Operations: Access and
Accountability Requirements", <a href="https://www.rfc-editor.org/bcp/bcp134">BCP 134</a>, <a href="./rfc5068">RFC 5068</a>,
November 2007.
[<a id="ref-RFC5226">RFC5226</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
May 2008.
[<a id="ref-RFC5598">RFC5598</a>] Crocker, D., "Internet Mail Architecture", <a href="./rfc5598">RFC 5598</a>,
July 2009.
<span class="grey">Cridland, et al. Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Errata</span>
Errata ID: 1807 [<a href="#ref-Err1807" title="RFC 5162">Err1807</a>]
Status: Verified
Type: Technical
Reported By: Timo Sirainen
Date Reported: 2009-07-14
Verifier Name: Alexey Melnikov
Date Verified: 2009-07-18
<a href="#section-1">Section 1</a> says:
It should say:
Once a "CONDSTORE enabling command" is issued by the client, the
server MUST automatically include both UID and mod-sequence data in
all subsequent untagged FETCH responses (until the connection is
closed), whether they were caused by a regular STORE/UID STORE, a
STORE/UID STORE with UNCHANGEDSINCE modifier, or an external agent.
Note that this rule doesn't affect untagged FETCH responses caused by
a FETCH command that doesn't include UID and/or MODSEQ FETCH data
item, or UID FETCH without the MODSEQ FETCH data item.
Notes:
Rationale:
It's very difficult for clients to make use of unsolicited FETCH
responses without the UID field. This is made even worse by the text
that says "servers SHOULD NOT send UIDs for previously expunged
messages [in VANISHED replies]". Since it's not a MUST NOT, a
conversation with an RFC compliant server could be for example:
A1 NOOP
* 0 EXISTS
A1 OK
A2 NOOP
* 10 EXISTS
* VANISHED 1000:2000
* 3 FETCH (FLAGS (\Seen) MODSEQ (14749))
* 5 FETCH (FLAGS (\Seen) MODSEQ (14749))
* VANISHED 2000:3000
A2 OK NOOP Completed
The client couldn't do anything with the information from FETCH
replies, because it can't know what messages they refer to.
<span class="grey">Cridland, et al. Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Errata ID: 1808 [<a href="#ref-Err1808" title="RFC 5162">Err1808</a>]
Status: Verified
Type: Technical
Reported By: Timo Sirainen
Date Reported: 2009-07-14
Verifier Name: Alexey Melnikov
Date Verified: 2009-07-18
<a href="#section-3.4">Section 3.4</a> says:
If at least one message got expunged, the server MUST send
the updated per-mailbox modification
sequence using the HIGHESTMODSEQ response code (defined in
[CONDSTORE]) in the tagged OK response.
Example: C: A202 CLOSE
S: A202 OK [HIGHESTMODSEQ 20010715194045319] done
It should say:
The server MUST NOT send the updated per-mailbox modification
sequence using the HIGHESTMODSEQ response code (defined in
[CONDSTORE]) in the tagged OK response, as this might cause loss of
synchronization on the client.
Example: C: A202 CLOSE
S: A202 OK done
Notes:
Rationale:
The HIGHESTMODSEQ can't be used reliably unless server sends to client
all changes done by other clients. Even then it's difficult for both
clients and servers to implement this. For example:
C1: 2 STORE 1 +FLAGS.SILENT \Deleted
S1: * 1 FETCH (MODSEQ 1)
S1: 2 OK
C2: 1 STORE 2 +FLAGS.SILENT \Deleted
S1: * 2 FETCH (MODSEQ 2)
S2: 1 OK
C1: 3 CLOSE
S1: 3 [HIGHESTMODSEQ 3]
<span class="grey">Cridland, et al. Standards Track [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
The client probably thought that only message 1 was expunged, so it
doesn't register the second expunge. And it probably never will if it
uses QRESYNC to find out only about new expunges.
And even worse example would be if the second client had also removed
the \Deleted flag from message 1. Then the first client would have
registered wrong message to be expunged.
Errata ID: 1809 [<a href="#ref-Err1809" title="RFC 5162">Err1809</a>]
Status: Verified
Type: Technical
Reported By: Timo Sirainen
Date Reported: 2009-07-14
Verifier Name: Alexey Melnikov
Date Verified: 2009-07-18
<a href="#section-5">Section 5</a> says:
After completing a full synchronization, the client MUST also take
note of any unsolicited MODSEQ FETCH data items received from the
server. Whenever the client receives a tagged response to a command,
it calculates the highest value among all MODSEQ FETCH data items
received since the last tagged response. If this value is bigger
than the client's copy of the HIGHESTMODSEQ value, then the client
MUST use this value as its new HIGHESTMODSEQ value.
Note: It is not safe to update the client's copy of the HIGHESTMODSEQ
value with a MODSEQ FETCH data item value as soon as it is received
because servers are not required to send MODSEQ FETCH data items in
increasing modseqence order. This can lead to the client missing
some changes in case of connectivity loss.
It should say:
After completing a full synchronization, the client MUST also take
note of any unsolicited MODSEQ FETCH data items and HIGHESTMODSEQ
response codes received from the server. Whenever the client receives
a tagged response to a command, it checks the received unsolicited
responses to calculate the new HIGHESTMODSEQ value. If the
HIGHESTMODSEQ response code is received, the client MUST use it even
if it has seen higher mod-sequences. Otherwise, the client calculates
the highest value among all MODSEQ FETCH data items received since the
last tagged response. If this value is bigger than the client's copy
of the HIGHESTMODSEQ value, then the client MUST use this value as its
new HIGHESTMODSEQ value.
<span class="grey">Cridland, et al. Standards Track [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Example: C: A1 STORE 1:2 (UNCHANGEDSINCE 96) +FLAGS.SILENT \Seen
S: * 1 FETCH (UID 6 MODSEQ (103))
S: * 2 FETCH (UID 7 MODSEQ (101))
S: * OK [HIGHESTMODSEQ 99] VANISHED reply with
MODSEQ 100 is delayed
S: A1 OK [MODIFIED 3] done
C: A2 STORE 3 +FLAGS.SILENT \Seen
S: * 3 FETCH (UID 8 MODSEQ (104))
S: A2 OK [HIGHESTMODSEQ 99] Still delaying VANISHED
C: A3 NOOP
S: * VANISHED 8
S: A3 OK [HIGHESTMODSEQ 104] done
Note: It is not safe to update the client's copy of the HIGHESTMODSEQ
value with a MODSEQ FETCH data item value as soon as it is received
because servers are not required to send MODSEQ FETCH data items in
increasing modseqence order. Some commands may also delay EXPUNGE
(or VANISHED) replies with smaller mod-sequences. These can lead to
the client missing some changes in case of connectivity loss.
Notes:
Rationale:
Otherwise clients could lose changes in case of connectivity loss.
Errata ID: 1810 [<a href="#ref-Err1810" title="RFC 5162">Err1810</a>]
Status: Verified
Type: Technical
Reported By: Timo Sirainen
Date Reported: 2009-07-14
Verifier Name: Alexey Melnikov
Date Verified: 2009-07-18
<a href="#section-1">Section 1</a> says:
It should say:
Server implementing QRESYNC MUST send untagged events to client in a
way that client doesn't lose any changes in case of connectivity loss.
In particular this means that if server sends MODSEQ FETCH data items
while EXPUNGE (or VANISHED) replies with lower mod-sequences are being
delayed, the server MUST send HIGHESTMODSEQ response code with a lower
value than the EXPUNGE's mod-sequence. See example in <a href="#section-5">section 5</a>.
<span class="grey">Cridland, et al. Standards Track [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc5550">RFC 5550</a> Lemonade Profile August 2009</span>
Notes:
This is related to the other errata in <a href="#section-5">section 5</a>, which describes what
the client's behavior should be. This describes what the server's
behavior should be. Would have been nice to put them into the same
section, but that probably would require larger changes.
Authors' Addresses
Dave Cridland (editor)
Isode Limited
5 Castle Business Village
36 Station Road
Hampton, Middlesex TW12 2BX
UK
EMail: dave.cridland@isode.com
Alexey Melnikov (editor)
Isode Limited
5 Castle Business Village
36 Station Road
Hampton, Middlesex TW12 2BX
UK
EMail: Alexey.Melnikov@isode.com
Stephane H. Maes (editor)
Oracle
MS 4op634, 500 Oracle Parkway
Redwood Shores, CA 94539
USA
Phone: +1-203-300-7786
EMail: stephane.maes@oracle.com
Cridland, et al. Standards Track [Page 41]
</pre>
|