@@ -482,12 +482,27 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
482
482
remarks:
483
483
484
484
485
- .. method :: get_file(key)
485
+ .. method :: get_bytes(key, from_=False)
486
+
487
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
488
+ The first line of an mbox file entry is the Unix "From " line.
489
+ If *from_ * is False, the first line of the file is dropped.
490
+
491
+ .. method :: get_file(key, from_=False)
486
492
487
493
Using the file after calling :meth: `~Mailbox.flush ` or
488
494
:meth: `~Mailbox.close ` on the :class: `!mbox ` instance may yield
489
495
unpredictable results or raise an exception.
490
496
497
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
498
+ The first line of an mbox file entry is the Unix "From " line.
499
+ If *from_ * is False, the first line of the file is dropped.
500
+
501
+ .. method :: get_string(key, from_=False)
502
+
503
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
504
+ The first line of an mbox file entry is the Unix "From " line.
505
+ If *from_ * is False, the first line of the file is dropped.
491
506
492
507
.. method :: lock()
493
508
unlock()
@@ -742,12 +757,22 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
742
757
remarks:
743
758
744
759
745
- .. method :: get_file(key)
760
+ .. method :: get_bytes(key, from_=False)
761
+
762
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
763
+ The first line of an mbox file entry is the Unix "From " line.
764
+ If *from_ * is False, the first line of the file is dropped.
765
+
766
+ .. method :: get_file(key, from_=False)
746
767
747
768
Using the file after calling :meth: `~Mailbox.flush ` or
748
769
:meth: `~Mailbox.close ` on the :class: `!MMDF ` instance may yield
749
770
unpredictable results or raise an exception.
750
771
772
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
773
+ The first line of an mbox file entry is the Unix "From " line.
774
+ If *from_ * is False, the first line of the file is dropped.
775
+
751
776
752
777
.. method :: lock()
753
778
unlock()
0 commit comments