Skip to content

Commit

Permalink
removed some unused args, renamed to avoid shadowing a name in the gl…
Browse files Browse the repository at this point in the history
…obal scope.
  • Loading branch information
zevaverbach committed Jul 25, 2018
1 parent a1801af commit 55f64a1
Show file tree
Hide file tree
Showing 2 changed files with 308 additions and 4 deletions.
305 changes: 305 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions imbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def logout(self):
hostname=self.hostname, username=self.username))

def query_uids(self, **kwargs):
query = build_search_query(**kwargs)
message, data = self.connection.uid('search', None, query)
query_ = build_search_query(**kwargs)
message, data = self.connection.uid('search', None, query_)
if data[0] is None:
return []
return data[0].split()
Expand Down Expand Up @@ -69,7 +69,6 @@ def mark_flag(self, uid):

def delete(self, uid):
logger.info("Mark UID {} with \\Deleted FLAG and expunge.".format(int(uid)))
mov, data = self.connection.uid('STORE', uid, '+FLAGS', '(\\Deleted)')
self.connection.expunge()

def copy(self, uid, destination_folder):
Expand All @@ -81,7 +80,7 @@ def move(self, uid, destination_folder):
if self.copy(uid, destination_folder):
self.delete(uid)

def messages(self, *args, **kwargs):
def messages(self, **kwargs):
folder = kwargs.get('folder', False)
msg = ""

Expand Down

0 comments on commit 55f64a1

Please sign in to comment.