qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Will the qemu-devel prefix in the mails come back?


From: Martin Schrodt
Subject: Re: Will the qemu-devel prefix in the mails come back?
Date: Thu, 19 Sep 2019 20:22:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0

On 9/19/19 8:13 PM, Alexander von Gluck IV wrote:
> Here's catching + sorting this ML in procmail...
> 
> :0:
> * ^(List-Id).*qemu-devel.nongnu.org.*
> .Lists.Qemu/
> 


Here's what I did (dovecot sieve):

if exists "List-Id" {
        if header :regex "List-id" "<([a-z_0-9-]+)[.@]" {
                set :lower "listname" "${1}";
                fileinto :create "INBOX.list.${listname}";
        }
        stop;
}

This will take headers of the form

List-Id: <qemu-devel.nongnu.org>

and sort into INBOX.lists.qemu-devel in this case.

Works for other lists with the same header as well :)

Cheers!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]