@@ -587,12 +587,27 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
587
587
remarks:
588
588
589
589
590
- .. method :: get_file(key)
590
+ .. method :: get_bytes(key, from_=False)
591
+
592
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
593
+ The first line of an mbox file entry is the Unix "From " line.
594
+ If *from_ * is False, the first line of the file is dropped.
595
+
596
+ .. method :: get_file(key, from_=False)
591
597
592
598
Using the file after calling :meth: `~Mailbox.flush ` or
593
599
:meth: `~Mailbox.close ` on the :class: `!mbox ` instance may yield
594
600
unpredictable results or raise an exception.
595
601
602
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
603
+ The first line of an mbox file entry is the Unix "From " line.
604
+ If *from_ * is False, the first line of the file is dropped.
605
+
606
+ .. method :: get_string(key, from_=False)
607
+
608
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
609
+ The first line of an mbox file entry is the Unix "From " line.
610
+ If *from_ * is False, the first line of the file is dropped.
596
611
597
612
.. method :: lock()
598
613
unlock()
@@ -851,12 +866,22 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
851
866
remarks:
852
867
853
868
854
- .. method :: get_file(key)
869
+ .. method :: get_bytes(key, from_=False)
870
+
871
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
872
+ The first line of an mbox file entry is the Unix "From " line.
873
+ If *from_ * is False, the first line of the file is dropped.
874
+
875
+ .. method :: get_file(key, from_=False)
855
876
856
877
Using the file after calling :meth: `~Mailbox.flush ` or
857
878
:meth: `~Mailbox.close ` on the :class: `!MMDF ` instance may yield
858
879
unpredictable results or raise an exception.
859
880
881
+ Note: This method has an extra parameter (*from_ *) compared with other classes.
882
+ The first line of an mbox file entry is the Unix "From " line.
883
+ If *from_ * is False, the first line of the file is dropped.
884
+
860
885
861
886
.. method :: lock()
862
887
unlock()
0 commit comments