Dovecot + Sieve - 當明顯為真時,配對為假

Dovecot + Sieve - 當明顯為真時,配對為假

Dovecot 版本 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; }

相關內容