dovecot-sieve filter for github

require ["fileinto", "variables", "imap4flags"];

if allof (
      header :matches "Subject" "Re: [*/*]*",
      address :is ["from", "sender"] ["notifications@github.com"]
)
{
  fileinto "INBOX.notifications.github.${1}.${2}";
  #addflag "\\Seen";
  stop;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.