Gmail.py Changed comments to docstring

This patch changes the comments in these functions to docstrings
and remove pylint warnings.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-11-01 08:57:43 +01:00
parent fc2055de8c
commit 3f7e9fe1bd

View File

@ -98,12 +98,16 @@ class GmailRepository(IMAPRepository):
return folder.Gmail.GmailFolder
def gettrashfolder(self):
# Where deleted mail should be moved
"""
Where deleted mail should be moved
"""
return self.getconf('trashfolder', '[Gmail]/Trash')
def getspamfolder(self):
# Depending on the IMAP settings (Settings -> Forwarding and
# POP/IMAP -> IMAP Access -> "When I mark a message in IMAP as
# deleted") GMail might also deletes messages upon EXPUNGE in
# the Spam folder.
"""
Depending on the IMAP settings (Settings -> Forwarding and
POP/IMAP -> IMAP Access -> "When I mark a message in IMAP as
deleted") GMail might also deletes messages upon EXPUNGE in
the Spam folder.
"""
return self.getconf('spamfolder', '[Gmail]/Spam')