Skip to content

Commit

Permalink
Move the rescan debugger to an actually useful place
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Jan 6, 2014
1 parent dff4ea5 commit 38ad8e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mailpile/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def scan_mailbox(self, session, mailbox_idx, mailbox_fn, mailbox_opener):
play_nice_with_threads()

# Message new or modified, let's parse it.
if 'rescan' in session.config.sys.debug:
session.ui.debug('Reading message %s/%s' % (mailbox_idx, i))
msg_fd = mbox.get_file(i)
msg = ParseMessage(msg_fd,
pgpmime=session.config.prefs.index_encrypted)
Expand All @@ -392,10 +394,6 @@ def scan_mailbox(self, session, mailbox_idx, mailbox_fn, mailbox_opener):
# Add new message!
msg_mid = b36(len(self.INDEX))

if 'rescan' in session.config.sys.debug:
session.ui.debug(('Reading message %s=%s/%s (%d bytes)'
) % (msg_mid, mailbox_idx, i, msg_size))

msg_ts = self._extract_date_ts(session, msg_mid, msg_id, msg,
msg_ts)

Expand Down

0 comments on commit 38ad8e3

Please sign in to comment.