docs: update services/email

This commit is contained in:
_Bastler 2021-06-02 15:51:04 +02:00 committed by John Smith
parent 6e58bde145
commit efbd40fb2f

View File

@ -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}";
}