More Progress

This commit is contained in:
Iwan Clement
2020-06-12 21:27:08 +02:00
parent 10c178bbb2
commit 60b4ec8f0a
2 changed files with 33 additions and 30 deletions

View File

@@ -2,4 +2,8 @@
import yaml import yaml
f = open('rules.yaml') f = open('rules.yaml')
dohicky = yaml.safe_load(f) dohicky = yaml.safe_load(f)
for i in dohicky:
print(i)
#print(dohicky)
f.close() f.close()

View File

@@ -1,202 +1,201 @@
--- ---
items: - id: 5ce42a14bf802e0001684668
- 5ce42a14bf802e0001684668:
actions: actions:
- store() - store()
- stop() - stop()
description: Suppression UDEMY description: Suppression UDEMY
expression: match_recipient("iwan*.udemy@mg.*.space") expression: match_recipient("iwan*.udemy@mg.*.space")
priority: 0 priority: 0
- 5cd48c308b3cd70001f79bfb: - id: 5cd48c308b3cd70001f79bfb
actions: actions:
- forward("nadinepub.clement@free.fr") - forward("nadinepub.clement@free.fr")
- stop() - stop()
description: EU domains for Nadine description: EU domains for Nadine
expression: match_recipient("nadine.*@mg.*.eu") expression: match_recipient("nadine.*@mg.*.eu")
priority: 0 priority: 0
- 5cd48b47a4764a00013cee72: - id: 5cd48b47a4764a00013cee72
actions: actions:
- forward("iwan.clement@gmx.fr") - forward("iwan.clement@gmx.fr")
- stop() - stop()
description: EU domains description: EU domains
expression: match_recipient("iwan.*@mg.*.eu") expression: match_recipient("iwan.*@mg.*.eu")
priority: 0 priority: 0
- 5db1e61d11c830a64e8e2dba: - id: 5db1e61d11c830a64e8e2dba
actions: actions:
- forward("iwan.clement@mail.fr") - forward("iwan.clement@mail.fr")
- stop() - stop()
description: iwanpub@mg.*.eu description: iwanpub@mg.*.eu
expression: match_recipient("iwanpub.*@mg.*.eu") expression: match_recipient("iwanpub.*@mg.*.eu")
priority: 1 priority: 1
- 5ce18c92629574000195c8de: - id: 5ce18c92629574000195c8de
actions: actions:
- forward("iwan.pubclement@gmx.fr") - forward("iwan.pubclement@gmx.fr")
- stop() - stop()
description: Tout ce qui arrive sur le domaine pour mg.iwanclement.eu description: Tout ce qui arrive sur le domaine pour mg.iwanclement.eu
expression: match_recipient(".*@mg.iade-lyon.eu") expression: match_recipient(".*@mg.iade-lyon.eu")
priority: 2 priority: 2
- 5ca2330d6295740001322814: - id: 5ca2330d6295740001322814
actions: actions:
- forward("iwan.pubclement@mail.fr, nadinepub.clement@free.fr") - forward("iwan.pubclement@mail.fr, nadinepub.clement@free.fr")
- stop() - stop()
description: LIDL description: LIDL
expression: match_recipient("iwanpub.lidl@mg.*.space") expression: match_recipient("iwanpub.lidl@mg.*.space")
priority: 2 priority: 2
- 5c726e2f8b3cd70001237ee5: - id: 5c726e2f8b3cd70001237ee5
actions: actions:
- forward("nadineclement@mail.fr") - forward("nadineclement@mail.fr")
- stop() - stop()
description: Tout pour Nadine Clement description: Tout pour Nadine Clement
expression: match_recipient(".*@mg.iade-lyon.eu") expression: match_recipient(".*@mg.iade-lyon.eu")
priority: 2 priority: 2
- 5c570e59bf802e00012989e9: - id: 5c570e59bf802e00012989e9
actions: actions:
- forward("iwanpro.clement@free.fr") - forward("iwanpro.clement@free.fr")
- stop() - stop()
description: Iwan Professionnel description: Iwan Professionnel
expression: match_recipient("iwanpro.*@mg.*.space") expression: match_recipient("iwanpro.*@mg.*.space")
priority: 2 priority: 2
- 5baa01368ecd8700013c5010: - id: 5baa01368ecd8700013c5010
actions: actions:
- forward("nadineclement@mail.fr") - forward("nadineclement@mail.fr")
- stop() - stop()
description: Tout pour Nadine Clement description: Tout pour Nadine Clement
expression: match_recipient(".*@mg.nadineclement.eu") expression: match_recipient(".*@mg.nadineclement.eu")
priority: 2 priority: 2
- 5b6d4d826295740001913849: - id: 5b6d4d826295740001913849
actions: actions:
- forward("aristide1clement@gmail.com,iwan.clement@free.fr") - forward("aristide1clement@gmail.com,iwan.clement@free.fr")
- stop() - stop()
description: Aristide MG description: Aristide MG
expression: match_recipient("aristidepub.*@mg.*.space") expression: match_recipient("aristidepub.*@mg.*.space")
priority: 2 priority: 2
- 5b6d4c278b3cd70001ebdfda: - id: 5b6d4c278b3cd70001ebdfda
actions: actions:
- forward("iwanadm@free.fr") - forward("iwanadm@free.fr")
- stop() - stop()
description: '' description: ''
expression: match_recipient("backup.*@mg.*.space") expression: match_recipient("backup.*@mg.*.space")
priority: 2 priority: 2
- 5c5499376295740001fe1e27: - id: 5c5499376295740001fe1e27
actions: actions:
- forward("iwanadm@free.fr") - forward("iwanadm@free.fr")
- stop() - stop()
description: applications description: applications
expression: match_recipient("iwanapp.*@mg.*.space") expression: match_recipient("iwanapp.*@mg.*.space")
priority: 3 priority: 3
- 5c5343c345d85900018ceee6: - id: 5c5343c345d85900018ceee6
actions: actions:
- forward("iwan.pubclement@gmx.fr") - forward("iwan.pubclement@gmx.fr")
- stop() - stop()
description: pour les jobs. description: pour les jobs.
expression: match_recipient("iwanjob.*@mg.*.space") expression: match_recipient("iwanjob.*@mg.*.space")
priority: 3 priority: 3
- 5c5eb3376295740001546abf: - id: 5c5eb3376295740001546abf
actions: actions:
- forward("nadinepub.clement@free.fr") - forward("nadinepub.clement@free.fr")
- stop() - stop()
description: Les pubs pour Nadine description: Les pubs pour Nadine
expression: match_recipient("nadinepub.*@mg.*.space") expression: match_recipient("nadinepub.*@mg.*.space")
priority: 4 priority: 4
- 5c534e78bf802e00013232e5: - id: 5c534e78bf802e00013232e5
actions: actions:
- forward("iwan.pubclement@gmx.fr") - forward("iwan.pubclement@gmx.fr")
- stop() - stop()
description: Iwanpub description: Iwanpub
expression: match_recipient("iwanpub.*@mg.*.space") expression: match_recipient("iwanpub.*@mg.*.space")
priority: 4 priority: 4
- 5bbe45dc6295740001b26ffd: - id: 5bbe45dc6295740001b26ffd
actions: actions:
- forward("iwanadm@free.fr") - forward("iwanadm@free.fr")
- stop() - stop()
description: admin.qqchose description: admin.qqchose
expression: match_recipient("admin.*@mg.*.space") expression: match_recipient("admin.*@mg.*.space")
priority: 4 priority: 4
- 5b9b758aa4764a000133bfbe: - id: 5b9b758aa4764a000133bfbe
actions: actions:
- forward("iwanadm@free.fr") - forward("iwanadm@free.fr")
- stop() - stop()
description: '' description: ''
expression: match_recipient("proxmox.*@mg.*.space") expression: match_recipient("proxmox.*@mg.*.space")
priority: 4 priority: 4
- 5bae76a745d8590001287978: - id: 5bae76a745d8590001287978
actions: actions:
- forward("iwanadm@free.fr") - forward("iwanadm@free.fr")
- stop() - stop()
description: '' description: ''
expression: match_recipient("adm.*@mg.*.space") expression: match_recipient("adm.*@mg.*.space")
priority: 5 priority: 5
- 5b8d79f98b3cd700019d5205: - id: 5b8d79f98b3cd700019d5205
actions: actions:
- forward("ivan.pubclement@free.fr") - forward("ivan.pubclement@free.fr")
- stop() - stop()
description: aristide chez Sosh description: aristide chez Sosh
expression: match_recipient("aristide.sosh@mg.*.space") expression: match_recipient("aristide.sosh@mg.*.space")
priority: 5 priority: 5
- 5b799e80a4764a000192cf3b: - id: 5b799e80a4764a000192cf3b
actions: actions:
- forward("iwanadm@free.fr") - forward("iwanadm@free.fr")
- stop() - stop()
description: Pour Piwigo description: Pour Piwigo
expression: match_recipient("iwanadm@free.fr") expression: match_recipient("iwanadm@free.fr")
priority: 5 priority: 5
- 5c726e7e8ecd870001264998: - id: 5c726e7e8ecd870001264998
actions: actions:
- forward("aristide1clement@gmail.com") - forward("aristide1clement@gmail.com")
- stop() - stop()
description: '' description: ''
expression: match_recipient("aristide.*@mg.*.space") expression: match_recipient("aristide.*@mg.*.space")
priority: 6 priority: 6
- 5c726b408ecd870001264739: - id: 5c726b408ecd870001264739
actions: actions:
- forward("gwladys.clement@gmail.com") - forward("gwladys.clement@gmail.com")
- stop() - stop()
description: Gwladys.qqc description: Gwladys.qqc
expression: match_recipient("gwladys.*@mg.*.space") expression: match_recipient("gwladys.*@mg.*.space")
priority: 6 priority: 6
- 5c726b19bf802e000162d921: - id: 5c726b19bf802e000162d921
actions: actions:
- forward("ophelie.clement@gmail.com") - forward("ophelie.clement@gmail.com")
- stop() - stop()
description: Tout Ophelie.qqc description: Tout Ophelie.qqc
expression: match_recipient("ophelie.*@mg.*.space") expression: match_recipient("ophelie.*@mg.*.space")
priority: 6 priority: 6
- 5c419a518b3cd70001c5ddea: - id: 5c419a518b3cd70001c5ddea
actions: actions:
- forward("iwan.clement@gmx.fr") - forward("iwan.clement@gmx.fr")
- stop() - stop()
description: '' description: ''
expression: match_recipient("iwan.*@mg.*.space") expression: match_recipient("iwan.*@mg.*.space")
priority: 6 priority: 6
- 5b8a5bcd8b3cd700017130ed: - id: 5b8a5bcd8b3cd700017130ed
actions: actions:
- forward("emmanuellelou@gmail.com") - forward("emmanuellelou@gmail.com")
- stop() - stop()
description: MG Emmanuelle Clément description: MG Emmanuelle Clément
expression: match_recipient("emmanuelle.*@mg.*.space") expression: match_recipient("emmanuelle.*@mg.*.space")
priority: 6 priority: 6
- 5ce18d97bf802e00019eaace: - id: 5ce18d97bf802e00019eaace
actions: actions:
- forward("sandrine.peinnequin@gmail.com") - forward("sandrine.peinnequin@gmail.com")
- stop() - stop()
description: Sandrine Peinnequin description: Sandrine Peinnequin
expression: match_recipient("sandrine.*@mg.*.space") expression: match_recipient("sandrine.*@mg.*.space")
priority: 8 priority: 8
- 5ce18cf4a4764a0001d95b58: - id: 5ce18cf4a4764a0001d95b58
actions: actions:
- forward("bruno.joachim@gmail.com") - forward("bruno.joachim@gmail.com")
- stop() - stop()
description: Bruno Joachim description: Bruno Joachim
expression: match_recipient("bruno.*@mg.*.space") expression: match_recipient("bruno.*@mg.*.space")
priority: 8 priority: 8
- 5baf5ac78b3cd70001ebae82: - id: 5baf5ac78b3cd70001ebae82
actions: actions:
- forward("stephane.guillot_32@kindle.com") - forward("stephane.guillot_32@kindle.com")
- stop() - stop()
description: Kindle de Stephane description: Kindle de Stephane
expression: match_recipient("kindle.stephane@mg.*.space") expression: match_recipient("kindle.stephane@mg.*.space")
priority: 8 priority: 8
- 5b6cbd328b3cd70001eb4eb2: - id: 5b6cbd328b3cd70001eb4eb2
actions: actions:
- forward("iwan.pubclement@gmx.fr") - forward("iwan.pubclement@gmx.fr")
- stop() - stop()