String representation of a Folder is its name
This enables us to just use the folder instance in the ui output and get a name rather than having to call getname() all the time. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
3eee821382
commit
ab1df868c2
@ -31,6 +31,9 @@ class BaseFolder:
|
||||
"""Returns name"""
|
||||
return self.name
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def suggeststhreads(self):
|
||||
"""Returns true if this folder suggests using threads for actions;
|
||||
false otherwise. Probably only IMAP will return true."""
|
||||
|
Loading…
Reference in New Issue
Block a user