On Wed, 10 Oct 2012, Todd Lyons wrote:
> In the following code fragment of the setup script, I have:
>
> for n = 1, nrcpts do
> envrcpt = odkim.get_rcpt(ctx, n-1)
> odkim.log(ctx, "DMARC considering email from "..envrcpt)
> end
>
> I get this error for every email:
>
> Oct 10 17:14:24 lunar opendkim[22755]: q9B0ECGe022798:
> dkimf_lua_setup_hook() failed: [string
> "/usr/local/etc/dkim/setup.lua"]:33: attempt to concatenate global
> 'envrcpt' (a nil value)
What is nrcpts?
The error means odkim.get_rcpt() returned "nil" rather than a string,
which means you can't concatenate it to anything.
> Is there anything obvious that I am doing wrong aside from not checking
> the return value? It should be a string of the envelope recipient.
I'll see if I can reproduce this. Assuming nrcpts is a correct value,
this should be fine.
-MSK
Received on Thu Oct 11 2012 - 07:00:46 PST
This archive was generated by hypermail 2.3.0
: Mon Oct 29 2012 - 23:20:44 PST