Bug 3092

Summary: Filtering account settings not honored on manual run
Product: Claws Mail (GTK 2) Reporter: Tom Noonan II <tom>
Component: FilteringAssignee: users
Status: RESOLVED INVALID    
Severity: major    
Priority: P3    
Version: 3.8.1   
Hardware: PC   
OS: Linux   

Description Tom Noonan II 2014-02-17 13:12:28 UTC
I have claws mail configured for two imap accounts, with filter rules for each.  Each filter rule has the associated account set.  On ingress filtering these settings are honored, however on manual filtering they are not.  If I select 'Skip these rules' the rules are skipped.  If I select 'Apply these rules regardless of account' all rules are run.  However, if I select 'Apply these rules if they apply to the current account' the account setting is not honored, and Claws-mail filters messages that should not be filtered.

I enabled the filtering log and the current account seems to be set wrong when the filters are run:

> rule is account-based [id=2, name='<Account 1 (Sanitized)>'], current account [id=2, name='<Account 1 (Sanitized)>']

Where the account reported is not the account I'm manually filtering against.

I'm running version 3.8.1 from Debian stable.
Comment 1 Paul 2014-02-17 13:52:25 UTC
The "current account" is the one currently selected in the account selector at the lower right corner.
Comment 2 Tom Noonan II 2014-02-17 13:57:50 UTC
Well, that's not the behavior I expected at all.  Can we change this to a feature request then to have an option in the manual filtering options page to use the account the selected folder is in?  I think that would be an option useful to many users.
Comment 3 Paul 2014-02-17 14:01:15 UTC
That wouldn't work for POP accounts and Local accounts, as they are not directly related to a mailbox in the folder tree.