Configuration

Anthony Newnam anthony at bnovc.com
Fri Jan 16 04:39:51 EST 2009


My python is parsing the mail files incorrectly. If I strip out the
non-related headers in the email, it works.

I tried to upgrade to Python 3 to see if this bug has been fixed, but
patchwork doesn't work with it:

$ /srv/patchwork/apps/patchwork/bin/parsemail.sh < /var/mail/newnam
  File "/srv/patchwork/apps/patchwork/bin/parsemail.py", line 56
    return normalise_space(u' '.join(fragments))
                              ^
SyntaxError: invalid syntax

On Thu, Jan 15, 2009 at 9:41 AM, Anthony Newnam <anthony at bnovc.com> wrote:
> $ sudo -u nobody /srv/patchwork/apps/patchwork/bin/parsemail.sh <
> /var/mail/newnam
> main
> No Subject
>
> (I obviously added those two prints, but that is all I modified)
>
> On Thu, Jan 15, 2009 at 9:38 AM, Nate Case <ncase at xes-inc.com> wrote:
>> On Thu, 2009-01-15 at 09:33 -0600, Anthony Newnam wrote:
>>> You're right, I figured that out a few minutes ago.
>>>
>>> It now dies inside parsemail.py on all of the: if "x" not in mail:
>>> lines. Regardless of what I put there it fails. I don't know python,
>>> so I'm having trouble debugging this. I did print mail and it looks
>>> fine to me, I see all of the things it says it can not find.
>>
>> That's strange.  Is it getting a Python exception?  What is the output?
>>
>> --
>> Nate Case <ncase at xes-inc.com>
>>
>>
>



More information about the Patchwork mailing list