|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [patch] Feature for dict_mysql
From: Loic Le Loarer (loic.le-loarer+postfix
polytechnique.org)
Date: Tue May 04 2004 - 04:27:11 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le Tuesday 04 May 2004 à 01:18:08 +0200, David Anderson a écrit:
> $custom_query must contain a full SQL query. Use the token $(lookup)
> where you want to insert the search key in the request.
>
> The patch affects dict_mysql.c, vstring.h and vstring.c .
> vstring_replace implements a simple "s/$(lookup)/.../g" replacement
> engine, used by mysql_lookup in dict_mysql.c . I didn't write it using
> all the vstring utility functions; instead, I export the original
> string, do replacement using traditionnal string functions, then
> reimport it into a vstring.
Hello
I wrote a similar patch a long time ago :
http://groups.google.fr/groups?hl=fr&lr=&ie=UTF-8&oe=UTF-8&selm=9g64g4%241ikr%241%40FreeBSD.csie.NCTU.edu.tw
but it was never included into Postfix, and I don't know why.
So I would like to support your request, this is a needed feature and I
hope that Wietse will one day accept to add it in dict_mysql (and
dict_pqsql for completeness).
Best regards
--
Loic Le Loarer
Fench
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAl2Hv9Jq4sC4j73YRAvZUAJ9iwwMvPnbE7c82FTyRyf9MNuL0vgCg1LID
LFPks9FiGmGmmfMdcsSVe6E=
=3TY/
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]