Sieve Header question.
Larry Rosenman
larryrtx at gmail.com
Sat Aug 31 01:25:41 EEST 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190830/74028399/attachment.html>
More information about the dovecot
mailing list