Re: [Exim] acl_check_content & MySQL

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tom Kistner
Dátum:  
Címzett: dougal, exim-users
Tárgy: Re: [Exim] acl_check_content & MySQL
Dougal McWhinney wrote:

> What command do I use to return to "demime" a list of colon separated
> values from the table?


Depends on how they are stored in the table. If they are in separate
rows, exim will return them separated with \n, which you can replace
with ":" using the sg{} operator.

Untested example:

deny message = contains blacklisted file extension ($found_extension)
      demime = ${sg{${lookup mysql {select extension\
                                    from filetypes}}}{\\n}{:}}


regards,

/tom