
저는 Protonmail을 사용하고 있으며 Sieve 규칙 예제를 찾고 있습니다. 메시지의 출처 [email protected]
이고 메시지 본문에 "this is the body"가 포함된 경우 해당 메시지를 "Test1" 필터로 이동하는 Sieve 필터 규칙을 추가하고 싶습니다 .
예제를 검색해 봤지만 좋은 예제를 찾을 수 없었기 때문에 이에 대한 예제를 제공해 주시면 감사하겠습니다.
답변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)이므로 사용하지 못할 수도 있습니다.