Skip to content

Instantly share code, notes, and snippets.

@fatalbanana
Created October 1, 2023 12:04
Show Gist options
  • Save fatalbanana/3fb182ab8a37ddec7de0d561a573353c to your computer and use it in GitHub Desktop.
Save fatalbanana/3fb182ab8a37ddec7de0d561a573353c to your computer and use it in GitHub Desktop.
Conveniently load a message into `rspamadm lua` REPL
-- rspamadm lua -s load.lua -a message.eml
rspamd_task = require 'rspamd_task'
ok, task = rspamd_task.load_from_file(arg[1])
assert(ok)
assert(task:process_message())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment