12.15.2 Folder Objects
Folder instances represent open folders and have the following
methods:
Foldererror(format[, ...])
- Print an error message -- can be overridden.
Foldergetfullname()
- Return the folder's full pathname.
Foldergetsequencesfilename()
- Return the full pathname of the folder's sequences file.
Foldergetmessagefilename(n)
- Return the full pathname of message n of the folder.
Folderlistmessages()
- Return a list of messages in the folder (as numbers).
Foldergetcurrent()
- Return the current message number.
Foldersetcurrent(n)
- Set the current message number to n.
Folderparsesequence(seq)
- Parse msgs syntax into list of messages.
Foldergetlast()
- Get last message, or
0 if no messages are in the folder.
Foldersetlast(n)
- Set last message (internal use only).
Foldergetsequences()
- Return dictionary of sequences in folder. The sequence names are used
as keys, and the values are the lists of message numbers in the
sequences.
Folderputsequences(dict)
- Return dictionary of sequences in folder name: list.
Folderremovemessages(list)
- Remove messages in list from folder.
Folderrefilemessages(list, tofolder)
- Move messages in list to other folder.
Foldermovemessage(n, tofolder, ton)
- Move one message to a given destination in another folder.
Foldercopymessage(n, tofolder, ton)
- Copy one message to a given destination in another folder.