Dovecot + Sieve - 일치가 명백히 참일 때 일치는 거짓입니다.

Dovecot + Sieve - 일치가 명백히 참일 때 일치는 거짓입니다.

비둘기장 버전 2.3.16(7e2e900c1a)

알겠습니다. 문제가 있습니다.

if address :is :domain "From" "test.net" { fileinto "INBOX/Test"; stop; }

문제는 다른 도메인이 완벽하게 작동하기 때문에 이것이 완전히 무작위라는 것입니다(도메인 이름은 분명히 난독화되어 있지만 아무것도 변경되지 않습니다).

디버그는 다음과 같습니다

24: address test
  24:   starting `:is' match with `i;ascii-casemap' comparator:
  24:   extracting `From' headers from message
  24:   parsing address header value `"Test.Net" <[email protected]>'
  24:   address value `[email protected]'
  24:   extracting `domain' part from address <[email protected]>
  24:   matching value `test.net'
  24:     with key `test.net' => 0
  24:   finishing match with result: not matched
  24: jump if result is false
  24:   jumping to line 25

누군가 이것을 설명할 수 있나요? 분명히 일치하지만 dovecot이 다른 도메인 이름과 일치하지 않는다고 "결정"하는 몇 가지 다른 경우가 있습니다.

답변1

그만큼예시 페이지전환을 제안 :is하고 :domain:

if address :domain :is "From" "test.net" { fileinto "INBOX/Test"; stop; }

관련 정보