mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #1522] 🐛 [Bug] Sieve issues #677
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#677
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @knightsg on GitHub (May 22, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1522
Originally assigned to: @Shadow243 on GitHub.
🐛 Bug
I've found a couple of issues while trying to make use of the sieve filters. Specifically:
sieve: invalid config host.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:
NOTICEoutput as above.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: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)@knightsg commented on GitHub (May 22, 2025):
Update regarding the Inbox unread count I mentioned above, I just noticed after reading through my remaining unread emails (via the "Unread" page) the inbox now shows
-3, the same amount of emails I had just read. Screenshot here: https://ibb.co/hR0Q25ZM.@Shadow243 commented on GitHub (May 23, 2025):
@knightsg thank you for reporting this issue.
We are currently working on resolving several errors, including the one related to the Sieve filter.
We'll carefully review the entire list you provided to ensure that all reported problems are properly addressed.
We appreciate your detailed feedback — it’s very helpful.
@knightsg commented on GitHub (May 24, 2025):
Thanks, I appreciate the response. Let me know if you need any additional information and I'll do my best to gather it. Do you know at this point if the filter not actually working (filtering emails) is an issue with the filter config Cypht is generating, or would it be likely to be something with my mailserver config? I assumed it was the latter but if you have any reason to think it's due to Cypht itself that would be great to know before I spend more time investigating on my side.
@knightsg commented on GitHub (May 24, 2025):
Turns out I worked out what was going on with my filter issue almost immediately. I'm using docker-mailserver and after looking at their docs I found that I was missing a symlink
/var/mail/<my-mail-domain>/<user>/home/.dovecot.sievepointing to/var/mail/<my-mail-domain>/<user>/home/sieve/main_script.sieve. I created that symlink and tried sending another test email but it still wasn't filtered.Then, when I checked the mailserver log it pointed me to the sieve log where I found this error:
I've never set up a filter called
blocked_sendersbefore so I investigated and it seems like it's something that Cypht is creating (or is supposed to create). The code seems to point to it: https://github.com/search?q=repo%3Acypht-org%2Fcypht%20blocked_senders&type=code. Anyway, I removed the problematicincludeline, tested again and that seemed to fix my filter issue 🎉@knightsg commented on GitHub (May 24, 2025):
I'll also mention that I've never used the "block sender" option in Cypht so I shouldn't have directly triggered Cypht to add that line in the first place, although looking at the Cypht code very briefly I think it might just add the line automatically. I wonder if perhaps because of my previous issues using the filter editor (see #671) it added the line at some point but failed before it got the chance to create the blocked_senders file?
@knightsg commented on GitHub (May 24, 2025):
All right, sorry for all the comments but I kept digging into this and found more. I created another filter using the editor and once I saved it I checked the main_script.sieve file again and found that it had readded the
include :personal "blocked_senders";line again, but it also hadn't created the associated file even though everything finished processing properly on the Cypht side, at least as far as I can tell.I'll leave it there for now but I hope this has been of help 🙂
@knightsg commented on GitHub (May 25, 2025):
I came across another issue that appears to be sieve-related. While trying to delete a folder I get the following cypht log error:
Also, as I tried deleting the folder a couple more times I noticed that the UI kept adding extra delete confirmation buttons on each attempt, as shown in this screenshot of my third attempt to delete the same folder.
@Shadow243 commented on GitHub (Jun 25, 2025):
@knightsg I am currently testing and reproducing these errors in order to fix them. All other PRs related to Sieve are now on the master branch. I’ll get back to you shortly for confirmation.
@Shadow243 commented on GitHub (Jun 25, 2025):
I was able to reproduce this behavior. Cypht relies heavily on a caching mechanism for performance reasons. When navigating to the "Unread" page, the unread count displayed initially may be stale, as it's served from the cache. However, shortly after page load, Cypht triggers an asynchronous backend request to re-fetch the actual unread count. Once the response is received, the UI updates with the correct number. This brief discrepancy is expected behavior due to the asynchronous cache refresh process.
@Shadow243 commented on GitHub (Jun 25, 2025):
That said, we've noticed that the unread count for the Inbox specifically is not functioning correctly in some cases. A fix will be addressed soon to resolve this issue. Thanks for pointing it out.
@marclaporte commented on GitHub (Sep 1, 2025):
@Shadow243 Any good news? :-)
@marclaporte commented on GitHub (Jan 20, 2026):
@Shadow243
2.6.0 has been released. We need you :-)