[Mailman-Users] Misinterpretation of Re : prefix

HB ciradhb.forward at laposte.net
Tue Mar 15 07:55:06 CET 2005

> >
> >Except for Outlook which set this subject prefix to "Re : "
> (note that
> >in this case the prefix contains two tokens). Outlook express and
> >Netscape put the rigt prefix "Re: ". After some tests, it seems that
> >any one-token prefix is accepted ("XXXXX" for instance). And
> this is my
> >problem. I would like to modify the code to accept at least both
> >patterns ("Re : " and "Re: "), but I don't know where the
> decoding of
> >the subject is done. I guess it is a regexp ?
> As you correctly note, the contents of the Subject: is split
> into tokens. If the first token is not a command, the next is
> tried, but that's as far as it goes.
> The code is in Mailman/Queue/CommandRunner.py around line 134
>             if not self.subjcmdretried and args:
>                 self.subjcmdretried += 1
>                 cmd = args.pop(0)
>                 return self.do_command(cmd, args)

I have replaced the test with :
		if self.subjcmdretried<2 and args:

to make it try twice.
Now email subscription works with Outlook as well. Another solutions
would be to remove any ':' occurrence in the cmd param.

Shouldn't this patch be included in mailman source ?

Thanks a lot for your help.


More information about the Mailman-Users mailing list