Sieve to process list mail based on list-ID

@lbutlr kremels at kreme.com
Fri Feb 16 22:31:42 EET 2018


On 2018-02-16 (00:18 MST), Aki Tuomi <aki.tuomi at 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 at users+other@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.




More information about the dovecot mailing list