make the trash and spam folder names in Gmail accounts configurable

This commit is contained in:
Henning Glawe
2008-08-13 01:19:38 +02:00
committed by John Goerzen
parent 9551e9d38e
commit 140be81efd
3 changed files with 24 additions and 8 deletions

View File

@ -66,3 +66,12 @@ class GmailRepository(IMAPRepository):
# XXX: `foldername` is currently ignored - the `realdelete`
# setting is repository-wide
return self.getconfboolean('realdelete', 0)
def gettrashfolder(self, foldername):
#: Where deleted mail should be moved
return self.getconf('trashfolder','[Gmail]/Trash')
def getspamfolder(self):
#: Gmail also deletes messages upon EXPUNGE in the Spam folder
return self.getconf('spamfolder','[Gmail]/Spam')