-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathmailbox.po
More file actions
1060 lines (753 loc) · 118 KB
/
Copy pathmailbox.po
File metadata and controls
1060 lines (753 loc) · 118 KB
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
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
# Danial Behzadi <dani.behzi@ubuntu.com>, 2025
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-16 12:56+0000\n"
"PO-Revision-Date: 2026-09-13 09:15+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid ":mod:`!mailbox` --- Manipulate mailboxes in various formats"
msgstr ":mod:`!mailbox` --- دستکاری صندوقهای پستی در قالبهای گوناگون"
msgid "**Source code:** :source:`Lib/mailbox.py`"
msgstr "**کد منبع:** :source:`Lib/mailbox.py`"
msgid "This module defines two classes, :class:`Mailbox` and :class:`Message`, for accessing and manipulating on-disk mailboxes and the messages they contain. :class:`!Mailbox` offers a dictionary-like mapping from keys to messages. :class:`!Message` extends the :mod:`email.message` module's :class:`~email.message.Message` class with format-specific state and behavior. Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF."
msgstr "این ماژول دو کلاس :class:`Mailbox` و :class:`Message` را برای دسترسی و دستکاری صندوقهای پستی روی دیسک و پیامهای موجود در آنها تعریف میکند. :class:`!Mailbox` نگاشتی شبیه دیکشنری از کلیدها به پیامها ارائه میدهد. :class:`!Message` کلاس :class:`~email.message.Message` در ماژول :mod:`email.message` را با وضعیت و رفتار خاص قالب گسترش میدهد. قالبهای پشتیبانیشده صندوق پستی شامل Maildir، mbox، MH، Babyl و MMDF هستند."
msgid "Module :mod:`email`"
msgstr "ماژول :mod:`email`"
msgid "Represent and manipulate messages."
msgstr "بازنمایی و دستکاری پیامها."
msgid ":class:`!Mailbox` objects"
msgstr "اشیاء :class:`!Mailbox`"
msgid "A mailbox, which may be inspected and modified."
msgstr "یک صندوق پستی (mailbox)، که میتوان آن را بازرسی و تغییر داد."
msgid "The :class:`!Mailbox` class defines an interface and is not intended to be instantiated. Instead, format-specific subclasses should inherit from :class:`!Mailbox` and your code should instantiate a particular subclass."
msgstr "کلاس :class:`!Mailbox` یک رابط را تعریف میکند و برای نمونهسازی در نظر گرفته نشده است. در عوض، زیرکلاسهای مختص قالب باید از :class:`!Mailbox` ارثبری کنند و کد شما باید یک زیرکلاس مشخص را نمونهسازی کند."
msgid "The :class:`!Mailbox` interface is dictionary-like, with small keys corresponding to messages. Keys are issued by the :class:`!Mailbox` instance with which they will be used and are only meaningful to that :class:`!Mailbox` instance. A key continues to identify a message even if the corresponding message is modified, such as by replacing it with another message."
msgstr "رابط :class:`!Mailbox` مانند یک دیکشنری است و کلیدهای کوچکی دارد که به پیامها مربوط میشوند. کلیدها توسط نمونهی :class:`!Mailbox` تولید میشوند، همان نمونهای که کلیدها با آن استفاده خواهند شد، و فقط برای همان نمونهی :class:`!Mailbox` معنادار هستند. یک کلید حتی اگر پیام مربوطه تغییر کند، مثلاً با جایگزین شدن آن با پیامی دیگر، همچنان یک پیام را شناسایی میکند."
msgid "Messages may be added to a :class:`!Mailbox` instance using the set-like method :meth:`add` and removed using a ``del`` statement or the set-like methods :meth:`remove` and :meth:`discard`."
msgstr "میتوان پیامها را با استفاده از متد مشابه مجموعه (set-like) :meth:`add` به یک نمونه :class:`!Mailbox` افزود و با استفاده از دستور ``del`` یا متدهای مشابه مجموعه (set-like) :meth:`remove` و :meth:`discard` آنها را حذف کرد."
msgid ":class:`!Mailbox` interface semantics differ from dictionary semantics in some noteworthy ways. Each time a message is requested, a new representation (typically a :class:`Message` instance) is generated based upon the current state of the mailbox. Similarly, when a message is added to a :class:`!Mailbox` instance, the provided message representation's contents are copied. In neither case is a reference to the message representation kept by the :class:`!Mailbox` instance."
msgstr "معناشناسی رابط :class:`!Mailbox` در برخی موارد قابلتوجه با معناشناسی دیکشنری تفاوت دارد. هر بار که پیامی درخواست میشود، بازنمایی جدیدی (معمولاً یک نمونه :class:`Message`) بر اساس وضعیت فعلی صندوق پستی تولید میشود. بهطور مشابه، هنگامی که پیامی به یک نمونه :class:`!Mailbox` اضافه میشود، محتوای بازنمایی پیام ارائهشده کپی میشود. در هیچیک از این دو حالت، مرجعی به بازنمایی پیام توسط نمونه :class:`!Mailbox` نگهداری نمیشود."
msgid "The default :class:`!Mailbox` :term:`iterator` iterates over message representations, not keys as the default :class:`dictionary <dict>` iterator does. Moreover, modification of a mailbox during iteration is safe and well-defined. Messages added to the mailbox after an iterator is created will not be seen by the iterator. Messages removed from the mailbox before the iterator yields them will be silently skipped, though using a key from an iterator may result in a :exc:`KeyError` exception if the corresponding message is subsequently removed."
msgstr ":term:`پیمایشگر <iterator>` پیشفرض :class:`!Mailbox` بهجای کلیدها، روی بازنماییهای پیام تکرار میکند؛ برخلاف پیمایشگر پیشفرض :class:`دیکشنری <dict>` که روی کلیدها تکرار میکند. علاوه بر این، تغییر صندوق پستی در حین تکرار ایمن و خوشتعریف است. پیامهایی که پس از ایجاد یک پیمایشگر به صندوق پستی افزوده شوند، توسط پیمایشگر دیده نخواهند شد. پیامهایی که پیش از آنکه پیمایشگر آنها را بازگشت دهد، از صندوق پستی حذف شوند، بیسر و صدا رد میشوند؛ هرچند استفاده از کلیدی از پیمایشگر ممکن است در صورتی که پیام متناظر پس از آن حذف شود، به استثنای :exc:`KeyError` منجر شود."
msgid "Be very cautious when modifying mailboxes that might be simultaneously changed by some other process. The safest mailbox format to use for such tasks is :class:`Maildir`; try to avoid using single-file formats such as :class:`mbox` for concurrent writing. If you're modifying a mailbox, you *must* lock it by calling the :meth:`lock` and :meth:`unlock` methods *before* reading any messages in the file or making any changes by adding or deleting a message. Failing to lock the mailbox runs the risk of losing messages or corrupting the entire mailbox."
msgstr "هنگام تغییر صندوقهای پستی که ممکن است همزمان توسط فرایند دیگری تغییر کنند، بسیار محتاط باشید. امنترین قالب صندوق پستی برای استفاده در چنین وظایفی :class:`Maildir` است؛ سعی کنید برای نوشتن همزمان از قالبهای تکپروندهای مانند :class:`mbox` اجتناب کنید. اگر در حال تغییر یک صندوق پستی هستید، *باید* *پیش از* خواندن هر پیامی در پرونده یا ایجاد هرگونه تغییر از طریق افزودن یا حذف یک پیام، آن را با فراخوانی متدهای :meth:`lock` و :meth:`unlock` قفل کنید. عدم قفل کردن صندوق پستی خطر از دست رفتن پیامها یا خراب شدن کل صندوق پستی را به همراه دارد."
msgid ":class:`!Mailbox` instances have the following methods:"
msgstr "نمونههای :class:`!Mailbox` متدهای زیر را دارند:"
msgid "Add *message* to the mailbox and return the key that has been assigned to it."
msgstr "*message* را به صندوق پستی اضافه میکند و کلیدی را که به آن اختصاص داده شده است برمیگرداند."
msgid "Parameter *message* may be a :class:`Message` instance, an :class:`email.message.Message` instance, a string, a byte string, or a file-like object (which should be open in binary mode). If *message* is an instance of the appropriate format-specific :class:`Message` subclass (e.g., if it's an :class:`mboxMessage` instance and this is an :class:`mbox` instance), its format-specific information is used. Otherwise, reasonable defaults for format-specific information are used."
msgstr "پارامتر *message* میتواند نمونهای از :class:`Message`، نمونهای از :class:`email.message.Message`، یک رشته، یک رشتهی بایتی، یا یک شیء شبهپرونده (که باید در حالت دودویی باز باشد) باشد. اگر *message* نمونهای از زیرکلاس :class:`Message` مناسب و مختص قالب باشد (مثلاً اگر نمونهای از :class:`mboxMessage` باشد و این نمونهای از :class:`mbox` باشد)، از اطلاعات مختص قالب آن استفاده میشود. در غیر این صورت، از پیشفرضهای معقول برای اطلاعات مختص قالب استفاده میشود."
msgid "Support for binary input was added."
msgstr "پشتیبانی از ورودی دودویی افزوده شد."
msgid "Delete the message corresponding to *key* from the mailbox."
msgstr "پیام متناظر با *key* را از صندوق پستی حذف میکند."
msgid "If no such message exists, a :exc:`KeyError` exception is raised if the method was called as :meth:`remove` or :meth:`__delitem__` but no exception is raised if the method was called as :meth:`discard`. The behavior of :meth:`discard` may be preferred if the underlying mailbox format supports concurrent modification by other processes."
msgstr "اگر چنین پیامی وجود نداشته باشد، در صورتی که متد بهصورت :meth:`remove` یا :meth:`__delitem__` فراخوانی شده باشد، استثنای :exc:`KeyError` پرتاب میشود، اما اگر متد بهصورت :meth:`discard` فراخوانی شده باشد، هیچ استثنایی پرتاب نمیشود. اگر قالب صندوق پستی زیرین از تغییر همزمان توسط سایر فرآیندها پشتیبانی کند، ممکن است رفتار :meth:`discard` ترجیح داده شود."
msgid "Replace the message corresponding to *key* with *message*. Raise a :exc:`KeyError` exception if no message already corresponds to *key*."
msgstr "پیام متناظر با *key* را با *message* جایگزین میکند. اگر هیچ پیامی از قبل متناظر با *key* وجود نداشته باشد، استثنای :exc:`KeyError` پرتاب میکند."
msgid "As with :meth:`add`, parameter *message* may be a :class:`Message` instance, an :class:`email.message.Message` instance, a string, a byte string, or a file-like object (which should be open in binary mode). If *message* is an instance of the appropriate format-specific :class:`Message` subclass (e.g., if it's an :class:`mboxMessage` instance and this is an :class:`mbox` instance), its format-specific information is used. Otherwise, the format-specific information of the message that currently corresponds to *key* is left unchanged."
msgstr "مانند :meth:`add`، پارامتر *message* میتواند نمونهای از :class:`Message`، نمونهای از :class:`email.message.Message`، یک رشته، یک رشته بایت، یا یک شیء شبهپرونده (که باید در حالت دودویی باز شده باشد) باشد. اگر *message* نمونهای از زیرکلاس مناسب و مخصوص قالبِ :class:`Message` باشد (برای مثال، اگر یک نمونه از :class:`mboxMessage` باشد و این یک نمونه از :class:`mbox` باشد)، اطلاعات مخصوص قالب آن استفاده میشود. در غیر این صورت، اطلاعات مخصوص قالب پیامی که در حال حاضر متناظر با *key* است، بدون تغییر باقی میماند."
msgid "Return an :term:`iterator` over all keys"
msgstr "یک :term:`iterator` روی همه کلیدها برمیگرداند"
msgid "The same as :meth:`iterkeys`, except that a :class:`list` is returned rather than an :term:`iterator`"
msgstr "همانند :meth:`iterkeys`، با این تفاوت که بهجای یک :term:`iterator`، یک :class:`list` برگردانده میشود"
msgid "Return an :term:`iterator` over representations of all messages. The messages are represented as instances of the appropriate format-specific :class:`Message` subclass unless a custom message factory was specified when the :class:`!Mailbox` instance was initialized."
msgstr "یک :term:`iterator` بر روی بازنماییهای همه پیامها برمیگرداند. پیامها بهصورت نمونههایی از زیرکلاس :class:`Message` مناسب و مختص قالب بازنمایی میشوند، مگر اینکه هنگام مقداردهی اولیهی نمونهی :class:`!Mailbox`، یک کارخانهی پیام سفارشی تعیین شده باشد."
msgid "The behavior of :meth:`__iter__` is unlike that of dictionaries, which iterate over keys."
msgstr "رفتار :meth:`__iter__` برخلاف دیکشنریها است، که بر کلیدها تکرار میکنند."
msgid "The same as :meth:`itervalues`, except that a :class:`list` is returned rather than an :term:`iterator`"
msgstr "همانند :meth:`itervalues`، با این تفاوت که یک :class:`list` بهجای یک :term:`iterator` برگردانده میشود"
msgid "Return an :term:`iterator` over (*key*, *message*) pairs, where *key* is a key and *message* is a message representation. The messages are represented as instances of the appropriate format-specific :class:`Message` subclass unless a custom message factory was specified when the :class:`!Mailbox` instance was initialized."
msgstr "یک :term:`iterator` روی جفتهای (*key*، *message*) برمیگرداند، که در آن *key* یک کلید و *message* یک بازنمایی پیام است. پیامها بهصورت نمونههایی از زیرکلاس :class:`Message` که مناسب و مختص قالب است بازنمایی میشوند، مگر آنکه یک کارخانه پیام سفارشی هنگام مقداردهی اولیه نمونه :class:`!Mailbox` تعیین شده باشد."
msgid "The same as :meth:`iteritems`, except that a :class:`list` of pairs is returned rather than an :term:`iterator` of pairs."
msgstr "مشابه :meth:`iteritems`، با این تفاوت که به جای یک :term:`iterator` از جفتها، یک :class:`list` از جفتها بازگردانده میشود."
msgid "Return a representation of the message corresponding to *key*. If no such message exists, *default* is returned if the method was called as :meth:`get` and a :exc:`KeyError` exception is raised if the method was called as :meth:`!__getitem__`. The message is represented as an instance of the appropriate format-specific :class:`Message` subclass unless a custom message factory was specified when the :class:`!Mailbox` instance was initialized."
msgstr "بازنمایی پیام متناظر با *key* را برمیگرداند. اگر چنین پیامی وجود نداشته باشد، در صورتی که متد بهصورت :meth:`get` فراخوانی شده باشد، *default* برگردانده میشود و در صورتی که متد بهصورت :meth:`!__getitem__` فراخوانی شده باشد، استثنای :exc:`KeyError` پرتاب میشود. پیام بهصورت نمونهای از زیرکلاس :class:`Message` مناسب و مختص قالب بازنمایی میشود، مگر اینکه یک کارخانه پیام سفارشی هنگام مقداردهی اولیه نمونه :class:`!Mailbox` تعیین شده باشد."
msgid "Return a representation of the message corresponding to *key* as an instance of the appropriate format-specific :class:`Message` subclass, or raise a :exc:`KeyError` exception if no such message exists."
msgstr "بازنمایی پیام متناظر با *key* را بهعنوان نمونهای از زیرکلاس :class:`Message` مناسب و خاصِ قالب برمیگرداند، یا اگر چنین پیامی وجود نداشته باشد، استثنای :exc:`KeyError` را پرتاب میکند."
msgid "Return a byte representation of the message corresponding to *key*, or raise a :exc:`KeyError` exception if no such message exists."
msgstr "نمایش بایتی پیام متناظر با *key* را برمیگرداند، یا اگر چنین پیامی وجود نداشته باشد، استثنای :exc:`KeyError` را پرتاب میکند."
msgid "Return a string representation of the message corresponding to *key*, or raise a :exc:`KeyError` exception if no such message exists. The message is processed through :class:`email.message.Message` to convert it to a 7bit clean representation."
msgstr "نمایش رشتهای پیام مربوط به *key* را بازمیگرداند، یا اگر چنین پیامی وجود نداشته باشد، استثنای :exc:`KeyError` را پرتاب میکند. پیام از طریق :class:`email.message.Message` پردازش میشود تا به یک نمایش پاک ۷ بیتی تبدیل شود."
msgid "Return a :term:`file-like <file-like object>` representation of the message corresponding to *key*, or raise a :exc:`KeyError` exception if no such message exists. The file-like object behaves as if open in binary mode. This file should be closed once it is no longer needed."
msgstr "یک نمایش :term:`شبهپرونده <file-like object>` از پیام متناظر با *key* برمیگرداند، یا در صورتی که چنین پیامی وجود نداشته باشد، یک استثنای :exc:`KeyError` را پرتاب میکند. شیء فایلشبهپروندهی رفتار میکند که گویی در حالت دودویی باز شده است. این پرونده باید هنگامی که دیگر نیازی به آن نیست، بسته شود."
msgid "The file object really is a :term:`binary file`; previously it was incorrectly returned in text mode. Also, the :term:`file-like object` now supports the :term:`context manager` protocol: you can use a :keyword:`with` statement to automatically close it."
msgstr "شیء پرونده در واقع یک :term:`binary file` است؛ پیشتر بهاشتباه در حالت متنی بازگردانده میشد. همچنین :term:`file-like object` اکنون از پروتکل :term:`context manager` پشتیبانی میکند: میتوانید از یک دستور :keyword:`with` برای بستن خودکار آن استفاده کنید."
msgid "Unlike other representations of messages, :term:`file-like <file-like object>` representations are not necessarily independent of the :class:`!Mailbox` instance that created them or of the underlying mailbox. More specific documentation is provided by each subclass."
msgstr "برخلاف سایر بازنماییهای پیامها، بازنماییهای :term:`شبهپرونده <file-like object>` لزوماً مستقل از نمونهی :class:`!Mailbox` که آنها را ایجاد کرده است یا از صندوق پستی زیربنایی نیستند. مستندات دقیقتری توسط هر زیرکلاس ارائه شده است."
msgid "Return ``True`` if *key* corresponds to a message, ``False`` otherwise."
msgstr "اگر *key* متناظر با یک پیام باشد، ``True`` و در غیر این صورت ``False`` را برمیگرداند."
msgid "Return a count of messages in the mailbox."
msgstr "تعداد پیامهای موجود در صندوق پستی را برمیگرداند."
msgid "Delete all messages from the mailbox."
msgstr "تمام پیامها را از صندوق پستی حذف کنید."
msgid "Return a representation of the message corresponding to *key* and delete the message. If no such message exists, return *default*. The message is represented as an instance of the appropriate format-specific :class:`Message` subclass unless a custom message factory was specified when the :class:`!Mailbox` instance was initialized."
msgstr "بازنمایی پیام متناظر با *key* را برمیگرداند و پیام را حذف میکند. اگر چنین پیامی وجود نداشته باشد، *default* را برمیگرداند. پیام بهصورت نمونهای از زیرکلاس :class:`Message` مناسب و مختص قالب بازنمایی میشود، مگر اینکه یک کارخانهی پیام سفارشی (message factory) هنگام مقداردهی اولیه نمونه :class:`!Mailbox` تعیین شده باشد."
msgid "Return an arbitrary (*key*, *message*) pair, where *key* is a key and *message* is a message representation, and delete the corresponding message. If the mailbox is empty, raise a :exc:`KeyError` exception. The message is represented as an instance of the appropriate format-specific :class:`Message` subclass unless a custom message factory was specified when the :class:`!Mailbox` instance was initialized."
msgstr "یک جفت (*key*, *message*) دلخواه را برمیگرداند، که در آن *key* یک کلید و *message* یک بازنمایی از پیام است، و پیام متناظر را حذف میکند. اگر صندوق پستی خالی باشد، استثنای :exc:`KeyError` را پرتاب میکند. پیام بهصورت نمونهای از زیرکلاس :class:`Message` متناسب با قالب مربوط نمایش داده میشود، مگر اینکه یک کارخانه پیام سفارشی هنگام مقداردهی اولیهی نمونهی :class:`!Mailbox` تعیین شده باشد."
msgid "Parameter *arg* should be a *key*-to-*message* mapping or an iterable of (*key*, *message*) pairs. Updates the mailbox so that, for each given *key* and *message*, the message corresponding to *key* is set to *message* as if by using :meth:`__setitem__`. As with :meth:`__setitem__`, each *key* must already correspond to a message in the mailbox or else a :exc:`KeyError` exception will be raised, so in general it is incorrect for *arg* to be a :class:`!Mailbox` instance."
msgstr "پارامتر *arg* باید یک نگاشت از *کلید* به *پیام* یا پیمایشپذیری از جفتهای (*کلید*، *پیام*) باشد. صندوق پستی را بهروزرسانی میکند، بهگونهای که برای هر *کلید* و *پیام* دادهشده، پیام متناظر با *کلید* به *پیام* تنظیم میشود، گویی با استفاده از :meth:`__setitem__`. مانند :meth:`__setitem__`، هر *کلید* باید از قبل با پیامی در صندوق پستی متناظر باشد، در غیر این صورت یک استثنای :exc:`KeyError` پرتاب خواهد شد؛ بنابراین بهطور کلی نادرست است که *arg* نمونهای از :class:`!Mailbox` باشد."
msgid "Unlike with dictionaries, keyword arguments are not supported."
msgstr "برخلاف دیکشنریها، آرگومانهای کلیدواژهای پشتیبانی نمیشوند."
msgid "Write any pending changes to the filesystem. For some :class:`Mailbox` subclasses, changes are always written immediately and :meth:`!flush` does nothing, but you should still make a habit of calling this method."
msgstr "هرگونه تغییر در انتظار را در سامانه فایلبندی مینویسد. برای برخی از زیرکلاسهای :class:`Mailbox`، تغییرات همیشه بلافاصله نوشته میشوند و :meth:`!flush` هیچ کاری انجام نمیدهد، اما شما همچنان باید عادت به فراخوانی این متد داشته باشید."
msgid "Acquire an exclusive advisory lock on the mailbox so that other processes know not to modify it. An :exc:`ExternalClashError` is raised if the lock is not available. The particular locking mechanisms used depend upon the mailbox format. You should *always* lock the mailbox before making any modifications to its contents."
msgstr "یک قفل توصیهای انحصاری (advisory lock) روی صندوق پستی کسب میشود تا سایر فرآیندها بدانند که نباید آن را تغییر دهند. اگر قفل در دسترس نباشد، استثنای :exc:`ExternalClashError` پرتاب میشود. سازوکارهای قفلسازی خاصی که استفاده میشوند، به قالب صندوق پستی بستگی دارند. شما باید *همیشه* پیش از ایجاد هرگونه تغییر در محتوای صندوق پستی، آن را قفل کنید."
msgid "Release the lock on the mailbox, if any."
msgstr "قفل صندوق پستی را، در صورت وجود، آزاد کنید."
msgid "Flush the mailbox, unlock it if necessary, and close any open files. For some :class:`!Mailbox` subclasses, this method does nothing."
msgstr "صندوق پستی را تخلیه کنید، در صورت نیاز قفل آن را باز کنید و هر پرونده بازی را ببندید. برای برخی از زیرکلاسهای :class:`!Mailbox`، این متد هیچ کاری انجام نمیدهد."
msgid ":class:`!Maildir` objects"
msgstr "اشیای :class:`!Maildir`"
msgid "A subclass of :class:`Mailbox` for mailboxes in Maildir format. Parameter *factory* is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If *factory* is ``None``, :class:`MaildirMessage` is used as the default message representation. If *create* is ``True``, the mailbox is created if it does not exist."
msgstr "یک زیرکلاس از :class:`Mailbox` برای صندوقهای پستی با قالب Maildir. پارامتر *factory* یک شیء فراخوانیپذیر است که یک بازنمایی پیام شبهپرونده (که گویی در حالت دودویی باز شده است) میپذیرد و یک بازنمایی سفارشی برمیگرداند. اگر *factory* ``None`` باشد، :class:`MaildirMessage` به عنوان بازنمایی پیشفرض پیام استفاده میشود. اگر *create* ``True`` باشد، صندوق پستی در صورتی که وجود نداشته باشد ایجاد میشود."
msgid "If *create* is ``True`` and the *dirname* path exists, it will be treated as an existing maildir without attempting to verify its directory layout."
msgstr "اگر *create* برابر ``True`` باشد و مسیر *dirname* وجود داشته باشد، با آن بهعنوان یک maildir موجود رفتار میشود، بدون اینکه تلاش شود چیدمان پوشهی آن تأیید شود."
msgid "It is for historical reasons that *dirname* is named as such rather than *path*."
msgstr "به دلایل تاریخی است که *dirname* به این صورت نامگذاری شده است، نه *path*."
msgid "Maildir is a directory-based mailbox format invented for the qmail mail transfer agent and now widely supported by other programs. Messages in a Maildir mailbox are stored in separate files within a common directory structure. This design allows Maildir mailboxes to be accessed and modified by multiple unrelated programs without data corruption, so file locking is unnecessary."
msgstr "Maildir یک قالب صندوق پستی مبتنی بر پوشه است که برای عامل انتقال ایمیل qmail ابداع شده است و اکنون بهطور گسترده توسط برنامههای دیگر پشتیبانی میشود. پیامهای یک صندوق پستی Maildir در پروندههای جداگانه در یک ساختار پوشهای مشترک ذخیره میشوند. این طراحی به چندین برنامه غیرمرتبط اجازه میدهد بدون خرابی دادهها به صندوقهای پستی Maildir دسترسی پیدا کنند و آنها را تغییر دهند، بنابراین نیازی به قفل کردن پرونده نیست."
msgid "Maildir mailboxes contain three subdirectories, namely: :file:`tmp`, :file:`new`, and :file:`cur`. Messages are created momentarily in the :file:`tmp` subdirectory and then moved to the :file:`new` subdirectory to finalize delivery. A mail user agent may subsequently move the message to the :file:`cur` subdirectory and store information about the state of the message in a special \"info\" section appended to its file name."
msgstr "صندوقهای پستی Maildir شامل سه زیرپوشه به نامهای :file:`tmp`، :file:`new` و :file:`cur` هستند. پیامها بهصورت موقت در زیرپوشهی :file:`tmp` ایجاد میشوند و سپس برای نهاییکردن تحویل به زیرپوشهی :file:`new` منتقل میشوند. ممکن است یک عامل کاربر پستی (mail user agent) بعداً پیام را به زیرپوشهی :file:`cur` منتقل کند و اطلاعات مربوط به وضعیت پیام را در بخش ویژهی \"info\" ذخیره کند که به نام پرونده آن افزوده شده است."
msgid "Folders of the style introduced by the Courier mail transfer agent are also supported. Any subdirectory of the main mailbox is considered a folder if ``'.'`` is the first character in its name. Folder names are represented by :class:`!Maildir` without the leading ``'.'``. Each folder is itself a Maildir mailbox but should not contain other folders. Instead, a logical nesting is indicated using ``'.'`` to delimit levels, e.g., \"Archived.2005.07\"."
msgstr "پوشههایی به سبک معرفیشده توسط عامل انتقال ایمیل Courier نیز پشتیبانی میشوند. هر زیرپوشهای از صندوق پستی اصلی، اگر ``'.'`` نخستین نویسهی نام آن باشد، یک پوشه محسوب میشود. نام پوشهها توسط :class:`!Maildir` بدون ``'.'`` آغازین نمایش داده میشوند. هر پوشه، خود یک صندوق پستی Maildir است، اما نباید شامل پوشههای دیگر باشد. در عوض، تودرتویی منطقی با استفاده از ``'.'`` برای جدا کردن سطحها نشان داده میشود، برای مثال \"Archived.2005.07\"."
msgid "The Maildir specification requires the use of a colon (``':'``) in certain message file names. However, some operating systems do not permit this character in file names, If you wish to use a Maildir-like format on such an operating system, you should specify another character to use instead. The exclamation point (``'!'``) is a popular choice. For example::"
msgstr "مشخصات Maildir استفاده از دونقطه (``':'``) را در برخی نام پروندههای پیام الزامی میداند. با این حال، برخی سیستمعاملها استفاده از این نویسه در نام پروندهها را مجاز نمیدانند. اگر مایلید از قالبی مشابه Maildir در چنین سیستمعاملی استفاده کنید، باید نویسه دیگری را برای استفاده بهجای آن مشخص کنید. علامت تعجب (``'!'``) انتخاب رایجی است. برای مثال::"
msgid ""
"import mailbox\n"
"mailbox.Maildir.colon = '!'"
msgstr ""
"import mailbox\n"
"mailbox.Maildir.colon = '!'"
msgid "The :attr:`!colon` attribute may also be set on a per-instance basis."
msgstr "ویژگی :attr:`!colon` همچنین میتواند بهازای هر نمونه تنظیم شود."
msgid ":class:`Maildir` now ignores files with a leading dot."
msgstr ":class:`Maildir` اکنون پروندههایی را که با یک نقطه شروع میشوند، نادیده میگیرد."
msgid ":class:`!Maildir` instances have all of the methods of :class:`Mailbox` in addition to the following:"
msgstr "نمونههای :class:`!Maildir` علاوه بر متدهای زیر، تمامی متدهای :class:`Mailbox` را دارند:"
msgid "Return a list of the names of all folders."
msgstr "فهرستی از نامهای تمام پوشهها را برمیگرداند."
msgid "Return a :class:`!Maildir` instance representing the folder whose name is *folder*. A :exc:`NoSuchMailboxError` exception is raised if the folder does not exist."
msgstr "یک نمونه :class:`!Maildir` برمیگرداند که نشاندهنده پوشهای است که نام آن *folder* است. اگر پوشه وجود نداشته باشد، استثنای :exc:`NoSuchMailboxError` پرتاب میشود."
msgid "Create a folder whose name is *folder* and return a :class:`!Maildir` instance representing it."
msgstr "پوشهای با نام *folder* ایجاد کنید و یک نمونه :class:`!Maildir` را که نشاندهنده آن است، برگردانید."
msgid "Delete the folder whose name is *folder*. If the folder contains any messages, a :exc:`NotEmptyError` exception will be raised and the folder will not be deleted."
msgstr "پوشهای را که نام آن *folder* است حذف کنید. اگر پوشه حاوی پیامی باشد، استثنای :exc:`NotEmptyError` پرتاب میشود و پوشه حذف نخواهد شد."
msgid "Delete temporary files from the mailbox that have not been accessed in the last 36 hours. The Maildir specification says that mail-reading programs should do this occasionally."
msgstr "پروندههای موقتی را که در ۳۶ ساعت گذشته به آنها دسترسی پیدا نشده است، از صندوق پستی حذف کنید. مشخصات Maildir میگوید که برنامههای خواندن پست باید این کار را هر از گاهی انجام دهند."
msgid "Return as a string the flags that are set on the message corresponding to *key*. This is the same as ``get_message(key).get_flags()`` but much faster, because it does not open the message file. Use this method when iterating over the keys to determine which messages are interesting to get."
msgstr "پرچمهای تنظیمشده روی پیام متناظر با *key* را بهصورت یک رشته برمیگرداند. این معادل ``get_message(key).get_flags()`` است، اما بسیار سریعتر است، زیرا پرونده پیام را باز نمیکند. هنگام پیمایش روی کلیدها از این متد استفاده کنید تا تعیین کنید کدام پیامها برای دریافت جالب هستند."
msgid "If you do have a :class:`MaildirMessage` object, use its :meth:`~MaildirMessage.get_flags` method instead, because changes made by the message's :meth:`~MaildirMessage.set_flags`, :meth:`~MaildirMessage.add_flag` and :meth:`~MaildirMessage.remove_flag` methods are not reflected here until the mailbox's :meth:`__setitem__` method is called."
msgstr "اگر یک شیء :class:`MaildirMessage` دارید، در عوض از متد :meth:`~MaildirMessage.get_flags` آن استفاده کنید، زیرا تغییرات اعمالشده توسط متدهای :meth:`~MaildirMessage.set_flags`، :meth:`~MaildirMessage.add_flag` و :meth:`~MaildirMessage.remove_flag` پیام، تا زمانی که متد :meth:`__setitem__` صندوق پستی فراخوانی نشود، در اینجا منعکس نمیشوند."
msgid "On the message corresponding to *key*, set the flags specified by *flags* and unset all others. Calling ``some_mailbox.set_flags(key, flags)`` is similar to ::"
msgstr "برای پیام متناظر با *key*، پرچمهای مشخصشده با *flags* را تنظیم میکند و تمام بقیه را برمیدارد. فراخوانی ``some_mailbox.set_flags(key, flags)`` مشابه زیر است ::"
msgid ""
"one_message = some_mailbox.get_message(key)\n"
"one_message.set_flags(flags)\n"
"some_mailbox[key] = one_message"
msgstr ""
"one_message = some_mailbox.get_message(key)\n"
"one_message.set_flags(flags)\n"
"some_mailbox[key] = one_message"
msgid "but faster, because it does not open the message file."
msgstr "اما سریعتر است، زیرا پروندهی پیام را باز نمیکند."
msgid "If you do have a :class:`MaildirMessage` object, use its :meth:`~MaildirMessage.set_flags` method instead, because changes made with this mailbox method will not be visible to the message object's method, :meth:`~MaildirMessage.get_flags`."
msgstr "اگر یک شیء :class:`MaildirMessage` دارید، بهجای آن از متد :meth:`~MaildirMessage.set_flags` آن استفاده کنید، زیرا تغییرات اعمالشده با این متد صندوق پستی، برای متد شیء پیام، :meth:`~MaildirMessage.get_flags`، قابل مشاهده نخواهد بود."
msgid "On the message corresponding to *key*, set the flags specified by *flag* without changing other flags. To add more than one flag at a time, *flag* may be a string of more than one character."
msgstr "برای پیام متناظر با *key*، پرچمهای مشخصشده توسط *flag* را بدون تغییر دادن پرچمهای دیگر تنظیم کنید. برای افزودن بیش از یک پرچم بهصورت همزمان، *flag* میتواند رشتهای با بیش از یک نویسه باشد."
msgid "Considerations for using this method versus the message object's :meth:`~MaildirMessage.add_flag` method are similar to those for :meth:`set_flags`; see the discussion there."
msgstr "ملاحظات استفاده از این متد در مقایسه با متد :meth:`~MaildirMessage.add_flag` شیء پیام، مشابه ملاحظات مربوط به :meth:`set_flags` است؛ به بحث موجود در آنجا مراجعه کنید."
msgid "On the message corresponding to *key*, unset the flags specified by *flag* without changing other flags. To remove more than one flag at a time, *flag* may be a string of more than one character."
msgstr "در پیام متناظر با *key*، پرچمهای مشخصشده با *flag* را بدون تغییر سایر پرچمها بردارید. برای حذف همزمان بیش از یک پرچم، *flag* میتواند رشتهای با بیش از یک نویسه باشد."
msgid "Considerations for using this method versus the message object's :meth:`~MaildirMessage.remove_flag` method are similar to those for :meth:`set_flags`; see the discussion there."
msgstr "ملاحظات استفاده از این متد در مقایسه با متد :meth:`~MaildirMessage.remove_flag` شیء پیام، مشابه ملاحظات :meth:`set_flags` است؛ به بحث آنجا مراجعه کنید."
msgid "Return a string containing the info for the message corresponding to *key*. This is the same as ``get_message(key).get_info()`` but much faster, because it does not open the message file. Use this method when iterating over the keys to determine which messages are interesting to get."
msgstr "رشتهای حاوی اطلاعات پیام متناظر با *key* برمیگرداند. این معادل ``get_message(key).get_info()`` است، اما بسیار سریعتر است، زیرا پرونده پیام را باز نمیکند. هنگام پیمایش کلیدها از این متد استفاده کنید تا مشخص کنید کدام پیامها برای دریافت مورد نظر هستند."
msgid "If you do have a :class:`MaildirMessage` object, use its :meth:`~MaildirMessage.get_info` method instead, because changes made by the message's :meth:`~MaildirMessage.set_info` method are not reflected here until the mailbox's :meth:`__setitem__` method is called."
msgstr "اگر یک شیء :class:`MaildirMessage` دارید، بهجای آن از متد :meth:`~MaildirMessage.get_info` آن استفاده کنید، زیرا تغییرات ایجادشده توسط متد :meth:`~MaildirMessage.set_info` پیام تا زمانی که متد :meth:`__setitem__` صندوق پستی فراخوانی نشود، در اینجا بازتاب داده نمیشوند."
msgid "Set the info of the message corresponding to *key* to *info*. Calling ``some_mailbox.set_info(key, flags)`` is similar to ::"
msgstr "اطلاعات پیام متناظر با *key* را روی *info* تنظیم میکند. فراخوانی ``some_mailbox.set_info(key, flags)`` مشابه این است ::"
msgid ""
"one_message = some_mailbox.get_message(key)\n"
"one_message.set_info(info)\n"
"some_mailbox[key] = one_message"
msgstr ""
"one_message = some_mailbox.get_message(key)\n"
"one_message.set_info(info)\n"
"some_mailbox[key] = one_message"
msgid "If you do have a :class:`MaildirMessage` object, use its :meth:`~MaildirMessage.set_info` method instead, because changes made with this mailbox method will not be visible to the message object's method, :meth:`~MaildirMessage.get_info`."
msgstr "اگر یک شیء :class:`MaildirMessage` دارید، بهجای آن از متد :meth:`~MaildirMessage.set_info` آن استفاده کنید، زیرا تغییرات اعمالشده با این متد صندوق پستی برای متد شیء پیام، :meth:`~MaildirMessage.get_info`، قابل مشاهده نخواهد بود."
msgid "Some :class:`Mailbox` methods implemented by :class:`!Maildir` deserve special remarks:"
msgstr "برخی از متدهای :class:`Mailbox` که توسط :class:`!Maildir` پیادهسازی شدهاند، شایستهی نکات ویژهای هستند:"
msgid "These methods generate unique file names based upon the current process ID. When using multiple threads, undetected name clashes may occur and cause corruption of the mailbox unless threads are coordinated to avoid using these methods to manipulate the same mailbox simultaneously."
msgstr "این متدها نامهای یکتای پرونده را بر اساس شناسه فرآیند جاری تولید میکنند. هنگام استفاده از چندین نخ، ممکن است تداخلهای نامی تشخیصدادهنشده رخ دهند و باعث خرابی صندوق پستی شوند، مگر آنکه میان نخها هماهنگی ایجاد شود تا از استفاده همزمان از این متدها برای دستکاری یک صندوق پستی یکسان جلوگیری شود."
msgid "All changes to Maildir mailboxes are immediately applied, so this method does nothing."
msgstr "تمام تغییرات در صندوقهای پستی Maildir بلافاصله اعمال میشوند، بنابراین این متد هیچ کاری انجام نمیدهد."
msgid "Maildir mailboxes do not support (or require) locking, so these methods do nothing."
msgstr "صندوقهای پستی Maildir از قفلکردن پشتیبانی نمیکنند (یا به آن نیاز ندارند)، بنابراین این متدها هیچ کاری انجام نمیدهند."
msgid ":class:`!Maildir` instances do not keep any open files and the underlying mailboxes do not support locking, so this method does nothing."
msgstr "نمونههای :class:`!Maildir` هیچ پرونده بازی را باز نگه نمیدارند و صندوقهای پستی زیربنایی از قفلکردن پشتیبانی نمیکنند، بنابراین این متد هیچ کاری انجام نمیدهد."
msgid "Depending upon the host platform, it may not be possible to modify or remove the underlying message while the returned file remains open."
msgstr "بسته به پلتفرم میزبان، ممکن است در حالی که پرونده برگرداندهشده باز باقی میماند، تغییر یا حذف پیام زیربنایی امکانپذیر نباشد."
msgid "`maildir man page from Courier <https://www.courier-mta.org/maildir.html>`_"
msgstr "صفحه راهنمای maildir از `Courier <https://www.courier-mta.org/maildir.html>`_"
msgid "A specification of the format. Describes a common extension for supporting folders."
msgstr "مشخصاتی از قالب. افزونهای رایج را برای پشتیبانی از پوشهها توصیف میکند."
msgid "`Using maildir format <https://cr.yp.to/proto/maildir.html>`_"
msgstr "`استفاده از قالب maildir <https://cr.yp.to/proto/maildir.html>`_"
msgid "Notes on Maildir by its inventor. Includes an updated name-creation scheme and details on \"info\" semantics."
msgstr "یادداشتهایی درباره Maildir از مخترع آن. شامل یک طرحواره بهروزشده برای ایجاد نام و جزئیاتی درباره معنای «info» است."
msgid ":class:`!mbox` objects"
msgstr "اشیاء :class:`!mbox`"
msgid "A subclass of :class:`Mailbox` for mailboxes in mbox format. Parameter *factory* is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If *factory* is ``None``, :class:`mboxMessage` is used as the default message representation. If *create* is ``True``, the mailbox is created if it does not exist."
msgstr "یک زیرکلاس از :class:`Mailbox` برای صندوقهای پستی با قالب mbox. پارامتر *factory* یک شیء فراخوانیپذیر است که یک بازنمایی پیام شبهپرونده (که طوری رفتار میکند که گویی در حالت دودویی باز شده است) را میپذیرد و یک بازنمایی سفارشی را برمیگرداند. اگر *factory* برابر ``None`` باشد، از :class:`mboxMessage` به عنوان بازنمایی پیشفرض پیام استفاده میشود. اگر *create* برابر ``True`` باشد، صندوق پستی در صورتی که وجود نداشته باشد، ایجاد میشود."
msgid "The mbox format is the classic format for storing mail on Unix systems. All messages in an mbox mailbox are stored in a single file with the beginning of each message indicated by a line whose first five characters are \"From \"."
msgstr "قالب mbox، قالب کلاسیک برای ذخیرهی ایمیل در سیستمهای یونیکسی است. همهی پیامهای یک صندوق پستی mbox در یک پرونده واحد ذخیره میشوند و آغاز هر پیام با خطی مشخص میشود که پنج نویسهی نخست آن \"From \" است."
msgid "Several variations of the mbox format exist to address perceived shortcomings in the original. In the interest of compatibility, :class:`!mbox` implements the original format, which is sometimes referred to as :dfn:`mboxo`. This means that the :mailheader:`Content-Length` header, if present, is ignored and that any occurrences of \"From \" at the beginning of a line in a message body are transformed to \">From \" when storing the message, although occurrences of \">From \" are not transformed to \"From \" when reading the message."
msgstr "چندین گونه از قالب mbox برای برطرف کردن کاستیهای بهنظر رسیده در قالب اصلی وجود دارد. به منظور سازگاری، :class:`!mbox` قالب اصلی را پیادهسازی میکند، که گاهی با عنوان :dfn:`mboxo` شناخته میشود. این بدان معناست که سرآیند :mailheader:`Content-Length`، در صورت وجود، نادیده گرفته میشود و هر مورد از \"From \" در ابتدای یک خط در بدنهی پیام هنگام ذخیرهی پیام به \">From \" تبدیل میشود، اگرچه موارد \">From \" هنگام خواندن پیام به \"From \" تبدیل نمیشوند."
msgid "Some :class:`Mailbox` methods implemented by :class:`!mbox` deserve special remarks:"
msgstr "برخی از متدهای :class:`Mailbox` که توسط :class:`!mbox` پیادهسازی شدهاند، شایسته نکات ویژهای هستند:"
msgid "Note: This method has an extra parameter (*from_*) compared with other classes. The first line of an mbox file entry is the Unix \"From \" line. If *from_* is False, the first line of the file is dropped."
msgstr "توجه: این متد در مقایسه با سایر کلاسها یک پارامتر اضافی (*from_*) دارد. نخستین خط از یک ورودی پرونده mbox، خط \"From \" یونیکس است. اگر *from_* برابر False باشد، خط اول پرونده حذف میشود."
msgid "Using the file after calling :meth:`~Mailbox.flush` or :meth:`~Mailbox.close` on the :class:`!mbox` instance may yield unpredictable results or raise an exception."
msgstr "استفاده از پرونده پس از فراخوانی :meth:`~Mailbox.flush` یا :meth:`~Mailbox.close` بر روی نمونهی :class:`!mbox` ممکن است نتایج غیرقابلپیشبینی به همراه داشته باشد یا استثنایی پرتاب کند."
msgid "Three locking mechanisms are used---dot locking and, if available, the :c:func:`!flock` and :c:func:`!lockf` system calls."
msgstr "از سه سازوکار قفلگذاری استفاده میشود---قفلگذاری نقطهای و، در صورت موجود بودن، فراخوانیهای سیستمی :c:func:`!flock` و :c:func:`!lockf`."
msgid "`mbox man page from tin <http://www.tin.org/bin/man.cgi?section=5&topic=mbox>`_"
msgstr "`صفحهی man مربوط به mbox از tin <http://www.tin.org/bin/man.cgi?section=5&topic=mbox>`_"
msgid "A specification of the format, with details on locking."
msgstr "مشخصات قالب، همراه با جزئیاتی درباره قفلگذاری."
msgid "`Configuring Netscape Mail on Unix: Why The Content-Length Format is Bad <https://www.jwz.org/doc/content-length.html>`_"
msgstr "پیکربندی Netscape Mail در یونیکس: چرا قالب Content-Length بد `است <https://www.jwz.org/doc/content-length.html>`_"
msgid "An argument for using the original mbox format rather than a variation."
msgstr "آرگومانی برای استفاده از قالب اصلی mbox بهجای یک گونهی متفاوت."
msgid "`\"mbox\" is a family of several mutually incompatible mailbox formats <https://www.loc.gov/preservation/digital/formats/fdd/fdd000383.shtml>`_"
msgstr "\"mbox\" خانوادهای از چندین قالب صندوق پستی است که با یکدیگر ناسازگار `هستند <https://www.loc.gov/preservation/digital/formats/fdd/fdd000383.shtml>`_"
msgid "A history of mbox variations."
msgstr "تاریخچهای از انواع mbox."
msgid ":class:`!MH` objects"
msgstr "اشیای :class:`!MH`"
msgid "A subclass of :class:`Mailbox` for mailboxes in MH format. Parameter *factory* is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If *factory* is ``None``, :class:`MHMessage` is used as the default message representation. If *create* is ``True``, the mailbox is created if it does not exist."
msgstr "زیرکلاسی از :class:`Mailbox` برای صندوقهای پستی در قالب MH. پارامتر *factory* یک شیء فراخوانیپذیر است که یک بازنمایی پیام شبهپرونده (که طوری رفتار میکند که گویی در حالت دودویی باز شده است) را میپذیرد و یک بازنمایی سفارشی را برمیگرداند. اگر *factory* برابر ``None`` باشد، از :class:`MHMessage` بهعنوان بازنمایی پیشفرض پیام استفاده میشود. اگر *create* برابر ``True`` باشد، صندوق پستی در صورتی که وجود نداشته باشد ایجاد میشود."
msgid "MH is a directory-based mailbox format invented for the MH Message Handling System, a mail user agent. Each message in an MH mailbox resides in its own file. An MH mailbox may contain other MH mailboxes (called :dfn:`folders`) in addition to messages. Folders may be nested indefinitely. MH mailboxes also support :dfn:`sequences`, which are named lists used to logically group messages without moving them to sub-folders. Sequences are defined in a file called :file:`.mh_sequences` in each folder."
msgstr "MH یک قالب صندوق پستی مبتنی بر پوشه است که برای MH Message Handling System، یک عامل کاربر پست، ابداع شده است. هر پیام در یک صندوق پستی MH در پرونده مستقل خود قرار دارد. یک صندوق پستی MH ممکن است علاوه بر پیامها، شامل صندوقهای پستی MH دیگر (به نام :dfn:`پوشهها (folders)`) باشد. پوشهها میتوانند بهطور نامحدود تودرتو شوند. صندوقهای پستی MH همچنین از :dfn:`دنبالهها (sequences)` پشتیبانی میکنند، که فهرستهای نامگذاریشدهای هستند که برای گروهبندی منطقی پیامها بدون جابهجایی آنها به پوشههای فرعی استفاده میشوند. دنبالهها در پروندهای به نام :file:`.mh_sequences` در هر پوشه تعریف میشوند."
msgid "The :class:`!MH` class manipulates MH mailboxes, but it does not attempt to emulate all of :program:`mh`'s behaviors. In particular, it does not modify and is not affected by the :file:`context` or :file:`.mh_profile` files that are used by :program:`mh` to store its state and configuration."
msgstr "کلاس :class:`!MH` صندوقهای پستی MH را دستکاری میکند، اما تلاش نمیکند تمام رفتارهای :program:`mh` را شبیهسازی کند. بهطور خاص، پروندههای :file:`context` یا :file:`.mh_profile` را که :program:`mh` برای ذخیره وضعیت و پیکربندی خود از آنها استفاده میکند، تغییر نمیدهد و تحت تأثیر آنها قرار نمیگیرد."
msgid ":class:`!MH` instances have all of the methods of :class:`Mailbox` in addition to the following:"
msgstr "نمونههای :class:`!MH` علاوه بر موارد زیر، تمامی متدهای :class:`Mailbox` را دارند:"
msgid "Supported folders that don't contain a :file:`.mh_sequences` file."
msgstr "پوشههای پشتیبانیشده که حاوی پرونده :file:`.mh_sequences` نیستند."
msgid "Return an :class:`!MH` instance representing the folder whose name is *folder*. A :exc:`NoSuchMailboxError` exception is raised if the folder does not exist."
msgstr "یک نمونه :class:`!MH` را برمیگرداند که نشاندهنده پوشهای با نام *folder* است. اگر پوشه وجود نداشته باشد، استثنای :exc:`NoSuchMailboxError` پرتاب میشود."
msgid "Create a folder whose name is *folder* and return an :class:`!MH` instance representing it."
msgstr "پوشهای با نام *folder* ایجاد میکند و نمونهای از :class:`!MH` را برمیگرداند که نشاندهنده آن است."
msgid "Return a dictionary of sequence names mapped to key lists. If there are no sequences, the empty dictionary is returned."
msgstr "یک دیکشنری از نامهای دنباله که به فهرستهای کلید نگاشت شدهاند را برمیگرداند. اگر هیچ دنبالهای وجود نداشته باشد، دیکشنری خالی برمیگردد."
msgid "Re-define the sequences that exist in the mailbox based upon *sequences*, a dictionary of names mapped to key lists, like returned by :meth:`get_sequences`."
msgstr "دنبالههای موجود در صندوق پستی را بر اساس *sequences* بازتعریف کنید؛ *sequences* دیکشنریای از نامها است که به فهرستهای کلید نگاشت شدهاند، مانند آنچه :meth:`get_sequences` برمیگرداند."
msgid "Rename messages in the mailbox as necessary to eliminate gaps in numbering. Entries in the sequences list are updated correspondingly."
msgstr "پیامهای موجود در صندوق پستی در صورت لزوم تغییر نام داده میشوند تا فاصلههای موجود در شمارهگذاری برطرف شوند. ورودیهای فهرست دنبالهها (sequences) بهطور متناظر بهروزرسانی میشوند."
msgid "Already-issued keys are invalidated by this operation and should not be subsequently used."
msgstr "کلیدهای از پیش اکسپورت شده با این عملیات باطل میشوند و نباید پس از آن استفاده شوند."
msgid "Some :class:`Mailbox` methods implemented by :class:`!MH` deserve special remarks:"
msgstr "برخی متدهای :class:`Mailbox` که توسط :class:`!MH` پیادهسازی شدهاند، شایستهی نکات ویژهای هستند:"
msgid "These methods immediately delete the message. The MH convention of marking a message for deletion by prepending a comma to its name is not used."
msgstr "این متدها پیام را بلافاصله حذف میکنند. از قرارداد MH برای علامتگذاری یک پیام جهت حذف با افزودن کاما به ابتدای نام آن استفاده نمیشود."
msgid "Three locking mechanisms are used---dot locking and, if available, the :c:func:`!flock` and :c:func:`!lockf` system calls. For MH mailboxes, locking the mailbox means locking the :file:`.mh_sequences` file and, only for the duration of any operations that affect them, locking individual message files."
msgstr "از سه سازوکار قفل استفاده میشود---قفل نقطهای و، در صورت موجود بودن، فراخوانیهای سیستمی :c:func:`!flock` و :c:func:`!lockf`. برای صندوقهای پستی MH، قفل کردن صندوق پستی به معنای قفل کردن پروندهی :file:`.mh_sequences` و، فقط در طول هر عملیاتی که بر آنها اثر میگذارد، قفل کردن پروندههای پیام جداگانه است."
msgid "Depending upon the host platform, it may not be possible to remove the underlying message while the returned file remains open."
msgstr "بسته به سکوی میزبان، ممکن است نتوان پیام زیربنایی را در حالی که پرونده برگرداندهشده باز باقی میماند، حذف کرد."
msgid "All changes to MH mailboxes are immediately applied, so this method does nothing."
msgstr "تمام تغییرات در صندوقهای پستی MH بلافاصله اعمال میشوند، بنابراین این متد کاری انجام نمیدهد."
msgid ":class:`!MH` instances do not keep any open files, so this method is equivalent to :meth:`unlock`."
msgstr "نمونههای :class:`!MH` هیچ پروندهای را باز نگه نمیدارند، بنابراین این متد معادل :meth:`unlock` است."
msgid "`nmh - Message Handling System <https://www.nongnu.org/nmh/>`_"
msgstr "`nmh - Message Handling System <https://www.nongnu.org/nmh/>`_"
msgid "Home page of :program:`nmh`, an updated version of the original :program:`mh`."
msgstr "صفحهی خانگی :program:`nmh`، نسخهای بهروزشده از :program:`mh` اصلی."
msgid "`MH & nmh: Email for Users & Programmers <https://rand-mh.sourceforge.io/book/>`_"
msgstr "`MH و nmh: ایمیل برای کاربران و برنامهنویسان <https://rand-mh.sourceforge.io/book/>`_"
msgid "A GPL-licensed book on :program:`mh` and :program:`nmh`, with some information on the mailbox format."
msgstr "کتابی دارای پروانه GPL دربارهی :program:`mh` و :program:`nmh`، همراه با مقداری اطلاعات دربارهی قالب صندوق پستی ."
msgid ":class:`!Babyl` objects"
msgstr "اشیای :class:`!Babyl`"
msgid "A subclass of :class:`Mailbox` for mailboxes in Babyl format. Parameter *factory* is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If *factory* is ``None``, :class:`BabylMessage` is used as the default message representation. If *create* is ``True``, the mailbox is created if it does not exist."
msgstr "زیرکلاسی از :class:`Mailbox` برای صندوقهای پستی در قالب Babyl. پارامتر *factory* یک شیء فراخوانیپذیر است که یک بازنمایی شبهپرونده از پیام (که مانند پروندهای که در حالت دودویی باز شده باشد رفتار میکند) میپذیرد و یک بازنمایی سفارشی را برمیگرداند. اگر *factory* برابر ``None`` باشد، از :class:`BabylMessage` به عنوان بازنمایی پیشفرض پیام استفاده میشود. اگر *create* برابر ``True`` باشد، صندوق پستی در صورتی که وجود نداشته باشد ایجاد میشود."
msgid "Babyl is a single-file mailbox format used by the Rmail mail user agent included with Emacs. The beginning of a message is indicated by a line containing the two characters Control-Underscore (``'\\037'``) and Control-L (``'\\014'``). The end of a message is indicated by the start of the next message or, in the case of the last message, a line containing a Control-Underscore (``'\\037'``) character."
msgstr "Babyl یک قالب صندوق پستی تکپروندهای است که توسط عامل کاربر پست الکترونیکی Rmail، که همراه با Emacs ارائه شده است، استفاده میشود. آغاز یک پیام با خطی مشخص میشود که شامل دو نویسهی Control-Underscore (``'\\037'``) و Control-L (``'\\014'``) است. پایان یک پیام با آغاز پیام بعدی یا، در مورد آخرین پیام، با سطری شامل یک نویسهی Control-Underscore (``'\\037'``) مشخص میشود."
msgid "Messages in a Babyl mailbox have two sets of headers, original headers and so-called visible headers. Visible headers are typically a subset of the original headers that have been reformatted or abridged to be more attractive. Each message in a Babyl mailbox also has an accompanying list of :dfn:`labels`, or short strings that record extra information about the message, and a list of all user-defined labels found in the mailbox is kept in the Babyl options section."
msgstr "پیامهای موجود در یک صندوق پستی Babyl دارای دو مجموعه سرآیند هستند: سرآیندهای اصلی و سرآیندهای بهاصطلاح قابلمشاهده. سرآیندهای قابلمشاهده معمولاً زیرمجموعهای از سرآیندهای اصلی هستند که دوباره قالببندی یا خلاصه شدهاند تا جذابتر شوند. هر پیام در یک صندوق پستی Babyl همچنین یک فهرست همراه از :dfn:`برچسبها (labels)` دارد، یا رشتههای کوتاهی که اطلاعات اضافی درباره پیام را ثبت میکنند، و فهرستی از همه برچسبهای تعریفشده توسط کاربر که در صندوق پستی وجود دارند، در بخش گزینههای Babyl نگهداری میشود."
msgid ":class:`!Babyl` instances have all of the methods of :class:`Mailbox` in addition to the following:"
msgstr "نمونههای :class:`!Babyl` علاوه بر تمامی متدهای :class:`Mailbox`، موارد زیر را نیز دارند:"
msgid "Return a list of the names of all user-defined labels used in the mailbox."
msgstr "فهرستی از نامهای تمام برچسبهای تعریفشده توسط کاربر استفادهشده در صندوق پستی را برمیگرداند."
msgid "The actual messages are inspected to determine which labels exist in the mailbox rather than consulting the list of labels in the Babyl options section, but the Babyl section is updated whenever the mailbox is modified."
msgstr "به جای مراجعه به فهرست برچسبها در بخش گزینههای Babyl، پیامهای واقعی بررسی میشوند تا تعیین شود کدام برچسبها در صندوق پستی وجود دارند، اما هر زمان که صندوق پستی تغییر کند، بخش Babyl بهروزرسانی میشود."
msgid "Some :class:`Mailbox` methods implemented by :class:`!Babyl` deserve special remarks:"
msgstr "برخی متدهای :class:`Mailbox` که در :class:`!Babyl` پیادهسازی شدهاند، شایستهی نکات خاصی هستند:"
msgid "In Babyl mailboxes, the headers of a message are not stored contiguously with the body of the message. To generate a file-like representation, the headers and body are copied together into an :class:`io.BytesIO` instance, which has an API identical to that of a file. As a result, the file-like object is truly independent of the underlying mailbox but does not save memory compared to a string representation."
msgstr "در صندوقهای پستی Babyl، سرآیندهای یک پیام بهصورت پیوسته با بدنه پیام ذخیره نمیشوند. برای تولید یک بازنمایی شبهپرونده، سرآیندها و بدنه با هم در نمونهای از :class:`io.BytesIO` رونوشت میشوند که API آن با API یک پرونده یکسان است. در نتیجه، شیء شبهپرونده واقعاً از صندوق پستی زیربنایی مستقل است، اما در مقایسه با یک بازنمایی رشتهای، باعث صرفهجویی در حافظه نمیشود."
msgid "`Format of Version 5 Babyl Files <https://quimby.gnus.org/notes/BABYL>`_"
msgstr "`قالب پروندههای Babyl نسخهی 5 <https://quimby.gnus.org/notes/BABYL>`_"
msgid "A specification of the Babyl format."
msgstr "مشخصات قالب Babyl."
msgid "`Reading Mail with Rmail <https://www.gnu.org/software/emacs/manual/html_node/emacs/Rmail.html>`_"
msgstr "`خواندن ایمیل با Rmail <https://www.gnu.org/software/emacs/manual/html_node/emacs/Rmail.html>`_"
msgid "The Rmail manual, with some information on Babyl semantics."
msgstr "راهنمای Rmail، همراه با اطلاعاتی درباره معناشناسی Babyl."
msgid ":class:`!MMDF` objects"
msgstr "اشیای :class:`!MMDF`"
msgid "A subclass of :class:`Mailbox` for mailboxes in MMDF format. Parameter *factory* is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If *factory* is ``None``, :class:`MMDFMessage` is used as the default message representation. If *create* is ``True``, the mailbox is created if it does not exist."
msgstr "زیرکلاسی از :class:`Mailbox` برای صندوقهای پستی با قالب MMDF. پارامتر *factory* یک شیء فراخوانیپذیر است که یک بازنمایی پیام شبهپرونده (که طوری رفتار میکند که گویی در حالت دودویی باز شده است) میپذیرد و یک بازنمایی سفارشی را برمیگرداند. اگر *factory* برابر ``None`` باشد، از :class:`MMDFMessage` بهعنوان بازنمایی پیشفرض پیام استفاده میشود. اگر *create* برابر ``True`` باشد، در صورتی که صندوق پستی وجود نداشته باشد، ایجاد میشود."
msgid "MMDF is a single-file mailbox format invented for the Multichannel Memorandum Distribution Facility, a mail transfer agent. Each message is in the same form as an mbox message but is bracketed before and after by lines containing four Control-A (``'\\001'``) characters. As with the mbox format, the beginning of each message is indicated by a line whose first five characters are \"From \", but additional occurrences of \"From \" are not transformed to \">From \" when storing messages because the extra message separator lines prevent mistaking such occurrences for the starts of subsequent messages."
msgstr "MMDF یک قالب صندوق پستی تکپروندهای است که برای Multichannel Memorandum Distribution Facility، یک عامل انتقال ایمیل، ابداع شده است. هر پیام همان شکل یک پیام mbox را دارد، اما پیش و پس از آن با سطرهایی شامل چهار نویسه Control-A (``'\\001'``) محصور شده است. مانند قالب mbox، آغاز هر پیام با خطی مشخص میشود که پنج نویسه نخست آن \"From \" است، اما موارد اضافی \"From \" هنگام ذخیرهسازی پیامها به \">From \" تبدیل نمیشوند، زیرا سطرهای جداکننده اضافی پیام مانع از اشتباه گرفتن این موارد با آغاز پیامهای بعدی میشوند."
msgid "Some :class:`Mailbox` methods implemented by :class:`!MMDF` deserve special remarks:"
msgstr "برخی از متدهای :class:`Mailbox` که توسط :class:`!MMDF` پیادهسازی شدهاند، شایستهی نکات ویژهای هستند:"
msgid "Using the file after calling :meth:`~Mailbox.flush` or :meth:`~Mailbox.close` on the :class:`!MMDF` instance may yield unpredictable results or raise an exception."
msgstr "استفاده از پرونده پس از فراخوانی :meth:`~Mailbox.flush` یا :meth:`~Mailbox.close` بر روی نمونهی :class:`!MMDF` ممکن است نتایج غیرقابلپیشبینی به همراه داشته باشد یا استثنایی پرتاب کند."
msgid "`mmdf man page from tin <http://www.tin.org/bin/man.cgi?section=5&topic=mmdf>`_"
msgstr "`صفحه man مربوط به mmdf از tin <http://www.tin.org/bin/man.cgi?section=5&topic=mmdf>`_"
msgid "A specification of MMDF format from the documentation of tin, a newsreader."
msgstr "مشخصات قالب MMDF از مستندات tin، یک خبرخوان."
msgid "`MMDF <https://en.wikipedia.org/wiki/MMDF>`_"
msgstr "`MMDF <https://en.wikipedia.org/wiki/MMDF>`_"
msgid "A Wikipedia article describing the Multichannel Memorandum Distribution Facility."
msgstr "مقالهای در ویکیپدیا که Multichannel Memorandum Distribution Facility را توصیف میکند."
msgid ":class:`!Message` objects"
msgstr "اشیای :class:`!Message`"
msgid "A subclass of the :mod:`email.message` module's :class:`~email.message.Message`. Subclasses of :class:`!mailbox.Message` add mailbox-format-specific state and behavior."
msgstr "زیرکلاسی از :class:`~email.message.Message` در ماژول :mod:`email.message`. زیرکلاسهای :class:`!mailbox.Message` وضعیت و رفتار خاص قالب صندوق پستی را میافزایند."
msgid "If *message* is omitted, the new instance is created in a default, empty state. If *message* is an :class:`email.message.Message` instance, its contents are copied; furthermore, any format-specific information is converted insofar as possible if *message* is a :class:`!Message` instance. If *message* is a string, a byte string, or a file, it should contain an :rfc:`5322`\\ -compliant message, which is read and parsed. Files should be open in binary mode, but text mode files are accepted for backward compatibility."
msgstr "اگر *message* حذف شود، نمونه جدید در یک وضعیت پیشفرض و خالی ایجاد میشود. اگر *message* یک نمونه از :class:`email.message.Message` باشد، محتوای آن کپی میشود؛ علاوه بر این، اگر *message* یک نمونه از :class:`!Message` باشد، هرگونه اطلاعات خاص قالب تا حد امکان تبدیل میشود. اگر *message* یک رشته، یک رشته بایت یا یک پرونده باشد، باید حاوی پیامی مطابق با :rfc:`5322`\\ باشد، که خوانده و تجزیه میشود. پروندهها باید در حالت دودویی باز باشند، اما پروندههای حالت متنی برای سازگاری با نسخههای قبلی پذیرفته میشوند."
msgid "The format-specific state and behaviors offered by subclasses vary, but in general it is only the properties that are not specific to a particular mailbox that are supported (although presumably the properties are specific to a particular mailbox format). For example, file offsets for single-file mailbox formats and file names for directory-based mailbox formats are not retained, because they are only applicable to the original mailbox. But state such as whether a message has been read by the user or marked as important is retained, because it applies to the message itself."
msgstr "وضعیتها و رفتارهای مختص قالب که زیرکلاسها ارائه میدهند متفاوتاند، اما بهطور کلی تنها ویژگیهایی پشتیبانی میشوند که مختص یک صندوقنامه مشخص نیستند (اگرچه احتمالاً این ویژگیها مختص یک قالب صندوقنامه مشخص هستند). برای مثال، آفستهای پرونده برای قالبهای صندوقنامه تکپروندهای و نامهای پرونده برای قالبهای صندوقنامه مبتنی بر پوشه حفظ نمیشوند، زیرا فقط برای صندوقنامه اصلی کاربرد دارند. اما وضعیتی مانند اینکه پیامی توسط کاربر خوانده شده باشد یا بهعنوان مهم علامتگذاری شده باشد حفظ میشود، زیرا به خود پیام مربوط میشود."
msgid "There is no requirement that :class:`!Message` instances be used to represent messages retrieved using :class:`Mailbox` instances. In some situations, the time and memory required to generate :class:`!Message` representations might not be acceptable. For such situations, :class:`!Mailbox` instances also offer string and file-like representations, and a custom message factory may be specified when a :class:`!Mailbox` instance is initialized."
msgstr "الزامی وجود ندارد که از نمونههای :class:`!Message` برای نمایش پیامهای بازیابیشده با استفاده از نمونههای :class:`Mailbox` استفاده شود. در برخی موقعیتها، ممکن است زمان و حافظهی مورد نیاز برای تولید بازنماییهای :class:`!Message` قابل قبول نباشد. برای چنین موقعیتهایی، نمونههای :class:`!Mailbox` همچنین بازنماییهای رشتهای و شبهپروندهای را ارائه میدهند، و میتوان یک کارخانهی پیام سفارشی را هنگام راهاندازی نمونهای از :class:`!Mailbox` تعیین کرد."
msgid ":class:`!MaildirMessage` objects"
msgstr "اشیای :class:`!MaildirMessage`"
msgid "A message with Maildir-specific behaviors. Parameter *message* has the same meaning as with the :class:`Message` constructor."
msgstr "پیامی با رفتارهای خاص Maildir. پارامتر *message* همان معنایی را دارد که در سازندهی :class:`Message` دارد."
msgid "Typically, a mail user agent application moves all of the messages in the :file:`new` subdirectory to the :file:`cur` subdirectory after the first time the user opens and closes the mailbox, recording that the messages are old whether or not they've actually been read. Each message in :file:`cur` has an \"info\" section added to its file name to store information about its state. (Some mail readers may also add an \"info\" section to messages in :file:`new`.) The \"info\" section may take one of two forms: it may contain \"2,\" followed by a list of standardized flags (e.g., \"2,FR\") or it may contain \"1,\" followed by so-called experimental information. Standard flags for Maildir messages are as follows:"
msgstr "معمولاً یک برنامه عامل کاربر پست، همهی پیامهای درون زیرپوشهی :file:`new` را پس از نخستین باری که کاربر صندوق پست را باز و بسته میکند، به زیرپوشهی :file:`cur` منتقل میکند و قدیمی بودن پیامها را، خواه واقعاً خوانده شده باشند خواه نه، ثبت میکند. به نام پرونده هر پیام در :file:`cur` یک بخش \"info\" افزوده میشود تا اطلاعات مربوط به وضعیت آن ذخیره شود. (برخی پستخوانها ممکن است یک بخش \"info\" نیز به پیامهای درون :file:`new` اضافه کنند.) بخش \"info\" ممکن است یکی از دو حالت را داشته باشد: ممکن است شامل \"2,\" باشد و پس از آن فهرستی از پرچمهای استانداردشده بیاید (مثلاً \"2,FR\") یا ممکن است شامل \"1,\" باشد و پس از آن اطلاعات بهاصطلاح آزمایشی بیاید. پرچمهای استاندارد پیامهای Maildir به شرح زیر هستند:"
msgid "Flag"
msgstr "پرچم"
msgid "Meaning"
msgstr "معنی"
msgid "Explanation"
msgstr "توضیح"
msgid "D"
msgstr "D"
msgid "Draft"
msgstr "پیشنویس"
msgid "Under composition"
msgstr "درحال نوشته شدن"
msgid "F"
msgstr "F"
msgid "Flagged"
msgstr "پرچمدار"
msgid "Marked as important"
msgstr "بهعنوان مهم علامتگذاری شده"
msgid "P"
msgstr "P"
msgid "Passed"
msgstr "باز فرستادهشده"
msgid "Forwarded, resent, or bounced"
msgstr "بازارسالشده، دوباره ارسالشده، یا برگشتخورده"
msgid "R"
msgstr "R"
msgid "Replied"
msgstr "پاسخدادهشده"
msgid "Replied to"
msgstr "پاسخ دادهشده به"
msgid "S"
msgstr "S"
msgid "Seen"
msgstr "دیدهشده"
msgid "Read"
msgstr "خواندهشده"
msgid "T"
msgstr "T"
msgid "Trashed"
msgstr "حذفشده"
msgid "Marked for subsequent deletion"
msgstr "علامتگذاریشده برای حذف بعدی"
msgid ":class:`!MaildirMessage` instances offer the following methods:"
msgstr "نمونههای :class:`!MaildirMessage` متدهای زیر را ارائه میدهند:"
msgid "Return either \"new\" (if the message should be stored in the :file:`new` subdirectory) or \"cur\" (if the message should be stored in the :file:`cur` subdirectory)."
msgstr "«new» (اگر پیام باید در زیرپوشهی :file:`new` ذخیره شود) یا «cur» (اگر پیام باید در زیرپوشهی :file:`cur` ذخیره شود) را برگردانید."
msgid "A message is typically moved from :file:`new` to :file:`cur` after its mailbox has been accessed, whether or not the message has been read. A message ``msg`` has been read if ``\"S\" in msg.get_flags()`` is ``True``."
msgstr "یک پیام معمولاً پس از دسترسی به صندوق پستی آن، از :file:`new` به :file:`cur` منتقل میشود، چه پیام خواندهشده باشد و چه نشده باشد. اگر ``\"S\" in msg.get_flags()`` برابر ``True`` باشد، پیام ``msg`` خواندهشده است."
msgid "Set the subdirectory the message should be stored in. Parameter *subdir* must be either \"new\" or \"cur\"."
msgstr "زیرپوشهای را که پیام باید در آن ذخیره شود، تنظیم کنید. پارامتر *subdir* باید \"new\" یا \"cur\" باشد."
msgid "Return a string specifying the flags that are currently set. If the message complies with the standard Maildir format, the result is the concatenation in alphabetical order of zero or one occurrence of each of ``'D'``, ``'F'``, ``'P'``, ``'R'``, ``'S'``, and ``'T'``. The empty string is returned if no flags are set or if \"info\" contains experimental semantics."
msgstr "رشتهای را برمیگرداند که پرچمهایی را که در حال حاضر تنظیم شدهاند، مشخص میکند. اگر پیام با قالب استاندارد Maildir مطابقت داشته باشد، نتیجه، الحاق صفر یا یک رخداد از هر یک از ``'D'``، ``'F'``، ``'P'``، ``'R'``، ``'S'`` و ``'T'`` به ترتیب الفبایی است. اگر هیچ پرچمی تنظیمنشده باشد یا \"info\" دارای معناشناسی آزمایشی باشد، رشتهی خالی برگردانده میشود."
msgid "Set the flags specified by *flags* and unset all others."
msgstr "پرچمهای مشخصشده با *flags* را فعال کرده و بقیه را غیرفعال میکند."
msgid "Set the flag(s) specified by *flag* without changing other flags. To add more than one flag at a time, *flag* may be a string of more than one character. The current \"info\" is overwritten whether or not it contains experimental information rather than flags."
msgstr "پرچم(های) مشخصشده با *flag* را بدون تغییر سایر پرچمها تنظیم کنید. برای افزودن بیش از یک پرچم در یک زمان، *flag* میتواند رشتهای با بیش از یک نویسه باشد. \"info\" فعلی بازنویسی میشود، خواه حاوی اطلاعات آزمایشی بهجای پرچمها باشد، خواه نباشد."
msgid "Unset the flag(s) specified by *flag* without changing other flags. To remove more than one flag at a time, *flag* may be a string of more than one character. If \"info\" contains experimental information rather than flags, the current \"info\" is not modified."
msgstr "پرچم(های) مشخصشده با *flag* را بدون تغییر سایر پرچمها غیرفعال میکند. برای حذف بیش از یک پرچم بهصورت همزمان، *flag* میتواند رشتهای با بیش از یک نویسه باشد. اگر \"info\" بهجای پرچمها حاوی اطلاعات آزمایشی باشد، \"info\" فعلی تغییر نمیکند."
msgid "Return the delivery date of the message as a floating-point number representing seconds since the epoch."
msgstr "تاریخ تحویل پیام را بهصورت یک عدد ممیز شناور برمیگرداند که نشاندهندهی ثانیههای سپریشده از مبدأ است."
msgid "Set the delivery date of the message to *date*, a floating-point number representing seconds since the epoch."
msgstr "تاریخ تحویل پیام را روی *date* تنظیم کنید، عددی اعشاری که ثانیههای سپریشده از مبدا زمان را نشان میدهد."
msgid "Return a string containing the \"info\" for a message. This is useful for accessing and modifying \"info\" that is experimental (i.e., not a list of flags)."
msgstr "رشتهای حاوی \"info\" برای یک پیام برمیگرداند. این برای دسترسی و اصلاح \"info\" آزمایشی (یعنی نه فهرستی از پرچمها) مفید است."
msgid "Set \"info\" to *info*, which should be a string."
msgstr "\"info\" را روی *info* تنظیم کنید، که باید یک رشته باشد."
msgid "When a :class:`!MaildirMessage` instance is created based upon an :class:`mboxMessage` or :class:`MMDFMessage` instance, the :mailheader:`Status` and :mailheader:`X-Status` headers are omitted and the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!MaildirMessage` بر اساس یک نمونه :class:`mboxMessage` یا :class:`MMDFMessage` ایجاد میشود، سرآیندهای :mailheader:`Status` و :mailheader:`X-Status` حذف میشوند و تبدیلهای زیر انجام میشوند:"
msgid "Resulting state"
msgstr "وضعیت حاصل"
msgid ":class:`mboxMessage` or :class:`MMDFMessage` state"
msgstr "وضعیت :class:`mboxMessage` یا :class:`MMDFMessage`"
msgid "\"cur\" subdirectory"
msgstr "زیرپوشهی \"cur\""
msgid "O flag"
msgstr "پرچم O"
msgid "F flag"
msgstr "پرچم F"
msgid "R flag"
msgstr "پرچم R"
msgid "A flag"
msgstr "پرچم A"
msgid "S flag"
msgstr "پرچم S"
msgid "T flag"
msgstr "پرچم T"
msgid "D flag"
msgstr "پرچم D"
msgid "When a :class:`!MaildirMessage` instance is created based upon an :class:`MHMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!MaildirMessage` بر اساس یک نمونه :class:`MHMessage` ایجاد میشود، تبدیلهای زیر انجام میشوند:"
msgid ":class:`MHMessage` state"
msgstr "وضعیت :class:`MHMessage`"
msgid "\"unseen\" sequence"
msgstr "دنبالهی «unseen»"
msgid "\"cur\" subdirectory and S flag"
msgstr "زیرپوشهی \"cur\" و پرچم S"
msgid "no \"unseen\" sequence"
msgstr "بدون دنبالهی «unseen»"
msgid "\"flagged\" sequence"
msgstr "دنبالهی «flagged»"
msgid "\"replied\" sequence"
msgstr "دنبالهی \"replied\""
msgid "When a :class:`!MaildirMessage` instance is created based upon a :class:`BabylMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه از :class:`!MaildirMessage` بر اساس یک نمونه از :class:`BabylMessage` ایجاد میشود، تبدیلهای زیر انجام میشود:"
msgid ":class:`BabylMessage` state"
msgstr "وضعیت :class:`BabylMessage`"
msgid "\"unseen\" label"
msgstr "برچسب \"unseen\""
msgid "no \"unseen\" label"
msgstr "بدون برچسب «unseen»"
msgid "P flag"
msgstr "پرچم P"
msgid "\"forwarded\" or \"resent\" label"
msgstr "برچسب «forwarded» یا «resent»"
msgid "\"answered\" label"
msgstr "برچسب «answered»"
msgid "\"deleted\" label"
msgstr "برچسب «deleted»"
msgid ":class:`!mboxMessage` objects"
msgstr "اشیاءِ :class:`!mboxMessage`"
msgid "A message with mbox-specific behaviors. Parameter *message* has the same meaning as with the :class:`Message` constructor."
msgstr "پیامی با رفتارهای ویژهی mbox. پارامتر *message* همان معنایی را دارد که در سازندهی :class:`Message` دارد."
msgid "Messages in an mbox mailbox are stored together in a single file. The sender's envelope address and the time of delivery are typically stored in a line beginning with \"From \" that is used to indicate the start of a message, though there is considerable variation in the exact format of this data among mbox implementations. Flags that indicate the state of the message, such as whether it has been read or marked as important, are typically stored in :mailheader:`Status` and :mailheader:`X-Status` headers."
msgstr "پیامها در یک صندوق پستی mbox با هم در یک پرونده واحد ذخیره میشوند. نشانی پاکت فرستنده و زمان تحویل معمولاً در خطی ذخیره میشوند که با \"From \" آغاز میشود و برای نشان دادن آغاز یک پیام استفاده میشود، هرچند در قالب دقیق این دادهها میان پیادهسازیهای mbox تفاوت قابلتوجهی وجود دارد. پرچمهایی که وضعیت پیام را نشان میدهند، مانند اینکه پیام خوانده شده باشد یا بهعنوان مهم علامتگذاری شده باشد، معمولاً در سرآیندهای :mailheader:`Status` و :mailheader:`X-Status` ذخیره میشوند."
msgid "Conventional flags for mbox messages are as follows:"
msgstr "پرچمهای مرسوم برای پیامهای mbox به شرح زیر است:"
msgid "O"
msgstr "O"
msgid "Old"
msgstr "قدیمی"
msgid "Previously detected by MUA"
msgstr "پیشتر توسط MUA شناسایی شده است"
msgid "Deleted"
msgstr "حذفشده"
msgid "A"
msgstr "A"
msgid "Answered"
msgstr "پاسخ دادهشده"
msgid "The \"R\" and \"O\" flags are stored in the :mailheader:`Status` header, and the \"D\", \"F\", and \"A\" flags are stored in the :mailheader:`X-Status` header. The flags and headers typically appear in the order mentioned."
msgstr "پرچمهای «R» و «O» در سرآیند :mailheader:`Status` ذخیره میشوند، و پرچمهای «D»، «F» و «A» در سرآیند :mailheader:`X-Status` ذخیره میشوند. پرچمها و سرآیندها معمولاً به ترتیب ذکرشده ظاهر میشوند."
msgid ":class:`!mboxMessage` instances offer the following methods:"
msgstr "نمونههای :class:`!mboxMessage` متدهای زیر را ارائه میدهند:"
msgid "Return a string representing the \"From \" line that marks the start of the message in an mbox mailbox. The leading \"From \" and the trailing newline are excluded."
msgstr "رشتهای را برمیگرداند که نشاندهندهی خط \"From \" است؛ خطی که آغاز پیام در یک صندوق پستی mbox را علامتگذاری میکند. \"From \" ابتدایی و نویسهی خط جدید پایانی لحاظ نمیشوند."
msgid "Set the \"From \" line to *from_*, which should be specified without a leading \"From \" or trailing newline. For convenience, *time_* may be specified and will be formatted appropriately and appended to *from_*. If *time_* is specified, it should be a :class:`time.struct_time` instance, a tuple suitable for passing to :func:`time.strftime`, or ``True`` (to use :func:`time.gmtime`)."
msgstr "خط \"From \" را روی *from_* تنظیم کنید، که باید بدون \"From \" در ابتدا یا خط جدید در انتها مشخص شود. برای راحتی، میتوان *time_* را مشخص کرد؛ در این صورت بهطور مناسب قالببندی میشود و به *from_* اضافه خواهد شد. اگر *time_* مشخص شده باشد، باید یک نمونه از :class:`time.struct_time`، یک تاپل مناسب برای ارسال به :func:`time.strftime`، یا ``True`` باشد (برای استفاده از :func:`time.gmtime`)."
msgid "Return a string specifying the flags that are currently set. If the message complies with the conventional format, the result is the concatenation in the following order of zero or one occurrence of each of ``'R'``, ``'O'``, ``'D'``, ``'F'``, and ``'A'``."
msgstr "رشتهای را برمیگرداند که پرچمهایی را که در حال حاضر تنظیم شدهاند مشخص میکند. اگر پیام با قالب مرسوم مطابقت داشته باشد، نتیجه الحاق ۰ یا ۱ مورد از هر یک از ``'R'``، ``'O'``، ``'D'``، ``'F'`` و ``'A'``، به ترتیب زیر است."
msgid "Set the flags specified by *flags* and unset all others. Parameter *flags* should be the concatenation in any order of zero or more occurrences of each of ``'R'``, ``'O'``, ``'D'``, ``'F'``, and ``'A'``."
msgstr "پرچمهای مشخصشده با *flags* را تنظیم و تمام پرچمهای دیگر را غیرفعال میکند. پارامتر *flags* باید حاصل الحاق صفر یا چند مورد از هر یک از ``'R'``، ``'O'``، ``'D'``، ``'F'`` و ``'A'`` به هر ترتیبی باشد."
msgid "Set the flag(s) specified by *flag* without changing other flags. To add more than one flag at a time, *flag* may be a string of more than one character."
msgstr "پرچم(های) مشخصشده با *flag* را بدون تغییر سایر پرچمها تنظیم کنید. برای افزودن بیش از یک پرچم بهطور همزمان، *flag* میتواند رشتهای با بیش از یک نویسه باشد."
msgid "Unset the flag(s) specified by *flag* without changing other flags. To remove more than one flag at a time, *flag* may be a string of more than one character."
msgstr "پرچم(های) مشخصشده با *flag* را بدون تغییر دادن سایر پرچمها غیرفعال کنید. برای حذف همزمان بیش از یک پرچم، *flag* میتواند رشتهای با بیش از یک نویسه باشد."
msgid "When an :class:`!mboxMessage` instance is created based upon a :class:`MaildirMessage` instance, a \"From \" line is generated based upon the :class:`MaildirMessage` instance's delivery date, and the following conversions take place:"
msgstr "هنگامی که یک نمونه از :class:`!mboxMessage` بر اساس یک نمونه از :class:`MaildirMessage` ایجاد میشود، یک خط \"From \" بر اساس تاریخ تحویل نمونهی :class:`MaildirMessage` تولید میشود و تبدیلهای زیر انجام میشوند:"
msgid ":class:`MaildirMessage` state"
msgstr "وضعیت :class:`MaildirMessage`"
msgid "When an :class:`!mboxMessage` instance is created based upon an :class:`MHMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!mboxMessage` بر اساس یک نمونه :class:`MHMessage` ایجاد میشود، تبدیلهای زیر رخ میدهند:"
msgid "R flag and O flag"
msgstr "پرچم R و پرچم O"
msgid "When an :class:`!mboxMessage` instance is created based upon a :class:`BabylMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!mboxMessage` بر اساس یک نمونه :class:`BabylMessage` ایجاد میشود، تبدیلهای زیر انجام میشوند:"
msgid "When a :class:`!mboxMessage` instance is created based upon an :class:`MMDFMessage` instance, the \"From \" line is copied and all flags directly correspond:"
msgstr "هنگامی که یک نمونه :class:`!mboxMessage` بر اساس یک نمونه :class:`MMDFMessage` ایجاد میشود، خط \"From \" رونوشت میشود و تمام پرچمها بهطور مستقیم متناظر هستند:"
msgid ":class:`MMDFMessage` state"
msgstr "وضعیت :class:`MMDFMessage`"
msgid ":class:`!MHMessage` objects"
msgstr "اشیای :class:`!MHMessage`"
msgid "A message with MH-specific behaviors. Parameter *message* has the same meaning as with the :class:`Message` constructor."
msgstr "پیامی با رفتارهای خاص MH. پارامتر *message* همان معنایی را دارد که در سازندهی :class:`Message` دارد."
msgid "MH messages do not support marks or flags in the traditional sense, but they do support sequences, which are logical groupings of arbitrary messages. Some mail reading programs (although not the standard :program:`mh` and :program:`nmh`) use sequences in much the same way flags are used with other formats, as follows:"
msgstr "پیامهای MH از علامتها یا پرچمها به معنای سنتی پشتیبانی نمیکنند، اما از دنبالهها پشتیبانی میکنند که گروهبندیهای منطقی از پیامهای دلخواه هستند. برخی برنامههای خواندن ایمیل (البته بهجز :program:`mh` و :program:`nmh` استاندارد) از دنبالهها تقریباً به همان شیوهای استفاده میکنند که پرچمها در قالبهای دیگر استفاده میشوند، به شرح زیر:"
msgid "Sequence"
msgstr "دنباله"
msgid "unseen"
msgstr "دیدهنشده"
msgid "Not read, but previously detected by MUA"
msgstr "خواندهنشده، اما پیشتر توسط MUA شناساییشده"
msgid "replied"
msgstr "پاسخ داد"
msgid "flagged"
msgstr "علامتگذاریشده"
msgid ":class:`!MHMessage` instances offer the following methods:"
msgstr "نمونههای :class:`!MHMessage` متدهای زیر را ارائه میدهند:"
msgid "Return a list of the names of sequences that include this message."
msgstr "فهرستی از نامهای دنبالههایی که شامل این پیام هستند را برمیگرداند."
msgid "Set the list of sequences that include this message."
msgstr "فهرست دنبالههایی را که شامل این پیام میشوند، تنظیم کنید."
msgid "Add *sequence* to the list of sequences that include this message."
msgstr "*sequence* را به فهرست دنبالههایی که این پیام را شامل میشوند، اضافه کنید."
msgid "Remove *sequence* from the list of sequences that include this message."
msgstr "*sequence* را از فهرست دنبالههایی که این پیام را شامل میشوند، حذف کنید."
msgid "When an :class:`!MHMessage` instance is created based upon a :class:`MaildirMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه از :class:`!MHMessage` بر اساس یک نمونه از :class:`MaildirMessage` ایجاد میشود، تبدیلهای زیر رخ میدهند:"
msgid "no S flag"
msgstr "بدون پرچم S"
msgid "When an :class:`!MHMessage` instance is created based upon an :class:`mboxMessage` or :class:`MMDFMessage` instance, the :mailheader:`Status` and :mailheader:`X-Status` headers are omitted and the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!MHMessage` بر اساس نمونهای از :class:`mboxMessage` یا :class:`MMDFMessage` ایجاد شود، سرآیندهای :mailheader:`Status` و :mailheader:`X-Status` حذف میشوند و تبدیلهای زیر انجام میشوند:"
msgid "no R flag"
msgstr "بدون پرچم R"
msgid "When an :class:`!MHMessage` instance is created based upon a :class:`BabylMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!MHMessage` بر اساس یک نمونه :class:`BabylMessage` ایجاد میشود، تبدیلهای زیر رخ میدهند:"
msgid ":class:`!BabylMessage` objects"
msgstr "اشیاء :class:`!BabylMessage`"
msgid "A message with Babyl-specific behaviors. Parameter *message* has the same meaning as with the :class:`Message` constructor."
msgstr "پیامی با رفتارهای مختص Babyl. پارامتر *message* همان معنایی را دارد که در سازندهی :class:`Message` دارد."
msgid "Certain message labels, called :dfn:`attributes`, are defined by convention to have special meanings. The attributes are as follows:"
msgstr "برخی برچسبهای پیام، که :dfn:`attributes` نامیده میشوند، طبق قرارداد برای داشتن معانی خاصی تعریف شدهاند. ویژگیها به شرح زیر هستند:"
msgid "Label"
msgstr "برچسب"
msgid "deleted"
msgstr "حذفشده"
msgid "filed"
msgstr "ثبتشده"
msgid "Copied to another file or mailbox"
msgstr "به پرونده یا صندوق پستی دیگری کپی شد"
msgid "answered"
msgstr "پاسخ دادهشده"
msgid "forwarded"
msgstr "بازارسالشده"
msgid "Forwarded"
msgstr "هدایتشده"
msgid "edited"
msgstr "ویرایششده"
msgid "Modified by the user"
msgstr "تغییریافته توسط کاربر"
msgid "resent"
msgstr "بازارسالشده"
msgid "Resent"
msgstr "ارسال مجدد"
msgid "By default, Rmail displays only visible headers. The :class:`!BabylMessage` class, though, uses the original headers because they are more complete. Visible headers may be accessed explicitly if desired."
msgstr "بهطور پیشفرض، Rmail فقط سرآیندهای قابل مشاهده را نمایش میدهد. با این حال، کلاس :class:`!BabylMessage` از سرآیندهای اصلی استفاده میکند، زیرا کاملتر هستند. در صورت تمایل، میتوان بهصورت صریح به سرآیندهای قابل مشاهده دسترسی داشت."
msgid ":class:`!BabylMessage` instances offer the following methods:"
msgstr "نمونههای :class:`!BabylMessage` متدهای زیر را ارائه میدهند:"
msgid "Return a list of labels on the message."
msgstr "فهرستی از برچسبهای پیام را برمیگرداند."
msgid "Set the list of labels on the message to *labels*."
msgstr "فهرست برچسبهای پیام را روی *labels* تنظیم کنید."
msgid "Add *label* to the list of labels on the message."
msgstr "*label* را به فهرست برچسبهای پیام اضافه کنید."
msgid "Remove *label* from the list of labels on the message."
msgstr "*label* را از فهرست برچسبهای پیام حذف کنید."
msgid "Return a :class:`Message` instance whose headers are the message's visible headers and whose body is empty."
msgstr "یک نمونه :class:`Message` برمیگرداند که سرآیندهای آن، سرآیندهای قابل مشاهده پیام هستند و بدنه آن خالی است."
msgid "Set the message's visible headers to be the same as the headers in *message*. Parameter *visible* should be a :class:`Message` instance, an :class:`email.message.Message` instance, a string, or a file-like object (which should be open in text mode)."
msgstr "سرآیندهای قابل مشاهدهی پیام را برابر با سرآیندهای *message* تنظیم کنید. پارامتر *visible* باید نمونهای از :class:`Message`، نمونهای از :class:`email.message.Message`، یک رشته، یا یک شیء شبهپرونده باشد (که باید در حالت متنی باز باشد)."
msgid "When a :class:`!BabylMessage` instance's original headers are modified, the visible headers are not automatically modified to correspond. This method updates the visible headers as follows: each visible header with a corresponding original header is set to the value of the original header, each visible header without a corresponding original header is removed, and any of :mailheader:`Date`, :mailheader:`From`, :mailheader:`Reply-To`, :mailheader:`To`, :mailheader:`CC`, and :mailheader:`Subject` that are present in the original headers but not the visible headers are added to the visible headers."
msgstr "هنگامی که سرآیندهای اصلی یک نمونه از :class:`!BabylMessage` تغییر کنند، سرآیندهای قابل مشاهده بهطور خودکار برای تطابق با آنها تغییر نمیکنند. این متد سرآیندهای قابل مشاهده را به شرح زیر بهروزرسانی میکند: هر سرآیند قابل مشاهده که یک سرآیند اصلی متناظر دارد، به مقدار سرآیند اصلی تنظیم میشود، هر سرآیند قابل مشاهده که فاقد یک سرآیند اصلی متناظر است، حذف میشود، و هر یک از :mailheader:`Date`، :mailheader:`From`، :mailheader:`Reply-To`، :mailheader:`To`، :mailheader:`CC` و :mailheader:`Subject` که در سرآیندهای اصلی وجود دارند اما در سرآیندهای قابل مشاهده وجود ندارند، به سرآیندهای قابل مشاهده افزوده میشوند."
msgid "When a :class:`!BabylMessage` instance is created based upon a :class:`MaildirMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!BabylMessage` بر اساس یک نمونه :class:`MaildirMessage` ایجاد میشود، تبدیلهای زیر انجام میشوند:"
msgid "\"forwarded\" label"
msgstr "برچسب «forwarded»"
msgid "When a :class:`!BabylMessage` instance is created based upon an :class:`mboxMessage` or :class:`MMDFMessage` instance, the :mailheader:`Status` and :mailheader:`X-Status` headers are omitted and the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!BabylMessage` بر پایه یک نمونه :class:`mboxMessage` یا :class:`MMDFMessage` ایجاد میشود، سرآیندهای :mailheader:`Status` و :mailheader:`X-Status` حذف میشوند و تبدیلهای زیر انجام میشوند:"
msgid "When a :class:`!BabylMessage` instance is created based upon an :class:`MHMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!BabylMessage` بر اساس یک نمونه :class:`MHMessage` ایجاد میشود، تبدیلهای زیر انجام میشود:"
msgid ":class:`!MMDFMessage` objects"
msgstr "اشیاء :class:`!MMDFMessage`"
msgid "A message with MMDF-specific behaviors. Parameter *message* has the same meaning as with the :class:`Message` constructor."
msgstr "پیامی با رفتارهای خاص MMDF. پارامتر *message* همان معنایی را دارد که در سازندهی :class:`Message` دارد."
msgid "As with message in an mbox mailbox, MMDF messages are stored with the sender's address and the delivery date in an initial line beginning with \"From \". Likewise, flags that indicate the state of the message are typically stored in :mailheader:`Status` and :mailheader:`X-Status` headers."
msgstr "همانند پیامها در یک صندوق پستی mbox، پیامهای MMDF به همراه نشانی فرستنده و تاریخ تحویل در یک خط آغازین که با \"From \" شروع میشود، ذخیره میشوند. به همین ترتیب، پرچمهایی که وضعیت پیام را نشان میدهند معمولاً در سرآیندهای :mailheader:`Status` و :mailheader:`X-Status` ذخیره میشوند."
msgid "Conventional flags for MMDF messages are identical to those of mbox message and are as follows:"
msgstr "پرچمهای مرسوم برای پیامهای MMDF با پرچمهای پیام mbox یکسان هستند و به شرح زیرند:"
msgid ":class:`!MMDFMessage` instances offer the following methods, which are identical to those offered by :class:`mboxMessage`:"
msgstr "نمونههای :class:`!MMDFMessage` متدهای زیر را ارائه میدهند، که با متدهای ارائهشده توسط :class:`mboxMessage` یکسان هستند:"
msgid "When an :class:`!MMDFMessage` instance is created based upon a :class:`MaildirMessage` instance, a \"From \" line is generated based upon the :class:`MaildirMessage` instance's delivery date, and the following conversions take place:"
msgstr "هنگامی که یک نمونه از :class:`!MMDFMessage` بر اساس یک نمونه از :class:`MaildirMessage` ایجاد میشود، یک خط \"From \" بر اساس تاریخ تحویل نمونهی :class:`MaildirMessage` تولید میشود و تبدیلهای زیر انجام میشوند:"
msgid "When an :class:`!MMDFMessage` instance is created based upon an :class:`MHMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!MMDFMessage` بر اساس یک نمونه :class:`MHMessage` ایجاد میشود، تبدیلهای زیر انجام میشوند:"
msgid "When an :class:`!MMDFMessage` instance is created based upon a :class:`BabylMessage` instance, the following conversions take place:"
msgstr "هنگامی که یک نمونه :class:`!MMDFMessage` بر اساس یک نمونه :class:`BabylMessage` ایجاد میشود، تبدیلهای زیر انجام میشود:"
msgid "When an :class:`!MMDFMessage` instance is created based upon an :class:`mboxMessage` instance, the \"From \" line is copied and all flags directly correspond:"
msgstr "هنگامی که یک نمونه :class:`!MMDFMessage` بر اساس یک نمونه :class:`mboxMessage` ایجاد میشود، خط \"From \" کپی میشود و تمام پرچمها بهطور مستقیم با یکدیگر متناظر هستند:"
msgid ":class:`mboxMessage` state"
msgstr "وضعیت :class:`mboxMessage`"
msgid "Exceptions"
msgstr "استثناها"
msgid "The following exception classes are defined in the :mod:`!mailbox` module:"
msgstr "کلاسهای استثنای زیر در ماژول :mod:`!mailbox` تعریف شدهاند:"
msgid "The base class for all other module-specific exceptions."
msgstr "کلاس پایه برای تمام سایر استثناهای مختص ماژول."
msgid "Raised when a mailbox is expected but is not found, such as when instantiating a :class:`Mailbox` subclass with a path that does not exist (and with the *create* parameter set to ``False``), or when opening a folder that does not exist."
msgstr "زمانی پرتاب میشود که انتظار میرود یک صندوق پستی موجود باشد اما یافت نمیشود، مانند زمانی که از یک زیرکلاس :class:`Mailbox` با مسیری که وجود ندارد (و با پارامتر *create* که روی ``False`` تنظیم شده است) نمونهسازی میکنید، یا هنگام باز کردن پوشهای که وجود ندارد."
msgid "Raised when a mailbox is not empty but is expected to be, such as when deleting a folder that contains messages."
msgstr "هنگامی پرتاب میشود که یک صندوق پستی خالی نباشد، اما انتظار میرود خالی باشد، مانند زمانی که پوشهای حاوی پیامها حذف میشود."
msgid "Raised when some mailbox-related condition beyond the control of the program causes it to be unable to proceed, such as when failing to acquire a lock that another program already holds, or when a uniquely generated file name already exists."
msgstr "زمانی پرتاب میشود که وضعیتی مربوط به صندوق پستی خارج از کنترل برنامه باعث شود برنامه نتواند ادامه یابد؛ مانند زمانی که کسب قفلی که برنامهای دیگر از قبل آن را در اختیار دارد با شکست مواجه شود، یا زمانی که نام پروندهای که بهطور یکتا تولید شده است از قبل وجود داشته باشد."
msgid "Raised when the data in a file cannot be parsed, such as when an :class:`MH` instance attempts to read a corrupted :file:`.mh_sequences` file."
msgstr "هنگامی پرتاب میشود که دادههای درون یک پرونده قابل تجزیه نباشند، مانند زمانی که یک نمونه از :class:`MH` تلاش میکند یک پرونده :file:`.mh_sequences` آسیبدیده را بخواند."
msgid "Examples"
msgstr "مثالها"
msgid "A simple example of printing the subjects of all messages in a mailbox that seem interesting::"
msgstr "یک مثال ساده از چاپ موضوعات همه پیامهای یک صندوق پستی که جالب به نظر میرسند::"
msgid ""
"import mailbox\n"
"for message in mailbox.mbox('~/mbox'):\n"
" subject = message['subject'] # Could possibly be None.\n"
" if subject and 'python' in subject.lower():\n"
" print(subject)"
msgstr ""
"import mailbox\n"
"for message in mailbox.mbox('~/mbox'):\n"
" subject = message['subject'] # Could possibly be None.\n"
" if subject and 'python' in subject.lower():\n"
" print(subject)"
msgid "To copy all mail from a Babyl mailbox to an MH mailbox, converting all of the format-specific information that can be converted::"
msgstr "برای کپی کردن تمام نامهها از یک صندوق پستی Babyl به یک صندوق پستی MH، با تبدیل تمام اطلاعات مختص قالبی که قابل تبدیل است::"
msgid ""
"import mailbox\n"
"destination = mailbox.MH('~/Mail')\n"
"destination.lock()\n"
"for message in mailbox.Babyl('~/RMAIL'):\n"
" destination.add(mailbox.MHMessage(message))\n"
"destination.flush()\n"
"destination.unlock()"
msgstr ""
"import mailbox\n"
"destination = mailbox.MH('~/Mail')\n"
"destination.lock()\n"
"for message in mailbox.Babyl('~/RMAIL'):\n"
" destination.add(mailbox.MHMessage(message))\n"
"destination.flush()\n"
"destination.unlock()"
msgid "This example sorts mail from several mailing lists into different mailboxes, being careful to avoid mail corruption due to concurrent modification by other programs, mail loss due to interruption of the program, or premature termination due to malformed messages in the mailbox::"
msgstr "این مثال نامهها را از چندین فهرست پستی به صندوقهای پستی مختلف دستهبندی میکند و مراقب است از خرابی نامه به دلیل تغییر همزمان توسط برنامههای دیگر، از دست رفتن نامه به دلیل وقفه در برنامه، یا خاتمه زودرس به دلیل پیامهای بدشکل در صندوق پستی جلوگیری کند::"
msgid ""
"import mailbox\n"
"import email.errors\n"
"\n"
"list_names = ('python-list', 'python-dev', 'python-bugs')\n"
"\n"
"boxes = {name: mailbox.mbox('~/email/%s' % name) for name in list_names}\n"
"inbox = mailbox.Maildir('~/Maildir', factory=None)\n"
"\n"
"for key in inbox.iterkeys():\n"
" try:\n"
" message = inbox[key]\n"
" except email.errors.MessageParseError:\n"
" continue # The message is malformed. Just leave it.\n"
"\n"
" for name in list_names:\n"