type.inbound
// self sender
and (
length(recipients.to) == 1
and length(recipients.cc) == 0
and sender.email.email in map(recipients.to, .email.email)
)
and strings.icontains(subject.subject, sender.email.email)
and strings.icontains(subject.subject, sender.display_name)
and sender.email.email != sender.display_name
// copy
and strings.icontains(body.current_thread.text, 'copier')
// paste
and strings.icontains(body.current_thread.text, 'coller')
and (
strings.contains(body.current_thread.text, '.pages.dev')
or strings.contains(body.current_thread.text, '.web.app')
)
Playground
Test against your own EMLs or sample data.