automx Release Candidate 0.8~rc1

Patrick Ben Koetter p at state-of-mind.de
Wed Mar 14 20:54:23 CET 2012


* André Schild <a.schild at aarboard.ch>:
> I found the problem:
> 
> In config.py line 569 and following only ONE is replaced
> 
>         if "%u" in expression:
>             user = self.__emailaddress.split("@")[0]
>             expression = expression.replace("%u", user)
>         elif "%d" in expression:
>             domain = self.__search_domain
>             expression = expression.replace("%d", domain)
>         elif "%s" in expression:
>             email = self.__emailaddress
>             expression = expression.replace("%s", email)
> 
> 
> The solution for me was to use %s, which is documented as
> 
> %s   This macro is replaced by the input key.
> 
> If it would have been documented as "complete email address" then I
> would first have tried that one ;)

I've added extra text to give a better explanation.

I deliberately choose "input key" because automx literally uses what the
client sent. If the client sent a string that represents a mail address then
"complete email address" is correct. If it sends garbish "input key" suites it
better.

Anyway, I am nitpicking. Change has been comitted.

p at rick

-- 
state of mind ()

http://www.state-of-mind.de

Franziskanerstraße 15      Telefon +49 89 3090 4664
81669 München              Telefax +49 89 3090 4666

Amtsgericht München        Partnerschaftsregister PR 563



More information about the automx-users mailing list