From efbd40fb2f2f586bb51d3a7d3f6f951db8d0ba0b Mon Sep 17 00:00:00 2001 From: _Bastler Date: Wed, 2 Jun 2021 15:51:04 +0200 Subject: [PATCH] docs: update services/email --- services/email.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/services/email.md b/services/email.md index 7d3bb05..814ede2 100644 --- a/services/email.md +++ b/services/email.md @@ -2,7 +2,7 @@ title: E-Mail description: published: true -date: 2021-06-02T11:51:28.068Z +date: 2021-06-02T13:51:02.716Z tags: editor: markdown dateCreated: 2021-03-24T20:04:51.198Z @@ -35,21 +35,22 @@ Ein einfaches *Sieve* Script, dass dir automatisch deine @Catch-All E-Mails in U ``` require ["fileinto", "variables", "mailbox"]; -if header :matches "Received" "*for <*@*.we.bstly.de>;*" + +if header :index 1 :last :matches "Received" "*<*@*.we.bstly.de>;*" { fileinto :create "INBOX.${2}"; } ``` Wenn du möchtest, dass das ganze auch noch einmal in Unterordner für deine Addressen mit [Alternativen Namen](https://wiki.bstly.de/de/services/webstly#aliases) landet, kannst du folgendes Script verwenden: ``` -require ["fileinto", "variables", "mailbox"]; +require ["fileinto", "variables", "mailbox", "index"]; -if header :matches "Received" "*for <*@we.bstly.de>;*" +if header :index 1 :last :matches "Received" "*<*@we.bstly.de>;*" { fileinto :create "INBOX.${2}"; } -if header :matches "Received" "*for <*@*.we.bstly.de>;*" +if header :index 1 :last :matches "Received" "*<*@*.we.bstly.de>;*" { fileinto :create "INBOX.${3}.${2}"; }