Only the latest match sets the variables, so you cannot do this in a single if statement. On 25-9-2022 20:36, Marc wrote: > Anyone an idea how you should grab multiple matches from allof? > > if allof ( true, header :regex "Subject" "(test).*(test2)", envelope :matches "from" "*" ) > >