type.inbound
and any(body.current_thread.links,
.href_url.domain.root_domain == "dropbox.com"
and strings.istarts_with(.href_url.path, '/scl/fi/')
and strings.iends_with(.href_url.path, '.paper')
and 'rlkey' in keys(.href_url.query_params_decoded)
)
Playground
Test against your own EMLs or sample data.