Bug 283319

Summary: Filter as spam tries to move mail to non-existing folder
Product: [Applications] kmail2 Reporter: Swâmi Petaramesh <swami>
Component: filteringAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: hatl, montel
Priority: NOR Keywords: investigated, triaged
Version: 4.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Error pop-up (KDE notification)
Concerned filter config dialog screenshot
Now it does the same for (T)rash !

Description Swâmi Petaramesh 2011-10-04 14:00:25 UTC
Created attachment 64202 [details]
Error pop-up (KDE notification)

Version:           4.7 (using KDE 4.7.1) 
OS:                Linux

When I manually click a mail to have it considered spam, KMail tries to move it to a non-existing "pam" folder instead of the existing "Spam" folder it has been instructed to by configuration (see attached screenshot)

Reproducible: Always

Steps to Reproduce:
Select an email, click button to manually define it as being "spam"

Actual Results:  
Error pops-up telling "Select failed, server replied : A000086 NO mailbox doesn't exist: pam

Expected Results:  
Mail should be moved to local "Spam" folder, per configuration of filter

OS: Linux (i686) release 3.0.0-12-generic
Compiler: gcc
Comment 1 Laurent Montel 2011-10-04 15:07:56 UTC
How do you created this filter ?
Comment 2 Swâmi Petaramesh 2011-10-04 15:18:06 UTC
The filter was created by the anti-spam wizard of a previous version of Kmail, before upgrading to the current release, and worked perfectly previously.

I however checked it today, and re-entered (by selecting it from the dropbox) the folder into which KMail is supposed to move spam.
Even after reconfiguring, the problem persists.

The folder is called "Spam" (and local) however KMail seems to try to move mail to a folder called "pam" (missing the S) and possibly to the remote server, as far as I can tell from the error msg ?
Comment 3 Swâmi Petaramesh 2011-10-04 15:26:41 UTC
Created attachment 64204 [details]
Concerned filter config dialog screenshot

This is the configuration dialog of concerned filter. Folder name has been selected from the dropbox
Comment 4 Laurent Montel 2011-10-05 16:29:55 UTC
I don't understand why it doesn't work for you
Do you have renamed it ?
Comment 5 Swâmi Petaramesh 2011-10-06 05:54:22 UTC
No, I haven't renamed anything, and it worked plain good before I upgraded from Ubuntu Natty (KMail 1.x) to Ubuntu Oneiric (Kmail 2). After upgrading this was broken.
Comment 6 Swâmi Petaramesh 2011-10-06 09:10:57 UTC
Created attachment 64276 [details]
Now it does the same for (T)rash !

Now this is more interesting ! Just pressing [Delete] to delete an email this morning, I get the attached pop-up telling that the "rash" folder doesn't exist, obviously missing the "T" for "Trash", as it previously missed the "S" for "Spam" => "pam"...
Comment 7 Hatl 2011-10-13 07:17:43 UTC
Same problem here

I created the filter using the "Anti-Spam wizard" (Kmail2)
Comment 8 Laurent Montel 2011-10-13 07:59:58 UTC
Which anti spam program ?
And it try to move to Pam and not Spam ?
Comment 9 Swâmi Petaramesh 2011-10-13 08:09:35 UTC
For me :

- I use bogofilter as anti-spam program, but it's probably irrelevant, because it's applying manually "classify this email as spam", that has a rule "move to Spam folder", and that rule causes the error box to appear.
- However the message is actually moved to the correct folder, so the bug is with the error message, not with the actual result (as it seems).

=> As a side note, I see KMail 2 cause a lot of "incorrect error messages". On my wife's machine, KMail very often spits error messages that it "cannot modify email in folder" for whatever reason, however the actual results (mark as read, or unread, or important, or move to another folder) are always correct.

So KMail is bugging us with buggy errors where it actually works. Your mileage may vary, but that's mine.
Comment 10 Swâmi Petaramesh 2011-11-20 11:58:27 UTC
Still unfixed. The complete "move to folder" system in Kmail is completely broken - seen on every machine I configured KMail, either IMAP or POP. Using the "Spam filtering rules" creted by the assistant (or manually) is broke, results in buggy messages being displayed, etc.
I can't believe this doesn't seem to be taken into consideration and fixed.

i.e. I myself don't quit KMail because I've been using it for 10 years and love it, but I know 3 people that have already quit using Kmail in favor of Thunderbird just because of all these bugs in the latest version (and corresponding Kubuntu Oneiric). So please wake up guys !
Comment 11 Swâmi Petaramesh 2011-12-06 18:40:21 UTC
Up ! Unfixed ! Xtremely annoying !
Comment 12 Tobias Koenig 2012-02-11 23:55:55 UTC
Hej,

can you attach your akonadi_mailfilter_agentrc here, please?

Ciao,
Tobias
Comment 13 Andrew Crouthamel 2018-09-22 02:03:52 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 set the bug status 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 14 Andrew Crouthamel 2018-10-27 04:01:40 UTC
Dear Bug Submitter,

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!