
我正在使用 Protonmail,並且正在尋找 Sieve 規則範例。我想添加一個篩選過濾器規則,如果訊息來自[email protected]
並且訊息正文包含“這是正文”,則將其移至過濾器“Test1”。
我已經搜索了示例,但找不到一個好的示例,因此如果我能提供一個示例,我將不勝感激。
答案1
您在找這個嗎?
require ["fileinto", "body"];
if allof(address :is "From" "[email protected]", body :contains "this is the body") { fileinto "Test1"; }
測試於https://www.fastmail.com/cgi-bin/sievetest.pl並有以下測試數據。
From: some person <[email protected]>
To: another guy <[email protected]>
Subject: this is not the body
This is a test, where this is the body and some other text.
我的理解是,Sieve 擴展是依賴於站點的;我還沒有探究過 Protonmail 是否支援這些精確的擴充。事實上,他們的篩頁沒有提到擴展"body"
(RFC 5173),所以也許它不可用。