[issue12537] mailbox's _become_message is very fragile

2012-04-12 Thread David Lam
David Lam added the comment: Wow, cool! Thanks for the update. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12537] mailbox's _become_message is very fragile

2012-04-08 Thread R. David Murray
R. David Murray added the comment: David, thanks for your assistance. I didn't wind up using your patch, but the work you did was valuable in preparing the patch I committed. What I did was turn your 'detect the attributes' recipe into a unit test. I then applied your patch, but it didn't q

[issue12537] mailbox's _become_message is very fragile

2012-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c1c402a63e5 by R David Murray in branch 'default': #12537: in mailbox avoid depending on knowledge of email package internals http://hg.python.org/cpython/rev/5c1c402a63e5 -- nosy: +python-dev ___ Pytho

[issue12537] mailbox's _become_message is very fragile

2011-09-19 Thread David Lam
Changes by David Lam : Added file: http://bugs.python.org/file23192/12537.find.attribute.differences.patch ___ Python tracker ___ ___ Python-

[issue12537] mailbox's _become_message is very fragile

2011-09-19 Thread David Lam
David Lam added the comment: This patch deletes the leftover special attributes. Thanks for guiding me through my confusion and/or cluelessness! -- keywords: +patch Added file: http://bugs.python.org/file23191/12537.patch ___ Python tracker

[issue12537] mailbox's _become_message is very fragile

2011-09-16 Thread R. David Murray
R. David Murray added the comment: Unfortunately I don't think there is any way except going through each subclass to see what special attributes it creates. -- ___ Python tracker

[issue12537] mailbox's _become_message is very fragile

2011-09-15 Thread David Lam
David Lam added the comment: Hm, it seems right now that the only time that happens is when creating a message based on an mbox message. The 'status' and 'x-status' attributes are deleted. Any hints on what I could to do figure out what special attributes should be deleted? I was thinking

[issue12537] mailbox's _become_message is very fragile

2011-09-14 Thread R. David Murray
R. David Murray added the comment: That is the first step, yes. In addition to that we need to have the various explain_to methods delete the special attributes that aren't valid for the new Message subtype. -- ___ Python tracker

[issue12537] mailbox's _become_message is very fragile

2011-09-14 Thread David Lam
David Lam added the comment: Hi hi, noob here. I found this today after clicking 'Easy issues' link. Would something like this work? test_mailbox.py seems to pass. However, I'm not too sure what more needs to be done in the _explain_to. It seems like everything to convert headers/flags betw

[issue12537] mailbox's _become_message is very fragile

2011-09-01 Thread Justin Wehnes
Changes by Justin Wehnes : -- nosy: +jwehnes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12537] mailbox's _become_message is very fragile

2011-08-28 Thread Kasun Herath
Changes by Kasun Herath : -- nosy: +kasun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12537] mailbox's _become_message is very fragile

2011-07-11 Thread José María Ruiz Aguilera
José María Ruiz Aguilera added the comment: Hi, I will be working on this issue. This is the first time I will work on a issue in Python so please patient. -- nosy: +josemaria ___ Python tracker _

[issue12537] mailbox's _become_message is very fragile

2011-07-11 Thread Thomas Holmes
Changes by Thomas Holmes : -- nosy: +thomas.holmes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12537] mailbox's _become_message is very fragile

2011-07-11 Thread R. David Murray
New submission from R. David Murray : The mailbox module has a method _become_message that copies attributes from an object that is an email.message.Message subclass to the calling object (which is also a subclass of email.message.Message). This method is very fragile in the face of any chang