]> granicus.if.org Git - python/commit
Avoid exception if there's a stray directory inside a Maildir folder.
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 14 Jul 2007 21:56:19 +0000 (21:56 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 14 Jul 2007 21:56:19 +0000 (21:56 +0000)
commit2b09ef0c6d8db26ff6c6c10d94130936b11783da
tree916681a97a36efe246bc07a86aa2ec91551cf6c2
parent6111ce36670d79055d0e357acf246ded39f84529
Avoid exception if there's a stray directory inside a Maildir folder.

The Maildir specification doesn't seem to say anything about this
situation, and it can happen if you're keeping a Maildir mailbox in
Subversion (.svn directories) or some similar system.  The patch just
ignores directories in the cur/, new/, tmp/ folders.
Lib/mailbox.py
Lib/test/test_mailbox.py