Re: [exim] Writing to a file from an ACL

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jakob Hirsch
Dátum:  
Címzett: Exim Users Mailing List
Tárgy: Re: [exim] Writing to a file from an ACL
Alan J. Flavell wrote:

>>${run{/bin/bash -c 'echo $primary_hostname >> /tmp/blub'}}
> I suppose that particular instance is OK; but I'm always
> nervous of writing lines of that kind, just in case the
> expanded variable contains something nasty. Such as a sender
> local part that contained a semi-colon, or whatever.


Oh, right, missed that. ${quote:<string>} could do the job (if missed
nothing here), though $primary_hostname should be safe. But you never
what people put in there...