Closed Bug 272240 Opened 20 years ago Closed 20 years ago

"Apply filter to this folder" goes wrong if filter moves mail to current folder

Categories

(Thunderbird :: General, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 232569

People

(Reporter: csmiller, Assigned: mscott)

Details

User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)
Build Identifier: 

When testing new filters it occasionally  useful to use the "Apply filter 
to current folder" option. 
 
However, 
if the filter moves a email, based on subject, say to "CVS", and you 
apply the filter to CVS, then the email that 
would be moved to CVS seems to be moved to another folder (all the mail 
matching the filter are moved to the same folder). 
 
Mozilla 1.2 ignored the move rule in this case. 
 
This isn't a major problem; in normal running the 
filter would be applied to "Inbox", 
no-one would set a filter to move the mail to "Inbox". 

Reproducible: Always
Steps to Reproduce:
I work as a software engineer, and my company has CVS  
automatically send out an email for each commit,  
to all engineers.  
  
We use multiple branches, most of which do not  
concern me, although I still get an email sent  
about them. I have folders for the  
main CVS branches like this  
  
Inbox  
  |  
  +--CVS [Trunk]  
  |    |  
  |    +-- CVS [branch 1]  
  |    |  
  |    |  
  |    +-- CVS [Unknown branch]  
  |  
  +-- Personal  
  |  
  +-- Mailing lists  
   ....  
  
Here, I am interested in the trunk, 'branch 1',  
but interested in the other branches, and their  
emails end up in the 'Unknown branch' folder.  
  
The emails have subjects  
"CVS Commit: <component>" for the trunk, or  
"CVS Commit: [branch name] <component>" for branches.  
  
I've set up filters by Tools/Message filters for  
starts with "CVS Commit: [branch 1]" -> move to Inbox/CVS/Branch 1  
starts with "CVS Commit: [" -> move to Inbox/CVS/Unknown Branch  
starts with "CVS Commit: " -> move to Inbox/CVS/Trunk  
  
This works correctly. However should I start working on "branch 2" I'd  
add a folder "branch 2" by right clicking on the CVS folder,  
then add a rule from Tools/Message Filters  
starts with "CVS Commit: [branch 2]" -> move to Inbox/CVS/Branch 2.  
This filter is placed between the 'branch 1' filter and the 'unknown branch'  
filter.  
  
  
If I then, in the main window, select Inbox/CVS/Unknown branch  
and run 'Tools/Run Filters on Folder', then any messages previously  
received for 'branch 2' are moved to the branch 2 folder,  
however the other 'unknown branch' messages are moved to a different folder  
[I haven't been able to tell what folder is picked, it may be  
the next folder above 'CVS', in this instance 'Personal']  
  
  
If I move all the emails in 'CVS [Unknown branch]' to 'Inbox'  
and apply the filters they work correctly, sorting out  
to the new folder if need be.  
  
Although I haven't tried it, I suspect adding a filter  
to move an email to 'Inbox' is likely to move new mails  
matching the filter to a different folder, but I doubt  
if anyone would do that.  
Actual Results:  
I'd expect any messages in the 'CVS [Unknown branch]' folder   
that should be filtered to this folder to remain in it, not  
moved to a unrelated folder. Mozilla 1.2 did this as expected.  
 
The destination folder seems to depend on the source folder 
but I haven't determined if there is any relationship. 

Expected Results:  
Nothing, as the emails were in the correct folder. 

This is a report forwarded from Debian's BTS, I was the original reporter 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279854 
 
Thunderbird's Help/About reports "version 0.9 (20041124)" 
The installed version is 0.9-7, according do apt-cache, 
it's downloadable from  
http://people.debian.org/~asac/testing/ 
http://www.jwsdot.com/debian/install.html
Indeed it is, 
I didn't enter the right search terms. 
Search for "filter folder" in Summary didn't find that bug, nor indeed this 
one. 
Marking as dup. 

*** This bug has been marked as a duplicate of 232569 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
(In reply to comment #2)
> I didn't enter the right search terms. 
> Search for "filter folder" in Summary didn't find that bug, nor indeed this 
> one. 

No, it isn't your fault.
Because of recent Product/Component structure change of Bugzilla, Product of
common component among Mozilla/Firefox/Thunderbird was changed to "CORE" or
"Toolkit" a few weeks or less ago.
So searching with Product=Mozilla or Firefox or Thunderbird would fail even if
right keyword is specified in summary.

Anyway, you are the second person who experienced the problem on earth, although
my bug is still UNCONFIRMED.
Let's enjoy the bug ;-)
You need to log in before you can comment on or make changes to this bug.