Re: [PATCH v6 1/2] parsemail: Convert to a management command

2016-09-21 Thread Thomas Monjalon
Hi, 2016-09-20 00:08, Stephen Finucane: > On 20 Sep 01:22, Daniel Axtens wrote: > > So, umm, I went ahead and had a crack at this. > > > > It turns out this is hideously difficult to get right. But this plus my > > other patch to fix Thomas' problem should have things working on Py2 and > > Py3

Re: [PATCH v6 1/2] parsemail: Convert to a management command

2016-09-19 Thread Stephen Finucane
On 20 Sep 01:22, Daniel Axtens wrote: > So, umm, I went ahead and had a crack at this. > > It turns out this is hideously difficult to get right. But this plus my > other patch to fix Thomas' problem should have things working on Py2 and > Py3 with this series. > > It's a bit of a work in

Re: [PATCH v6 1/2] parsemail: Convert to a management command

2016-09-19 Thread Daniel Axtens
So, umm, I went ahead and had a crack at this. It turns out this is hideously difficult to get right. But this plus my other patch to fix Thomas' problem should have things working on Py2 and Py3 with this series. It's a bit of a work in progress: I need to close the file at the end of the

[PATCH v6 1/2] parsemail: Convert to a management command

2016-09-11 Thread Stephen Finucane
Management comands allow applications to register their own actions with 'manage.py'. This provides some advantages, like automatically configuring Django (removing the need for 'django.setup' calls) and removing the need to set the PYTHON_PATH. The 'parsemail' script is a natural fit for this