Formatting and adding the requirements that were removed as part of the "Included charset detection" patch that was reverted. Added all but chardet~=3.0.4 which is not needed with this fix.
This commit is contained in:
parent
f71ef226bf
commit
14b318b0e2
@ -370,7 +370,7 @@ class BaseFolder:
|
||||
return len(self.getmessagelist())
|
||||
|
||||
def getmessage(self, uid):
|
||||
"""Returns and email message object."""
|
||||
"""Returns an email message object."""
|
||||
|
||||
raise NotImplementedError
|
||||
|
||||
@ -662,7 +662,7 @@ class BaseFolder:
|
||||
"""Adds new header to the provided message.
|
||||
|
||||
Arguments:
|
||||
- msg: message itself
|
||||
- msg: message object
|
||||
- headername: name of the header to add
|
||||
- headervalue: value of the header to add
|
||||
|
||||
@ -682,7 +682,7 @@ class BaseFolder:
|
||||
Header name is case-insensitive.
|
||||
|
||||
Arguments:
|
||||
- msg: message itself
|
||||
- msg: message object
|
||||
- headername: name of the header to be searched
|
||||
|
||||
Returns: header value or None if no such header was found.
|
||||
@ -697,7 +697,7 @@ class BaseFolder:
|
||||
Header name is case-insensitive.
|
||||
|
||||
Arguments:
|
||||
- msg: message itself
|
||||
- msg: message object
|
||||
- headername: name of the header to be searched
|
||||
|
||||
Returns: list of header values or empty list if no such header was
|
||||
@ -711,7 +711,7 @@ class BaseFolder:
|
||||
"""Deletes headers in the given list from the message.
|
||||
|
||||
Arguments:
|
||||
- msg: message itself
|
||||
- msg: message object
|
||||
- header_list: list of headers to be deleted or just the header name
|
||||
|
||||
"""
|
||||
@ -731,8 +731,8 @@ class BaseFolder:
|
||||
Date field header by default.
|
||||
|
||||
Arguments:
|
||||
- msg: message itself
|
||||
- header: headers to extract the date from
|
||||
- msg: message object
|
||||
- header: header to extract the date from
|
||||
|
||||
Returns: timestamp or `None` in the case of failure.
|
||||
"""
|
||||
|
@ -254,7 +254,7 @@ class MaildirFolder(BaseFolder):
|
||||
|
||||
# Interface from BaseFolder
|
||||
def getmessage(self, uid):
|
||||
"""Returns and email message object."""
|
||||
"""Returns an email message object."""
|
||||
|
||||
filename = self.messagelist[uid]['filename']
|
||||
filepath = os.path.join(self.getfullname(), filename)
|
||||
|
@ -3,3 +3,8 @@ gssapi[kerberos]
|
||||
portalocker[cygwin]
|
||||
rfc6555
|
||||
distro
|
||||
|
||||
imaplib2~=3.5
|
||||
urllib3~=1.25.9
|
||||
certifi~=2020.6.20
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user