Skip to content

[Bug]: Tags/Labels/Keyword not shown if set via filter (sieve script) or outside from Bulwark #184

@BlackAlpha700

Description

@BlackAlpha700

Description

Bulwark has it's own keyword scheme ($label:) and does not show mail labels which were set outside from Bulwark or unknown to the client keyword database.

Steps to Reproduce

Keywords from extern

  1. Use an external Mailclient (e.g. Nextcloud) and set a keyword
  2. Open mail in Bulwark

Sieve script

  1. Open Bulwark
  2. Go to settings / Filters
  3. Add Rule and create a rule with action "Add label" and set a label here.
  4. Send a test mail
  5. Open test mail in Bulwark

Expected Behavior

There were different things to optimize to not happen this:

  1. If using the filter rule editor, it should only be possible to select "labels (keywords/tags)" which already exist in Bulwark (or create a new keyword from here automatically using Bulwarks scheme and add this keyword To Bulwark's keyword list)

  2. If using the raw sieve editor, the warning should be expanded adding a warning for possible problems like labels.

  3. If a unknown keyword is found using Bulwark scheme it should be shown in any case and maybe automatically added to the keyword database or at least offer the possibility to add it from the mail view manually to the database.

  4. If a unknown keyword NOT using Bulwark scheme is found, it would be nice to show these keywords in the message details or create a possibility to "convert" these keywords to Bulwark scheme (add new keyword using scheme to database, add this keyword to the mail and remove the old one)

Actual Behavior

If the keyword uses a scheme other than $label:, the keywords were ignored.
If the keyword looks like $label:, Bulwark recognizes there is a keyword (tag) and shows "Remove tag" in the tag menu while viewing the mail, but does not show the value.

Bulwark Version

1.4.12

Stalwart Mail Server Version

0.15.5

Browser

No response

Operating System

None

Screenshots / Screen Recording

No response

Relevant Logs or Error Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions