Moin, I have an problem about the sieve syntax. I want to sort incoming mail in different folders depends on the addresses. So I setup a rule like this:
allof ( address :is :domain ["To","Cc","Sender"] "openbsd.org" ) { if address :contains :localpart ["To","Cc","Sender"] ["misc"] { fileinto "INBOX.list.openbsd.misc";} elsif address :contains :localpart ["To","Cc","Sender"] ["advocacy"] { fileinto "INBOX.list.openbsd.advocacy";} elsif address :contains :localpart ["To","Cc","Sender"] ["security"] { fileinto "INBOX.list.openbsd.security";} elsif address :contains :localpart ["To","Cc","Sender"] ["tech"] { fileinto "INBOX.list.openbsd.tech";}} This works with the most emails but if there is only the address in the To field it didnt match. The following header dont match and I don't know why: To: [EMAIL PROTECTED] X-Loop: [EMAIL PROTECTED] Precedence: bulk Sender: [EMAIL PROTECTED] Thanks for any hint. Matthias