Reformat offlineimap/folder/Base.py
Add some spaces, remove lines,... now format is better (lintian).
This commit is contained in:
parent
fefc3a5717
commit
9ebdbe47ee
@ -418,7 +418,6 @@ class BaseFolder(object):
|
|||||||
except:
|
except:
|
||||||
raise IOError("Can't read %s" % uidfile)
|
raise IOError("Can't read %s" % uidfile)
|
||||||
|
|
||||||
|
|
||||||
def savemessage(self, uid, content, flags, rtime):
|
def savemessage(self, uid, content, flags, rtime):
|
||||||
"""Writes a new message, with the specified uid.
|
"""Writes a new message, with the specified uid.
|
||||||
|
|
||||||
@ -681,7 +680,6 @@ class BaseFolder(object):
|
|||||||
self.ui.debug('', 'addmessageheader: new_header = %s' % repr(new_header))
|
self.ui.debug('', 'addmessageheader: new_header = %s' % repr(new_header))
|
||||||
return headers + new_header + content[insertionpoint:]
|
return headers + new_header + content[insertionpoint:]
|
||||||
|
|
||||||
|
|
||||||
def __find_eoh(self, content):
|
def __find_eoh(self, content):
|
||||||
"""Searches for the point where mail headers end.
|
"""Searches for the point where mail headers end.
|
||||||
|
|
||||||
@ -698,7 +696,6 @@ class BaseFolder(object):
|
|||||||
|
|
||||||
return eoh_cr
|
return eoh_cr
|
||||||
|
|
||||||
|
|
||||||
def getmessageheader(self, content, name):
|
def getmessageheader(self, content, name):
|
||||||
"""Return the value of the first occurence of the given header.
|
"""Return the value of the first occurence of the given header.
|
||||||
|
|
||||||
@ -724,7 +721,6 @@ class BaseFolder(object):
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def getmessageheaderlist(self, content, name):
|
def getmessageheaderlist(self, content, name):
|
||||||
"""Return a list of values for the given header.
|
"""Return a list of values for the given header.
|
||||||
|
|
||||||
@ -744,7 +740,6 @@ class BaseFolder(object):
|
|||||||
return re.findall('^%s:(.*)$' %
|
return re.findall('^%s:(.*)$' %
|
||||||
name, headers, flags=re.MULTILINE | re.IGNORECASE)
|
name, headers, flags=re.MULTILINE | re.IGNORECASE)
|
||||||
|
|
||||||
|
|
||||||
def deletemessageheaders(self, content, header_list):
|
def deletemessageheaders(self, content, header_list):
|
||||||
"""Deletes headers in the given list from the message content.
|
"""Deletes headers in the given list from the message content.
|
||||||
|
|
||||||
@ -778,9 +773,6 @@ class BaseFolder(object):
|
|||||||
|
|
||||||
return '\n'.join(new_headers) + rest
|
return '\n'.join(new_headers) + rest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def change_message_uid(self, uid, new_uid):
|
def change_message_uid(self, uid, new_uid):
|
||||||
"""Change the message from existing uid to new_uid.
|
"""Change the message from existing uid to new_uid.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user