Hi,

I've just gotten around to using sieve with Dovecot, and trying to work
out how scripts should be written has been a bit of a headache.  There
doesn't seem to be coherent documentation, just various people's
cobbled together notes.  So I'm wondering if anybody can see anything
glaringly wrong, or missing, that I haven't noticed in this script.  It
seems to be working, but I don't know if that's by accident, or I've
done it right.


require ["fileinto"];



##### mail test 1 #####
#if header :contains "subject" "mailtest"
#{
#  fileinto "tests";
#  stop;
#}



##### Fedora list #####
if header :contains "List-Id" "users.lists.fedoraproject.org"
{
  fileinto "lists.Fedora 2021";
  stop;
}



###### Fedora 32 updates #####
if allof
(
  header :contains "List-Id" "package-announce.lists.fedoraproject.org",
  header :contains "subject" "Fedora 32 update"
)
{
  fileinto "announcements.Fedora 32";
  stop;
}



##### Fedora 33 updates #####
if allof
(
  header :contains "List-Id" "package-announce.lists.fedoraproject.org",
  header :contains "subject" "Fedora 33 update"
)
{
  fileinto "announcements.Fedora 33";
  stop;
}

 
-- 
 
uname -rsvp
Linux 5.11.15-100.fc32.x86_64 #1 SMP Fri Apr 16 14:19:43 UTC 2021 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to