mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 10:58:17 +00:00
330 B
330 B
message:get_meta(KEY)
Messages are associated with some metadata. You can think of this metadata as being equivalent to a JSON object.
The get_meta method allows you to retrieve a field of that object.
msg:set_meta('foo', 'bar')
print(msg:get_meta 'foo') -- prints 'bar'
See also msg:set_meta.