[Exim] Exim 4.04: ${sg ...} in command

Pàgina inicial
Delete this message
Reply to this message
Autor: Florian Weimer
Data:  
A: exim-users
Assumpte: [Exim] Exim 4.04: ${sg ...} in command
The following transport

| list_subscribe_transport:
|   driver = pipe
|   user = MAILMAN_USER
|   group = MAILMAN_GROUP
|   current_directory = MAILMAN_HOME
|   home_directory = MAILMAN_HOME
|   log_output
|   command = /usr/local/sbin/ezmlm-to-mailman \
|     ${sg{$local_part}{-(?:un)?subscribe\$}{}} \
|     $domain \
|     ${sg{$local_part}{^.*-}{}}


is invoked with "authors-subscribe" for $local_part.

Enabling debugging reveals that

| direct command:
| argv[0] = /usr/local/sbin/ezmlm-to-mailman
| argv[1] = ${sg{$local_part}{-(?:un)?subscribe\$}{}}
| argv[2] = $domain
| argv[3] = ${sg{$local_part}{^.*-}{}}


is expanded to:

| direct command after expansion:
| argv[0] = /usr/local/sbin/ezmlm-to-mailman
| argv[1] = authors
| argv[2] = lists.cert.uni-stuttgart.de
| argv[3] = authors


while I would have expected:

| direct command after expansion:
| argv[0] = /usr/local/sbin/ezmlm-to-mailman
| argv[1] = authors
| argv[2] = lists.cert.uni-stuttgart.de
| argv[3] = subscribe


Is my expectation wrong? If yes, why?

--
Florian Weimer                       Weimer@???
University of Stuttgart           http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898