Cleaning up some more use of the old message string "content" to use "msg" email object instead.

This commit is contained in:
Joseph Ishac
2021-02-19 17:00:15 -05:00
parent 1d2478bcb6
commit 49b6c30ace
6 changed files with 11 additions and 20 deletions

View File

@ -254,7 +254,7 @@ class MaildirFolder(BaseFolder):
# Interface from BaseFolder
def getmessage(self, uid):
"""Return the content of the message."""
"""Returns and email message object."""
filename = self.messagelist[uid]['filename']
filepath = os.path.join(self.getfullname(), filename)
@ -287,7 +287,7 @@ class MaildirFolder(BaseFolder):
return uniq_name.replace(os.path.sep, self.sep_subst)
def save_to_tmp_file(self, filename, msg, policy=None):
"""Saves given content to the named temporary file in the
"""Saves given message to the named temporary file in the
'tmp' subdirectory of $CWD.
Arguments: