Bug 378231 - Filters not being ran for incoming
Summary: Filters not being ran for incoming
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.5.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-29 08:21 UTC by Konstantin Kharlamov
Modified: 2022-12-08 05:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Kharlamov 2017-03-29 08:21:51 UTC
I just need filters to move mailing-list mails to a separate folder, and mark them as read unless I mentioned. Unfortunately filters work only upon manual application.

Steps to reproduce:

1. Open "Settings" → "Configure filters…"
2.1. Add a new filter
2.2. Add filter criteria "subject" "contains" "TEST"
2.3. Add to filter actions "Mark As" "Read".
3. Send to yourself a mail with subject "TEST"

Result:

The mail isn't marked as read. It does work upon manual application though.
Comment 1 Francis Herne 2017-08-07 10:18:53 UTC
Not reproducible for me with 5.5.3 on Arch; the message is marked as read on receipt.
Comment 2 Konstantin Kharlamov 2017-08-07 13:41:11 UTC
FTR: still doesn't work for me. Archlinux, 5.5.3 version too. After a discussion on IRC I tried

1. Running KMail in KDE.
2. Looking the KMail log (receiving a mail doesn't produce an output)
3. Looking akonadiconsole tab "Job Tracker" (didn't find any clues)
Comment 3 Konstantin Kharlamov 2017-08-07 14:10:45 UTC
Wow, I found an interesting thing! If I manually mark the TEST mail as "unread", and then move into "inbox" of "Local Folders", the mail after getting there becomes "read". However doing the same in the reverse direction, i.e. from local "inbox" to a remote account doesn't mark the mail "read"!

Furthermore, even within the local account the mail is marked as "read" iff it's moved into "inbox" — not to "outbox", "sent-mail", "trash", or wherever.

So I assume this "inbox" folder have some special property set that makes filter to work.
Comment 4 Konstantin Kharlamov 2017-08-07 14:18:44 UTC
Though looking properties of "inbox" and "outbox" in the local folders I can tell they're identical. Any hint for how to compare their configuration is greatly appreciated.
Comment 5 Konstantin Kharlamov 2017-08-07 14:55:00 UTC
So, below are new steps to reproduce, perhaps more reliable. It's assuming you have the "Local Folders" account that KMail creates by default.

1. Open "Settings" → "Configure filters…"
2.1. Add a new filter
2.2. Add filter criteria "subject" "contains" "TEST"
2.3. Add to filter actions "Mark As" "Read".
3. Create a mail with subject "TEST", and use "Message"→ "Save as draft".
4. Select the saved mail in "drafts", then mark it as "Unread".
5. Use dragging to move the selected mail into "outbox" of "Local Folders" account.

Result: it's still marked as "Unread".

6. Select the mail in "outbox", then mark it as "Unread".
7. Use dragging to move the selected mail into "inbox" of "Local Folders" account.

Result: the filter being triggered, and the mail is marked as read.
Comment 6 Justin Zobel 2022-11-08 06:50:01 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-11-23 05:14:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-12-08 05:13:55 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!