📄 rfc1343.ps
字号:
2456(program)X2808(to)X2908(run)X3061(to)X3161(test)X3320(such)X3521(a)X3589(condition.)X4026(The)X720 3488(precise)N1039(program)X1411(to)X1532(run)X1706(and)X1891(arguments)X2338(to)X2460(give)X2673(it)X2774(are)X2939(determined)X3420(as)X3547(speci\256ed)X3936(in)X4058(the)X720 3600(previous)N1081(section.)X1432(The)X1612(test)X1776(program)X2131(should)X2416(return)X2675(an)X2795(exit)X2969(code)X3180(of)X3289(zero)X3484(if)X3572(the)X3719(condition)X4112(is)X720 3712(true,)N918(and)X1081(a)X1148(non-zero)X1514(code)X1720(otherwise.)X3 f720 3936(Semantics)N1160(of)X1264(the)X1416("compose")X1898(\256eld)X1 f720 4160(On)N865(UNIX,)X1157(the)X1304(composing)X1755(program)X2110(is)X2203(expected)X2575(to)X2679(produce)X3018(a)X3090(data)X3280(stream)X3566(for)X3707(such)X3912(a)X3984(body)X720 4272(part)N920(as)X1050(its)X1191(standard)X1567(output.)X1910(The)X2109(program)X2484(will)X2683(be)X2823(executed)X3215(with)X3435(the)X3602(command)X4031(line)X720 4384(arguments)N1150(determined)X1613(as)X1723(speci\256ed)X2095(above.)X2403(The)X2583(data)X2774(returned)X3125(via)X3273(its)X3394(standard)X3750(output)X4026(will)X720 4496(be)N844(given)X1091(a)X1167(Content-Type)X1735(\256eld)X1939(that)X2117(has)X2278(no)X2407(supplementary)X3007(parameters.)X3510(For)X3675(example,)X4058(the)X720 4608(following)N1118(mailcap)X1448(entry:)X7 f1008 4832 0.4091(audio/basic;)AN1762 0.3913(/usr/local/bin/showaudio)AX3212(%t)X1066 4944(compose)N1530(=)X1646 0.3900(/usr/local/bin/recordaudio)AX1 f720 5168(would)N984(result)X1222(in)X1321(tagging)X1634(the)X1776(data)X1961(composed)X2375(by)X2495(the)X2637("recordaudio")X3199(program)X3549(as:)X7 f1008 5392 0.4062(Content-Type:)AN1820 0.4125(audio/basic)AX1 f720 5616(If)N834(this)X1023(is)X1137(unacceptable)X1691(--)X1805(for)X1968(example,)X2370(in)X2496(the)X2665(case)X2882(of)X3013(multipart)X3418(mail)X3641(a)X3735("boundary")X720 5728(parameter)N1169(is)X1296(required)X1680(--)X1807(then)X2036(the)X2217("compose")X2700(\256eld)X2934(cannot)X3254(be)X3408(used.)X3694(Instead,)X4058(the)X720 5840("composetyped")N1378(\256eld)X1573(should)X1853(be)X1968(used)X2168(in)X2267(the)X2409(mailcap)X2739(\256le.)X720 6160(Borenstein)N3853([Page)X4096(7])X8 p%%Page: 8 812 s 12 xH 0 xS 1 f720 400(RFC)N925(1343)X1841(Multimedia)X2315(Mail)X2521(Con\256guration)X3784(June)X3984(1992)X3 f720 688(Semantics)N1160(of)X1264(the)X1416("composetyped")X2127(\256eld)X1 f720 912(The)N916("composetyped")X1596(\256led)X1813(is)X1923(much)X2183(like)X2374(the)X2539("compose")X3006(\256eld,)X3248(except)X3547(that)X3739(it)X3840(names)X4133(a)X720 1024(composition)N1246(program)X1622(that)X1817(produces,)X2238(not)X2411(raw)X2605(data,)X2840(but)X3013(data)X3224(that)X3419(includes)X3790(a)X3883(MIME-)X720 1136(conformant)N1203(type)X1408(speci\256cation.)X1982(The)X2172(program)X2538(will)X2728(be)X2859(executed)X3242(with)X3453(the)X3611(command)X4031(line)X720 1248(arguments)N1148(determined)X1609(as)X1716(speci\256ed)X2085(above.)X2390(The)X2567(data)X2755(returned)X3103(via)X3248(its)X3365(standard)X3717(output)X3989(must)X720 1360(begin)N965(with)X1167(a)X1241(Content-Type)X1807(header,)X2119(followed)X2492(optionally)X2914(by)X3041(other)X3270(Content-*)X3687(headers,)X4037(and)X720 1472(then)N910(by)X1030(a)X1097(blank)X1335(line)X1504(and)X1667(the)X1809(data.)X2042(For)X2199(example,)X2574(the)X2716(following)X3114(mailcap)X3444(entry:)X7 f1008 1696 0.4000(multipart/mixed;)AN1994 0.3913(/usr/local/bin/showmulti)AX3444(%t)X3618(\\)X1124 1808 0.4091(%{boundary};)AN1878(\\)X1124 1920 0.4091(composetyped)AN1878(=)X1994 0.3913(/usr/local/bin/makemulti)AX1 f720 2144(would)N992(result)X1239(in)X1347(executing)X1755(the)X1906("makemulti")X2430(program,)X2813(which)X3081(would)X3354(be)X3478(expected)X3854(to)X3962(begin)X720 2256(its)N835(output)X1105(with)X1300(a)X1367(line)X1536(of)X1640(the)X1782(form:)X7 f1008 2480 0.4062(Content-Type:)AN1820 0.4000(multipart/mixed;)AX2806 0.4018(boundary=foobar)AX1 f720 2704(Note)N951(that)X1140(a)X1227(composition)X1747(program)X2117(need)X2343(not)X2510(encode)X2828(binary)X3119(data)X3325(in)X3445(base64)X3757(or)X3882(quoted-)X720 2816(printable.)N1112(It)X1196(remains)X1526(the)X1669(responsibility)X2218(of)X2323(the)X2466(software)X2822(calling)X3109(the)X3251(composition)X3751(program)X4101(to)X720 2928(encode)N1033(such)X1249(data)X1450(as)X1570(necessary.)X2032(However,)X2448(if)X2547(a)X2630(composing)X3093(program)X3460(does)X3677(encode)X3991(data,)X720 3040(which)N981(is)X1071(not)X1220(encouraged,)X1714(it)X1794(should)X2076(announce)X2471(that)X2641(fact)X2811(using)X3044(a)X3112 0.1276(Content-Transfer-Encoding)AX720 3152(header)N1021(in)X1140(the)X1303(standard)X1674(manner)X2008(de\256ned)X2336(by)X2477(MIME.)X2831(Because)X3197(such)X3418(encodings)X3853(must)X4085(be)X720 3264(announced)N1163(by)X1285(such)X1487(a)X1556(header,)X1863(they)X2055(are)X2199(an)X2316(option)X2588(only)X2785(for)X2923(composetyped)X3504(programs,)X3916(not)X4064(for)X720 3376(compose)N1086(programs.)X3 f600 3600(Appendix)N1023(B:)X1143(Sample)X1471(Mailcap)X1832(File)X1 f720 3824(The)N903(following)X1311(is)X1409(an)X1534(example)X1895(of)X2009(a)X2086(mailcap)X2426(\256le)X2583(for)X2729(UNIX)X3002(that)X3181(demonstrates)X3723(most)X3944(of)X4058(the)X720 3936(syntax)N995(above.)X1345(It)X1428(contains)X1773(explanatory)X2252(comments)X2672(where)X2931(necessary.)X7 f10 s1008 4160(#)N1104(Mailcap)X1488(file)X1728(for)X1920(Bellcore)X2352(lab)X2544(214.)X1008 4256(#)N1008 4352(#)N1104(The)X1296(next)X1536(line)X1776(sends)X2064("richtext")X2592(to)X2736(the)X2928(richtext)X3360(program)X1008 4448(text/richtext;)N1728(richtext)X2160(%s;)X2352(copiousoutput)X1008 4544(#)N1008 4640(#)N1104(Next,)X1392(basic)X1680(u-law)X1968(audio)X1008 4736(audio/*;)N1440(showaudio;)X1968(test=/usr/local/bin/hasaudio)X1008 4832(#)N1008 4928(#)N1104(Next,)X1392(use)X1584(the)X1776(xview)X2064(program)X2448(to)X2592(handle)X2928(several)X3312(image)X3600(formats)X1008 5024(image/*;)N1440(xview)X1728(%s;)X1920(test=/usr/local/bin/RunningX)X1008 5120(#)N1008 5216(#)N1104(The)X1296(ATOMICMAIL)X1824(interpreter)X2400(uses)X2640(curses,)X3024(so)X3168(needs)X3456(a)X3552(terminal)X1008 5312(application/atomicmail;)N2160(/usr/local/bin/atomicmail)X3408(%s;)X3600(\\)X1200 5408(needsterminal)N1008 5504(#)N1 f12 s720 6144(Borenstein)N3853([Page)X4096(8])X9 p%%Page: 9 912 s 12 xH 0 xS 1 f10 s7 f1 f12 s720 384(RFC)N925(1343)X1841(Multimedia)X2315(Mail)X2521(Con\256guration)X3784(June)X3984(1992)X7 f10 s1008 672(#)N1104(The)X1296(next)X1536(line)X1776(handles)X2160(Andrew)X2496(format,)X1008 768(#)N1200(if)X1344(ez)X1488(and)X1680(ezview)X2016(are)X2208(installed)X1008 864(x-be2;)N1344(/usr/andrew/bin/ezview)X2448(%s;)X2640(\\)X1152 960(print=/usr/andrew/bin/ezprint)N2592(%s)X2736(;)X2832(\\)X1152 1056(compose=/usr/andrew/bin/ez)N2448(-d)X2592(%s)X2736(\\;)X1152 1152(edit=/usr/andrew/bin/ez)N2304(-d)X2448(%s;)X2640(\\;)X1152 1248(copiousoutput)N1008 1344(#)N1008 1440(#)N1104(The)X1296(next)X1536(silly)X1824(example)X2208(demonstrates)X2832(the)X3024(use)X3216(of)X3360(quoting)X1008 1536(application/*;)N1728(echo)X1968("This)X2256(is)X2400(\\\\"%t\\\\")X2832(but)X3024(\\)X1152 1632(is)N1296(50)X1440(\\%)X1584(Greek)X1872(to)X2016(me")X2208(\\;)X2352(cat)X2544(%s;)X2736(copiousoutput)X3 f12 s600 1920(Appendix)N1023(C:)X1172(A)X1265(Note)X1481(on)X1606(Format)X1940(Translation)X1 f720 2144(It)N818(has)X985(been)X1206(suggested)X1625(that)X1810(another)X2139(function)X2500(of)X2620(a)X2703 0.2841(mailcap-like)AX3226(mechanism)X3705(might)X3970(be)X4101(to)X720 2256(specify)N1024(the)X1168(locally)X1457(available)X1832(tools)X2045(for)X2183(document)X2589(format)X2872(translation.)X3376(For)X3534(example,)X3910(the)X4053(\256le)X720 2368(could)N984(designate)X1398(a)X1491(program)X1867(for)X2029(translating)X2486(from)X2723(format)X3031(A)X3151(to)X3277(format)X3585(B,)X3724(another)X4064(for)X720 2480(translating)N1156(from)X1372(format)X1658(B)X1751(to)X1854(format)X2139(C,)X2255(and)X2422(\256nally)X2696(a)X2767(mechanism)X3234(for)X3374(displaying)X3803(format)X4088(C.)X720 2592(Although)N1118(this)X1292(mechanism)X1766(would)X2041(be)X2167(somewhat)X2592(richer)X2852(than)X3053(the)X3206(current)X3514(mailcap)X3855(\256le,)X4037(and)X720 2704(might)N999(conceivably)X1519(also)X1728(have)X1964(utility)X2249(at)X2373(the)X2545(message)X2925(transport)X3321(layer,)X3592(it)X3700(signi\256cantly)X720 2816(complicates)N1209(the)X1355(processing)X1794(effort)X2036(necessary)X2438(for)X2578(a)X2649(user)X2838(agent)X3076(that)X3250(simply)X3541(wants)X3794(to)X3898(display)X720 2928(a)N794(message)X1151(in)X1257(format)X1545(A.)X1693(Using)X1953(the)X2102(current,)X2430(simpler,)X2774(mailcap)X3111(scheme,)X3454(a)X3527(single)X3787(line)X3962(could)X720 3040(tell)N873(such)X1078(a)X1150(user)X1339(agent)X1577(to)X1681(display)X1988(A-format)X2375(mail)X2576(using)X2813(a)X2885(pipeline)X3225(of)X3334(translators)X3764(and)X3932(the)X4080(C-)X720 3152(format)N1005(viewer.)X1343(This)X1542(memo)X1811(resists)X2079(the)X2225(temptation)X2666(to)X2768(complicate)X3219(the)X3364(necessary)X3765(processing)X720 3264(for)N857(a)X925(user)X1110(agent)X1344(to)X1444(accomplish)X1908(this)X2072(task.)X2300(Using)X2554(the)X2697(mailcap)X3028(format)X3310(de\256ned)X3619(here,)X3835(it)X3915(is)X4005(only)X720 3376(necessary)N1129(to)X1239(\256nd)X1423(the)X1576(correct)X1879(single)X2144(line)X2324(in)X2434(a)X2512(mailcap)X2852(\256le,)X3033(and)X3206(to)X3315(execute)X3644(the)X3796(command)X720 3488(given)N958(in)X1057(that)X1226(line.)X3 f600 3712(References)N1 f720 3936([RFC)N962(822])X1191(Crocker,)X1554(D.,)X1724("Standard)X2134(for)X2275(the)X2446(format)X2756(of)X2889(ARPA)X3173(Internet)X3551(text)X3750(messages",)X720 4048(RFC)N949(822,)X1165(UDEL,)X1469(August,)X1794(1982.)X720 4272([RFC)N993(1341])X1277(Borenstein,)X1778(N.,)X1955(and)X2155(N.)X2309(Freed,)X2637("MIME)X3022(\(Multipurpose)X3633(Internet)X3994(Mail)X720 4384(Extensions\):)N1230(Mechanisms)X1745(for)X1886(Specifying)X2332(and)X2500(Describing)X2951(the)X3098(Format)X3404(of)X3512(Internet)X3840(Message)X720 4496(Bodies",)N1074(RFC)X1279(1341,)X1519(Bellcore,)X1894(June,)X2118(1992.)X3 f600 4720(Acknowledgements)N1 f720 4944(The)N906(author)X1188(wishes)X1485(to)X1596(thank)X1846(Malcolm)X2230(Bjorn)X2486(Gillies,)X2804(Dan)X3001(Heller,)X3303(Olle)X3506(Jaernefors,)X3962(Keith)X720 5056(Moore,)N1055(Luc)X1260(Rooijakkers,)X1804(and)X1998(the)X2171(other)X2423(members)X2830(of)X2964(the)X3136(IETF)X3393(task)X3602(force)X3854(on)X4004(mail)X720 5168(extensions)N1211(for)X1408(their)X1670(comments)X2152(on)X2334(earlier)X2667(versions)X3073(of)X3239(this)X3464(draft.)X3828(If)X3978(other)X720 5280(acknowledgements)N1482(were)X1693(neglected,)X2111(please)X2376(let)X2497(me)X2639(know,)X2900(as)X3004(it)X3082(was)X3255(surely)X3514(accidental.)X720 6160(Borenstein)N3853([Page)X4096(9])X10 p%%Page: 10 1012 s 12 xH 0 xS 1 f720 400(RFC)N925(1343)X1841(Multimedia)X2315(Mail)X2521(Con\256guration)X3784(June)X3984(1992)X3 f600 688(Security)N966(Considerations)X1 f720 912(Security)N1073(issues)X1334(are)X1484(not)X1664(discussed)X2065(in)X2173(this)X2345(memo.)X2691(However,)X3100(the)X3251(use)X3412(of)X3549(the)X3700(mechanisms)X720 1024(described)N1123(in)X1232(this)X1405(memo)X1679(can)X1846(make)X2088(it)X2175(easier)X2433(for)X2578(implementations)X3254(to)X3362(slip)X3534(into)X3717(the)X3892(kind)X4096(of)X720 1136(security)N1084(problems)X1502(discussed)X1930(in)X2065(the)X2267(MIME)X2588(document.)X3076(Implementors)X3671(and)X3870(mailcap)X720 1248(administrators)N1299(should)X1583(be)X1702(aware)X1960(of)X2067(these)X2292(security)X2624(considerations,)X3231(and)X3397(in)X3499(particular)X3920(should)X720 1360(exercise)N1071(caution)X1390(in)X1500(the)X1653(choice)X1940(of)X2055(programs)X2453(to)X2563(be)X2689(listed)X2933(in)X3043(a)X3122(mailcap)X3464(\256le)X3623(for)X3795(automatic)X720 1472(execution.)N3 f600 1696(Author's)N991(Address)X1 f720 1920(Nathaniel)N1119(S.)X1220(Borenstein)X720 2032(MRE)N952(2D-296,)X1293(Bellcore)X720 2144(445)N888(South)X1136(St.)X720 2256(Morristown,)N1221(NJ)X1351(07962-1910)X720 2480(Email:)N1002(nsb@bellcore.com)X720 2592(Phone:)N1011(+1)X1137(201)X1305(829)X1473(4270)X720 2704(Fax:)N939(+1)X1065(201)X1233(829)X1401(7019)X720 6160(Borenstein)N3805([Page)X4048(10])X10 p%%Trailerxtxs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -