Skip to content

Commit

Permalink
Add detailed debug output to the rescan process
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Jan 6, 2014
1 parent e41792f commit dff4ea5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mailpile/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ 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 dff4ea5

Please sign in to comment.