@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/email.policy.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!email.policy`: Policy Objects"
22
- msgstr ":mod:`email.policy`: 정책 객체"
21
+ msgstr ":mod:`! email.policy`: 정책 객체"
23
22
24
23
#: ../../library/email.policy.rst:12
25
24
msgid "**Source code:** :source:`Lib/email/policy.py`"
@@ -171,6 +170,19 @@ msgid ""
171
170
">>> p.stdin.close()\n"
172
171
">>> rc = p.wait()"
173
172
msgstr ""
173
+ ">>> from email import message_from_binary_file\n"
174
+ ">>> from email.generator import BytesGenerator\n"
175
+ ">>> from email import policy\n"
176
+ ">>> from subprocess import Popen, PIPE\n"
177
+ ">>> with open('mymsg.txt', 'rb') as f:\n"
178
+ "... msg = message_from_binary_file(f, policy=policy.default)\n"
179
+ "...\n"
180
+ ">>> p = Popen(['sendmail', msg['To'].addresses[0]], stdin=PIPE)\n"
181
+ ">>> g = BytesGenerator(p.stdin, "
182
+ "policy=msg.policy.clone(linesep='\\ r\\ n'))\n"
183
+ ">>> g.flatten(msg)\n"
184
+ ">>> p.stdin.close()\n"
185
+ ">>> rc = p.wait()"
174
186
175
187
#: ../../library/email.policy.rst:114
176
188
msgid ""
@@ -203,6 +215,11 @@ msgid ""
203
215
"f.write(msg.as_bytes(policy=msg.policy.clone(linesep=os.linesep)))\n"
204
216
"17"
205
217
msgstr ""
218
+ ">>> import os\n"
219
+ ">>> with open('converted.txt', 'wb') as f:\n"
220
+ "... "
221
+ "f.write(msg.as_bytes(policy=msg.policy.clone(linesep=os.linesep)))\n"
222
+ "17"
206
223
207
224
#: ../../library/email.policy.rst:130
208
225
msgid ""
@@ -217,6 +234,9 @@ msgid ""
217
234
">>> compat_strict = policy.compat32.clone(raise_on_defect=True)\n"
218
235
">>> compat_strict_SMTP = compat_SMTP + compat_strict"
219
236
msgstr ""
237
+ ">>> compat_SMTP = policy.compat32.clone(linesep='\\ r\\ n')\n"
238
+ ">>> compat_strict = policy.compat32.clone(raise_on_defect=True)\n"
239
+ ">>> compat_strict_SMTP = compat_SMTP + compat_strict"
220
240
221
241
#: ../../library/email.policy.rst:138
222
242
msgid ""
@@ -235,6 +255,14 @@ msgid ""
235
255
">>> apolicy.max_line_length\n"
236
256
"100"
237
257
msgstr ""
258
+ ">>> policy100 = policy.compat32.clone(max_line_length=100)\n"
259
+ ">>> policy80 = policy.compat32.clone(max_line_length=80)\n"
260
+ ">>> apolicy = policy100 + policy80\n"
261
+ ">>> apolicy.max_line_length\n"
262
+ "80\n"
263
+ ">>> apolicy = policy80 + policy100\n"
264
+ ">>> apolicy.max_line_length\n"
265
+ "100"
238
266
239
267
#: ../../library/email.policy.rst:153
240
268
msgid ""
@@ -397,14 +425,13 @@ msgstr ""
397
425
"의해 호출되는 용도가 아닙니다. 사용자 정의 정책은 이 모든 메서드를 구현해야 합니다."
398
426
399
427
#: ../../library/email.policy.rst:268
400
- #, fuzzy
401
428
msgid ""
402
429
"Handle a *defect* found on *obj*. When the email package calls this "
403
430
"method, *defect* will always be a subclass of "
404
431
":class:`~email.errors.MessageDefect`."
405
432
msgstr ""
406
433
"*obj*\\ 에서 찾은 *defect*\\ 를 처리합니다. email 패키지가 이 메서드를 호출할 때, *defect*\\ 는 항상 "
407
- ":class:`~email.errors.Defect `\\ 의 서브 클래스입니다."
434
+ ":class:`~email.errors.MessageDefect `\\ 의 서브 클래스입니다."
408
435
409
436
#: ../../library/email.policy.rst:272
410
437
msgid ""
@@ -417,13 +444,12 @@ msgstr ""
417
444
" 전달됩니다."
418
445
419
446
#: ../../library/email.policy.rst:279
420
- #, fuzzy
421
447
msgid ""
422
448
"Register a *defect* on *obj*. In the email package, *defect* will always"
423
449
" be a subclass of :class:`~email.errors.MessageDefect`."
424
450
msgstr ""
425
451
"*obj*\\ 에 *defect*\\ 를 등록합니다. email 패키지에서, *defect*\\ 는 항상 "
426
- ":class:`~email.errors.Defect `\\ 의 서브 클래스입니다."
452
+ ":class:`~email.errors.MessageDefect `\\ 의 서브 클래스입니다."
427
453
428
454
#: ../../library/email.policy.rst:282
429
455
msgid ""
@@ -881,7 +907,7 @@ msgstr ""
881
907
882
908
#: ../../library/email.policy.rst:571
883
909
msgid "somepolicy + policy.strict"
884
- msgstr ""
910
+ msgstr "somepolicy + policy.strict "
885
911
886
912
#: ../../library/email.policy.rst:574
887
913
msgid ""
@@ -1014,6 +1040,3 @@ msgid ""
1014
1040
"package>`."
1015
1041
msgstr "원래 3.3에 :term:`잠정적 기능 <provisional package>`\\ 으로 추가되었습니다."
1016
1042
1017
- #~ msgid "The *mangle_from_* parameter."
1018
- #~ msgstr "*mangle_from_* 매개 변수."
1019
-
0 commit comments