On 2018-02-16 (00:18 MST), Aki Tuomi <aki.tu...@dovecot.fi> wrote:
> 
> On 16.02.2018 04:36, @lbutlr wrote:
>> 
>> But I am looking for something more generic, along the lines of
>> 
>> $myLists = {"dovecot", "postfix", "other-list")
>> if header :contains "List-ID" "<([^\.])+." { $myID $1; }
>> if $myList :contains $myID { 
>>  if { $myID is other-list {
>>     set $myID to Olist;
>>     set header "reply-to" to "moderator@users+ot...@foo.example.net";
>>  }
>> fileinto $myID;

> you can use regular expressions with sieve, see
> https://wiki2.dovecot.org/Pigeonhole/Sieve/Examples

Thanks. While that shows MATCHING with regex, it doesn't;t show capturing regex 
matches into variables for reuse. But I'll explore more.


Reply via email to