Sieve Header question.

Larry Rosenman larryrtx at gmail.com
Sat Aug 31 01:44:57 EEST 2019


Ok, I figured it out.  Needed to use a :regex match instead of :matches.


On Fri, Aug 30, 2019 at 5:25 PM Larry Rosenman <larryrtx at gmail.com> wrote:

> I'm trying to make my github processing better, but I'm missing something.
>
> I have the following:
> if address :all :contains "from" ["github.com"] {
>    addflag "github";
>    addflag "MyFlags" "github";
>    set "mailbox" "GitHub";
>    if address :matches :user  "to" "*" {
>       set "GHUser" "${1}";
>       addflag "${GHUser}";
>       addflag "MyFlags" "${GHuser}";
>    }
>    if header :matches "List-ID" "(.*/.*) <(.*)>" {
>       set "mailbox" "github-lists/${1}";
>    }
>    fileinto :flags "${MyFlags}" :create "${mailbox}";
>    stop;
> }
>
> I'm trying to match the apache-incubator-superset part of:
> List-ID: apache/incubator-superset <incubator-superset.apache.github.com>
>
> What am I missing?
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640 (c)     E-Mail: larryrtx at gmail.com
> US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
>


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640 (c)     E-Mail: larryrtx at gmail.com
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190830/a7efa3bf/attachment.html>


More information about the dovecot mailing list