Skip to content

No To or Cc does not match #42

Description

@fraxflax

Hi,

The following expression

allof(
        anyof(not exists "to", address :is "to" ""),
        anyof(not exists "cc", address :is "cc" "")
)

does not seem to match messages containing no 'Cc' header and the following 'To'-header:

To: Undisclosed recipients:;

which I find strange as 'To' contains no valid address and 'Cc' does not exist.

I maybe just have taken for granted that address "whateverheader" would match the emtpy string if the header exists but contains no valid address ... but I've not been able to find out exactly what it is set to in your Sieve-implementation when the header exists and contains data without a valid address.

... I could do it differently I guess matching 'To' and 'Cc' addrs lacking an '@' e.g. ... but I still find the behaviour strange that the above expression does not match those e-mails!

Will test:

allof(
        anyof(not exists "to", not address :contains "to" "@"),
        anyof(not exists "cc", not address :contains "cc" "@")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions