★ wanayoo — archive 1999
http://www.python.org/doc/current/lib/mh-objects.html
Nouvelle recherche
|
Portail wanayoo
Python Library Reference
Next:
12.19.2 Folder Objects
Up:
12.19 mhlib
Previous:
12.19 mhlib
12.19.1 MH Objects
MH
instances have the following methods:
error
(
format
[
, ...
]
)
Print an error message - can be overridden.
getprofile
(
key
)
Return a profile entry (
None
if not set).
getpath
()
Return the mailbox pathname.
getcontext
()
Return the current folder name.
setcontext
(
name
)
Set the current folder name.
listfolders
()
Return a list of top-level folders.
listallfolders
()
Return a list of all folders.
listsubfolders
(
name
)
Return a list of direct subfolders of the given folder.
listallsubfolders
(
name
)
Return a list of all subfolders of the given folder.
makefolder
(
name
)
Create a new folder.
deletefolder
(
name
)
Delete a folder - must have no subfolders.
openfolder
(
name
)
Return a new open folder object.
Python Library Reference
Next:
12.19.2 Folder Objects
Up:
12.19 mhlib
Previous:
12.19 mhlib
Send comments on this document to
python-docs@python.org
.