Changes by Jonathan Dowland jon+pyt...@alcopop.org:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20328
___
___
Python
New submission from Jonathan Dowland:
It would be great if the 'mailbox' library supported a 'remove' or 'delete'
operation for the mailbox itself as part of its abstract interface. It does
support removing messages, and the sub-classes for Maildir, MH etc. support
removing sub-folders
Jonathan Dowland added the comment:
Hi David, thanks for replying!
On Tue, Jan 21, 2014 at 03:08:04PM +, R. David Murray wrote:
Conceptually the problem with this is that if you use the object to
delete the folder, you now have an object with no folder...that is, an
invalid object
Jonathan Dowland added the comment:
Hi,
On Fri, Jan 31, 2014 at 03:03:09PM +, R. David Murray wrote:
I think your arguments are good ones. So, if you want to propose a
patch that defines some semantics for delete (and possibly address the
maildir folder delete similarly), I will review
Jonathan Dowland added the comment:
Hi, sorry for the long silence on this issue. I've had a few things going on.
Anyway, I didn't want to forget all about this; I've been working on it in two
phases. Phase 1 adds delete methods; Phase 2 handles non-existent mailboxes.
Please find attached my
Jonathan Dowland added the comment:
another test
--
Added file:
http://bugs.python.org/file35893/0003-test-for-deletion-of-sub-folders.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20328
Jonathan Dowland added the comment:
patch adding tests
--
Added file:
http://bugs.python.org/file35892/0002-add-tests-for-deleting-Maildir-and-singleFileMailbox.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20328
Jonathan Dowland added the comment:
Hi David, whilst writing my patch I've tried to keep an open mind as to users
of the methods, but I do have my own purpose in the back of my mind, and that's
an archive mail tool which I would like to delete mail folders if, after
performing an archive