Skip to content

🐛 [Bug] Sieve issues #1522

@knightsg

Description

@knightsg

🐛 Bug

I've found a couple of issues while trying to make use of the sieve filters. Specifically:

  1. Visiting the "unread" page produces an error popup sieve: invalid config host.
  2. On the Settings -> Filters page, clicking the edit icon (pencil) results in the following:
    a. A grey bar briefly flashes across the top of the browser window but otherwise there is no activity.
    b. The cypht container log emits an error:
NOTICE: PHP message: Session after: Array
(
)
  1. Clicking the enable/disable slider to disable the filter moves the slider to the left so it appears off. However, once the page is reloaded the slider is set to "enabled" again. This also produces the same NOTICE output as above.
  2. Sieve filters don't appear to be working. I created a filter using "Add Filter" in Cypht to move emails from gmail.com (header :contains "From" ["gmail.com"]) to the archive folder and sent a test email from a gmail account but it wasn't moved to archive. I double checked in my dovecot installation's sieve filters folder for the IMAP account I'm logged into in Cypht and it has the following config in a file with the filter name I entered when creating it:
# CYPHT CONFIG HEADER - DON'T REMOVE
# W3siY29uZGl0aW9uIjoiZnJvbSIsInR5cGUiOiJDb250YWlucyIsImV4dHJhX29wdGlvbl92YWx1ZSI6IiIsInZhbHVlIjoiZ21haWwuY29tIn1d
# W3siYWN0aW9uIjoibW92ZSIsInZhbHVlIjoiQXJjaGl2ZSIsImV4dHJhX29wdGlvbl92YWx1ZSI6IiJ9XQ==

# Requirements
require ["fileinto"];

# CYPHT GENERATED CONDITION
if header :contains "From" ["gmail.com"] {
        fileinto "Archive";

}

I suspect this is probably an issue with my dovecot setup and will investigate further on my own but I thought it didn't hurt to mention it here.

On a side note, I just happened to notice the interface is showing "NaN" next to the inbox icon, as shown in this screenshot. It doesn't appear to be causing any issues though.

Version & Environment

Rev: cypht/cypht:daily (0657ed241d29)
OS: Ubuntu 24.04.2 LTS (docker-ce 28.1.1-1~ubuntu.24.04~noble)

Metadata

Metadata

Assignees

Labels

bugsomething is wrong in Cypht

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions