Permalink
Browse files

pep8

Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
  • Loading branch information...
1 parent 7ca4304 commit 1a4462f9e7b889c60e6e7222c5bd8fda401b8c4b @awieser awieser committed Dec 30, 2011
Showing with 5 additions and 6 deletions.
  1. +4 −4 emails/memacs_imap.py
  2. +1 −2 example/memacs_example.py
View
@@ -56,7 +56,7 @@ def _parser_add_arguments(self):
dest="folder_name",
help="name of folder to get emails from, " + \
"when you don't know name call --list-folders")
-
+
self._parser.add_argument(
"--fetch-number",
dest="fetch_number",
@@ -136,12 +136,12 @@ def __handle_folder(self, server, folder_name):
if typ == "OK":
message_ids = data[0].split()
logging.debug("message_ids:%s", ",".join(message_ids))
-
+
+ # if fetch_number is set we have to adapt messages_ids
if self._args.fetch_number:
if len(message_ids) > self._args.fetch_number:
message_ids = message_ids[-self._args.fetch_number:]
-
-
+
self.__fetch_mails_and_write(server, message_ids, folder_name)
else:
logging.error("Could not select folder %s - typ:%s",
@@ -50,14 +50,13 @@ def _parser_add_arguments(self):
# action="store_true",
# help="path to a folder to search for filenametimestamps, " +
# "multiple folders can be specified: -f /path1 -f /path2")
-
+
#self._parser.add_argument(
# "-i", "--int", dest="example_int",
# action="store_true",
# help="example2",
# type=int)
-
def _parser_parse_args(self):
"""
overwritten method of class Memacs

0 comments on commit 1a4462f

Please sign in to comment.